Hot answers tagged

13

you can use arcpy for publishing your mxd files. for listing your mxd files use os.walk : import os import arcpy path= r"c:\path" for (path, dirs, files) in os.walk(path): for fl in files: if fl.lower().endswith(".mxd"): mxd = arcpy.mapping.MapDocument(os.path.join(path, fl)) print mxd.filePath and then go this way: 1. ...


8

I use the AGSSOM utility http://arcscripts.esri.com/details.asp?dbid=16293. It is a command linetool that works with Arc10 on both Win7 and WInServer2008. You can start, stop, and view running services from the command line. You can also write a batch script to schedule. Very nice little utlity.


6

I believe the Esri app for iOS can consume regular mapping services. The caveat is that your map services must be shared on ArcGIS.com. You would then search for your map services via Esri's app. There's a .pdf on arcgis.com with more info: using map services with iOS Edit: Good discussion in Esri's iOS forum.


6

The URL for your services is incorrect. You're using the SOAP endpoint, not the REST endpoint. Try: <layer label="Williston Pipelines" type="dynamic" visible="true" url="http://d1mnr3m1/ArcGIS/rest/services/Postgres_Map/MapServer"/> You may also require a cross domain policy if your application and your service are hosted on different machines....


6

Generally, you "Save a service definition file' when you can't publish directly to Arcgis Server, or when you want to publish the service at a later time. The .sd file is a standalone file that stores the information about the service that you enter in the dialog when you publish a service. When publishing, .sd files are staged in "C:\Users\\AppData\Local\...


6

