Problem accessing URL based text file for large set of geometries

816
1
03-14-2013 09:15 AM
BobCarberry
New Contributor
I am trying to use the Label Points operation to calculate a center point for passed in geometries.  All worked well until I tested more complex geometries.  The API help mentioned a solution by writing out to a text file on the server that stored the the JSON geometry string.  Instead of passing in the JSON string directly when calling the operation, you could reference this text file instead.  I had no problem writing the text file, however when I try to run the operation, I get this error:   Unable to get content from URL: http://<serverpath>/<filename>.  I tried browsing to the text file and was able to read it no problem.  I there anything special I need to do to this text file so that it can be used by the operation?  The syntax I used to reference the text file is from the help: polygons={ "url" : "<URL to file>" }.  I' running ArcGIS Server 10.0.0.0.  Any ideas?
0 Kudos
1 Reply
BobCarberry
New Contributor
I solved my issue.... very simple (I feel dumb).  During my testing, I was writing the text file to the development server while using the geometry services that were on the production server.  I figured out that the production server is not set up to communicate with the development server.  I Placed the text file on the production server and it worked.  I was even able to input a geometry JSON string made up of over 57,000 characters and it worked with no problem.
0 Kudos