On a map, a closed shape defined by a connected sequence of x,y coordinate pairs, where the first and last coordinate pair are the same and all other pairs are unique.

learn more… | top users | synonyms

1
vote
2answers
692 views

Where to find the variables of QgsPolygon and QgsPolyline?

now I want to use QgsPolygon (and Qgspolyline,too) class in python I have a example by using QgsPoint but I don't know how to use in QgsPolygon following is my Qgspoint example feature = ...
1
vote
2answers
574 views

How to shift polygons by updating their details in R

I have two polygon shapefiles and I want to see to what extent the observed amount of overlap is due to chance. I'd like to randomly move the polygons in one shapefile to new locations, measure the ...
2
votes
1answer
1k views

How to perform a cascaded combine from python script in QGIS?

I'm working with a large dataset, and I need to be able to combine up to 400,000 polygons. I have been using the QgsGeometry::combine(QgsGeometry* geometry) function and simply looping over all ...
4
votes
2answers
1k views

How to average values in a point layer with respect to polygon layer in QGIS?

I am new to GIS and have the following problem: I have 2 layers: a point layer with a column that contains numbers (pollution index from specific measurement point) and a polygon layer with different ...
1
vote
1answer
3k views

How to write a point-in-polygon query for Postgis?

I'm trying to write a query in Postgis which will return all rows where a dynamically changing longitude/latitude point resides within the geometric polygon of that row (in the geom column). This is ...
7
votes
1answer
8k views

Joining polygons in R

I am wondering how to join spatial polygons using R code? I'm working with census data where certain areas change over time and I wish to join the polygons and the corresponding data and simply ...
7
votes
2answers
3k views

How do I get that polygon from Javascript ArcGIS API?

I would like to have a user draw a Polygon (or Line) onto a web map with the Javascript ArcGIS API drawing tools. For the life of me I can't figure out how to pull that polygon from the client and get ...
1
vote
4answers
316 views

Web service to see postgis polygons

Is there any website or web service where I throw a polygon postgis and he show me on the map this polygon. Example: I put this POLYGON((0 0, 1 0, 1 1, 0 1, 0 0)) and the service show me the ...
0
votes
1answer
201 views

QGIS create point data attribute as the name of the polygon it falls in

I'm working in QGIS with a point data set overlaying a farm with 140 fields. While I can analyse the points from each field individually, I would rather use an awk script to calculate statistics I ...
3
votes
3answers
333 views

Is there Shape Metrics Toolbox or equivalent for ArcGIS 10?

I need to compute the geometric properties (e.g. contiguity index, dispersion index etc.) of a series of polygons and I would like to use the Shape Metrics Toolbox. I am using ArcGis 10 and the ...
1
vote
1answer
161 views

How to paste pictures into data frame?

I have a polygon feature class and I want to trace (select with a polygon) a picture that is solely comprised of a couple of interlocking letters. In ArcMap when I would do this I would simply drag ...
6
votes
1answer
1k views

Creating Multi-Part Polygons that touch internally using ArcGIS for Desktop?

I have a set of parcels as illustrated in the image below. There are currently no multi-part features in dataset. What I would like to do is to merge (not the right word) all of the parcels with same ...
1
vote
2answers
2k views

How to convert self intersecting polygon to multipolygon?

Working with the union and polygonize methods in GDAL/OGR, I often end up with self intersecting polygons. The case is one polygon which essentially consists of two polygons: In the above example, ...
1
vote
1answer
184 views

Remove parts of line that fall within a polygon

I have a polygon and two lines. How can I remove the portion of each line that falls within the polygon? # polygon coords <- matrix(c(-1.798123, -1.793072, -1.805767, -1.804129, -1.798123, ...
3
votes
2answers
374 views

Detecting ring direction of a polygon using ArcPy

I am using ArcPy in ArcGIS 10.1 to process some geometry using the arcpy.da data access module. However I have run into a problem with complex Polygons that contain inner rings/holes. From the ...
2
votes
0answers
283 views

Commit Feature WPS Split process

I develop a WebGIS application with GeoServer (2.1.1) and GeoExt (with the last version of OL). Data (polygons features) are stored in a postgis DB. I've implemented editing tools that allow users to ...
1
vote
1answer
5k views

