|
POST
|
You didn't say what version you are using. Not sure what "datagrid" you are talking about, or if the zoom to level is set in the config for it. But, this was often caused by a known bug in earlier versions of the FV app. If it is the same issue, when there is a selection, and you zoom in enough that the selected feature is off the extents of the map (the reason for the question about zoom level being set in config), you will get the grey exclamation point of death. Was fixed in FV32 and later. also a workaround by removing glow filter. http://forums.arcgis.com/threads/73766-Grey-exclamation-mark-on-polyline-popups-in-Viewer-3.1?highlight=gcod Anyway, just thought it might be related, R_
... View more
06-27-2013
05:53 PM
|
0
|
0
|
1363
|
|
POST
|
#Import standard library modules
import arcgisscripting
import os
#Create the Geoprocessor object
gp = arcgisscripting.create(9.3)
gp.toolbox = "management"
#Set the input workspace
#GP.workspace = sys.argv[1]
#Set the workspace.
gp.workspace= "H:/temp_D/test"
#Set the output workspace
#outWorkspace = sys.argv[2]
#Set the workspace. List all of the feature classes in the dataset
#Get a list of the featureclasses in the input folder
fcs = gp.ListFeatureClasses()
# Loop through every item in the list that was just generated
for fc in fcs:
fields = gp.ListFields(fc,"C*", "String")
for field in fields:
# if not field.endswith("D"):
# delete the field CXXXX
gp.deletefield (fc, field)
del field
del fields
gp.AddMessage(gp.GetMessages())
print gp.GetMessages()
Don't believe deletefield allows wildcards. This way I'm looping through the fields in the current FC and adding any that start with C to a list. Then, iterate through the list of Cfields and delete. I think that should do it for you. I don't have 9.3 anymore to test with. Also, this will delete the CXXXXD fields if they still exist also (if these are the same datasets you are adding to in your other post)... Uncomment out the section in red if you don't want to delete the fields that end with D as well. Of course, you could probably just add the deletefield option to your other script and delete the C* field right after the calculate (while the variable is still set to it). R_
... View more
06-27-2013
05:36 PM
|
0
|
0
|
1915
|
|
POST
|
Glad to hear you got it working. For color codes, I normally go here: http://html-color-codes.info/ of course, this is all over the net. R_
... View more
06-27-2013
04:12 PM
|
0
|
0
|
1179
|
|
POST
|
Gavin, I just installed the standard searchwidget that comes with FV3.1 and added the tags to the bottom of the searchwidget.xml. The symbology set in the xml is definatly being honored, except for the simplemarkersymbol. does not appear as if that is an option. Below is a snippet from my searchwidget.xml that is working. If I change the symbols colors, reload, re-search, all the highlights are the new color. <?xml version="1.0" ?> <configuration label="WCH Search 2"> <layers> <layer> <autoopendatagrid>true</autoopendatagrid> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Buildings</name> <url>http://gis01.wch-rcc.com/ArcGIS/rest/services/Base/Buildings3/MapServer/0</url> <expression>UPPER(name) LIKE UPPER('%[value]%')</expression> <graphicalsearchlabel>Use one of the graphical search tools to select Zoning</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>name</titlefield> <fields all="false"> <field name="name" alias="Name" gridfield="true" /> <field name="LONGNAME" alias="LONGNAME" gridfield="true" /> <field name="TYPE" alias="TYPE" gridfield="true" /> <field name="FAC_STATUS" alias="Status" gridfield="true" /> <field name="FAC_CONTRACTOR" alias="Contractor" gridfield="true" /> <field name="rec" alias="rec" gridfield="true" /> </fields> <links/> <zoomscale usegeometry="true" zoompercent="1"></zoomscale> </layer> </layers> <zoomscale>10000</zoomscale> <symbols> <simplefillsymbol color="0xFF0000" alpha="1.0"> <outline color="0x0404B4" alpha="0.8" width="2" /> </simplefillsymbol> <picturemarkersymbol url="assets/images/arrow_up.png" height="20" width="20" xoffset="1" yoffset="1" /> <simplelinesymbol color="0xFA0A56" alpha="0.8" width="2" /> </symbols> </configuration> Hope this helps, R_
... View more
06-27-2013
03:01 PM
|
0
|
0
|
1179
|
|
POST
|
Still didn't work 😕 I'm setting the workspace here: env.workspace = FD_addr list = arcpy.ListRasters("*", "ALL") (not sure how you make it so that code appears in gray?) I feel that has to be working because the rasters being inserted into list are the rasters in that location (I double checked.) FD_addr is set way in the beginning of the code. Interesting. Are you sure you hard-coded it to an "existing" FGDB? If so, what do you mean it didn't work? Didn't create the raster with your hard-coded name, created a blank raster? Error messages? What does it report if make the modifications in red?
import arcpy, os
arcpy.CheckOutExtension('Spatial')
arcpy.AddMessage("Creating Elevation Raster")
arcpy.env.workspace = FD_addr
list = arcpy.ListRasters("*", "ALL")
raster0 = arcpy.Raster(list[0])
raster1 = arcpy.Raster(list[1])
elevation = arcpy.sa.Con(raster1 - raster0 >= 0, raster1 - rasters0, 0)
print "temporary: ",elevation.isTemporary
elevation.save(FD_addr)
print "temporary: ",elevation.isTemporary
R_ Also, it looks like elevation.save(FD_addr) is telling it to save with the filename of the workspace. Workspace is normally a folder or FGDB, not a file. It's my understanding that elevation.save() would save it in the current workspace as raster dataset "elevation". Now that I think about it, before trying the above code, what happens if you try this (of course, make sure the FD_addr is set to a FGDB that the current user has write access to):
import arcpy, os
arcpy.CheckOutExtension('Spatial')
arcpy.AddMessage("Creating Elevation Raster")
arcpy.env.workspace = FD_addr
list = arcpy.ListRasters("*", "ALL")
raster0 = arcpy.Raster(list[0])
raster1 = arcpy.Raster(list[1])
elevation = arcpy.sa.Con(raster1 - raster0 >= 0, raster1 - rasters0, 0)
elevation.save()
... View more
06-27-2013
02:56 PM
|
0
|
0
|
2952
|
|
POST
|
Of course, your crossdomain doesn't let me search against your layer to see if there are issues with it, but I have set mine up similar and have no issues. however, I am running one verison newer than you are, I am running 3.1.13 and is working just like the "old" one. IOW, it highlights all returned results, regardless of being sent to the float or fixed. Also, disregard my previous post, as this setting seems to have no effect on that. Still highlights all of the returned result if true or false, just doesn't soom to the extent of selected results if false. R_ Just further info. I removed the 3.1.13 and loaded 3.1.12 and still seems to be selecting all returned results.... Have you made any customizations to the FV3 app?
... View more
06-27-2013
01:54 PM
|
0
|
0
|
3055
|
|
POST
|
I think you want something like this, though I'm not sure the simplemarkersymbol is supported as the help page http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023000000/ only lists picturemarkersymbol for points... Also, not positive that this feature was included in version 3.0 as they have removed the older help documentation, though they don't say it was "added in version 3.x" so it "should" be.
<?xml version="1.0" ?>
<configuration>
<zoomscale>50000</zoomscale>
<layers>
<layer>
<name>APN Search</name>
<url>http://permitstweb/ArcGIS/rest/services/Assessor/Prop8Test.4/MapServer/0
</url>
<expression>APN = '[value]'</expression>
<textsearchlabel>123-456-789-000 (Enter with Dashes)
</textsearchlabel>
<titlefield>APN</titlefield>
<fields>
<field name="APN" alias="APN" />
<field name="STREETNUM" alias="" />
<field name="STREETNAME" alias="" />
<field name="STREETTYPE" alias="" />
<field name="ASMT_DESC" alias="Parcel Info" />
<field name="PercentDro" alias="Percent Change" />
<field name="GroupCo" alias="Appraisal Zone" />
<field name="AreaDesc" alias="General Description" />
<field name="AppraisalC" alias="AppraisalCode" />
</fields>
</layer>
<symbols>
<simplefillsymbol color="0xff0000" alpha="0.0">
<outline color="0x00FFFF" alpha="0.8" width="2" />
</simplefillsymbol>
<!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol
defined for your point results NOT BOTH. picturemarkersymbol will override
simplemarkersymbol if you do not have it commented out. -->
<!-- <simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5"
xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0x000000"
alpha="1" width="1"/> </simplemarkersymbol> -->
<picturemarkersymbol url="assets/images/i_search.png" height="20" width="20" xoffset="1" yoffset="1" />
<simplelinesymbol color="0x00FFFF" alpha="0.8" width="2" />
</symbols>
R_
... View more
06-27-2013
01:01 PM
|
0
|
0
|
1179
|
|
POST
|
That is set with the <symbols> tag in the SearchWidget.xml. R_
... View more
06-27-2013
11:48 AM
|
0
|
0
|
1179
|
|
POST
|
Didn't even recognize that. Guess I really wasn't trying to pick apart the code, just that I have been "bitten" by describe statements within a loop before, so that really stood out to me. R_
... View more
06-27-2013
11:15 AM
|
0
|
0
|
2433
|
|
POST
|
This seems to work:
import arcpy
InPoint = "\\\\hgis01\\gishome\\ladietz\\WCH.gdb\\MR\\MRPoint"
out_dbf = "D:\\temp\\test.dbf"
arcpy.Statistics_analysis(InPoint, out_dbf, "CATEGORY COUNT;OSE_ID NAME", "")
R_
... View more
06-27-2013
11:10 AM
|
0
|
0
|
1896
|
|
POST
|
You say so you can edit, so when you say information table, are you refereing to a popup infowindow, or the attribute table widget or edit widet table as they have to be enabled differently. R_
... View more
06-27-2013
10:58 AM
|
0
|
0
|
1166
|
|
POST
|
I noticed that in your newer app, that when you click on a result, and it zooms to it, it also highlights it red. In the older widget, it would automatically zoom to the results, the new one, that is a setting that you have set to false <autozoomtoresults>. Not sure, but perhaps if you have it zoom to the results, it would hightlight them all as it does when you click/zoom to individual results? Just a thought, R_
... View more
06-27-2013
10:53 AM
|
0
|
0
|
3055
|
|
POST
|
I see this snippet in the code, but don't know what it is used for as it looks like you get the name from the os.path.split section:
# Break out the name, no path or extension, using the describe object.
desc = gp.describe(fc)
featureName = desc.name
I don't see anywhere else that you are using the desc or featureName variables. If so, the describe is fairly heavy operation, especially within a for loop. If it really isn't needed, would probably decrease your run time substatially if removed. R_
... View more
06-27-2013
10:37 AM
|
0
|
0
|
2433
|
|
POST
|
I don't see in the code anywhere that you are setting the variable 'FD_addr' (maybe it is above the imports somewhere?) to actually set the env.workspace. Could try somehting like:
elevation.save("C:/output/file_gdb.gdb/elevation") # or whatever the path/filename you want for your out raster
If this works, at least then you know it's an issue with the workspace/path being set properly. R_
... View more
06-27-2013
10:31 AM
|
0
|
0
|
2952
|
|
POST
|
Glad I could help. If you get a chance, could you click the checkmark in the upper right of the post that answered your question. This will give me credit for it. Thanks, R_
... View more
06-27-2013
10:11 AM
|
0
|
0
|
2812
|
| 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
|