(1) abstract geometry; (2) storing geographic data in projected coordinates; (3) a generic ESRI term for vector features; a class for "geometry" objects.

learn more… | top users | synonyms

4
votes
1answer
36 views

Writing points to a file

Trying to write the city name and point coords to a file. The following works with a polygon shapefile but not the point shapefile. I know I'm missing something basic. import arcpy # Set up the ...
1
vote
2answers
88 views

How to get ST_MakeLine ready for QGIS?

CREATE VIEW new_line AS SELECT point1.gid, ST_MakeLine(point1.geom, point2.geom) FROM point1, point2 WHERE point1.gid = point2.gid; It's possible to load the layer but QGIS says 'There is no entry ...
1
vote
1answer
244 views

ST-Links convert Feature Class to DB Table error

I'm using ArcMap with the ST-Links SpatialKit Conversion tool to convert a Feature Class to a DB Table. But I'm getting an error: ERROR: 42601: type modifier is not allowed for type "geometry". I ...
0
votes
1answer
35 views

Arcpy: creating a line on an existing line based on points' coordinates

I have a point which is some meters away from an existing line: This point should be snapped to the line (to the closest part) and then, based on the points' new coordinates, a new line Feature ...
0
votes
0answers
36 views

What is a polygon, a ring, a part in arcpy, ArcMap-editor for the OGC and in GIS generally

I ran in some difficulties to the definition of the term polygon as i tried to understand arcpy's geometry model. (ArcPy getPartCount always returns 1 on multipart polygons?) I ended up in consulting ...
0
votes
1answer
138 views

MS SQL table with geometry field to feature class

I have a table in a native SQL database (no geodatabase, dc_geobank_public.sde in the code) with cca. 300 000 records and 18 fields. Two of the field contains projected X and Y coordinates, and one ...
0
votes
1answer
202 views

Calculate distance between two points in projection EPSG:900913

I have two points in 900913 projection and I want to calculate the distance between the points. I don't want to transform points to 4326 and then calculate. How do I do this?
1
vote
0answers
23 views

Singlepart to multipart not producing results [on hold]

I have a line - a street downloaded from OSM. It is in separate parts geometrically, but is contained in one record in the attribute table. That means it is only one row. I would like to split this ...
21
votes
5answers
39k views

How to get coordinates from geometry in PostGIS?

This line: SELECT geom FROM myLayer.geom will return a hex value, i'm wondering how would it be possible to get decimal values, a result that look likes human-readable coordination? Regards,
1
vote
2answers
50 views

How to get point location?

I load a VectorLayer which contain coordinate location point. Now, I have a VectorLayer and I would like to get the point location on a item of this layer in order to center a map to this point. Is ...
3
votes
1answer
595 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 ...
2
votes
2answers
51 views

Copy geometry from one layer onto attributes of another?

I have two polygon layers, A and B, that have the same features but totally different attributes. I want to use the attributes from layer A, but I want them to have the more accurate geometry from ...
0
votes
0answers
42 views

Increasing Clickable Area of OpenLayers Polylines

I'm currently working on a web application where there are OpenLayers geometries that are clickable. However, since the size of the geometries can be rather small, it can be hard to click on them. ...
3
votes
0answers
32 views

How do I handle heading in UTM coordinates?

In a nutshell: Given a standard (angular) GPS measurement and heading, relative geographic north. If i take my GPS coordinates and turn them into UTM coordinates, do I also have to convert my heading? ...
0
votes
0answers
27 views

Show polygon geometry from SQL Server on Google Maps

I have downloaded Canadian Postal FSA's boundaries (Like Zip boundaries in the USA) from stats Canada and I have imported the shape files in SQL Server. I want to be able to Query the Database and ...
1
vote
1answer
415 views

SQL Data: How to draw circles with a radius based on lat/long data in DB

I have a . sqlite file with many columns, two of those columns being lat and long. I've been searching around for a bit now (don't think I want to be using BuildCircleMbr from spatialite?) but I'm ...
1
vote
2answers
198 views

