|
POST
|
My site breaks when i upgrade api versions from 2.8 to 3.1 I see many posts in here that error with esri not defined. i don't think that is my issue and i have taken great pains to not reference esri.* outside of dojo.ready. My issue is that the api does not appear to load properly, i never even hit dojo.ready. When i have the 2.8 api I see files like this being loaded: http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dojox/gfx/svg.xd.js but when i have the 3.1 api these calls error out and i see it is trying to load that resource from here instead: http://myserver.com/dojox/gfx/svg.js Why would it be looking local to find this? it is doing likewise for jsapi_en-us.js and Dialog.jsa nd number.js I get 6 or 7 errors on load. Anybody seen this before? Could it have anything to do with my module path:
<script type="text/javascript">djConfig = { parseOnLoad: true,usePlainJson: true, baseUrl: "", modulePaths: { "tg": "JGF/js/jg"}}</script>
<script type="text/javascript" src="https://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.1"></script>
... View more
08-15-2012
01:16 PM
|
0
|
3
|
937
|
|
POST
|
So in order to connect to spatial data inside of oracle i need to install TWO oracle client pieces of software? These are over 1GB each! And why assume that everyone works in the cloud and wants to copy data just to publish a service. Copying data was bad, is bad, and will always be bad.
... View more
08-15-2012
07:34 AM
|
0
|
0
|
3144
|
|
POST
|
I shifted some data around and setup the same service in 10.1 and the query now is working. So it must have been the fact that my original service was 9.31 thank you for the help
... View more
08-03-2012
11:08 AM
|
0
|
0
|
893
|
|
POST
|
Humm... thank you for the suggestion, but it still not working for me as expected. Even when my where clause is '0 = 0' (which returns all records in the REST layer call) I get no features returned. The 0 in the id refers to the index of the layer in the service correct? Not an index of visible layers in the request? I am attempting this against a 9.31 mapservice. Is it possible it is not supported because of that? I took your request, replaced the operational layer url, the id, and the definitionExpression with my info but that results in no features being displayed. I know the url, id and expression are valid because i am testing them with the REST api page. And i know the features are within my extent because without the definition query i see them all. I'm stuck on what else to try.
... View more
08-03-2012
10:04 AM
|
0
|
0
|
893
|
|
POST
|
I'm trying to export a map and have a definition query on one of the visible layers. As my reference i'm using these two help files from esri: http://resources.arcgis.com/en/help/rest/apiref/exportwebmap_spec.html http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000 unfortunately, they differ. And i'm not sure why and which is correct. I see the term "operational layers" used in one example but in another they just refer to "layer". I'm fairly certain that my request will not work because even though I have defined a definition expression I haven't really said which layer it applies to. Here is my request: {
"mapOptions": {
"extent": {
"xmin": -10277673.334899997,
"ymin": 4527010.491500001,
"xmax": -10276963.904200003,
"ymax": 4527654.234599998,
"spatialReference": {
"wkid": 102100
}
},
"scale": 13619.999999999998,
"rotation": 0,
"spatialReference": {
"wkid": 102100
}
},
"operationalLayers": [
{
"id": null,
"url": "http://blah.com/ArcGIS/rest/services/MDC/MDC_Edit/MapServer",
"title": "FGC_Edit",
"opacity": 0.9,
"layerDefinition": {
"definitionExpression": "SHPID='1496E00C03C6494D8A6EDE861FDBA387'"
},
"visibleLayers": [
5
]
}
],
"baseMap": {
"title": "My Base Map",
"baseMapLayers": [
{
"url": "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"
}
]
},
"exportOptions": {
"dpi": 96,
"outputSize": [
500,
500
]
},
"layoutOptions": {
"titleText": ""
}
}
... View more
08-02-2012
12:59 PM
|
0
|
3
|
1621
|
|
POST
|
how do you increase the wait timeout setting for a gp tool?
... View more
07-17-2012
12:58 PM
|
0
|
0
|
357
|
|
POST
|
I have a simple python script that accepts a feature class name and a list of object ids. the script makes an sde connection with a hard-coded sde file and then exports the chosen features to a shapefile and stamps that to disk. The tool runs fine in my python ide. The tool runs fine in Arcmap. When i click on the results and select Share as GP service i select new service and am presented with the Service Editor dialog. When i try to publish (or analyze) i get errors that my tool "contains broken project data source" I'm actually getting 4 things in the Prepare are. one is High severity error with code 68 broken project data. The other 3 are high warnings with code 24032 datasource is not registered with server. Why are there 3 warnings and an error? I have registered this data source with ags using ArcCatalog (both normally and as an ags managed data source) When i click on the warnings I get the Data Stores dialog and i see my registered data store. I then click Validate All and get a check. I can do this for all 3 warnings and they are then listed as Re-Analyze. But when i analyze again they return! When i click on the sole error message my Task is removed from the Service Editor and I am brought to the General tab. Not sure what to do there. Am I missing something? How can I get this gp tool to publish?
... View more
07-09-2012
09:24 AM
|
0
|
6
|
6744
|
|
POST
|
Thank you for the quick reply Kevin. It looks like this may not be so bad after all. Just noticed your ArcGIS Server Administration Toolkit, that should help as well. We do maintain a significant number of geoprocessing tasks and i think running them all in arcmap is going to be the toughest part. but it seems like esri is moving in the right direction in terms of allowing python programmers greater control of the processes involved in make gp services. And i also like that fact that the more 'wizard'-like tools (like publishing from arcmap) seem to use scripting and services at their heart. thanks again for the suggestions.
... View more
07-05-2012
09:53 AM
|
0
|
0
|
3296
|
|
POST
|
Thank you for the prompt answer Kevin. I have to say that is a little disappointing. As a developer I expect 'best practices' to be a document that i can digest and choose to follow - not a directive from the software telling me what i have to do. The architecture you describe creates a deployment nightmare for me. Now i am required to completely replicate the target environment in order to publish what you consider to be a 'good' tool. There are perfectly valid scenarios were it makes more sense to publish a service and modify that on the target environment. It appears that option has been taken away from us. For one project alone I have 30 custom python Script Tools. You are telling me that for a single deploy I need to run each of those in ArcMap and then publish the results or add them as tasks to an already existing service and then overwrite that. And if i have a fix for just one of those scripts I am now expected to edit that locally, retest all 30 in ArcMap and then overwrite the published service? And if that is a remote environment without ArcMap I have several more steps to create the sd file move it to the remote environment and then republish there? So a single bug fix that used to require only an edit to a py file now requires much, much more. Additionally, this republish is going to kick out every user who happens to be using any one of those 30 tasks at the time? I think perhaps that I am just confused. I'm sure there is a simple explanation and I'm just overlooking it. Could you correct me and point out the simple path to custom tool deployment that doesn't involve ArcMap and Results?
... View more
07-03-2012
10:21 AM
|
1
|
0
|
3296
|
|
POST
|
I see how i can publish a gp tool by creating the tool, running it in arcmap, and then selecting the results and clicking Share As... That creates an sd file that i can then use in ags manager to publish my tool. The problem is that i have a toolbox with 30 tools in it. I don't want to run all 30 and go through this process. Can't i just publish the entire toolbox somehow? Also, why the change in publishing gp services? I liked being able to go into catalog, connect to my ags, then right click and add new service based on a python scripted tool. that seemed like a great workflow because i could then edit the python script in the background without having to reup my service (unless i changed params). It appears that under the new workflow I cannot modify my python script without having to open arcmap and rerun everything. This will add much time to my dev process.
... View more
07-03-2012
06:37 AM
|
0
|
17
|
10639
|
|
POST
|
Thank you for the answer and the links. I'm getting it now. That part was a little confusing but now it seems to make more sense to me.
... View more
06-28-2012
10:19 AM
|
0
|
0
|
986
|
|
POST
|
I'm confused about all of the data copying going on when i publish a service in 10.1 I don't want my data copied anywhere. I have sde on my ags machine so there should be no duplication of data. I can create just an sd file in arcmap and then i can use that sd file to create a published service and i think the data is not copied. but what if i want to change the mxd slightly? how would i go about updating the service with the new sd file? Maybe I'm missing something but copying data is not a good thing in my book. Also when i publish mxds as services I see duplicate mxd/msd/sd files buried in esri directories. I want there to be one copy of my mxd, one copy of my msd, and one copy of the sd. and i want all of those files to be in MY directories, where i put them.
... View more
06-28-2012
07:50 AM
|
0
|
4
|
3701
|
|
POST
|
Hummm.. Somewhat of a limitation. What if my app allows users to dynamically pull in map services that are hosted by others and then i want to have those in a print product? Seems like a url should be all that is required to generate a layer whether it is in the browser or server side in python code. As long as my server can resolve the url that the browser resolves then i should be able to expose these layers in print without having to have them in my mxd/msd.
... View more
03-05-2012
05:55 AM
|
0
|
0
|
445
|
|
POST
|
I am trying to use python and arcpy.mapping to export a map to pdf. I want the map to have some layers from my mxd and i also want to pass in a url to an external layer (like, say, esri streets) from a different server. I can turn layers on and off in my own mxd and zoom to an aoi and all that jazz and then export to pdf and it works. But how can i integrate a layer from an external source like another arcgis server? I see the ListMapService method but i have never been successful in getting it to run. I always get a connection error. Why are there 2 required parameters to this method - url and server? Seems to me that if you have the url to a rest services directory then you have everything you need to list out the services available - that's all my browser needs. I also see that i can add any .lyr file to my mxd before i export it. But I want to add layers that i don't own and that are not on my server. Can this be done at 10.0?
... View more
03-02-2012
04:39 AM
|
0
|
3
|
2530
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2012 10:21 AM | |
| 4 | 01-02-2018 12:11 PM | |
| 1 | 01-04-2011 07:47 AM | |
| 2 | 09-05-2012 05:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|