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
1answer
1k views

ArcMap 10.1 SP Spatial Join Problem (lines within polygon)

I have a line layer (faults) and a polygon layer (fishnet grid). The fishnet has a risk of earthquake attributed to each polygon. I want to take that risk value and give it to the fault lines which ...
0
votes
2answers
76 views

Select area which is at least x meters away from other geometries

In my table I have the build-up area from a region as a big number of polygons. urban_area: id | name | geometry(polygon) I was wondering if and how I would be able to find the area within a ...
25
votes
4answers
4k views

What are the benefits of hexagonal sampling polygons?

I am always on the lookout for useful methods to sample or partition study areas (usually in the form of raster datasets) into smaller units. Recently, I read an ESRI blog post about a new tool for ...
2
votes
0answers
50 views

how to assign unique attribute value per neighborhood? [duplicate]

I have a feature class of adjacent polygons and I want to assign an integer attribute value to my polygons based on the following rules : a polygon must not have the same attribute value than any of ...
2
votes
3answers
657 views

Shapefile with overlapping polygons: calculate average values

I have a very big polygon shapefile with hundreds of features, often overlapping each other. Each of these features has a value stored in the attribute table. I simply need to calculate the average ...
2
votes
3answers
750 views

How can I change map scale in ArcMap, after I'm almost finished digitizing? [closed]

I'm just about to design a map that represents different areas in my immediate living environment. I Unfortunately made a big mistake at the beginning of my project. The current scale is given by ...
2
votes
1answer
1k views

Creating polygons using offsets from other polygons

Wondering if you I might get some advice on how to best create a polygon within a polygon based on an offset in ArcGIS. I have one layer that is a cadastral layer and another that is a building ...
1
vote
0answers
120 views

Need to enhance a function for creating quadrants within polygons

I wrote a function that creates arbitrary quadrants within a polygon SELECT (quadrant(20,0.0,90)).* The first parameter is the polygon ID, the second one is the start angle and with the third one ...
2
votes
2answers
3k views

Polygon country boundaries in decimal degrees

Using Google Maps, I'd like to create draggable polygons (on the fly) of country boundaries (they don't need to be particularly precise). Something similar to this, but for countries. So I want the ...
1
vote
1answer
735 views

How to improve speed of rendering polygons from Postgis in Leaflet?

I want to improve speed of rendering polygons in my Leaflet map. Polygons are stored in Postgis, and are rendered with select query with bbox. I wonder can I cache somehow those polygons? I read ...
1
vote
2answers
444 views

unionize intersections of merged polygons

[Updated quesion] I am using the following code to merged polygons from shapefiles for the purpose of calculating the surface area; library(maptools) library(rgdal) library(rgeos) #enter slots, ...
1
vote
1answer
890 views

How to extracting raster data to multiple polygons?

I have a reclassified raster dataset (10 classes) and I want to find out the area of each class contained within multiple (hundreds-to-thousands) polygons. I have all the polygons in the same ...
1
vote
1answer
211 views

Polygons not appearing when creating shapefile based on criteria using GDAL and Python (area calculated properly)

I am looping over the features of a shapefile containing multiple polygons. If certain criteria are met, I want to save the current feature in a new shapefile. I am doing this using GDAL 1.10.0 with ...
3
votes
1answer
460 views

Determine when I have crossed state line?

We are currently using the Google Maps API to get route information and total mileage but we would like to determine when we are crossing into a new state. When we return the route information we can ...
0
votes
0answers
148 views

Can I simplify polygons in QGIS by Size?

Just wondering if it's possible in QGIS to simplify polygons based on size? I've done it many times using the tolerance level to reduce the overall size however in this case each polygon cannot be ...
4
votes
2answers
4k 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 ...
1
vote
2answers
124 views

How to convert small overlaping polygon features to inner ring in QGIS