Intersection point of polygon and the line created by two points ArcPy

I have polygon layer. I selected the most distant vertex from centroid (picture: point A). (How to do that is in the answer here: Select the most distant vertex from polygon's centroid using ...
3
votes
3answers
664 views

Why is geography faster than geometry for distance calculations?

Intuitively, I thought geometry would be faster than geography distance calculations, but this says otherwise: ...
0
votes
1answer
823 views

SQL Geometry Query similar to Select by Centroid

Does anyone know if it's possible to query SQL geometry by something like 'centroid of polygon'...similar to ArcMap's select by location? I'm using SQL Server 2008 R2 as the DBMS. I have two polygon ...
12
votes
3answers
25k views

Create a geography/geometry column from x and y fields - SQL Server 2008

I'm new in SQL Server 2008 and I hope you will understand my question/need. Thus, I have a table which contains 3 fields (Name, Lat and Long) in my data base (spatial). I want to create a ...
-2
votes
0answers
57 views

Running geometry check on all feature classes in personal/file geodatabase?

Anybody can help me out and build a small Python script to do the following: browsing though all feature classes (also include those in the dataset) in an personal or file geodatabase Run the ...
1
vote
1answer
28 views

Calculate point location with direction and range

I have a latitude and longitude coordinate pair and I want to find another point location (returning lat and long) but only have the angle/direction and distance from the first point. How can I find ...
0
votes
1answer
51 views

Visualize WKT polygon on a map

Is there any tool that will let me visualize a WKT polygon on a world map such as google maps?
3
votes
3answers
769 views

Update geometry(polygon) of shape file based on a point layer

I have two shapefiles. Polygon shapefile 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 ArcGIS ...
1
vote
1answer
913 views

Get geometry from OpenLayers.Control.WMSGetFeatureInfo JSON

I need to store the geometry of a certain feature with OpenLayers.Control.WMSGetFeatureInfo and i'm using these parameters to get it in json format output:'features', infoFormat:'application/json', ...
1
vote
1answer
46 views

Calculate location on line with known azimuth to point

I have the following situation (consider distances up to 300m - without great circle etc. affects): How can I calculate the unknown location when I have all other locations in the triangle and ...
1
vote
1answer
263 views

Using M 'Measure' value in SQL Server 2008

MS Sql Server 2008 geometry type supports adding Z and M values to geometry objects, including linestrings. However, I cannot find any way to make use of these values, since methods such as ...
2
votes
2answers
46 views

Feature Geometry/shape changed event in arcObjects

I have a feature class(polyline). there are 5 features in the feature class. I want to get notification when user changed property any of feature of feature class. How it can be achieved ? I am using ...
1
vote
1answer
413 views

Is it possible to draw polygons along Google Maps Polyline?

Web application has option that user draws polyline on Google Map. After he draws it, there is a button 'Add polygons', which should draw polygons along that line, based on some width and height in ...
1
vote
1answer
50 views

Can a PostGIS table or view have two geometry columns?

I am just wondering if it is possible for PostGIS to have two geometry columns. I use shapefile a lot, which has only one "Shape" column for geometry and all geometries in that column has the same ...
1
vote
1answer
40 views

Removing Interior and exterior polygons using arcpy

I have a polygon layer that has donuts and also exterior parts. Using python, I am able to get access to each part, but what I would like to know is using arcpy, once I have a part, how do I go about ...
0
votes
0answers
29 views

How to bind event to Polygon inside polygon in google maps.?

I am drawing a polygon buffer in google maps api v3 and finding number of polygon objects lying inside it.(on click) I am using oracle spatial database. on each child polygon click i need to do some ...
1
vote
1answer
64 views

Cesium JS Line Length

Is there a method to return the length of a Cesium JS polyline, in real-world units? For example, if I create a polyline: var orangeOutlined = viewer.entities.add({ name : 'Orange line with ...
4
votes
2answers
2k 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 ...
1
vote
1answer
26 views

Use Postgis to convert wkb_geometry data type to geom datatype

How would I write an ALTER statement or otherwise to convert an existing imported data column from " wkb_geometry geometry(LineString,4326)" to a geom data type? I ask because I've moved to ...
4
votes
2answers
58 views

What is the correct syntax for the geometry object's “intersect” method in ArcPy?

I'm building a script that utilizes the intersect method of the geometry class so that I can run an intersect analysis on individual polygons within a feature class. As stated here, "intersect ...
3
votes
1answer
41 views

using a linear solver to get a “centre of gravity” of a set of points

As a programmer, if I have a linear solver available. How can I formulate the following problem as a set of constrains / decisions / goals for the linear solver? I have a matrix of say 10*10, so 100 ...
4
votes
1answer
71 views

How to create trigger to check geometry validity?

I want to create trigger to check geometry validity in spatial table. I have a table: CREATE TABLE vec_geometry ( id bigserial is_valid boolean, invalid_reason character(128), geom ...
39
votes
6answers
20k views

How to find the minimum-area-rectangle for given points?

The following is another problem that I am working on it these days. As you see in the figure, (BTW, I tried to make it self-presenter) the question is: How to find the minimum-area-rectangle (MAR) ...
0
votes
0answers
32 views

How to add the geometry to google maps from geojson(retrieved as json) for a specified condition using javascript

I have a array called place_names which holds some place names. I have a GeoJSON layer loaded in CartoDB, which has three columns id, name and the_geom (which is a geometry object) that can be queried ...
1
vote
1answer
54 views

In PostGIS: how to split linestrings into their individual segments?

I have one table with many linestrings and I want to make a new table containing the individual segments of all the linestrings, no matter if they are grouped line per line or not. This is my ...
5
votes
4answers
2k views

Any .NET library to calculate polygon area?

Is there a .NET library to calculate area enclosed by polygon made up of geo coordinates (lat longs)?
1
vote
1answer
43 views

Error when writing polygon feature

I have created this array: array = ([arcpy.Point(-103.85769159, 32.181106371), arcpy.Point(-103.85769159, 32.182755629), arcpy.Point(-103.85575241, 32.182755629), arcpy.Point(-103.85575241, ...
1
vote
2answers
87 views

Error while Geoprocessing with Geometry Objects

I'm trying to use the distanceTo() mehtod to return the distance between the centroid of a polygon and a line, but I keep getting this error: "AttributeError: 'Point' object has no attribute ...
1
vote
2answers
400 views

Calculating minimum/maximum width for overlay of two polygon strips in ArcGIS or some Opensource GIS

Is there some solution for calculating minimum and maximum width for overlay of two polygon strips? When I clip these strips the result is another strip with variable width about 1 km and 20 km long. ...
1
vote
1answer
30 views

Arcobjects ConstructBuffers produces Error -2147220889?

I use the Esri-function ConstructBuffers in my arcobjects program. The call of this method produces a Error with code -2147220889. Looking up the error constants it says: ...
7
votes
2answers
83 views

Why do I get different results from PyQGIS feature.geometry().type()?

On the python console in QGIS what is the difference between the following two code snippets (activeLayer is a polygon layer): # 1) iface.activeLayer().selectedFeatures()[0].geometry().type() ...
0
votes
0answers
21 views

Geometry Location In Respect To Another Geometry

I am trying to figure out where a geometry is residing in respect to another geometry. My Image explains things better, I have Square nodes A, and B. and I have circle Child nodes X, and Y. I have all ...
2
votes
0answers
33 views

C/C++ function to return minimum set of points required to represent a geometric shape

I am looking for a method from Grass, GEOS, or similar that will delete those points in a geometry which do not affect its shape. Example 1 +----+----+ p0 p1 p2 p1 can be deleted without ...
1
vote
0answers
35 views

Using arcpy.Geometry() and attribute table?

I have Polygon layer (*.shp) and I need to calculate shortest distance between every polygon's and save it into a txt file with ID (it is in attribute table) for every polygon. example of txt file - ...