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

4
votes
3answers
171 views

How to compute the outline of multiple tracks?

I have multiple gps tracks with depth data gathered from the lake. The tracks are overlapping/intersecting. I want to get an outline polygon. I have a multi-line shp. I've tried to diffuse it in qgis ...
4
votes
1answer
273 views

Splitting polygons leaves null values

I'm trying to split polygons with overlaping line features, using Split Polygons tool from Topology toolbar. The problem I encounter is that only one from new polygons have old attributes and others ...
4
votes
1answer
3k views

Arcgis 10: Point layer, polygon line layer, draw points to the nearest polygon point or other nearest line?

I have been using arcGIS for a while now but I often get frustrated with it :( I have version 10.0 arcGIS and I'm have two layers 1) Point data (building locations) 2) a polygon shape file (outline ...
4
votes
3answers
1k views

Calculate neighborhood statistics for polygons?

I've been searching around for the answer to this (including here) and have yet to find it. I'm interested in finding out how to calculate a 'neighborhood sum' for vector, polygon data. I am aware ...
4
votes
1answer
1k views

Create overlapping polygons from contour lines

Working in ArcGIS 10, I have a set of contour lines representing density of commercial square footage, and I have a set of points representing local maxima for each peak of the dataset. For each ...
4
votes
2answers
113 views

How to programmatically delete all inner rings of a polygon layer?

I have many polygon layers, each layer containing many polygons with inner rings. I know that you can delete a ring manually with QGis (Edit -> Delete ring). I need the python equivalent to ...
4
votes
2answers
205 views

What methods exist for geohash of polygon?

GeoHash is an excellent method to code the latitude and longitude of a point into a string. It's concise, due to the use of numbers + letters, and the precision can be tuned adding characters at the ...
4
votes
2answers
214 views

Converting shapefile to raster: Character attributes

I've got a shapefile that I would like to convert into a raster, but the trick is that the attribute I want a raster version of is character data. I'm familiar with geoprocessing using GDAL (in the ...
4
votes
1answer
280 views

POSTGIS SQL - How do I remove (defined) sliver polygons

I would like assistance in writing SQL (for POSTGIS in postgresql) to remove sliver polygons (including long narrow slivers and some small irregular polygons that were erroneous 'gaps' in the original ...
4
votes
1answer
143 views

Merge polygon without attribute (in field) with nearest polygon with attribute

In the image you can see districts in BLUE with attributes (name of district) and small pieces in RED. The red polygons belong to the blue and I want to merge them. The RED are only towards the ...
4
votes
1answer
545 views

How to split a polygon using R

I have an irregular polygon which is a spatial object. I want to divide it into multiple polygons (say, n=25) with equal height. To show how I want to divide it, I've plotted grids on the ...
4
votes
1answer
253 views

Clip polygon and retain data

I have these two polygons: library(sp); library(rgeos); library(maptools) coords1 <- matrix(c(-1.841960, -1.823464, -1.838623, -1.841960, 55.663696, 55.659178, 55.650841, ...
4
votes
1answer
948 views

How to automate the drawing of polygons (square) around a number of points in QGIS?

In QGIS (or alternatively any other scripting + GIS stack), how can I automate drawing a 100km x 100km square around a number of points, with the point being dead in the center? I'd need to loop ...
4
votes
1answer
1k views

GDAL - creating vector from raster

[SOLVED] Good day! I'm looking at either gdal_contour or gdal_polygonize.py to create a vector layer file from a raster file. I can create the vector file using either method, but it's upside down ...
4
votes
1answer
2k views

Convert shapefile lines to a polygon in GRASS

I have a shapefile of a map that is the outline of a number of islands. I would like to convert the lines into polygons (ie all islands filled in) using GRASS. I searched on how to do this with GRASS ...
4
votes
0answers
55 views

Is there a limit to the number of polygon points you can export to CSV in QGIS 2.4?

Using QGIS 2.4 I am currently importing a csv file with ~30,000 polygons (polygons in WKT format). I also have a United States shapefile. I have used the Clip function to get only the polygons that ...
4
votes
0answers
132 views

Find and destroy duplicate OSM multipolygon/polygons in TileMill/PostGIS

In OpenStreetMap there are sometimes multipolygons where attributes are present on both the polygon and the multipolygon relation, such as the Grampians National Park: ...
4
votes
1answer
561 views

MongoDB: Search for polygons which have a certain location

Good day :). I am trying to implement a search feature on MongoDB using Mongoose.js , the short version of which is this: I tag locations on a map as polygons. and give them names. Then when an user ...
4
votes
0answers
92 views

Reducing Polygons [closed]

I am merging several data sources into one final answer via a fishnet. My problem is I have landcoverage with multiple attributes unioned to a fishnet. Now I want to eliminate the smaller polygons ...
4
votes
0answers
285 views

How to write a script to square polygon corners?

I'm looking for a script that will square the corners of polygons that are near 90 degrees but not exactly. Near could be dealt with via a variable, for example within 5 degrees of 90 (85 - 95 ...
3
votes
3answers
964 views

How to export polygon coordinates to CSV (not WKT)?

I am new to QGIS, and I am now trying to export polygon coordinates from a shape file to a csv file, but so far all my attempts have failed. I have found numerous questions and answers about this, but ...
3
votes
3answers
425 views

How do I sort polygons by their latitude?

We have a set of polygons which we would like to sort and number according to their latitude. This will make it easier for local authorities to relate to the numbers of the objects. I have looked ...
3
votes
3answers
203 views

How to count the sides or edges of a polygon?

I wondered if it is possible to determine the number of sides / edges (not vertices) that a polygon has. Imagine the following case. There is a shapefile with 10 polygons. Is there any way to ...
3
votes
2answers
2k views

How to edit Shapefile Attributes?

How might I go about exporting a polygon shapefile (e.g. CSV) so that attributes (not geometry) are editable by others, and importing it with the changed attributes (of which there are several columns ...
3
votes
2answers
747 views

How to Select “Inverse” of intersection of two polygon layers?

I'm wondering if there's a way to intersect two polygon layers, take the intersection, and remove that from one of the polygon layers, making a new layer out of whatever is left over? Basically, the ...
3
votes
1answer
3k views

How do I rotate the polygon about an anchor point using python script?

I know there would be no tool in arcpy module as such but mignt have in third party modules. I however tried taking the vertices of the polygon and moving using the below formula. but did not get the ...
3
votes
2answers
238 views

Overlaying polygon filled with solid colour with diagonal lines in QGIS

I'm making a vegetation survey map using the UK phase 1 survey colour codes. The code for marshy grassland, for example, is orange overlain with purple diagonal lines. For the moment I've created ...
3
votes
2answers
2k views

How to change the vertex style for editing?

When I use drag feature, then the circles on the polygon edge has the same style. For example, this OpenLayers site. I need to change it, I mean they need to be a different color. What is their ...
3
votes
2answers
862 views

Generate non-overlapping shapes from a buffer

I have a collection of points, and I need to generate shapes around these points. Let's assume that these points are locations of offices and that the shapes are the 'area of responsibility' around ...
3
votes
2answers
5k views

How can I display this polygon in Google Maps, properly

NOTE: this question is sorta like a follow-on question to this original GIS Question I asked. In that question, the main suggestion was that I was trying to show two polys. Now, I'm asking about a ...
3
votes
3answers
101 views

Using SVG from Wikipedia to fill polygon?

I'm trying to use the flag of each region in Italy to fill each region's polygon. I have downloaded the shapefile of Administrative areas for Italy from diva-gis and am now attempting to fill each of ...
3
votes
1answer
84 views

Is there an alternative to the Integrate tool that will not change one of the inputs

I have two polygon layers, and would like to snap the outlines of one of them (colored poly's) to the other (grey) without changing the grey in anyway (so Integrate seems out). It should only snap if ...
3
votes
1answer
823 views

How to add CSV data with no coordinates to a polygon layer in QGIS?

I would like to add attributes from an spss database (around 300 cases) to a polygon layer in QGIS. Both datasets have a column with unique IDs. I exported the spss data to a CSV file which does not ...
3
votes
1answer
1k views

How can I get my Qgis area calculations in metres rather than degrees? My shapefiles are projected using WGS 1984 UTM fuseau 35 Sud

I am using Qgis 1.7.4 to calculate the area of polygons. My shapefiles have been projected using the coordinate system WGS 1984 UTM fuseau 35 Sud, but my area calculations are still displayed in ...
3
votes
2answers
450 views

How to select polygon features that have their centers outside of another polygon feature class

Since I only have Incorporated area feature class, how can I select census blocks that are in unincorporated area? Or not within any incorporated areas? Thank you. John
3
votes
2answers
199 views

Merge geojson polygons with WGS84 coordinate

I have a Geojson file with some adjacent polygons and I want to merge them into one. I know it's a recurrent question but I can't find information for polygons with latitude and longitude coordinates ...
3
votes
1answer
69 views

How do I save a polygon once I have created it in editor?

I am attempting to create a new polygon. I go to ArcCatolog>New>Shapefile and make sure Feature type is set to polygon. I create the polygon and if I click save edits or stop editing, it disappears. ...
3
votes
2answers
137 views

Can I convert the sharp edges of a polygon easily to round edges?

I use the python module "shapely" to make Polygons (like below). Can I convert the sharp edges of a polygon easily to round edges? Such that when I have unified some polygons I could issue a command ...
3
votes
1answer
133 views

Tornado Data Points: Linking 2 Points in QGIS on the Same Row

So I've got these tornado .csv files that have two latitude & longitude entries with the left-most in the table being the beginning point and the right-most being the ending point of the tornado, ...
3
votes
2answers
754 views

How to convert polygon layer to txt files?

Is there any way to convert polygons that do not have coordinates in the attribute table to a txt file with coordinates. I will be using the txt file in a different software (not ArcGIS), so I need ...
3
votes
1answer
3k views

Create polygon based on the spatial extent in arcgis

Is there anyway that I can input 1) The Coordinates System (projected is OK) 2) The boundingbox and create a rectangle polygon based on these?
3
votes
1answer
221 views

PostGIS - when I add a polygon, delete overlapping areas in other layers

I'm starting to work with PostGIS and I'd like to solve the following problem: In my database, I have multiple land use class layers, for example: "residential", "industrial", "commercial". The ...
3
votes
3answers
1k 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); } ...
3
votes
2answers
605 views

How to filter out multipart polygons and then buffer?

I've written a small script trying to accomplish the task described in the question title. It basically looks like: in_fc = '...' # Some shapefile goes here # Get the fields (column names) of the ...
3
votes
1answer
3k views

How can GeoJson polygons be colored programmatically using OpenLayers?

I'm experimenting with dynamically setting the color values of a geojson polygon. In my geojson file, there is an attribute for each polygon called pop_den. I am trying to update the fillcolor of the ...
3
votes
2answers
2k views

How to perform spatial queries on polygons in mongodb?

I will build a GIS system based on polygons, not just points. I wanted to use mongodb or postgis. how do this in mongodb? Query A - get the center of a polygon Query B - distance between two ...
3
votes
3answers
473 views

Selecting polygons with a minimum internal straight line value - ArcGIS 10

I have a map of polygons representing forest stands. I am trying to sort through them to find those polygons that have a minimum internal distance of 200 m in a straight line (my field sampling will ...
3
votes
2answers
3k views

Measure the area of a polygon resulting from the intersection of two other polygons?

How can I measure the area of a polygon resulting from the intersection of two other polygons? If I use the measure tool or open the attribute table for the resulting polygon, it shows me the areas of ...
3
votes
2answers
3k views

Label *beside* polygons in ArcMap 10?

I try to add labels to polygons in ArcMap 10 based on a field in the corresponding attribute table. However, the labels always appear inside the polygon, and I can't find an option that lets me put ...
3
votes
1answer
139 views

Displaying adjacent polygon lines beside each other instead of overlapping

I would like to display adjacent polygons with the line work beside each other, not one on top of the other for that shared boundary. I do not want to edit the polygon boundaries - only want to ...