Hot answers tagged arcgis-server
2
The answer to what you are asking, is that there no other geoserver which has the exact REST API as ArcGIS Server. There are several license levels for ArcGIS Server, and the price differs accordingly.
Now coming to solving your actual problem. You say that "I need to use existing ArcGIS Restful services". I would ask why?
Other FOSS servers like Geoserver ...
2
Here is the sample code which customized from esri sample. This sample follows 3 steps,
Create SDDraft from mxd document
Set service type to esriServiceDefinitionType_Replacement of SDDraft
Stage and upload the sddraft with overwriting existed service.
import arcpy
import xml.dom.minidom as DOM
#define local variables
# wrkspc mxd document ...
1
We can use the map's extent property, to get the extent. Usually your map will be in webmercator. we'll have to project the bounds back to EPSG:4326 in that case.
You can use the following code:
//asuming your map is in web mercator
//get the bounds of the current view
var bnds=map.extent;
//project the bounds from webmercator to latlong
var ...
Only top voted, non community-wiki answers of a minimum length are eligible

