POST
|
Is it possible to use Python to do a backup of SDE databases stored in Sqlserver Express? I have been using a custom executable that uses Arcobjects IDataServerManagerAdmin.BackupGeodatabase() but, I would prefer to use Python. The executable makes our IT staff a bit nervous. thanks
... View more
09-09-2015
11:02 AM
|
0
|
2
|
2472
|
POST
|
In the 'Format InfoWindow Content' examples there is a line that substitutes attribute values using a function. In line 3 it the compare function is called on the POP2007 attribute - ${POP2007:compare}. The compare function takes 3 arguments: value, key, and data. How are these argument passed to the function? Here is the code: var infoTemplate = new InfoTemplate(); infoTemplate.setTitle("Population in ${NAME}"); infoTemplate.setContent("<b>2007 :D: </b>${POP2007:compare}<br/>" + "<b>2007 density: </b>${POP07_SQMI:compare}<br/><br/>" + "<b>2000: </b>${POP2000:NumberFormat}<br/>" + "<b>2000 density: </b>${POP00_SQMI:NumberFormat}"); compare = function (value, key, data) { var result = "", diff, pctChange; switch (key) { case "POP2007": result = value > data.POP2000 ? "images/up.png" : "images/down.png"; diff = data.POP2007 - data.POP2000; pctChange = (diff * 100) / data.POP2000; break; case "POP07_SQMI": result = value > data.POP00_SQMI ? "images/up.png" : "images/down.png"; diff = data.POP07_SQMI - data.POP00_SQMI; pctChange = (diff * 100) / data.POP00_SQMI; break; } return number.format(value) + " <img src='" + result + "'>" + " <span style='color: " + (pctChange < 0 ? "red" : "green") + ";'>" + number.format(pctChange, { places: 3 }) + "%</span>"; }; thanks
... View more
07-21-2015
03:39 PM
|
0
|
0
|
2658
|
POST
|
Our local county GIS publishes a service that allows one to 'Generate KML'. Unfortunately, the KML To Layer tool gives an error when I try to process the KML file generated from the county service - ERROR 000401: No features were found for processing. The kml looks good in Google Earth - it contains line features and attributes. I'm able to convert other kml files ok - just not this one. Does anyone have an idea how I might convert this file? Here is the service: http://gismaps.snoco.org/snocogis/rest/services/hydrography/Levees/MapServer I've also attached the kml as a zipped kmz. thanks (Windows 7, ArcGIS 10.2)
... View more
04-29-2014
07:50 AM
|
0
|
0
|
2687
|
POST
|
I can't seem to get the Service Area model and the Closest Facility model to agree with each other. I ran the Service Area model for 5-minute drive times from fire station. Presumably all the street segments generated are within a 5-minute drive time from their respective stations. When I run the Closest Facility model on Incidents that are near the edge of the drive time areas, the resulting routes report 6-7 minutes or more in the Total_Time field. Not only that but they often do not find the correct station. I'm using the same network model for both and have turned off all the restrictions in the Closest Facility model except for one-way streets, which is the only restriction in the Service Area model. Any other settings I might be missing? thanks
... View more
03-13-2014
02:58 PM
|
0
|
1
|
2244
|
POST
|
Hi all What am I missing to get these functions to work - ArcGISDynamicMapServiceLayer.visible, ArcGISDynamicMapServiceLayer.visibleAtMapScale? I'm trying to prevent a doIdentify function when the identify layer is not visible do to scale dependency. As implemented below, parcelLayer.visibleAtMapScale returns true at all scales even if the layer is not actually visible at a particular scale. function doIdentify(evt) { if (parcelLayer.visibleAtMapScale) { map.graphics.clear(); identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function(idResults) { addToMap(idResults, evt); }); } } thanks!
... View more
11-08-2013
08:23 AM
|
0
|
0
|
456
|
POST
|
Is there a trick to getting popups to show for a layer with a joined table? The joined table also has a global id field. Silverlight Api 3.1, IE 8. Thanks
... View more
02-26-2013
01:58 PM
|
0
|
1
|
2334
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|