You will set up one of three types of security. . After enabling security you need to first create the users and groups (either in the ags store,a management db, or a domain/ldap. Then go to each service and enable for that group. Note that you can only apply roles to services. You need a separate role for each service. Then put a different user in each ...


5

Pro tip: use Fiddler to watch the traffic between your browser (viewer) and the server. Doing so produces this URL for your search query: http://gis.co.frederick.va.us/ArcGIS/rest/services/Planning/Planning_PAT/MapServer/find?f=json&searchText=54%20%20%20%20A%20%20%20%2025&contains=true&returnGeometry=true&layers=5&searchFields=PIN&...


5

there is a topic here which is the same as your question but i dont know whether works or not for you.. you can read this articles for getting some information.... 1.Setting Up a WMS Server Using MapServer here... 2.Open Layer with MapSever here 3.Mapserver WMS Settings here 4.Overlay WMS on Google in OpenLayers here i hope it helps you...


4

This sounds like a permissions issue, I've dealt with something similar before. I had a view in SQL Server that I needed to join onto a FC in my MXD for a map service, here's what I had to do: give my SOC account (which in my case is a domain acct) db read and db execute access to my database create a ole db connection in ArcCatalog with OS login copy that ...


4

Our strategy is to cache everything that is not changing regularly. We then use software called FME to run transformations on our data before we publish that data to a file geodatabase on our servers. We merge any joins that we want to query/display, strip all the columns that we are not querying/displaying, and generalize all the geometries. We push this ...


4

The /ArcGIS/Services application is actually a SOAP endpoint that won't give you anything when you visit it in a URL. That's why you get the "No Content" error message - it's telling you that you didn't give it any instructions. To actually see your map you will need to also deploy a viewer to your web server that can put that map into a browser. The ...


4

Is there a way to serve features of mixed transparency levels from an arcgis server service? Yes. Please read this whitepaper from Esri: Work with transparencies in an ArcGIS Server Web mapping application From your description, I believe you should: Analyze the map using Map Service Publishing tools. Convert layer transparency to color transparency. ...


4

if you want do it in c# you can see in my blog: http://nicogis.blogspot.it/2012/10/ags-101-restful-administrative-api.html for conversion mxd -> msd you can use python called from c#


4

Aragon has a great answer, but unfortunately it doesn't work for ArcGIS / ArcServer 10.1. The new method I just tried is based off of the ArcGIS 10.1 help. You can find the link to the help file here: http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000006q000000 Here is how I used the code to publish MXDs based on a specified folder: #...


4

There is a C++ SDK of FileGDB API to handle FileGDB, and this may help you. You can build a web service wrapping local operations of FileGDB API, make it RESTful to be consumed by Javascript API.


4

I solved this problem by publishing a gp service with "Add Field" toolbox.To invoked this gp service via javascript api.As shown :


4

Without Looking at your code, I can't say why you can't access your ArcGIS Server 10 layer. But I can access ArcGIS map service layers in my OpenLayers App in the following ways: When the map service is a tiled Mapservice in WebMercator, I can use the following code: layer = new OpenLayers.Layer.XYZ( "ESRI", "http://server....


4

Theres a whole bunch of code and tools to administer ArcGIS Server 10.1+, look here http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340 They connect to the REST end point of the Server/Services. For the publishing of map services through Python (and arcpy), look here: http://resources.arcgis.com/en/help/main/10.1/index.html#//...


4

Yes, if you have a service definition (.sd) file sitting around. The createservice command line utility which ships with ArcGIS for Server does not use arcpy. If you read the source, you will see it does a few things: Log in to the server and acquire a token Find the Publish Service Definition tool on the server Upload the service draft to the uploads ...


4

Map Services are supported in the Web App Builder. Here is what works for me: Create a 'Web Map' in ArcGIS Online Click 'Add Layer from Web', and paste in the URL to the Map Service. (the URL should end in .../MapServer') When you have finished configuring your map, click 'Save', and enter the proper metadata. Next, click 'Share' and share it with your ...


4

You cannot publish a map service to ArcGIS Server from ArcGIS Pro. There are no GP tools for that available in Pro and no GUI options for that either. No arcpy functions that could do that either. As you already found out, your options are ArcGIS Online and Portal. A quote from Esri blog post: (Feb 2015) The first release of ArcGIS Pro does not allow ...


3

Mapped network drive are profile specific and only exist with an interactive logon. Since it is the ArcGISSOC account accessing the data, a mapped network drive cannot exist since that account never logs in interactively and the mapped network drives for the user account does not carry over to that SOC account. Although I haven't tested this, you may be ...


3

OK, there seems to be a few issues here. We are using a direct connect, and this needs Oracle Client installed on the ArcGIS Server. The SOC and SOM accounts were a red herring. If we're going straight through the SDE connection port, then you don't need the client, but as we're going through to the db, i.e. using 2 tier architecture, rather than 3 tier,...


3

The quotation from the Esri documentation (as mentioned from John) is correct. The resolution to avoid the overhead in ArcMap havign to do this resampling, is to go to your scale settings in ArcMap. Load your cache tiling levels from the service thats in your TOC. Click the tickbox to 'only display these scales when zooming'


3

Once you publish a service in ArcGIS Server and in order to display that service over the web you will have to create a web application. In ArcGIS Server you can create the web applications from ArcGIS Server manager where in you can consume the service which you have published using the map document. For more detailed steps on how to create a new web ...


3

The behavior of groups using the API is different than in ArcMAP TOC. This is how I understand your layerIDs: a. LayerID0 LayerID1 LayerID2 b. LayerID1 c. LayerID2 d. LayerID3 e. LayerID4 If you turn on group layer (a), then all sublayers will be displayed. If you turn off group layer (a) but turn on layer (b) or (c) then only layers will display. ...


3

[Originally posted as Update 3] The programmer at ESRI found the fix for the bug, and the fix is now in the pending 10.2 release (whenever that might be). So, ESRI optimized map services will be able to handle nested groups in annotation ... as of 10.2. I hate to answer my own question, but I hope at least that the information will be useful to others.


3

Most companies actually seem to use dual range address calculators (At least in my experience the results are consistent with that behavior). Basically each uninterrupted strip of road has a range, or multiple ranges of numbers, on either side that specify the maximum street number and minimum street number. One side has odd and the other usually has even. ...


3

Your problem may be using the Maplex label engine. I have found that labels set using Maplex do not come through on a service or are highly unpredictable at best. Try setting the labels the regular, non Maplex way. If you are already using regular labels, try adjusting the scale for label display.


3

Would making them an annotation layer solve the issue? Seems like it would be worth a try, although I'm not sure how it robust it would be when you're zooming in and out of the service layer.



Only top voted, non community-wiki answers of a minimum length are eligible