|
POST
|
Tracy, It seems like the GP Tool has a limit on how long the text can be in the text box. I'd suggest you to execute the tool from the Python Window in ArcMap like this: yes, there are 3 double-quotes on both sides of the string below >> j = """<this is where your webmap_as_json would go>""" if the webmap_as_json string is way too long, you can have it saved as a text file and use the following python functions (which I'm pretty sure you know of) to read it in the memory. >> j = open(r'<file_name_including_full_path').read() now execute the exportwebmap tool and output as a png8 >> arcpy.ExportWebMap_server(j, r"c:\temp\temp.png", "PNG8") another option would be to use ConvertWebMapToMapDocument() function to save that out as a mxd and open that. >> o = arcpy.mapping.ConvertWebMapToMapDocument(j) >> o.mapDocument.saveACopy(r"c:\temp\test.mxd") now, open that in ArcMap and see whether all layers draw.
... View more
03-29-2013
09:39 AM
|
0
|
0
|
2741
|
|
POST
|
just checking - did you try what is mentioned in this help topic? http://resources.arcgis.com/en/help/main/10.1/#/Printing_maps_that_contain_secured_services/0154000005q3000000/
... View more
03-28-2013
04:08 PM
|
0
|
0
|
950
|
|
POST
|
Scott, Unfortunately this is not currently supported. If you are not using a FeatureLayer on your web client, only option you have is to query to get only geometries and post process to compute the extent. I understand this requires an additional call and post processing.... Thanks. Tanu
... View more
11-07-2012
08:42 AM
|
0
|
0
|
853
|
|
POST
|
Jason, can you please send me the schema of both tables - more specifically the fields you are using to join and the field (including field type) that you need to determine which record is the current for each well? Thanks. Tanu
... View more
11-07-2012
08:32 AM
|
0
|
0
|
1501
|
|
POST
|
At 10.1, map service does not support any embedded service layer.
... View more
11-07-2012
08:29 AM
|
0
|
0
|
1036
|
|
POST
|
So, Server 10.1 doesn't like vbscript "if" statements in label expressions? I have just tried it by copy/pasting your vbscript code and it worked fine for me on the server, the layer draws fine with all features labeled with "NO". I have also tried with isnull() as a condition to an if..else statement that worked fine as well.... here is the script: Function FindLabel ([DateST]) FindLabel = "y" If (isnull([DateST])) Then FindLabel = "n" End If End Function Please open an incident with Esri Tech Support. In the mean time, can you try creating two different "label classes" where each label-class will have separate SQL queries - one for all features with NULL value, another for all features with non-null value -- no if..else... business in vbscript? Thanks. Tanu
... View more
11-01-2012
05:07 PM
|
0
|
0
|
2631
|
|
POST
|
Albert, It is recommended that an author makes a conscious decision about which individual folder, GeoDatabase etc. get registered as a dynamic workspace to a map service, rather than registering a parent folder and exposing all of its child folders wide open to the end clients by accident. OK. Any idea on when this might be implemented on the earliest? We will consider what you suggested, but we can't promise anything right now about the time frame or whether it will happen. Please design and implement your workflow by taking this restriction into account. Do you know of a way to generate a dynamic workspace for a map service on the fly? you can always modify a service's properties to add new dynamic workspaces using ArcGIS Desktop or Manager, which requires a restart though, as you may already know. Thanks. We appreciate your suggestions very much. Tanu
... View more
11-01-2012
10:19 AM
|
0
|
0
|
761
|
|
POST
|
Jim, I've just tried it and I didn't see the issue that you have encountered. Map service simply doesn't label those features with <null> value in date field. The vbscript expression I used for labeling is just the field name (please see all attached screen shots). I have also tried with both FileGDB and SDE (running on SQL Server) and it is the same result - feature draws fine, labeling engine simply don't label features with <null> value. Here are my recommendations: 1. please contact Tech Support to have them take a look at this. 2. In the meantime, try this: in ArcMap, open the layer properties >> switch to "Label" tab >> choose "Define classes for features and label each class differently" from the "Method" dropdown box >> click on "SQL Query..." button >> set a query to exclude features with <null> value from being labelled >> click OK Thanks. Tanu
... View more
11-01-2012
09:47 AM
|
0
|
0
|
2631
|
|
POST
|
1. Simple answer is yes, you are correct. Longer version: at 10.1, you open an mxd in ArcMap and publish that to ArcGIS Server without being worried about msd/mxd as you'd do in 9.3.1 or 10.0. Though behind the scene, the publishing process creates an msd, uploads both mxd & msd (optionally data, when the workspace is not registered to the Data Store) on the server, and creates a map service using the uploaded msd. Therefore, there is no tie between the map service and the original mxd that you opened in ArcMap in the first place. Having said that it is *very important* to remember that you still need to keep the original mxd, should you need to update the map service at 10.1 with the changes you made in the mxd. 2. (a) When 'edits are made to the data', in most of the cases, you do not need to republish/overwrite/restart the dynamic map service, map service picks up the update at the next export/query request. Exception to this rule is that when your data get copied to the server (as specified earlier, it happens when the folder or GeoDB is not registered to the ArcGIS Server Data Store. A typical case would to publish a mapservice on the cloud which does not have access to your local data), yes, you need to republish which will copy the data to the server. (b) You need to republish/overwrite the map service, when there is any modification made to the content of the map such as, what you mentioned, symbology changed, add/remove layer, scale-visibility changed etc.
... View more
10-30-2012
10:48 AM
|
3
|
4
|
2756
|
|
POST
|
TV, Derek already answered that the 'publisher folder host name' is your machine name or IP address (without fully qualifying it). There are few points I'd like to bring up in case some one (using ArcGIS Server for the first time) reads this thread: I'd recommend you not to use folder inside your user-profile, instead use something like C:\data\ArcServerSandbox. The reason behind this is that on your production machine, ArcGIS Server account *should* not have access to any folder in your profile (in fact, it should have limited access to your local/shared folders/databases). Please make sure ArcGIS Server Account has at least "read-only" access to the folder that contains your data, in your case, which may be C:\data\ArcServerSandbox Thanks. -Tanu
... View more
10-30-2012
09:45 AM
|
0
|
0
|
633
|
|
POST
|
jjuell, Just wondering, are you not using any of Web API for ArcGIS Server? If you are using one of those APIs, then it should be very simple to write the code -- the API takes care of the complexity. Please let me know if I'm missing anything. Thanks. Tanu
... View more
10-30-2012
09:21 AM
|
0
|
0
|
751
|
|
POST
|
jjuell, That is the nature of dynamicLayers - map service only draws the layers that are defined in dynamicLayers parameter. Please note: you must include all layers in dynamicLayers parameter that you want to *show* on the map do not include 'invisible' layers the order of layers in the dynamicLayers are important, as that is the order they will be drawn by the map service when a dynamicLayer refers to an existing layer with scale-visibility range, map service honors that scale-visibility Since you are not modifying renderer for other layers, the definition of each layer by pointing its source to an existing layer should be pretty compact comparing to the defining a layer with renderer and/or labels... here is an example: [
{
"id": 101,
"source": {
"type": "mapLayer",
"mapLayerId": 1
},
"drawingInfo": { "renderer": { ... }, ... }
},
{
"id": 102,
"source": {
"type": "mapLayer",
"mapLayerId": 2
}
},
{
"id": 103,
"source": {
"type": "mapLayer",
"mapLayerId": 3
}
},
....
]
... View more
10-30-2012
07:58 AM
|
0
|
0
|
751
|
|
POST
|
Hi, The query is a date (to show only records of 2012) and text query it's: Date_Tested >= '2012-01-01 00:00:00' AND Colour = 'Blue' FYI: the date query syntax is dependent on the underlying data source, for example SQL Server requires in one way while FileGBD does it another way.
... View more
10-29-2012
09:30 AM
|
0
|
0
|
987
|
|
POST
|
make sure "outField" is set to "*" or a list of comma separated field names
... View more
10-10-2012
09:03 AM
|
0
|
0
|
850
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | 10-23-2025 03:46 PM | |
| 1 | 08-21-2025 11:11 AM | |
| 1 | 07-30-2025 01:43 PM | |
| 1 | 07-02-2025 11:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|