|
POST
|
Looks like you are doing some sort of electrical flow analysis... which probably isn't appropriate for the Network Analyst extention.... I think you want Utility Network Analyst... But that aside, "AnySinglePhase" refers to single phase electrical distribution lines.... that is any line that is running only A, B, or C phase (example: not AB, AC, BC, or ABC). http://en.wikipedia.org/wiki/Single-phase (A,B,C) http://en.wikipedia.org/wiki/Two-phase (AB,AC,BC) http://en.wikipedia.org/wiki/Three-phase (ABC)
... View more
08-23-2011
02:19 PM
|
0
|
0
|
701
|
|
POST
|
How about just projecting the feature with an alterd false easting/northing?
... View more
08-23-2011
02:00 PM
|
0
|
0
|
838
|
|
POST
|
How about simply projecting your data with an altered false easting and false northing? Then define the prj of your altered dataset to be that of the original prj. You can programatically create/alter projection definitions though the gp/arcpy object.
... View more
08-22-2011
10:33 AM
|
0
|
0
|
1801
|
|
POST
|
When the road is perfectly straight (i.e. no vertices/curves), the next circle center will be exactly 2*r "down the road" from the preceeding center. However, if the line curves at all, this method falls appart, and the derived circles would overlap (overlap % being a function of how curvy the line was). What you really need is a method to traverse the constituient vertices of a line segment, find the two sets of vertices where between them a new center point would be located that is 2*r from the last center (as the crow flies, not as the crow drives), and then interpolate a new center location. Although in this case a raster solutuion wouldn't be as precise as a vector one, I'll bet Bill Huber would jump at offering a very nice raster-based method if you posted this in the Spatial Analyst forum...
... View more
08-16-2011
09:54 AM
|
0
|
0
|
1039
|
|
POST
|
Assuming the ADDRNO field is numeric and the others are text, try this: whereClause = "ADDRNO = 1930 AND ADDRSTREET = 'BIG OWL' AND ADDRSUFFIX = 'ROAD'" Since I think v9.1 or so you don't have to put quotes and backslashes around the field names. When you export scripts out of ModelBuilder it seems to keep these old school formatting faux pass for seme reason. You don't need them!
... View more
08-11-2011
12:54 PM
|
0
|
0
|
3798
|
|
POST
|
Thanks for the info David. I'm looking forward to 10.1...
... View more
08-10-2011
12:38 PM
|
0
|
0
|
4459
|
|
POST
|
Hands down, it would be way faster to use the Project tool that do multiple passes with cursors. I could be wrong, but I'm not completely sure that the cursors honor the arcpy.env.geographicTransformations setting...
... View more
08-10-2011
07:53 AM
|
0
|
0
|
2676
|
|
POST
|
Is there a reason you are using the cursor instead of the Project tool?
... View more
08-09-2011
03:30 PM
|
0
|
0
|
2676
|
|
POST
|
The spatial refernce object is the 3rd parameter in the update & search cursor statments (2nd parameer for the insercursor statment). So it would be: rows = arcpy.UpdateCursor(fc, "", inCRS)
#instead of
rows = arcpy.UpdateCursor(fc, inCRS)
... View more
08-09-2011
03:13 PM
|
0
|
0
|
2676
|
|
POST
|
None of the following methods turn of the .xml history logging (for me, stored under C:\Users\csny490\AppData\Roaming\ESRI\Desktop10.0\ArcToolbox\History): arcpy.loghistory = False arcpy.logHistory = False arcpy.env.loghistory = False arcpy.env.logHistory = False arcpy.setLogHistory = False arcpy.SetLogHistory = False arcpy.env.setLogHistory = False arcpy.env.SetLogHistory = False Curiously, you can also seem to set any method you think up. For example: >>> arcpy.whyDoesntThisWork = False >>> print arcpy.whyDoesntThisWork False Which gives the false sense that some of these settings are "working" when in fact they are invalid methods and aren't actually serving any purpose. Could it be that the history log setting in v10 via arcpy is just a placebo now and there is no way to tun it off? Seems that tuning it off via ArcMap (ArcMap > Geoprocessing > Geoprocessing Options) only turns off the logging when the tool is run via ArcMap. I would like to turn this setting off for all my scripts, but seemingly can't do that anymore in v10 arcpy... Yargh! Note that: import arcgisscripting gp = arcgisscripting.create(9.3) gp.loghistory = False still works to stop history logging in v10.0. In my experience with the old logging system (that use .tbx files), the larger the history file becomes the slower the tools execute. Seems that in v10 (9.3 too I think) the .xml files are created anew ever hour, but regardless, it is still possible to issue thousands of tool commands in an hour - each tool execution making the hourly .xml file larger, and the entire history fiolder larger as well. Please ESRI: We need a way to turn the geoprocessing history log off via arcpy!
... View more
08-09-2011
08:22 AM
|
0
|
0
|
4459
|
|
POST
|
I'm not sure that actually does anything... For example: >>> arcpy.env.cellSize
u'MAXOF'
>>> arcpy.SetLogHistory
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SetLogHistory'
>>> arcpy.env.SetLogHistory
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
AttributeError: 'GPEnvironment' object has no attribute 'SetLogHistory'
>>> arcpy.env.iHateArcPy
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
AttributeError: 'GPEnvironment' object has no attribute 'iHateArcPy'
>>> arcpy.env.iHateArcPy = True
>>> print arcpy.env.iHateArcPy
True It ain't necessarily so...
... View more
08-08-2011
04:22 PM
|
0
|
0
|
4459
|
|
POST
|
Anyone know how to turn off the geoprocessing history in ArcGIS v10.0 (arcpy) via Python? Seems like ESRI got rid of the gp.loghistory setting, and I can't seem to find a way to turn it off in arcpy...
... View more
08-08-2011
03:48 PM
|
1
|
14
|
9957
|
|
POST
|
Don't know about the wisdom of using a 3rd party software to convert an ESRI format into another ESRI format, but rules are rules, and FME is a Canadian product I believe. After cleaning the data in FGDB format (Union or the RepairGeometry tool) you could run the FeatureCompare tool to identify what features changed. RepairGeom tool should give you a specific list of OBJECTIDs that were "fixed". I have had some bad experiences with the RepairGeometry tool... Be sure to do some random sampling of the features that are "fixed" to make sure it comes out the way it should. Note that if your data contains overlapping polygons, the union tool will intersect your data (split the geometry) at the overlap bounadries...
... View more
08-03-2011
10:00 AM
|
0
|
0
|
3889
|
|
POST
|
Dumb question maybe, but why are you using FME to load FGDB data into SDE? Why not just use the build in ESRI tools? Seems the ESRI tools would be more bullet proof for ESRI formats...
... View more
08-03-2011
08:31 AM
|
0
|
0
|
3889
|
|
POST
|
What is the native format of these polygons? Could it be that FME is causing the problem? Maybe load the datinto a FGDB 1st, clean it up (may not be neccessary), and then load it into SDE?
... View more
08-02-2011
03:53 PM
|
0
|
0
|
3889
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-25-2014 12:57 PM | |
| 1 | 08-29-2024 08:23 AM | |
| 1 | 08-29-2024 08:21 AM | |
| 1 | 02-13-2012 09:06 AM | |
| 2 | 10-05-2010 07:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-30-2024
12:25 AM
|