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

5
votes
2answers
9k views

How to combine adjacent polygons sharing similar trait into single polygon?

I have a large dataset of habitat classes which I have further simplified down into my own unique classes. However, it resulted in there being habitats adjacent to each other with the same forest ...
7
votes
5answers
585 views

Performing a reverse clip in ArcMap?

Is there a way to perform a 'reverse' of the clip function in ArcMap, I'm not exactly sure how to explain this so here's a diagram:
2
votes
2answers
518 views

How to divide a polygon with another polygon

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 divide the polygon? The polygons are stored in two different layers. ...
3
votes
3answers
2k views

Openlayers remove previously drawn polygon on starting to draw next one

Objective: At any point of time there SHOULD only be zero/one polygon(s) on a vector layer with a polygon control. I need the previous polygon to be removed as soon as user starts drawing the first ...
2
votes
1answer
210 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 ...
2
votes
2answers
92 views

Determining closest representation of polygon as collection of points+radii

Have a bit of a tough question, which I realize there may not be an easy solution to. Figured what better place to ask. I'm attempting to transform a polygon into a series of arbitrary points with ...
1
vote
1answer
18 views

MySQL Polygon (Spatial) Insert Statement works sporadically

I know that MySQL doesn't have great spatial support at the moment, but is it that buggy that my insert statements would work sporadically? In general, longer coordinates seem to be failing on insert ...
1
vote
1answer
20 views

QGIS: Clipping a line layer using a polygon and getting an empty shapefile

I am using QGIS 2.2.0 and want to clip a line layer (roads) so that only those inside a polygon are shown. When I do this using Vector->Geoprocessing Tools->Clip I only get an empty shapefile as an ...
1
vote
1answer
17 views

How to limit Create Fishnet extent by mask & carry over attributes?

I have a 5km polygon grid of an area which is not a standard square/rectangle, it is in fact a rough ovoid made up of around 500 5km2 cells. What I want to do, eventually, is have a 100m polygon ...
2
votes
3answers
151 views

Merge 30000 polygon shapefiiles in a logical manner in ArcGIS model Builder

I have 30000 shapefiles (a1.shp to a30000.shp). They are all polygons. Each polygons has one and only one polygon feature in it. I need to Merge the polygons into 1000 shapefiles. My output would be ...
5
votes
4answers
894 views

How to remove only donut holes from polygons using ArcGIS Desktop 10.0?

I have a trick for removing the donut holes, which is converting the polygon to line and then creating polygon out of the lines and in the end merging all of them. The drawback of this strategy is ...
0
votes
2answers
41 views

How to generate polygons upto the edge of other polygons?

I am doing some work on a pipe network (blue lines) and I am trying to attribute the information about the street to the pipes. I have 2 polygon layers one of the blocks (green hatch) and one of ...
1
vote
1answer
137 views

How to construct a line from points in pyshp?

I am reading a shapefile for a pipeline and what I've noticed is that if I just draw a line from one point to the next (in the order I read them), there will be points where the line terminates, and ...
-3
votes
0answers
23 views

How to check if line is inside or outside polygon? [on hold]

Please share your knowledge on this question. Looking forward for your positive response
0
votes
0answers
23 views

Split polygon into four with respect to single point

