Reputation
1,082
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 19
Impact
~67k people reached

  • 0 posts edited
  • 0 helpful flags
  • 44 votes cast
Jun
21
revised How to update geometry in ArcObjects?
added 1391 characters in body
Jun
21
comment How to update geometry in ArcObjects?
Thanks for this code. Unfortunately I'm stuck in foreach loop. I get error: foreach statement cannot operate on variables of type 'ESRI.ArcGIS.Geometry.IPointCollection'. Do you know how to fix it?
Jun
21
revised How to update geometry in ArcObjects?
added 38 characters in body
Jun
21
awarded  Enlightened
Jun
21
asked How to update geometry in ArcObjects?
Jun
20
awarded  Nice Answer
Jun
20
answered How to break single polygon into multiple polygons using ArcGIS Desktop or QGIS?
Jun
14
answered How to include variable in where clause of arcpy.Select_analysis?
Apr
18
comment Can a new point automatically be populated with data from the containing polygon
@Hairy: I understood that there're 2 polygon layers, each with more than 2 polygons - for 2 polygon features ther's no sense to use any tool beyond Idetify:) But I agree that for simpler geometries your code is more clear.
Apr
18
answered Programmatically convert multipart polygon to singlepart in ArcGis 10
Apr
18
comment Can a new point automatically be populated with data from the containing polygon
@Hairy: I think your criticism is unmerited. I've made some tests: 17 random points, 170k polygons in FGDB. Your code ~13min, my ~0.5min. I suppose that avoid looping through polygon layer several times makes the difference.
Apr
18
comment Can a new point automatically be populated with data from the containing polygon
The solution is basen on exercise from PennState: e-education.psu.edu/geog485/node/159. Moreover, On the first place I proposed two ArcGIS tools which do not require any scripting!
Apr
17
answered Can a new point automatically be populated with data from the containing polygon
Apr
17
comment Can a new point automatically be populated with data from the containing polygon
@Hairy: Your script updates a polygon layer not points. The geom variable wont be created as you don't have access to X,Y directly. Use geom = row.Shape.getPart() instead. Moreover, the script may not be effective while many polygon as it loops through all polygons for each point.
Apr
15
comment How to Clip a Vector File based on certain Raster Values?
My first thought was also CON tool. But in my created Slope rasters this tool didn't recognise VALUE field. That's why I recommended Reclassify tool. BTW the real problem here is not HOW, but operations on huge vector layers.
Apr
13
awarded  Critic
Apr
12
awarded  Commentator
Apr
12
comment How to Clip a Vector File based on certain Raster Values?
Have you seen gis.stackexchange.com/questions/16110/… for some hints on handling big rasters and vectors?
Apr
12
comment How to Clip a Vector File based on certain Raster Values?
What do you mean '"Clip" crashes'? Does it throw any errors or ArcMap is in No response state?
Apr
12
comment How to Clip a Vector File based on certain Raster Values?
When converting raster to polygon, select option 'Simplify polygons' - this reduce the number of polygon vertices. Moreover, try to do your analyse in File Geodatabase.