Tagged Questions
1
vote
0answers
59 views
Getting started with development for ArcGIS Server
I'm currently working on upgrading a C# web service I wrote a couple of years ago built against ArcGIS Server to ArcGIS Server 10. The application in question does some basic spatial queries and ...
0
votes
0answers
26 views
Can I access the request URL in a Server Object Extension (SOE)
I would like to obtain the full URL of a REST request inside of an ArcGIS Server SOE.
I would like to return the full URL to an output file. But, the service may be exposed on different servers or ...
2
votes
1answer
50 views
Stand-alone Server Object Extension (SOE)
I would like to setup a REST service through ArcGIS Server.
In this case I do not need a map service, but it seems like you can only deploy an SOE as an extension to another service. It seems ...
1
vote
1answer
35 views
How to write a file in an Server Object Extension (SOE)
I would like to create a file with an ArcGIS Server Object Extension and return the url. Is this possible? Where would I write the file?
I'm working with .Net, IIS, and AGS 10.1.
1
vote
1answer
34 views
How to extend a custom NASolver in ArcGIS Server 10.1?
The past year we developed a custom NASolver with C# , it works fine and that job has finished.
Now we are planning to use it from ArcGIS Server. The problem is that we have no information for that. ...
2
votes
2answers
52 views
Using ArcGIS Server SOE to listen for edit events
Bit of a conceptual issue
I have a situation where I need to add business logic to newly created features in a feature service. When new features are created I need to preform overlays and assign an ...
1
vote
0answers
110 views
The underlying connection was closed: The connection was closed unexpectedly, WCF and ESRI Objects
I am getting this error when using ESRI objects like Geometry, Envelope etc in a WCF service. I have a class that some properties (string, int, double) but when I add ESRI type as part of this class, ...
6
votes
1answer
129 views
Why are annotation features containing both GraphicElement and TextElement objects not drawing in an ArcGIS Server map service?
I am building annotation features with Python/comtypes/ArcObjects. The annotation works great in ArcMap (10.1), but it is does not draw when published to a map service in ArcGIS Server. Each piece ...
0
votes
0answers
28 views
ESRI AddFeatures call on rest endpoint with attributes
I can add a line feature via the rest endpoint with my hand crafted call from C#. However, if i add any attributes to the call it will fail and say unable to perform operation.
All of the fields in ...
1
vote
0answers
71 views
Arcobjects initializing license error
I have ArcObjects .NET code that is running on a machine with ArcGIS for Server 10.1.
The application worked on the dev server.
But when I moved to Test server, I am not able to initialize the ...
2
votes
1answer
65 views
Binding to ArcGIS for server
I am building a stand alone .NET applications using ArcObjects.
I want to run it on the server, where I have ArcGIS for Server.
I am trying to bind the license at runtime to the ArcGIS server ...
2
votes
2answers
92 views
How to return feature.shape from server by using WCF and ArcGIS Silverlight API?
I am using the ArcGIS Silverlight API. I all I need to do is to get the geometry from a feature by objectid to zoom to it:
getFeature(objectid);
So I used WCF service to get the geometry but I ...
3
votes
1answer
117 views
C# Where to create GP service output files
How to get path of default scratch workspace(folder) using c#?
I'm making REST GP tool, where you pass some input parameters, tool collects data, create csv files, and archive them. Then tool return ...
4
votes
1answer
270 views
How do I publish a custom .NET GP Tool as a GP Service on ArcGIS Server 10.1?
I have a GP Tool that I am able to publish as a GP service at 10.0.
I recompiled the DLL for 10.1 and have followed the steps in the Deploying custom .NET and C++ tools page of the 10.1 help doc. ...
4
votes
3answers
455 views
ArcServer 10.1 - Publishing C# Executable as a Geoprocessing Service
I am trying to publish an arcobjects C# executable as a gpservice. We did this in 10.0 by adding it to a toolbox and hitting publish. Using ArcCatalog in 10.1 you must first run the script before you ...
6
votes
3answers
2k views
ArcObjects/ArcServer 10.1 - How to programatically publish a map service?
I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that matters). Here is the code I am ...
3
votes
1answer
470 views
IFeature.set_Shape The coordinates or measures are out of bounds
I'm trying to add a point to my map, but something with the way I used shp2sde create caused me to have a incorrect spatial extent or something. So I'm getting "out of bounds" error.
How do I go ...
2
votes
1answer
203 views
Shapes of this entity type not allowed in this layer when CreateFeature() is called
I have the following code that calls on a remote geodatabase server. Everything is connected and working, but when I try to add a point and use featureclass.CreateFeature();, it shuts down.
At first ...
0
votes
1answer
229 views
Pros and Cons for developing GIS functionality in ArcGIS Web API (Silverlight) or ArcGIS for Desktop
I have an application coming together using the ArcGIS Server API for Silverlight. The app, currently, takes in two geometry points from the user and passes the geometry to an ArcGIS Elevation server ...
1
vote
0answers
123 views
Trouble programmatically publishing to SOM when SOC is on another machine
I wrote a desktop extension for ArcMap that allows a user to publish the map they've just created to an AGS 9.3.1 machine on another server. This works fine as long as the AGS machine acts as a SOM ...
4
votes
7answers
498 views
Where is the server.dat equivalent at 10.1?
Prior to 10.1, I could locate the server.dat file, and programmatically find out the arcgisoutput folder URL location (virtual directory when using IIS)
e.g.
<Directory>
...
2
votes
0answers
92 views
How to tell if an ArcGIS Service is secure?
I am creating a .NET REST SOE for ArcGIS Server 10, and I will need to determine if a map service (or image) is secure or not.
Is there a property on a MapService that would tell me this in either ...
2
votes
1answer
593 views
How to edit a given version of geodatabase?
I have a versioned geodatabase. Any of that versions are used only by one user. So then user called "XXX" has a version called "XXX". So then now I want to make a changes on given version, but when I ...
5
votes
1answer
251 views
ArcObjects 10 Java SDK
I am being tasked with converting a AGS georpocessing toolkit currently written in AO 10 C# SDK to AO 10 Java SDK. Are there any resources out there which show an end to end example of creating an ...
2
votes
1answer
228 views
Deploying to ArcGIS 10 Server .NET/Java
We're in the process of transforming a lot of 9.1 ArcServer/ArcObjects etc applications to ArcGIS Server 10.
However, we're unsure as to licensing on 10.
As I understand it, I cannot, according to ...
0
votes
1answer
357 views
Connecting to ArcGIS Server with IIS 7.5 (ArcObjects/COM)
This code works fine on a development box, but fails in a server environment:
GISServerConnection gisServerConnection = new GISServerConnection();
gisServerConnection.Connect("localhost");
The ...
0
votes
2answers
254 views
Why would programmatically setting the extent of a map on Page_PreRender be really slow?
We are using the ArcGIS 10 web adf with C# in a web application. We just recently upgraded everything from 9.3 to 10 and moved all the hosted stuff over to a new (more powerful) server. Still on the ...
1
vote
0answers
268 views
Intersecting with Geodatabase.ISpatialFilter - no results
I'm trying to intersect two layers and get resulting features with the following code I've written:
ESRI.ArcGIS.Geodatabase.ISpatialFilter spatialFilter = new ...
2
votes
0answers
406 views
Intersect two layers and get resulting features
I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features.
I'm trying to get this code working
// get first feature (index 0)
...
4
votes
0answers
348 views
ArcGIS - find layer ID and name from a Identify query
I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET)
Identify function spits out a DataTable array for layers which have ...
0
votes
1answer
304 views
arcgis server 10, vb.net, IMathOp problem
i am using arcgis server 10 and visual studio with vb.net to build web mapping application. inside my code i have the following line:
Dim RasterCal As ESRI.ArcGIS.SpatialAnalyst.IMathOp = _
New ...
4
votes
1answer
191 views
Create a esri layer file through web map
Is there some way to create a layer file through web mapping application. If I expose data through a map service is there a way to create a .lyr file?
3
votes
2answers
427 views
How to apply a new renderer in ArcGIS?
I try to create a new renderer for a geo feature layer in ArcGIS 10. (My project is an asp.net based webservice)
There is one solution I got from a tutorial that works, but only for a ISimpleRenderer
...
1
vote
4answers
310 views
How can I preserve ObjectIDs in a Featureset returned from an SOE?
I'm returning a featureset from an SOE.
To create the FeatureSet, I'm first creating a Recordset, inserting features into it, and then serializing it as json using SOESupport. The client then ...
3
votes
2answers
436 views
How can I deserialize json to create an IRecordset?
I've got a Silverlight client that serializes a FeatureSet and sends to an SOE. I'd like for the SOE to deserialize the json into an IRecordSet. ESRI.ArcGIS.SOESupport.Conversion has a method for ...
8
votes
2answers
471 views
Why do I need ArcGIS Server just to host ArcObjects in a web service?
I get this question a lot from web developers, and would like to have a short concise answer for them ...
Why do I need ArcGIS Server just to host ArcObjects in a web service?
3
votes
1answer
287 views
AGS10 Soap Geometry/Project function vanishes
So I am doing a pretty simple process that looks a lot like right out of the SOAP API/SDK for AGS10.
My webservices takes a Lat/Lon coord from a mobile app, I reproject it to Web-Mercator to identify ...
1
vote
1answer
257 views
Getting Basic Information about ArcGIS Map Service With IGxDialog
I am having a helluva time trying to get some basic information (server URL) about an ArcGIS Map Service using the basic IGxDialog.
So far, I am able to pop open the IGxDialog, and allow the user to ...
6
votes
5answers
780 views
Troubleshooting ArcObjects performance problems
We have developed a relatively complex geoprocessing routine using a C# / ArcObjects (COM) / ArcGIS Server 9.3.1 / ArcSDE 9.3.1 / Oracle 11g stack. Running the routine on a complete dataset takes ...
3
votes
3answers
528 views
How to use ArcGisServer from Engine?
MapServerQuerySublayer (Version 10) does not seem to support setting a definition query, although according to documentation it should using ImapServerSublayer2.LayerDescription as IMapserverSublayer. ...
4
votes
2answers
785 views
Publish MXD to server in ArcObjects C#
I have an MXD that I would like to publish to an ArcGIS server using C# ArcObjects (preferably as an MSD). I have been unable to find anything regarding this. Essentially I would like to implement the ...
5
votes
4answers
568 views
Is accessing an mxd from an Msd based SOE safe?
I have a server object extension (SOE) that returns a list of legend items based on symbols that fall within a specified extent. This allows the client to update a legend to reflect on the symbols ...
7
votes
1answer
180 views
How can my client catch mapservice timeouts?
I've got a gp service that exports pdfs using connections to mapservices. I'd like to write to a log file when a request to a service times out. For WMS mapservices I see I can use IWmsClientEvents ...
2
votes
4answers
2k views
How to set a definition query for an AGS layer?
Is it possible filter out some features using a definition query set from the client on a AGS layer?
I've checked out the map server layer but it only supports find and identify. Also looked at WMS, ...
6
votes
1answer
185 views
How can I get more verbose messages from a GP service?
When I run a tool I've published as a gp service, the only messages I get are these:
esriJobMessageTypeInformative: Submitted.
esriJobMessageTypeInformative: Executing...
...
2
votes
2answers
401 views
Edits in SDE not showing up in AGS GeoData Service
I've got an ArcGIS Server GeoData service against an SDE MSSql database. When changes are made to the source data, the edits don't appear to show up in the GeoData service.
If I restart the ...
6
votes
2answers
813 views
How to convert GML to features in ArcObjects?
How to convert GML to features and features to GML i ArcObjects?
We are building an application where we want to communicate with a service with GML but natively in our stand-alone application we ...
3
votes
0answers
265 views
How do I Convert from LayerDescription.SelectionFeatures to GraphicsLayer?
How do I convert (in a clear and concise way) from
ESRI.ArcGIS.ADF.ArcGISServer.LayerDescription.SelectionFeatures
to
ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer
I want the selected ...
2
votes
1answer
648 views
ArcObjects Arcgisserver -How Do I set toolbar server control currenttool to none
I am only using the map control and two toolbars on a custom webadf application.
One toolbar contains the standard map navigation controls.
The other toolbar is only one toolitem which references a ...
0
votes
2answers
632 views
Unable to cast COM object (IMapServer --> IMapServerObjects)
I have just deployed an AGS-based application to our web server. This app worked great in development, but after deployment to the server I get the following errror:
Unable to cast COM object of type ...

