POST
|
no answers? no similar experiences? I'll try rebuilding my mxd from scratch... maybe it's another corrupted MXD????
... View more
08-06-2014
10:25 AM
|
0
|
0
|
651
|
POST
|
what is a traceback? I'm not a real programmer - just a GIS guy thrown into the possibilities of python. A lot of my script had to be fixed by a real python guy but he stopped when he said that the errors that are ESRI based are out of his "scope". If you mean the error messages it looks like this now: " Executing: batchMap4PMV Start Time: Thu Jul 31 13:38:22 2014 Running script batchMap4PMV... checking out inset map placement: None no inset map beginning layer filter of data frameLayers CROWN_LANDS_FILE = '2411100' Tantalis Files defined the lyr for Tantalis Files? ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute). Traceback (most recent call last): File "W:\srm\sry\Local\projlib\2014-15\Auth_Lands_PMV\data\scripts\batchMapRobot.py", line 80, in <module> runMapRobotScript(filenum, outfile) File "W:\srm\sry\Local\projlib\2014-15\Auth_Lands_PMV\data\scripts\batchMapRobot.py", line 42, in runMapRobotScript obj.dataFrameFilter(obj.mainDF, obj.mainDefQry, inset_map) File "W:\srm\sry\Local\projlib\2014-15\Auth_Lands_PMV\data\scripts\map_robot_2014_PMV_v2_4batch.py", line 161, in dataFrameFilter arcpy.SelectLayerByAttribute_management(lyr,"NEW_SELECTION", defQry) File "e:\sw_nt\arcgis\desktop10.1\arcpy\arcpy\management.py", line 6498, in SelectLayerByAttribute raise e ExecuteError: ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute). Failed to execute (batchMap4PMV). Failed at Thu Jul 31 13:38:29 2014 (Elapsed Time: 7.00 seconds) " Oh and I've tried the quotes around the field names. It works OK without the quotes in the ArcMap interactive world.
... View more
07-31-2014
01:39 PM
|
0
|
0
|
651
|
POST
|
ps for the one-off my mxd is set to "CURRENT" but for the batch I did link it to the actual mxd file location "C:\blah\blah\awesome.mxd" The batch worked this morning until I added the "upper()" part. if you want to see the scripts you can get them at: ftp://ftp.geobc.gov.bc.ca/pub/outgoing/GeoBC_Regional/Coast/tmp_mapRobot/ thx
... View more
07-31-2014
01:00 PM
|
0
|
3
|
651
|
POST
|
I've written a script using Arcpy.mapping module to automate map making. It works as a one-off for use in ArcMap if I use the ArcToolbox to call the script. But if I call it from python (eclipse) I get weird error messages ("ExecuteError: ERROR 000358: Invalid expression") pointing towards the "Select by Layer" tool. But it executes fine if run from ArcToolbox, no errors... same script. Part 2: I gave up running it from Eclipse and ran it from ArcToolbox within ArcMap. Now I'm trying to run a batch - multiple maps. It used to work until this morning. this morning I made the most minor of changes... to check to see if a variable.upper() == 'YES' again, this works in the "one-off" scenario within ArcMap called from ArcToolbox. But I'm trying to run my batch script (also called by ArcToolbox) and I get that same query error as above. Why is that? it's the exact same script. I don't want to interactively run this script in ArcMap for all 350+ maps. Why is arcpy.mapping so flaky? Is there a way to fix this???
... View more
07-31-2014
10:55 AM
|
0
|
28
|
2342
|
POST
|
for some reason clicking on that link only goes to the Support Centre's home page. I had to copy / paste this "http://blogs.esri.com/esri/supportcenter/2014/03/26/8-easy-ways-learning-python-arcpy/" into the browser for it to get to the correct site.
... View more
07-11-2014
09:16 AM
|
0
|
0
|
360
|
POST
|
thanks John & Jim for the suggestions. I'll give them a try Apologies, you are adding a picture element to a layout. How about adding a new dataframe, add the picture to the dataframe as a raster layer, then set the background to transparent. You can also set the dataframe frame to no color, so visually the logo is free floating, as you can move the dataframe and hence the logo where ever you want to on the layout. Jim
... View more
07-31-2013
08:12 AM
|
0
|
0
|
5051
|
POST
|
Sorry I don't understand. I'm importing a PNG or a JPG or an EMF file for a company logo. When you right click on any one of those file types in ArcMap there is no "symbology select" that I can find. Can you provide more details? Under the symbology select "Display Background Value" box and enter the RGB value for the color you want transparent. Leave the background color fill as none. Regards, Jim
... View more
07-25-2013
12:22 PM
|
0
|
0
|
5051
|
POST
|
I received a PNG file for a logo that I want to put on my map. The logo has a transparent background. Great. That's what I want. But when added to ArcMap 10.1 the background turns white. I tried converting the PNG to an EMF after reading a bunch of forum posts. I used Irfanview to convert it. But now when I add the newly converted EMF file it has a black background. Anyone know how to fix this???
... View more
07-23-2013
01:46 PM
|
0
|
23
|
54220
|
POST
|
somebody sent me a link to Stamen basemaps. The page includes a link to make it work with ArcGIS Desktop that allows you to download a ".pkinfo" file. But that .pkinfo file is not recognized by ArcMap 10-1 nor ArcCatalog 10-1. And I cannot do anything with it in Windows Explorer. The Help doesn't say anything about .pkinfo files. there's an old forum post that mentions support in 10.1 but I haven't been able to figure out how to make that work yet. Any help?
... View more
04-03-2013
01:42 PM
|
0
|
3
|
3935
|
POST
|
Sorry, can you explain. I don't understand. I thought I had copied Robert's version of the script verbatim. I'd attached my xml to the previous post. Can you tell me what needs to be removed? Robert's had 2 lines in red and I'm assuming you didn't mean to remove 2 lines of code. I tried removing </field> and that removed the popup error HOWEVER the original problem still remains - I still have commas in my number: 19,990,131 I had a typo in my config statement that Robert fixed in his post. The format statement is a child of the field tag, so you can't terminate the parent. Just remove the slash in red and should get rid of that error. R_
... View more
03-06-2013
11:29 AM
|
0
|
0
|
158
|
POST
|
I tried that edit but I got an error message: Map Manager: A problem occurred while parsing the configuration file popups/PopUp_1.xml Error #1085 [ATTACH=CONFIG]22415[/ATTACH] my xml file is below: <?xml version="1.0" ?>
<configuration>
<fields>
<field name="TPOD_TAG" alias="TPOD_TAG" visible="true"/>
<field name="STRM_NAME" alias="STRM_NAME" visible="true"/>
<field name="STATUS" alias="STATUS" visible="true"/>
<field name="LICENCE_NO" alias="LICENCE_NO" visible="true"/>
<field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true"/>
<format precision="0" usethousandsseparator="false"/>
</field>
<field name="LIC_STATUS" alias="LIC_STATUS" visible="true"/>
<field name="PURPOSE" alias="PURPOSE" visible="true"/>
</fields>
<showattachments>false</showattachments>
<showrelatedrecords>false</showrelatedrecords>
</configuration>
Guys, The format tag is child of a field tag (not an attribute). Documentation here: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/ Joshua, Currently in App Builder 3.1 there is no way to apply formatting to fields. Here is your data with the formatting you were attempting applied properly: <configuration>
<fields>
<field name="TPOD_TAG" alias="TPOD_TAG" visible="true" />
<field name="STRM_NAME" alias="STRM_NAME" visible="true" />
<field name="STATUS" alias="STATUS" visible="true" />
<field name="LICENCE_NO" alias="LICENCE_NO" visible="true" />
<field name="PRIORITY_DATE" alias="PRIORITY_DATE" visible="true">
<format precision="0" usethousandsseparator="false" />
</field>
<field name="LIC_STATUS" alias="LIC_STATUS" visible="true" />
<field name="PURPOSE" alias="PURPOSE" visible="true" />
</fields>
<showattachments>false</showattachments>
<showrelatedrecords>false</showrelatedrecords>
</configuration>
... View more
03-06-2013
09:50 AM
|
0
|
0
|
528
|
POST
|
oops sorry. I sent you the link to the wrong dataset. It's this one : http://goo.gl/oDRIK the other one is missing the PRIORITY_DATE field. Unfortunately the GUI doesn't have any options for output format in the same way that ArcExplorer Online does. Or at least it's not easily found by me yet. I've found the "popup" folder and made the changes as you've shown but I don't see any change in my flex app. it still shows the commas between the 000,000,000. The PRIORITY_DATE in the original dataset was set as a Number (Long) field. Unfortunately our service is internal only which is strange because the data is actually public, but because this is a pilot project, they've made all the services internal only. The original dataset can be downloaded here: http://goo.gl/2XM5E
... View more
02-27-2013
12:07 PM
|
0
|
0
|
528
|
POST
|
Unfortunately the GUI doesn't have any options for output format in the same way that ArcExplorer Online does. Or at least it's not easily found by me yet. I've found the "popup" folder and made the changes as you've shown but I don't see any change in my flex app. it still shows the commas between the 000,000,000. The PRIORITY_DATE in the original dataset was set as a Number (Long) field. Unfortunately our service is internal only which is strange because the data is actually public, but because this is a pilot project, they've made all the services internal only. The original dataset can be downloaded here: http://goo.gl/2XM5E I don't use the GUI, but I figure it would be in the configure section for popups and the key/value pair tab. http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Configuring_pop_ups_in_Application_Builder/01m30000004p000000/ The format statement I gave you is for a number field. Is your PRIORITY_DATE field a date field or just a number (or, is your service public to test?)? The fields section on this link http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/ shows the avialable format options. R_ Ultimately, the change needs to be in the popup folder in your flexviewer folder on the server (which I suspect AppBuilder does for you). So, for windows using IIS, would be something like \inetpub\wwwroot\FlexViewer_Map\popups\Popup_layer.xml
... View more
02-27-2013
11:55 AM
|
0
|
0
|
528
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2015 03:56 PM | |
1 | 01-05-2012 09:32 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|