|
POST
|
Once you load the mosaic into ArcMap, can you manually change the symbology to the color ramp that you want or will it not let you? R_
... View more
07-09-2013
07:42 AM
|
0
|
0
|
3411
|
|
POST
|
I'm running DataExtractWidget on 3.1. When I make the widget window too small to view all the layers at once, the scrollbar appears. R_ [ATTACH=CONFIG]25710[/ATTACH]
... View more
07-03-2013
05:30 PM
|
0
|
0
|
3373
|
|
POST
|
and to check if the key exists then do something, I use this:
if (officeCodeDict.has_key(userValue)):
myVal= siteDict[userValue]
else:
print "not an acceptable value"
R_
... View more
07-03-2013
02:10 PM
|
0
|
0
|
2199
|
|
POST
|
Only way I can think of would be when you create the fields, set it to not allow null values. This way, "something" would have to be entered, but could be anything that meets the field type, would not be restricted to your list (except, of course, for the fields that have a domain on them). R_
... View more
07-03-2013
08:34 AM
|
0
|
0
|
2199
|
|
POST
|
Hello Everyone, I am trying to get a URL Parameter to activate a layer, based on the layer name (!), in order to complete functionality for an atlas (links from an html page must open the map viewer with certain layers turned on). Preferably I would like to be able to turn on Groups as well as individual layers (if the url parameter == the name of a group, turn all of that group on.) So, is the URL "dynamic" meaning that they are "assigned" by code when someone clicks the link from the html page, or are they hard coded links? This is a little different than you asked for, but if the link is hard coded, a different approach would be to have a different config file within the same FV app for each link. then, the URL would pass the config.xml file with the layers/groups that "should" be turned on set as visible="true", and your are done. http://server.com/flexviewer/?config=URLconfig1.xml R_
... View more
07-02-2013
05:34 PM
|
0
|
0
|
1600
|
|
POST
|
Just so you know, you do not need a separate service for each raster. Sure, if you want to pull each one in as an individual layer. However, you could put all of your rasters in a single map document and publish. then just add the REST endpoint to that service and you will see all the rasters with a checkmark in front of them to turn on/off in the FV app. Just depends on what your final outcome/useage is. R_
... View more
07-02-2013
01:50 PM
|
0
|
0
|
981
|
|
POST
|
I see you have already changed the "settings" in ArcMapCatalog so that explains why it is working within them. However, don't think there is a way for arcpy to inherit these settings, so I'd try the GRID output format and see if that works in standalone arcpy. It looks as if you are including your FGDB path in your save path so that they are saved within a FGDB. this will force them to be FGDB feature classes/tables/rasters, etc. and not GRID format If you code it to save in a folder (not FGDB) and leave off the file extention, it should create them as GRID format and "supposedly" not have the 16bit restriction. Not sure if you would just have to have combineBFE_NED as a GRID since that is the output, or if you would have to use GRID's for input as well. Would have to test. R_ also, not sure if you've fixed it already (or if it is intentional) but this doesn't quite look right: outintNED30 = str(fGDB) + "\intNED20" to be consistant with your other variables, should this be outintNED30 = str(fGDB) + "\intNED30"
... View more
07-02-2013
01:20 PM
|
0
|
0
|
1242
|
|
POST
|
Now that you have the model working, you can go to the file menu, export, and export as a python script. This will give you the basic idea of what would need to be done. Of course, you won't see the featurelayers being created there, so have to add that in for tools that require them and some syntax may need to be cleaned up. In any case, it helps me figure this stuff out if I get one working, then export the python and tweak. R_
... View more
07-02-2013
12:20 PM
|
0
|
0
|
1483
|
|
POST
|
Ok, I agree, there are different "forms" of rasters, though they are all pretty much a series of "cells" with a value attached. The point I was trying to make, is that the "color", "symbology", "rendering", or whatever you want to call it is determined by the software package itself based on the value of the cell. Sure, if there is a color map (a separate lookup table of value:color that is NOT actually part of the raster) (of course, tiff's have the 'color map" as part of the attribute table), some software can utilize that to symolize the data, but can easily be circumvented in the displaying software package. I have three band full color tiffs, but if I load them into my 9.3.1 ArcMap, they display as greyscale/stretched (due to the ArcMap settings and nothing to do with the raster itself). If I load the same tiff in my 10.1 app, they load as RGB color images. however, I can go in and change the symbology in arcmap and turn it into streched, greyscale, base each band on a different color ramp, etc, and reder it however I choose. Can also save the "new" colors to a layer file With such limited information in the original post, It sounded like the original poster is under the impression that the color ramp used to display in ArcMap was actually a "setting" in the raster itself. I was trying to make it clear that this is controlled in ArcMap (or whatever app you are "rendering" it with). R_
... View more
07-02-2013
12:07 PM
|
0
|
0
|
3412
|
|
POST
|
I see this in the help: For formats other than ESRI GRID, by default, the output raster from this tool can only have a maximum of 65536 unique values. You can increase this number by changing a setting in ArcGIS. On the Main menu, select Customize > ArcMap Options. In the ArcMap Options dialog box, click on the Raster tab and modify the Maximum number of unique values to render field to an appropriate value. Don't know a way to change these settings for arcpy (perhaps a tech support question), however, based on the help documentation, it appears as if the ESRI GRID format is not held to this contraint. Perhaps you could output as GRID to get the results you are after? R_
... View more
07-02-2013
11:45 AM
|
0
|
0
|
1242
|
|
POST
|
So now I'm trying to remove buffered roads from the previously selected areas. >>> # Remove the buffered roads from the suitable vegetation areas >>> erase = arcpy.Erase_analysis(select, "buffer", "in_memory/erase") Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\analysis.py", line 205, in Erase raise e ExecuteError: ERROR 000732: Input Features: Dataset in_memory\select does not exist or is not supported So then I tried changing the buffer feature, but nothing doing >>> erase = arcpy.Erase_analysis(select, buffer, "in_memory/erase") Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\analysis.py", line 205, in Erase raise e ExecuteError: ERROR 000732: Input Features: Dataset in_memory\select does not exist or is not supported What's strange is that when I selected the vegetation ArcMap created results for that but when I added the buffer code, ArcMap also added it to my list of layers (in addition to showing the results). Could someone help me understand what's going on here. Think you need to re-read the help for the select and erase tools as suggested here http://forums.arcgis.com/threads/87442-select-arcpy.Select_analysis-HELP!!. The error is not related to the buffer FC, but what you are trying to use as input from FC that doesn't exist (in_memory\select). SelectLayerByAttribute doesn't work on FC, must be a layer or view (ArcMap silently substitues a view when you pick FC in Model builder/tools, so if you did that, it will break as stand alone without running MakeFeatureLayer first).
MakeFeatureLayer_management (in_features, out_layer, {where_clause}, {workspace}, {field_info}) ## this will make a feature layer that can be fed into the select tool if this where clause isn't sufficient
SelectLayerByAttribute_management (out_layer, {selection_type}, {where_clause}) ## use the feature layer as input to the select tool. this puts the selection on the layer until removed or re-selected
FeatureClassToFeatureClass_conversion (out_layer, "C:/output/temp.gdb", "in_features" {where_clause}) # if nothing fancy in your select, you could skip that and makefeature and include your where clause here
## in fact, all three support where clause, so if not switching selection, no need for selectlayertool
Erase_analysis ("C:/output/temp.gdb/in_features", buffer, "in_memory/erase"), {cluster_tolerance}) ## use the FC created from the selected values to be erased from.
That should get you on the right track. Also, as lmwood suggested, it is really hard to try to "guess" what the previous lines of code are (unless I look at all your posts), so having the code that comes before these statements can help. Often something elsewhere in the script that is causing the problems (I.e., wrong variable type, value, etc.). R_ I am looking in the help documentation for the erase tool, and it does not say if it will honor only the selected feature or not. That is why I convert to featureLAYER with the selection on it to a new in_memory feature class (which would be comprised of only features that were selected) and use this temporary in_memory dataset as your erase feature input. also, it appears as if you are trying to erase features from your "selection"? Not sure how or even if that would work. Would you expect it to erase the buffers from only the selected features in the input FC?
... View more
07-02-2013
11:16 AM
|
0
|
0
|
1483
|
|
POST
|
Ionara, Really don't make tools, so not sure what an editing tool would do. Since it will be running in ArcMap, if there is a way to open the Attribute window (from editor) (perhaps a template mxd with your tool), then they would be able to pick all the domain values directly from the dropdown in the attribute window itself. Would be active for either selected features, or newly created features. not sure if this helps at all, just thougth I'd point it out if you weren't already familiar with it. R_
... View more
07-02-2013
10:26 AM
|
0
|
0
|
2199
|
|
POST
|
This works. lblClass.SQLQuery = '"ParcelID"' + "=" + str(val) + " AND " + '"Bearing"' + " > " + "180" R_
... View more
07-02-2013
08:33 AM
|
0
|
0
|
1187
|
|
POST
|
Well, not sure what you are trying to do. A raster is a raster, it is the software that your are viewing it with that determines what colors or greyscales are used for display. As pointed out, if your data supports a colormap (single band non float raster), you can add a colormap to it. However, this will only be honored in applications that support it. Also, if you change the default settings of how your particular install of ArcMap loads rasters by default (as posted in your other thread on this), will have the same affect when loading into ArcMap. Can also symbolize as you want, and create a layer file. Then, when you load this layer file into ArcMap, it will load the raster with the symbology you want. If you are using arcpy.mapping function to generate an output from an mxd, then you could either have a colormap (if supported), load into the mxd using your pre-sybolized layer file, or load into mxd and use arcpy.mapping.updatelayer to update the symbology to a pre-defined .lyr file. If you want a colormap, and are in fact actually using a "mosaic", and not just raster data, it looks like you apply the colormap (arcpy.AddColormap_management) to the raster before you incorporate into the mosaic. So, I guess it depends on what the purpose of this data set is, where are you viewing/using it, what software, etc. to determine best course of action. R_
... View more
07-02-2013
08:21 AM
|
0
|
0
|
3412
|
|
POST
|
Yes, this is for the backslash: one would think that it should look something like this to replace all \ with _: fc.replace("\","_") however, the backslash is a special character in python, so you need to "escape" it first by adding the other backslash. (if you try it with one, it won't recongize the quotes and will be invalid) So, if there is a backslas in the fc name, it will replace it with an underscore before save. Same in ArcMap, you will get that error unless you remove the backslash from the filename. When I right-click in arcmap and choose save as layer file, if my layer name is "Observed pipeline/cable", the name ArcMap suggests is "Observed pipeline_cable.lyr" and it works. If I put the \ back in there, layer can't be found error (not very descriptive or accurate error I know). Should not have to rename anything in the mxd first, since all we are saving is a layer file. We just have to make sure the layer file name is valid. R_
... View more
07-02-2013
07:41 AM
|
0
|
0
|
1289
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
a week ago
|