POST
|
The aim to publish an archived table through ArcGIS Server is simply to enable making queries on it. It could be interesting for a web application to allow user to see how the data changed for a period of time. I realize that an archived table cannot be published into a map service if the Features Access capability is enabled, but there is no problem if it's desabled.
... View more
07-13-2016
06:44 AM
|
2
|
3
|
2072
|
POST
|
Hello, I would like to know if there is a way to access the archive class in a Map Service on ArcGIS Server. I have a Map Service with feature class stored in a SDE GeoDatabase with Archiving and Versionning enabled. My questions are: When features are added/updated/removed on a feature class with Archiving using the Feature Access capability of ArcGIS Server, does the Archive Class is updated? Is it possible to query the Archive Class in order to retrieve features at a perticular moment using the Feature Access or Mapping capabilities through the REST API? When I try to publish a Map Service containing an Archive Class to ArcGIS Server I have an error saying: Layer's data source is not registered with the geodatabase (Feature Service) . Does it means it's not possible to publish an Archive Class?
... View more
06-17-2016
06:29 AM
|
1
|
15
|
7150
|
POST
|
After letting the publisher running idle for a while some errors shows up: High Unresolved 00178 Data: C:\Windows\bfsvc.exe, used by Script Script cannot be copied to the server High Unresolved 24032 Data source used by Script Script is not registered with the server and will be copied to the server: C:\temp\arcgis\arcpy\ Any idea what is going wrong?
... View more
06-15-2016
04:46 AM
|
0
|
0
|
360
|
POST
|
Hi! I have problem publishing a simple python script as geoprocessing service with ArcGIS Server. import urllib import arcpy u = arcpy.GetParameter(0) url = "http://geoegl.msp.gouv.qc.ca/cgi-wms/mapcache.fcgi/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/" + u image = urllib.urlopen(url).read() arcpy.SetParameter(1,image) This is a simple proxy that uses urllib to redirect images. When I try to publish this script, ArcMap always go idle and finally crash. If I try to publish a script that do not import urllib, I have no problem. Can someone tell me if trying to publish a python script that import urllib into ArcGIS Server could make the Publisher crashing?
... View more
06-14-2016
12:02 PM
|
0
|
2
|
2580
|
POST
|
Hi, I have difficulties with esri.tasks.BufferParameters needed for a esri.tasks.GeometryService. I want to create buffer around selected points but I can't construct the BufferParameters.geometries correctly. //select feautures point by drawing on the map
function initSelectToolbar(map) {
selectionToolbar = new esri.toolbars.Draw(map);
var selectQuery = new esri.tasks.Query();
dojo.connect(selectionToolbar, "onDrawEnd", function(geometry) {
selectionToolbar.deactivate();
selectQuery.geometry = geometry;
selectedFeatures = featureLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW);
});
}
//create buffer arround selected features
function createBuffer(selectedFeatures) {
console.log(selectedFeatures)
var gpBuffer = new esri.tasks.GeometryService("http://localhost:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer");
var params = new esri.tasks.BufferParameters();
params.geometries = selectedFeatures._selectedFeatures.geometry; //not working
params.distance = 10;
params.unit = esri.tasks.GeometryService.UNIT_KILOMETER;
params.bufferSpatialReference = new esri.SpatialReference({wkid: 4326});
params. outSpatialReference = map.spatialReference;
console.log(params);
gpBuffer.buffer(params, showBuffer, console.log(error));
} Thank you for your help ! Do I need to loop over each features in selectedFeature to create buffers? I tryed like this but I still have a 400 error in geometryService with message 'geometries' must be specified function createBuffer(selectedFeatures) {
console.log(selectedFeatures)
var gpBuffer = new esri.tasks.GeometryService("http://localhost:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer");
var params = new esri.tasks.BufferParameters();
require(["dojo/_base/array"], function(array){
array.forEach(selectedFeatures.graphics, function(feature) {
params.geometries = feature.geometry;
params.distance = 10;
params.unit = esri.tasks.GeometryService.UNIT_KILOMETER;
params.bufferSpatialReference = new esri.SpatialReference({wkid: 3857});
params. outSpatialReference = map.spatialReference;
console.log(params);
gpBuffer.buffer(params, showBuffer, alert('yo'));
});
});
}
... View more
02-07-2014
07:55 AM
|
0
|
0
|
277
|
POST
|
Hi, I have difficulties with esri.tasks.BufferParameters needed for a esri.tasks.GeometryService. I want to create buffer around selected points but I can't construct the BufferParameters.geometries correctly. //select feautures point by drawing on the map
function initSelectToolbar(map) {
selectionToolbar = new esri.toolbars.Draw(map);
var selectQuery = new esri.tasks.Query();
dojo.connect(selectionToolbar, "onDrawEnd", function(geometry) {
selectionToolbar.deactivate();
selectQuery.geometry = geometry;
selectedFeatures = featureLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW);
});
}
//create buffer arround selected features
function createBuffer(selectedFeatures) {
console.log(selectedFeatures)
var gpBuffer = new esri.tasks.GeometryService("http://localhost:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer");
var params = new esri.tasks.BufferParameters();
params.geometries = selectedFeatures._selectedFeatures.geometry; //not working
params.distance = 10;
params.unit = esri.tasks.GeometryService.UNIT_KILOMETER;
params.bufferSpatialReference = new esri.SpatialReference({wkid: 4326});
params. outSpatialReference = map.spatialReference;
console.log(params);
gpBuffer.buffer(params, showBuffer, console.log(error));
} Thank you for your help !
... View more
02-07-2014
04:42 AM
|
0
|
1
|
865
|
POST
|
Hi JGBarclay console.log(selectQuery.geometry) returns an object but I am not sure if it is valid. Object {geometry: Object, target: Object}
geometry: Object
_centroid: null
_extent: null
_ring: 0
rings: Array[1]
0: Array[11]
0: Array[2]
0: -69.33183267437701
1: 45.45381694926503
length: 2
__proto__: Array[0]
1: Array[2]
2: Array[2]
3: Array[2]
4: Array[2]
5: Array[2]
6: Array[2]
7: Array[2]
8: Array[2]
9: Array[2]
10: Array[2]
length: 11
__proto__: Array[0]
length: 1
__proto__: Array[0]
spatialReference: Object
latestWkid: 4326
wkid: 4326
__proto__: Object
type: "polygon"
__proto__: Object
spatialReference: Object
wkid: 4326
__proto__: Object
target: Object
__proto__: Object
... View more
02-06-2014
09:23 AM
|
0
|
0
|
547
|
POST
|
Is it normal that there is no coordinates of the query object in the query url? I am trying to query features that Intersects a drawn object. I also try to change the url to select only one field but I still have the same error when pasted the url in the browser. http://localhost:6080/arcgis/rest/services/immeubles/FeatureServer/0/query?f=json&returnGeometry=true&spatialRel=esriSpatialRelIntersects&inSR=4326&outFields=adresse&outSR=4326
... View more
01-28-2014
10:31 AM
|
0
|
0
|
3003
|
POST
|
Maybe that could help. I have copied the url of the query GET request: http://localhost:6080/arcgis/rest/services/immeubles/FeatureServer/0/query?f=json&returnGeometry=true&spatialRel=esriSpatialRelIntersects&inSR=4326&outFields=*&outSR=4326
... View more
01-28-2014
10:21 AM
|
0
|
0
|
3003
|
POST
|
Hi Jamie, Thank you for your help but unfortunately I still have a 400 error but with the message: Unable to perform query operation.
... View more
01-28-2014
09:58 AM
|
0
|
0
|
3003
|
POST
|
You don't add feature layer to the map until after calling the selection. This may be causing issues because the layer wouldn't have had time to do any loading. I would try: adding a layer add listener to the map, add the feature layer, and wait for the listener to fire before doing your selection the feature layer is in ON_DEMAND mode. I believe it has to be SELECTION to work with that function I have tryed what you suggested by adding the FeatureLayer to the map, changing mode to SELECTION, and creating an event callback when the selection is completed but I still have the 400 error:
featureLayer = new esri.layers.FeatureLayer("http://localhost:6080/arcgis/rest/services/immeubles/MapServer/0", {
mode: esri.layers.FeatureLayer.MODE_SELECTION,
outFields: ["*"]
});
map = new Map("maptest1");
map.addLayers([featureLayer,]);
function initSelectToolbar(map) {
selectionToolbar = new esri.toolbars.Draw(map);
selectionToolbar.activate(esri.toolbars.Draw.FREEHAND_POLYGON);
var selectQuery = new esri.tasks.Query();
var fieldsSelectionSymbol = new esri.symbol.SimpleMarkerSymbol(
esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND,
20,
new esri.symbol.SimpleLineSymbol(
esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([88,116,152]), 2
),
new dojo.Color([88,116,152,0.45])
);
selectionToolbar.on("draw-end", function(geometry) {
selectionToolbar.deactivate();
selectQuery.geometry = geometry;
selectQuery.geometry.spatialReference = sr;
featureLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW); //the 400 error is here
featureLayer.on("selection-complete", function(){ // this function was never launched
featureLayer.setSelectionSymbol(fieldsSelectionSymbol);
console.log(featureLayer);
map.addLayer(featureLayer);
});
});
}
... View more
01-23-2014
07:39 AM
|
0
|
0
|
3003
|
POST
|
Hi, I use a draw tool to select features like this: function initSelectToolbar(map) {
featureLayer = new esri.layers.FeatureLayer("http://localhost:6080/arcgis/rest/services/carte1/MapServer/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
console.log(featureLayer);
selectionToolbar = new esri.toolbars.Draw(map);
selectionToolbar.activate(esri.toolbars.Draw.FREEHAND_POLYGON);
var selectQuery = new esri.tasks.Query();
var fieldsSelectionSymbol = new esri.symbol.SimpleMarkerSymbol(
esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND,
20,
new esri.symbol.SimpleLineSymbol(
esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([88,116,152]), 2
),
new dojo.Color([88,116,152,0.45])
);
selectionToolbar.on("draw-end", function(geometry) {
selectionToolbar.deactivate();
selectQuery.geometry = geometry;
selectQuery.geometry.spatialReference = sr;
featureLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW);
featureLayer.setSelectionSymbol(fieldsSelectionSymbol);
map.addLayer(featureLayer);
});
} I receive an error 400 Missing Parameters when selectFeatures() is performed. What could be the error? Thank you for your help
... View more
01-20-2014
06:46 AM
|
0
|
13
|
11608
|
POST
|
The Feature Layer needs to be added to the map before you can perform selectFeatures. Thank you for your reply. I tryed to add the layer to map before, but I have the same error. I re-instantiated the geometry.spatialReference before the selectFeatures() and it works. ...
selectQuery.geometry = geometry;
selectQuery.geometry.spatialReference = sr;
featureLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW);
featureLayer.setSelectionSymbol(fieldsSelectionSymbol);
map.addLayer(featureLayer);
});
... View more
01-20-2014
06:41 AM
|
0
|
0
|
207
|
POST
|
I use a draw tool to select features like this: function SelectTool(map) {
featureLayer = new esri.layers.FeatureLayer("http://localhost:6080/arcgis/rest/services/carte1/MapServer/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
selectionToolbar = new esri.toolbars.Draw(map);
selectionToolbar.activate(esri.toolbars.Draw.FREEHAND_POLYGON);
var selectQuery = new esri.tasks.Query();
var fieldsSelectionSymbol = new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([255,255,0,0.5]));
fieldsSelectionSymbol.setOutline(new esri.symbol.SimpleLineSymbol("dashdot", new dojo.Color([255,0,0]), 2));
selectionToolbar.on("draw-end", function(geometry) {
selectionToolbar.deactivate();
selectQuery.geometry = geometry;
console.log(selectQuery);
featureLayer.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW);
featureLayer.setSelectionSymbol(fieldSelectionSymbol);
map.addLayer(featureLayer);
}); I receive this error TypeError: a.spatialReference is undefined when the selectFeatures() is performed and the script stops after that. What could be the problem? the selectQuery seems to be correct with spatialReference object (wkid: 4326) Thank you for your help
... View more
01-20-2014
05:51 AM
|
0
|
2
|
741
|
Title | Kudos | Posted |
---|---|---|
1 | 06-17-2016 06:29 AM | |
2 | 07-13-2016 06:44 AM | |
1 | 01-16-2014 04:51 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|