I have a polygon vector layer with overlapping features (like below) and I would like to convert the features that are fully contained inside the bigger polygons (ie feature 2 and 4 below) into inner ...
0
votes
2answers
478 views

Problems with Polygon Reshape Feature [closed]

I've created a polygon and closed my project, after opening the project again, i can't use the Reshape Feature tool in that specific polygon. But if I create a new polygon in the same shapefile I can ...
3
votes
4answers
2k views

How to remove vertices or lines within a polygon?

I have transformed a *.dxf-file into a polygon shape-file. In many of the polygons i have lines whicht do not belong there but i can not delete them as i normally delete vertices on polygons by ...
0
votes
0answers
233 views

Calculating distances between boundaries of polygons with Python

I have two sets of shape-files which have to be worked on within a Python Script. Those two Shape Files might differ from each other (same thematic content, but 2 different epochs). If there occurred ...
3
votes
1answer
152 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
672 views

Comparing 2 polygon shapefiles for differences [duplicate]

I have 7 shapefiles, each representing a year, all containing lots of polygons (c. 500,000). My aim is to take any 2 of them and compare how they have changed in terms of size and shape of polygon. (i ...
2
votes
4answers
2k views

Merge large number of polygons using QGIS

I have a series of polygons that are the output of another GIS program - I need to merge the polygons into a single polygon. I have tried a couple of different methods with no luck. I have tried to ...
2
votes
3answers
153 views

How to highlight polygons within another polygon?

I want to symbolize public buildings in OSM data. For Example: There is a polygon and in column "amenity" it has the value "school". But i don't want to highlight this polygon, but the buildings ...
3
votes
2answers
5k views

Determine if point is within an irregular polygon using Python

I would like to create a mask of a grid where points are evaluated as either 1's or 0's depending on if they lay outside of an irregular (i.e. not rectangular) polygon. I have a set of high-latitude ...
2
votes
1answer
42 views

Automatically chopping lumps off polygons

I have a load of polygons that were originally digitised from CAD. These unfortunately include traingles that were used to sybolise the direction the polygon is facing. As can be seen here: The ...
2
votes
0answers
233 views

Joining nearest neighbor small polygons using R

The figure shows a plot of numerous polygons (zoom in) made from a raster file by require(sp) require(raster) pol100 <- rasterToPolygons(r, fun=function(x){x==1}, dissolve=FALSE) There polygon ...
0
votes
1answer
188 views

Visualizing information when click in polygon‏ - Spatial join

I am new to cartodb, right now I am trying to do something similar to the cartodb tutorial: Create your first map with CartoDB.js, but with polygons using my own map. For example: I did a spatial ...
2
votes
3answers
473 views

Convert surveyor's calls in excel table to polygon shapefile

Do you know of a way to take surveyor's calls from an excel file (for example: N35-45-15W 60.0 ft, etc) and have them generate polygon shapefiles point by point in GIS? I know you can easily do this ...
3
votes
1answer
78 views

How to re-ID polygons with sapply instead of for loop

I have a line of code that renames the id's of polygons in a SpatialPolygonsDataFrame by directly manipulating the ID slot of the polygon. I'm a bit slow when it comes to sapply, having used for loops ...
1
vote
2answers
325 views

How to extract common outline of multiple polygons with code?

I'm not really asking for a chunk of code to do this, but more of an algorithm I can work with myself. For example, this is the state of Maine, obviously, and I have the points of each county ...
0
votes
1answer
805 views

How to calculate the percentage of distribution in each polygon?

I have binary map for disease suitable area and I want to calculate the percentage using pixel count in each polygon how can I do that? I use zonal histogram and do have frequency for each polygon is ...
2
votes
0answers
150 views

Using ST_Affine() and trans_param() functions on vector layer

After reading this post How to georeference a vector layer with control points? I decided to give it a try to move/rotation/scale a polygon using Postgis. I have two polygons, polygon_from and ...
2
votes
2answers
309 views

Separate a polygon in different polygons depending of the distance to another polygon

I have a reference polygon "R", and others polygons (in grey). I want to separate each grey polygon in multiple polygons, depending on the distance to R with different Buffers : - The red line is R ...
3
votes
1answer
4k views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
3
votes
1answer
1k views

PostGIS: Calculate the length of just the portion of linestring that intersect with a polygon

I want to calculate the portion of the linestring that lies within the limits of a polygon. Better with an image What is the length of the portion of linestring within Province A? and within ...
0
votes
1answer
76 views

ArcGIS10 Highest point via polygon features

I am using ArcGIS 10.0 with 3D Analyst, Spatial Analyst and Military Analyst. I feel like I am halfway to solving a problem but do not seem able to completely solve it. I have a polygon shapefile ...
4
votes
1answer
303 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 ...
1
vote
1answer
2k views

How to export polygon coordinates?

How can I export each polygon-vertice's coordinate (every point coordinate of every polygon) of a polygon Geodatabase-feature class to an ascii text file (csv or txt)? I don't want to convert it to a ...
0
votes
1answer
169 views

How to automate creating box (rectangular) polygons in ArcGIS for Desktop?

Can anyone suggest a way to automate creating rectangle shaped polygons in ArcMap? If I had many 30m x 60m rectangles to digitize and I just want to click a starting corner coordinate on screen, ...
3
votes
1answer
5k views

How to calculate centroid of a polygon defined by a list of longitude/latitude points? [duplicate]

I've imported some polygons (ways) from OpenStreetMap and now want to calculate the centroids of them. For this purpose I wrote following code: final List<Point2D.Double> points = ...
1
vote
1answer
91 views

Raster Data to Polygon [closed]

I need to "translate" raster information to a set of polygons. The raster to polygon tool will not work. I created a fishnet with the same resolution of the raster and converted it to polygons. I now ...
0
votes
1answer
599 views

Search for geojson polygon in mongodb implementing a custom vector tileserver

I am building a vector tileserver in node.js using mongo 2.4.7 as database. My database contains geojson data from multiple sources and they are in many layers. It is important to render the layers ...
1
vote
1answer
5k views

Does MySQL has function which will return the points inside polygon?

I have MySQL database with polygons, and also the database with points (column longitude and column latitude), is it possible to return all points inside one polygon? Thanks!
2
votes
1answer
266 views

Does spherical equilateral triangle T contain point P?

I am working on a Python script to: compute the vertex coordinates of a geodesic sphere/icosahedron, project the triangles onto a sphere, then find which spherical triangle contains an arbitrary ...
5
votes
3answers
5k views

Intersect (analysis) of polygons generating empty output

I have previously asked a question on determining the area of polygons with another polygon boundary. Determining the area of each polygon within a polygon boundary? I came to the conculsion that ...
1
vote
0answers
379 views

Locating the centroid (center of mass) of spherical polygons

I'm trying to work out how best to locate the centroid of an arbitrary shape draped over a unit sphere, with the input being ordered (clockwise or anti-cw) vertices for the shape boundary. The density ...
2
votes
4answers
1k views

QGIS Polygon precision

Is there a way to edit the precision of polygon points in QGIS so that each coordinate has the same number of decimal places? For example, the coordinate 23.18273917, -84.29172638491 would be ...
0
votes
1answer
1k views

How to narrow the result from Nominatim with only cities and countries, no additional areas with the same name?

I'm trying to get WKT or GeoJson polygons of cities and countries from Nominatim (for example, Paris and France). I send a GET request but it returns me several results named "Paris" or "France". How ...
0
votes
3answers
2k views

How to get WKT or GEOJson by country or city name with Overpass API?

I'm trying to understand Overpass API, I'm experimenting with it, but cannot get what I expect. Overpass API doesn't return me neither polygon shapes, nor WKT, nor GEOJson, nor even a highlight of the ...