Tagged Questions
1
vote
1answer
64 views
How to get point x and y geometry from a shapefile?
I have a shapefile of US Cities and I want to get the X and Y coordinate of EACH city in that shapefile. I've tried this:
for city in city_cursor:
geom = city.Shape
point = geom.getPart()
...
2
votes
1answer
65 views
How to write point geometries with arcpy instead of gp syntax?
Can someone help me fix some code that simply writes points into a featureclass? It used to work in the older gp. syntax, but I'm having difficulties rewriting it in arcpy for ArcGIS 10.0. In this ...
2
votes
1answer
123 views
How to split zAware polyline by points programmatically with C#?
I'm trying to split a polyline by the boundaries of a polygon using IPolyCurve2.SplitAtPoints using C#.
The polyline I'm trying to split is zAware and holds elevation values at a regular interval.
...
1
vote
0answers
47 views
Retrieving ArcGIS:s Spatial Data into a Database
Background:
If you have created a vector map with lots of spatial data in geometry flat in with measurement kilometer. The following object that is used in the map will be point, line and polygon ...
0
votes
1answer
53 views
Is it possible to have measurements in centimeter and decimeter in 2D flat (geometry)?
Is it possible to have measurements in centimeter and decimeter in 2D flat (geometry) for ArcGIS?
2
votes
2answers
131 views
arcobjects update geometry Z values of line vertices with a given number
I am trying to develop arcgis 10.0 addin to update Z values of vertices of a selected line.
Scenario: The tool scans all features in a given shape file and populates the list of features which has at ...
4
votes
2answers
591 views
How to calculate distance between two points with esri.geometry?
The function http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_geometry/esri.geometry.getLength should calculate distances between points.
When I am trying to calculate distance ...
3
votes
1answer
157 views
Geometry Conversion Problem
How do I convert from an ESRI.ArcGIS.Geometry.IPoint to an ESRI.ArcGIS.Client.Graphic point object?
In other words, I'm wanting to convert from an IGeometry to a runtime geometry, I guess.
5
votes
0answers
99 views
Why do file geodatabase and SDE readers produce different fme_geometry types?
I have one very simple workbench that I am running against both SDE (9.3) and FGDB (10.0) sources.
I noticed two different fme_geometry values for same type of objects.
For the first one, i.e SDE ...
2
votes
0answers
86 views
how to convert lat and longitude into distance near poles?
I am trying to convert latitude and longitude into meters in polar regions. I am looking for higher accuracy upto 0.00 meters preferably. I tried the haversine formula but it doesnt seem to be ...
6
votes
3answers
226 views
What geometric attributes do polygons possess, and how can these be used to filter features?
Given a polygon featureclass containing many polygons of different sizes and shapes, which geometric attributes (area, perimeter, etc) could be used to filter the polygons? It's probably best to ask ...
1
vote
0answers
180 views
ArcGIS/arcpy: Geometry object comparison methods not working. Do they take z values into account?
I have an arcpy script that makes calculations based on an input PolygonZ feature class. What I need to do in several places in the script is test whether a point falls within a polygon in 2D. In ...
5
votes
1answer
127 views
How can I increase performance on inserting features with polygon geometry?
I have a problem when inserting features with polygon feature class in FGDB. This is my code:
... initialising some fields (does not affect performance)
m_featureBuffer.Shape = ...
0
votes
1answer
293 views
ArcGIS/arcpy: Can a variable be set to reference an in_memory workspace object?
This is an offshoot question related to a question I posted earlier. I have the following arcpy code that inputs a Python list of polygon geometry objects to the Union_analysis tool, which then ...
0
votes
1answer
392 views
ArcGIS/arcpy: Input of in-memory geometry object to Dissolve tool in arcpy script throws Error 000732, input doesn't exist or is not supported
In an arcpy script, I run a Union on a list of geometry objects. The output is set to an empty geometry object. The Union runs fine. What I am trying to do is then feed that output into the ...
4
votes
2answers
84 views
How can I dismantle and reassemble a polyline by joining each point to its nearest neighboring point?
How can I reconfigure a PolylineMZ feature class in a way as shown in the image below?
I have a feature class (PolylineMZ) which contains x-sections. Some x-sections (polylines) are badly constructed ...
4
votes
2answers
621 views
How to update geometry in ArcObjects?
I'm just starting with ArcObjects and I want to update coordinates of geometry vertices. Specifically, I want to swap X, Y coordinates for each vertex of polygons (which can be multipart and have ...
0
votes
2answers
670 views
Calculating shape perimeter/area per zone in ArcGis 10
How can I calculate geometrical features of polygon (perimeter and area) per zone (similar to zonal stats for rasters)? I have a square fishnet (approx 20x35, 1 square kilometer each) and I need to ...
3
votes
1answer
414 views
How can I create an empty feature class in a file geodatabase based on the schema of an SDE feature class?
I have 150+ feature classes in SDE for which I need to create an empty feature class in a file geodatabase. For these feature classes I need to import the attributes and the name of the feature class ...
1
vote
1answer
576 views
How to create multipart line and polygon with interior ring in ArcGIS Python?
My objective is to swap X,Y coordinates of feature classes using Python and arcgisscripting.
Based on help examples, I managed to write script which reads and writes all geometry types.
The problem ...
7
votes
2answers
3k views
Using python in ArcGIS, create a line of varying distance from an origin point
What I'm trying to do is create a line feature from a single point, using a set distance and angle. Using ArcGIS and Python (I hope). Here's the scenario:
Say I have a point at these coordinates: ...
3
votes
4answers
631 views
Update geometry(polygon) of shape file based on a point layer
I have two shape files.
Polygon shape file
Point file contains some points.
Now i want to delete all the vertex of polygon shape file which are available in point file.
I am using ...
3
votes
2answers
476 views
Way to Ensure that the Image Centroid is Within Image Bounds
My application uses the ArcGIS Silverlight API to select polygons from a map layer. It uses the Geometry.Extent.GetCenter() method to get the centroid of the shape and add a thumbtack image at those ...
3
votes
1answer
430 views
Is it possible to figure out which “Path”(PointCollection) is clicked on within a PolyLine?
I am using ArcGIS WPF's Polyline to plot several lines (PointCollections). Adding a Path(PointCollection) looks something like this.
PointCollection collection = new PointCollection();
PolyLine ...
9
votes
4answers
900 views
comparing two DEMs
i have two Lidar las files, one is original let's say with X points. And the other is copy of the first las file but with Y points, where Y is less than X. Now, i wanted to compare how the Digital ...