Control view of Multi polygon in Google map

We have multipolygon WKT. We have no issue to draw all of them in Google map. Below are the codes. The only issue is that we want only the first polygon to be visible but the rest to transparent. How ...
1
vote
1answer
81 views

For each polygon, return yes/no value if it intersects another layer

I have a polygon grid overlaying several other polygon vectors. I wish to visit each polygon in the grid and ask yes/no if each of these layers fall within the grid cell or not. I can do this easily ...
13
votes
2answers
2k views

How to speed up the plotting of polygons in R?

I want to plot the country borders of North America over a raster image depicting some variable and then overlay contours on top of the plot using R. I have been successful in doing this using base ...
2
votes
0answers
269 views

Divide polygon layer by point layer in QGIS?

I have two layers - one polygon layer that is a buffer of a road layer, and one point layer that shows certain locations along that road. What I want to do is to divide/split the polygon layer at the ...
0
votes
1answer
453 views

Knowing the polygon id and getting the extent [duplicate]

I have a text box where I have the polygon Id like, "id_of_the_polygon_12345". Is it possible to get its extent and zoom onto it? I have figured out how to do it upon clicking on the map. But could ...
0
votes
2answers
1k views

How to scale/reduce my polygon without changing the central lat & long?

I am writing a VBA code to resize my polygon, I get a input as vector points(Shape file). The code below resizes it as according to my scale factor but my central latitude and longitude are also ...
0
votes
2answers
143 views

Zooming into a particular polygon

