POST
|
Thank you Chris!! I would have never thought of that, but your code makes perfect sense. Let me ask you this - is it possible to read that kind of information from a 'true curve' circle using a search cursor? I've experimented in the Python Window a little bit but wasn't able to find a object with that .buffer attribute. Thanks again for your help! - Nick
... View more
04-29-2014
09:30 AM
|
0
|
0
|
1320
|
POST
|
Thanks for responding Josh! I'm more interested in how to write a circular geometry from scratch using only two point points. I guess it doesn't necessarily need to be a perfect circle.
... View more
04-29-2014
06:54 AM
|
0
|
0
|
1320
|
POST
|
Hello! Is anyone out there familiar with writing geometries that are perfect circles (..err should I say arcs?). In one of my scripts I deconstruct, then reconstruct polygon features point by point. It appears that some of my features are perfectly round and only contain two points. So far, I've experimented quite a bit in Arc's Python Window and I've read ESRI's online help here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001v000000 ...but still stuck. Is there a trick to writing perfectly round polygon features that I'm missing? If anyone out there has any advice it'd be greatly appreciated. Please note that I'm restricted to ArcGIS for Desktop 10.0 and Python 2.6. Thanks! - Nick
... View more
04-29-2014
04:42 AM
|
0
|
8
|
5055
|
POST
|
I've had similar problems with the Calculate Field Tool, especially when working with string/text manipulations. I'm guessing the zeros described in your shapefile are related to geodatabase rows without values. In other words, the expression or function, isn't returning anything. A good starting place may be to check the indentation in your function/codeblock if you defined one in a docstring using triple quotes. Experimenting in ArcMap's Python Window is a great way to troubleshoot. I'd also second clint.dow's recommendation to adopt Update Cursors in place of the old field calculator approach. The newer data access module in particular may be of interest because you can reference field names in a slightly different way which would give you another angle to work with. Just curious. Did you find a solution?
... View more
03-03-2014
10:02 AM
|
0
|
0
|
490
|
POST
|
Hello, I have a data set containing a few thousand points and I'm attempting to round the coordinates while controlling the maximum distance they can move. The math is dizzying and I was curious to know if anyone knew of a good resource to learn more about this sort of thing. The goal would be to generalize the coordinates enough so that the points would "stack up" on one another while controlling the distance they could potentially move during the process (say, a maximum of 100 Meters or so). Any thoughts?
... View more
11-19-2013
06:33 PM
|
0
|
1
|
637
|
POST
|
Big thanks to both JSkinn3 and davidisraelitt, Using a FieldMappings object worked really well. I have avoided them in the past, but now that I have a better grasp of what they can do, I can really see the benefit.
... View more
11-04-2013
08:43 AM
|
0
|
0
|
253
|
POST
|
Thank you for replying Jake! I'm using ArcGIS for Desktop 10.2 and manually importing does work. The catch is that I have a python script that runs overnight and I'm not around to work with the .csv file by hand. After getting the table into my scratch gdb, the field looks like this: | Timestamp | -------------- <Null> <Null> <Null> <Null> I'm sure I'm missing something simple with ArcPy... just haven't figured it out yet. Reworking the file via the csv module seems like an option, but also seems overkill. Any other thoughts? - Nick
... View more
10-25-2013
05:49 AM
|
0
|
0
|
253
|
POST
|
Hello, I'm having a difficult time importing some .csv files into a file geodatabase and any advice would be greatly appreciated. The files I'm having trouble with contain a field with timestamps formatted as mm/dd/yyyy hh:mm (ex 10/13/2013 18:34). When adding the file to ArcMap via the Add Data button I can see the values just fine, however if I try to import the file through a python script the resulting field contains <Null> values. So far I have tried the following without success: CopyRows_management() TableToTable_conversion() MakeTableView_management() Any suggestions? Thanks! Nick
... View more
10-24-2013
02:13 PM
|
0
|
4
|
746
|
POST
|
Thank you both for your replies! I learned quite a bit from both responses. So far I've used a combination of arcpy's Truncate Table and Append tools with some good results.
... View more
09-01-2013
05:04 PM
|
0
|
0
|
1290
|
POST
|
Hello, I'm experimenting around a bit with ArcGIS for Server and I have a feature class that I'd like to edit with a python script. The catch is that this feature class is the basis for a Feature Service I have published. Does anyone know what the best approach is for editing these features via arcpy? I initially thought I could simpy overwrite the feature class, but I fear server will place a lock on it. Is it possible to delete or add new features through a POST operation, or do I have the wrong idea? I essentially have a feature class of polygons used in a feature service and I want to execute a python script every couple of minutes with Windows Task Scheduler that updates it. Any advice is definitely welcome! - Nick
... View more
08-23-2013
06:29 AM
|
0
|
6
|
4526
|
POST
|
Thanks! Very helpful and nice use of pro downhiller names 😃
... View more
03-05-2013
10:34 AM
|
0
|
0
|
1183
|
POST
|
Hello, I'm trying to reclassify a raster by standard deviation using arcpy. Problem is that when I go to use RemapRange I don't know how to calculate the break values for my new classes. Does anybody know how to get around this? I can access a few raster properties via GetRasterProperties_management(), but I need actual break values before I can reclassify. arcpy.sa.Reclassify (in_raster, reclass_field, remap, {missing_values}) arcpy.sa.RemapRange (remapTable)
... View more
01-30-2013
06:56 AM
|
0
|
3
|
473
|
POST
|
I was really impressed with O'Reilly's introductory class for Python: http://www.oreillyschool.com/courses/python1/ If you time it right, you can catch it on sale and it takes about 40 hours to complete if you don't rush too much. The thing about their course I was so impressed with was that their instructors looked at all my code, even if I correctly finished projects, and that helped me out a lot.
... View more
10-02-2012
10:29 AM
|
0
|
0
|
543
|
POST
|
No no... That's just a wrapper for a dll file. I'm limited to pure Python or an out of the box ESRI solution at 9.3 excluding Military Analyst. Is there a way to do it through a transformation or projection maybe?
... View more
10-02-2012
10:14 AM
|
0
|
0
|
1883
|
Title | Kudos | Posted |
---|---|---|
1 | 02-15-2012 10:22 AM | |
1 | 02-17-2012 05:13 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|