Some days ago one of my colleague came to ask me a query related to Geometries. The situation is as....There is one Polygon(suppose a city polygon) and there is one point(suppose user's current ...
0
votes
0answers
12 views

Split/Erase/Differentiate polygon by polygon within a same layer

Is it possible to split a polygon with a polygon within the same layer in QGIS ? As in the image, i want the Polygon 2 to be split & the pointed area has to be retained as a separate polygon. ...
2
votes
2answers
257 views

Iterating polygons on a SpatialPolygonsDataFrame in R with readWKT

I have fetched some data (39 objects) from my PostGIS database and converted this data into a matrix: rs <- dbSendQuery(con, "SELECT ST_AsText(polygon_accumulation) AS ShapeWKT from ...
1
vote
1answer
85 views

How to go with…somewhat complex geological maps in QGIS?

Just a follow-up to this question QGIS: Line to polygon conversion. Not sure do i have to continue there itself... We are currently digitizing a geological map...which has 36 features in total. Some ...
0
votes
1answer
154 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 ...
1
vote
2answers
25 views

QGIS radius buffer question, can it be more circular?

Conundrum for the day, When I request a radius buffer in QGIS (Dufor). my buffer comes out as a 20-sided polygon rather than a true "circle". This has lead to some missed blocks when clipping ...
1
vote
1answer
88 views

How can a place a point symbol on the center of a polygon?

I'd like to symbolize polygons with a point at the centroid. Does anyone have suggestions how to accomplish this without creating a new shapefile? I'm using ArcGIS 10.0.
1
vote
1answer
39 views

QGIS: Line to polygon conversion

Currently we are working in a geological project..in which all the Contacts, Linear & some other geological features have to be captured. The thing is most of the features have to be Captured as ...
1
vote
1answer
33 views

Eliminate 0 Values From Raster

Arcgis 10.2 I currently have a raster file that I want to turn into a set of polygons. This will help me to create specific buffers around certain points. The extent of my values are 0, and 1. When I ...
2
votes
2answers
50 views

Shapely: Round Polygon Corners?

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 ...
2
votes
1answer
76 views

I want to split a worldwide 'road dataset' into multiple grids/blocks-extents, depending on the amount of features resides in that block-extent

I want to split a worldwide 'road dataset' into multiple grids/blocks-extents, depending on the amount of features resides in that block-extent. If the amount of features(inside that block) is still ...
1
vote
2answers
50 views

How to select island polygons witin the same polygon layer?

i have a dataset containing many polygons. In this dataset some polygons have other polygons (as a donut) inside of them. So those island polgons are contained by only one polygon but it originated ...
0
votes
2answers
22 views

merging shapefiles . an error occured during the merge operation

i am trying to merge multiple polygons of a feature. i select them via select features by polygon and use the advanced digitalizing toolbar " merge selected features" option. it worked for some but ...
2
votes
1answer
93 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 ...
2
votes
2answers
368 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
2answers
75 views

How can I group Points to make polygon via Python

I have an array of coordinates Point= [lat,long] ListPoint= [[38.203655,-76.113281],[38.10,-76.12],..] I wanna make a polygon that contains all these points ? There is a project developed by ...
0
votes
1answer
50 views

Looking for a simple hatching algorithm

If I have an arbitrary polygon, and wish to hatch it with lines at a given angle and spacing, is there a simple low-level algorithm which will return the set of hatch lines inside the polygon?
2
votes
1answer
78 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
1answer
145 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 ...
2
votes
1answer
25 views

Extra detailed bounding polygon from many geometric points

I have a database of around 100,000 postcodes each with lat/lon which I have converted to geom type in PostGIS. Each postcode also has one of 5 "regions". I wish to generate an accurate bounding ...
1
vote
0answers
44 views

How do I smooth edges of polygons in QGIS?

Is there a built in function or plugin I can use to achieve smooth lines for my polygons instead of the blocky ones I have now?
1
vote
1answer
242 views

Using the ArcGIS Runtime SDK for C# is there a method to Hit Test for a polygon on the graphics layer?

I am very new to using ArcGIS runtime SDK for C#. I have loaded a polygon from a shapefile. I wish to query if a lat/long point is inside or outside the polygon? How can I do this? Thanks in ...
0
votes
1answer
18 views

Associate points with polygon QGIS 2.2

I want to associate a point layer with a polygon layer so that I can do zonal statistics. In the image below, the polygon layer represents roughly the metro area of a certain city. The point ...
9
votes
4answers
13k views

Extract coordinates of polygon vertices in ArcMap 10?

I've got about a dozen polygons in a feature class loaded in ArcMap 10, all in geographic WGS 1984. How do I easily obtain the coordinates associated with each vertex of each polygon in that feature ...
0
votes
2answers
38 views

How to export a shape polygon to a file

Is it possible to to export a shape polygon to a file? I want to export the polygons from a country to use them on a different map system,
1
vote
2answers
87 views

QGIS Valmiera, Labels only show for part of polygons

Using 2.2.0-Valmiera on Ubuntu 13.10 I have for Croatia 21 Counties as polygons. Labels show only for 12 counties: here I see that no labels are shown for multipart features. So I checked "Show ...
0
votes
0answers
26 views

calculate distance between points crossing the antimeridian

How can I calculate the distance between two points (lon/lat) if any of the points exceeds the antimeridian (+-180 longitude)? Im using the distVincentyEllipsoid {geosphere} to calculate the shortest ...
2
votes
3answers
723 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); } ...
4
votes
2answers
89 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 ...
2
votes
1answer
1k views

Calculate polygon area inside extent

We're using ArcMap 10.0 sp5, creating a tool in c# using the ArcObjects sdk. Is there a built in function or simple set of steps that calculates the area of each feature of a polygon layer within a ...
3
votes
1answer
39 views

How to give elevation information to a polygon feature class using existing TIN file ? (geological mapping)

I'm an ArcGIS 10.1 user. My issue: I have a printed form of a map which depicts geological bodies being surface rock occurence. Additionaly, there are elevation contour lines. I digitized the map by ...
0
votes
1answer
62 views

How to obtain the maximum/minimum longitude and latitude for a polygon?

I have the MSA/CMSA shape file which contains 274 metropolitan areas. How do I have to obtain the maximum/minimum longitude and latitude for an area? So, it's like drawing a box right outside and ...
4
votes
3answers
99 views

How to shrink polygon on two sides?

I have a polygon which I know is a rectangle, although it may be at any orientation: I want to shrink this polygon by a third of the width from two sides, so that I just get the strip in the middle ...
0
votes
2answers
257 views

How to get a list of OSM relations (id numbers) of cities and countries only?

I want to get OSM polygon shapes (GEOJson or WKT) of countries and cities only. I know that it is called a "relation" in OSM and each relation has its own id (New York is 175905, for example). How may ...
3
votes
1answer
154 views

digitizing (tolerence) error in line data

I have designed a large number of boundaries. For accuracy, I took lines in patches from different data sets and merged them into one. Now I want to turn them into polygons from lines. I every second ...
3
votes
1answer
71 views

Postgis 2.0 geographic polygon has max longitudinal range

My problem is that I have a load of geographic point data (srid 4326) in a table. A user may do a bounding box search - essentially create a polygon as follows: l_poly geography(Polygon,4326):= ...