I am getting the polygon id by doing identifyParams.geometry = evt.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function(result) { var i; var ...
4
votes
2answers
146 views

“GIS” Mapping on Monument - Scaling

I have a Baroque tombstone for which I have to map the damage phenoma. Normally one can use a vector drawing programm but one has always two boundaries between the different polygons. Questions: Is it ...
8
votes
1answer
595 views

How to automatically reduce polygon size?

I am working with two polygon layers (counties & states) which I will 'intersect' to find which counties are within which states. Due to data inaccuracies I have to change all county polygons and ...
13
votes
4answers
11k views

How to insert a GeoJSON polygon into a PostGIS table?

I need to insert a polygon from GeoJSON to my PostGIS table. This is how the SQL query looks like. INSERT INTO tablename (name, polygon) VALUES ( 'Name', ST_GeomFromGeoJSON ( { ...
4
votes
1answer
413 views

Raster to vector with gaps in Landsat ETM

I need to find size of water area from a raster (jpg) using QGIS 1.8.0-Lisboa. The raster is a Landsat image with gaps of data in it. I used Polygonize, but the output file shows wrong polygon size ...
2
votes
0answers
528 views

Clipped raster leaks outside polygons

I am trying to clip a raster (DEM) with a polygon layer in ArcGIS10.1, using Data Management>>Raster>>Clip. Basically the clipped raster has many pixels outside the polygon boundary, mainly for thin ...
5
votes
2answers
735 views

inner convex-hulls in a set of 2D points

A set of 2D Points are scattered randomly (i.e., no specified pattern), we are interested in finding all inner-convex-hulls (ICH) in an order of largest in area to a minimum until the entire study ...
1
vote
0answers
354 views

Point Within, Query in a buffer polygon in WMS like in ArcGIS ESRI

I need to do a query to filter the result inside a polygon or geometry, like this: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/query_buffer.html But, i need to do this in a opengeo ...
1
vote
1answer
606 views

Polygon to fill gap

Using postgis I want to fill a gap between other polygons. Can you help with some directions what functions to use ? Thank you and sorry if the question is rather noobish. Image to explain from ...
1
vote
2answers
61 views

Field within a Field - Donut Parcel?

Firstly, apologies as I'm a newbie and have only been studying GIS for a few months. I am digitising field boundaries and have a field within a field, and am wondering what the best way of ...
4
votes
3answers
3k views

How to add a polygon from PostGIS ST_AsGeoJSON into Leaflet?

I try to use the following function to add polygons to my Leaflet map. function polygon(geojson) { alert(geojson); // alert for testing layer = L.geoJson(geojson); layer.addTo(map); } ...
2
votes
2answers
4k views

Dividing polygon with another polygon? [closed]

I am working in ArcMap 10. I am trying to divide a polygon with another polygon. I don´t want to clip any part away, but only to divide the polygon? The polygons are stored in two different layers. ...
2
votes
1answer
1k views

How to fetch polygons from PostGIS into a PHP array?

Currently I fetch polygons from a database table using ST_AsText(). The results are in text format, like this: POLYGON((84 104,212 48,321 122,243 179,275 238,131 240,84 104)) I am not quite sure if ...
2
votes
2answers
4k views

Find and list all polygons that overlap with another polygon

I am working with two polygon layers which overlap but are unrelated (one is congressional district boundaries, the other is MPO area boundaries). I would like to generate a list of all the ...
5
votes
4answers
863 views

How to computational efficiently check if there are any overlapping polygons in a group of polygons?

I need to do some processing with groups of polygons. If any of the polygons in the group overlaps other polygon the result is unpredictable and don't throw any error. So, I need to detect if there is ...
0
votes
2answers
2k views

Cannot insert simple geometry data

I installed PostgreSQL 9.2.4 and PostGIS 2.0.3 on my Windows 8 machine. Then I created a table using phpPgAdmin and added a geometry column using the following statement. SELECT ...
0
votes
1answer
6k views

Merge attribute of points into a polygon : Arcmap 10

I have points layer which the attribute looks like this: FID Shape ID Lat Long 0 Point 2065 -5.51666 106.48333 1 Point 2319 21.93333 120.73366 I also have polygons layer : FID Shape ...
1
vote
3answers
4k views

Openlayers vector feature coordinates are not transforming,

I have a OpenLayers vector with a single feature [0]. It's coordinates are in the map projection (EPSG:3413) and I want them in WGS84 (EPSG:4326) decimal degrees. I have the following code which ...
17
votes
3answers
5k views

How to find the maximum-area-rectangle inside a convex polygon?

In this post we are looking for algorithms / ideas on how to find the maximum-area-rectangle inside a convex polygon. In the following figure, numbers are the areas of the fitted rectangles. As shown ...
1
vote
0answers
63 views

Are polygons created in Arcpy built in any order?

My script uses a search cursor to evaluate polyline coordinates and build polygons based on those coordinates. The script works well, but I am curious as to whether anyone knows the order (if there ...
3
votes
1answer
436 views

Masking/removing polygons from shapefile

I have a shapefile containing the road traffic noise of a city. The shapefile has 5 columns, where 'noise_in' (noise interval) ranging from 1-5 is included. I want to remove/mask the road noise from ...
0
votes
1answer
511 views

OpenLayers generate random polygon

I have a world map. I need randomly to generate polygons and render them on map. I have no problem with rendering, but can anybody suggest how to generate polygons with random geometry? (I need n ...
3
votes
1answer
187 views

How can I check if a multipolygon can be represented as a simple polygon?

I have a large (30m+ records) spatial data set I have imported into a PostGIS database. I did not expect to find multipolygons in the data set, but it does have a few of them. I'd like to take a ...
3
votes
1answer
391 views

How to determine the longest side of a polygon in QGIS?

Is there a possibility to determine the longest side of a polygon with QGIS? As I need to do that for hundreds of polygons I would prefer an automized method (like a plugin). So far my idea was: ...
1
vote
1answer
173 views

Polygon Nodes do not have separate coordinates [duplicate]

I'm attempting to measure the distance of a series of points from a smaller number of polygons. As a first step, I've changed the polygons into points along their border, via the Vector> Geometry ...
3
votes
1answer
3k views

Problems converting polygon to point [closed]

I'm trying to convert polygons to points with ArcGIS 10. My polygon layer has 2 attributes that I want to give to my point layer. I'm using the Feature to Point function from the Arctoolbox, but it ...
3
votes
1answer
6k views

How to combine (join?) two overlapping polygons to determine combined area they cover?

How do I combine (join?) two overlapping polygons to determine the combined area they cover in ArcGIS 10? I am sure the Geoprocessing tools can do it, but just how eludes me.
1
vote
1answer
607 views

Aggregate points with same values to polygons

I have a shapefile with 2M measurement points (each measurement point has a resolution of a 1/10). How can I aggregate points around each other if and create polygons out of it? They do not have to ...