|
POST
|
I've had limited success with applying client-side raster function rendering rules to an image service. I've successfully applied the Mask function, but now I want to combine it with a Colormap rendering rule, preferably with a Color Ramp visualisation. I'm testing with the Image Service's Export Image page of my server directory on a single band raster. My Mask rendering rule, showing values between 200 and 500, looks like this: { "rasterFunction" : "Mask", "rasterFunctionArguments" : { "IncludedRanges" : [200,500], "NoDataValues" : [], "Raster":"Raster" }, "variableName" : "Raster" } Now I would like to combine it with the Colormap rendering rule with a Color Ramp.
... View more
02-18-2015
04:47 AM
|
0
|
1
|
5455
|
|
POST
|
Your code snippet would not create the map to add any layer to it, so yes my code will not work in that case. I think the best would be for you to work through the API reference and samples. You can start here: https://developers.arcgis.com/javascript/jshelp/intro_firstmap_amd.html No need for me to repeat what has been explained in many good samples.
... View more
02-17-2015
10:22 PM
|
1
|
1
|
1643
|
|
POST
|
Are you using Legacy or AMD style class referencing? You add the World reference layer as a Dynamic Map Service layer to your map. The Javascript API reference is here: https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer.html The code for the constructor will look like this: var worldDMS = new esri.ArcGISDynamicMapServiceLayer(""http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer");
map.addLayer(worldDMS);
... View more
02-17-2015
05:46 AM
|
0
|
3
|
1643
|
|
POST
|
You can navigate to a specific web service page e.g. http://server.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer and at the top of the page there are a couple of "View In" options. For ArcGIS Desktop you can click on the ArcMap link, which will allow you to download a layer file (*.lyr) for ArcGIS Desktop.
... View more
02-17-2015
05:25 AM
|
0
|
0
|
1643
|
|
POST
|
You could use the Esri sample data that is standard with the installation disks or the Esri Web services here: http://server.arcgisonline.com/arcgis/rest/services/Reference
... View more
02-17-2015
05:02 AM
|
0
|
6
|
1643
|
|
POST
|
Check out ArcGIS Data Driven Pages. Basically you can generate a series of maps based on a unique identifier for a layer with multiple features.
... View more
02-16-2015
02:34 AM
|
1
|
1
|
3776
|
|
POST
|
A combo of Greg's and Darren's answer worked for me: import arcpy, os, string
rootFolder = 'C:\\test'
ctr = 1
for root, dirs, files in os.walk(rootFolder):
for name in files:
if name.endswith(".shp"):
# shapefile name without extension
shpName = os.path.splitext(name)[0]
# absolute file path
absFile = os.path.abspath(os.path.join(root,name))
# output file path
output_layer = rootFolder + '\\buffer_' + shpName + '_' + str(ctr) + '.shp'
# buffer
arcpy.Buffer_analysis(absFile, output_layer, "1 Kilometers", "FULL", "ROUND", "ALL", "")
ctr = ctr + 1
... View more
02-16-2015
12:23 AM
|
0
|
1
|
9809
|
|
POST
|
As steve way says, you can use a custom panel CSS size class. In "js/main.js" when the tool is created with toolbar.createTool(tool, panelClass), replace panelClass with your own custom class, which you also define in "css/styles.css". So in main.js => var mytool = toolbar.createTool(tool, "myPanel") and in styles.css => .myPanel{height:200px /*custom height*/}
... View more
02-13-2015
02:00 AM
|
1
|
1
|
2868
|