POST
|
Yes, I totally agree. I have about 10 web maps that show gas pressures for different areas of the country. Another group is wanting to ingest into a 3rd party mapping interface that can only utilize one national map. The map will filter the data based on location, but the symbol classes that make sense in one area will not make sense in another. I am just exploring my options and was wondering if anyone had done this! Thank you
... View more
08-24-2016
08:13 AM
|
0
|
0
|
307
|
POST
|
Within ArcGIS Online is it possible to change the rendering values based on map extent? For example, if the map extent covers California, the values are 0-20, 21-40, 41-60, 61-80, 81-100 and then the map user pans to Texas and the values change from 0-60, 61-70, 71-80, 81-90, 91-100. The color scheme and number of classes stay the same, but the class ranges change. I didn't see anything out of the box, but maybe this exists in the API functionality. Any suggestions or workarounds would be appreciated. Thank you!
... View more
08-22-2016
01:37 PM
|
0
|
2
|
1215
|
POST
|
Thanks Blake. I am really trying to automate this through scripting. We are converting over 100 FGDB feature classes to SDE, which will affect well over 100 ArcMap projects. If I can't figure this out, then yes, that will probably be how we update our mxds.
... View more
04-29-2015
05:48 AM
|
0
|
0
|
286
|
POST
|
Shannon, Sorry for the delay, I have been out of pocket for a while. Just wanted to replay let you know that I did not get this to work. Thanks
... View more
04-28-2015
02:09 PM
|
0
|
0
|
392
|
POST
|
I am trying to change the data source from an FGDB to an SDE feature class. I can get this to work for an SDE feature class that is not within a feature dataset. For the life of me, I cannot get this to work for a feature class within a feature dataset. The script fails on line 15. The error message: ValueError: Layer: Unexpected error I believe I am not correctly specifying the workspath_path or dataset_name correctly. The destination dataSource = Database Connections\sdetest.sde\PIPELINE.BAKKEN\PIPELINE.Pipe SDE Connection: Database Connections\sdetest.sde Dataset: PIPELINE.BAKKEN Feature Class: PIPELINE.Pipe Any help would be appreciated! import arcpy
import os
mxd = arcpy.mapping.MapDocument('CURRENT')
ListLayers = arcpy.mapping.ListLayers(mxd)
workspace_path = "Database Connections\sdetest.sde"
dataset_name = "PIPELINE.BAKKEN\PIPELINE.Pipe"
# dataset_name = "BAKKEN\PIPELINE.Pipe"
# dataset_name = "PIPELINE.BAKKEN.PIPELINE.Pipe"
# Source: Database Connections\sdetest.sde\PIPELINE.BAKKEN\PIPELINE.Pipe
for Layer in ListLayers:
if Layer.supports("DATASOURCE"):
desc = arcpy.Describe(Layer)
if desc.catalogPath == "\\\\ftwnas01a\\ProjectsNew\\NatGasOps\\NGOData\\Assets\\Bakken.gdb\\Bakken\\Pipe":
Layer.replaceDataSource(workspace_path, "SDE_WORKSPACE", dataset_name)
... View more
04-28-2015
01:10 PM
|
0
|
3
|
4383
|
POST
|
Robert, That code code worked like a charm. Thank you so very much! Jon Barlett GIS Analyst Dalals PD
... View more
09-25-2013
03:50 AM
|
0
|
0
|
329
|
POST
|
I am trying to create an application where a user can define the layer definition for a map service. I can it get it work if I add the layer in the action script, but I would really like to apply the layer definition to an existing map layer. Here is the code that works (adds a layer and applies the query): private function PerformQuery():void { var dLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://apdpdgismap01:6080/arcgis/rest/services/GISDPD01/CrimePart1_28Days/MapServer"); map.addLayer(dLayer); dLayer.visible = true; //var dLayer:ArcGISDynamicMapServiceLayer = map.getLayer("CrimePart1_28Days") as ArcGISDynamicMapServiceLayer; dLayer.name = "CrimePart1_28Days" var layerDefs:Array = new Array(); var layerStr:String = new String(); layerStr = "DIVISION = '" + Offense.text + "'" layerDefs[0] = layerStr; dLayer.layerDefinitions = layerDefs; dLayer.refresh(); } ]]> </fx:Script> <viewer:WidgetTemplate id="DPD_Crime_Data" width="300" height="300"> <viewer:layout> <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/> </viewer:layout> <s:Label id="lbl" width="100%" fontSize="18" fontStyle="italic" fontWeight="bold"/> <s:TextInput id="Offense" width="100%" /> <s:Button label="Query Crime" click="PerformQuery();"/> </viewer:WidgetTemplate> </viewer:BaseWidget> I can't get the layer definition to work using an existing layer. Here is the code that doesn't work: private function PerformQuery():void { //var dLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://apdpdgismap01:6080/arcgis/rest/services/GISDPD01/CrimePart1_28Days/MapServer"); //map.addLayer(dLayer); //dLayer.visible = true; var dLayer:ArcGISDynamicMapServiceLayer = map.getLayer("CrimePart1_28Days") as ArcGISDynamicMapServiceLayer; dLayer.name = "CrimePart1_28Days" var layerDefs:Array = new Array(); var layerStr:String = new String(); layerStr = "DIVISION = '" + Offense.text + "'" layerDefs[0] = layerStr; dLayer.layerDefinitions = layerDefs; dLayer.refresh(); } ]]> </fx:Script> <viewer:WidgetTemplate id="DPD_Crime_Data" width="300" height="300"> <viewer:layout> <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/> </viewer:layout> <s:Label id="lbl" width="100%" fontSize="18" fontStyle="italic" fontWeight="bold"/> <s:TextInput id="Offense" width="100%" /> <s:Button label="Query Crime" click="PerformQuery();"/> </viewer:WidgetTemplate> </viewer:BaseWidget> This is how the layer is added in the config file: <layer label="CrimePart1_28Days" id="CrimePart1_28Days" type="feature" visible="true" alpha="1.0" url="http://apdpdgismap01:6080/arcgis/rest/services/GISDPD01/CrimePart1_28Days/MapServer/0"/> </operationallayers> The layer does appear on the map, but nothing happens when the layer definition is applied. I am a FLEX newbie, so any insight would be appreciated. Jon Barlett GIS Analyst Dallas PD
... View more
09-23-2013
09:54 AM
|
0
|
7
|
2248
|
POST
|
Thanks Wayne, Yes, the code included works for a feature layer. I am trying to figure out how to construct code to perform a definition query on a service layer. Maybe this is not possible? As a backup plan, I am trying to create a query from the service layer and add it to the map as a featurelayer. The following code creates the feature layer and adds it to AE, but the source is broken. I just want the ability ot query a "service layer" and view it in AE with its native symbology, which seems to be limited to a featurelayer. Dim player As ServiceChildLayer player = theMap.FindByName("Reporting_Areas") Dim WhereClause As String whereClause = "RA = '1002'" Dim featureLayer As FeatureLayer = player.Query(WhereClause) theMap.ChildItems.Add(featureLayer) Thanks Jon
... View more
08-01-2013
08:21 AM
|
0
|
2
|
392
|
POST
|
According to build 1500, you can create a defnition query for a service layer: http://blogs.esri.com/esri/arcgis/2010/08/24/what-s-new-in-arcgis-explorer-build-1500/ "�?�Definition query on feature and service layers" I have figure out how to apply a definition query to a feature layer: Dim theMap As Map = Application.ActiveMapDisplay.Map Dim fLayer As FeatureLayer = TryCast(theMap.FindByName("CrimePart1_28Days"), FeatureLayer) fLayer.QueryDefinition = "DIVISION = 'NORTH CENTRAL'" I just haven't figured out how to apply a definition query to a service child service layer. Very new to ArcExplorer SDK- any help would be appreciated Jon Barlett GIS Analyst Dallas Police
... View more
08-01-2013
05:48 AM
|
0
|
5
|
5612
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|