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

12
votes
4answers
1k views

Grouping corner-touching contiguous polygons using ArcGIS Desktop?

Using ArcGIS 10, I have a Feature Class which I converted from a Raster (GRID) (Raster To Polygon Tool). There are approx. 180,000 polygons. The attribute table contains a [grid_code] field which ...
1
vote
1answer
21 views

dissolve polygons of GeoJSON with gdal/ogr

I have a GeoJSON with only polygons in it. I have to dissolve (merge) the polygons with the same "DN"-value. I found out that you can do it with shapefiles like this: ogr2ogr outputfile.shp ...
8
votes
4answers
5k 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 ( { ...
1
vote
2answers
22 views

how to color polygons with random color in QGIS

I have a map with a large number of polygons that I want to colour individually for display purposes. There is not particular pattern required, only to present them as individual catchments in a ...
2
votes
1answer
28 views

Extracting intersection areas in R

I have two polygons. One contains fields(X,Y,Z) and the other contains soil types (A,B,C,D). I want to know what area of every field contains which type of soil. I tried the following: ...
6
votes
4answers
4k 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 ...
1
vote
1answer
17 views

Get Raster Values from a Polygon Overlay in ArcGIS

I have the same problem as Curlew in Get Raster Values from a Polygon Overlay in Opensource GIS Solutions and thecrashlandingdodo in Step-by-step: How do I extract Raster values from Polygon overlay ...
1
vote
1answer
19 views

Euclidean distance outside a Polygon (ArcMap)

I got some university coursework to analyse the best potential areas for a residential development project and I'm currently doing multi-criteria evaluation. One of the shapefiles in the dataset given ...
2
votes
1answer
242 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
23 views

Sampling one shapefile with polygons of another using R?

I have two shapefiles that partially overlap. One (the bigger one) consists of several polygons which represent fields I am interested in. The second, is a rectangular shape that overlaps about 30% of ...
0
votes
1answer
19 views

Copying attributes of one row to another row in polygon shapefile in ArcGIS?

I have a single polygon shape file in ArcMap with 25*25m grids, and I want to assign the attribute values of a single grid/polygon to another one close by i.e. copy attributes from a row to another ...
0
votes
0answers
17 views

API to find polygon for cities and administrative boundaries in India

I am new to GIS and learning basics by going through various forums. I am looking for a way to get polygon coordinates for any place (city, 2nd/3rd order administrative division) in India. I started ...
2
votes
2answers
970 views

Openlayers Vector Layer Polygons not displaying properly with OSM

I have an Openlayers map displaying Acetate tiles in OSM, and I'm drawing polygon regions on a vector layer to represent the countries of the world. This works fine for the most part, however, there ...
0
votes
1answer
18 views

ggplot2 plots polygons with wrong topologies

I'm trying to plot polygons in R using ggplot2. In GRASS, QGIS and normal R the map renders fine, but ggplot2 seems to have some kind of topological difficultes I can't explain. With normal R it looks ...
0
votes
1answer
18 views

polygon neighbors

Could you please tell me how to check in ArcObjects same feature overlapping other feature like (Building OID 10 and Another building OID 11) i tried to like below code but i am not going to for other ...
3
votes
1answer
133 views

How to map flood areas from a set of points containing surface and height of water?

I am working on the damages made by the typhoon Haiyan. I use QGIS 2.0 with extensions and toolbox, and MapInfo. I have vectors, rasters of the place. I want to map the flood area along the ...
2
votes
0answers
24 views

Adjacency matrix for polygons using Java

I am trying to create an adjacency matrix from a set of polygons. That is, I have a bunch of polygons and I want to identify which polygons have a common edge or "touch" each other. Once I find this ...
1
vote
1answer
59 views

CAD line drawing to GIS polygons pt II

I'm a (reasonably) proficient GIS user (mostly QGIS, but some Arc GIS) who has been thrown the conundrum of converting/importing CAD urban planning drawings (2D drawings produce in AutoCAD 2014) to ...
4
votes
1answer
126 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):= ...
0
votes
1answer
107 views

QGIS: How to add a second polygon that is exactly 5km larger in all directions?

Given is a map with an airport. Within a distance of 5km around the runway there is a so called no fly zone for drones (in Switzerland). I want to show this zone in a map. What I would like to do is ...
0
votes
1answer
17 views

How to merge polygons with ST_union

I have a similar problem, but I can't get the syntax correct. This refers to the following question: Merge polygons in CartoDB? I'm trying to merge multiple polygons into one (in this case, just ...
2
votes
2answers
106 views

A library to edit geometry in C#

For my windows application, I am looking for a method to edit vertexes and geometry of features that are stored in a SQL Server database. I just want a simple function for dividing polygons into 3 ...
0
votes
0answers
39 views

polygon shapefile R extract issues

I'm trying to do simple RF classification in R based on https://gis.stackexchange.com/a/39103/48810. The code I am using is as follows: require(sp) require(rgdal) require(raster) ...
3
votes
3answers
1k views

How to clip polygons with a fishnet layer?

I have a layer with multiple polygons (input) and a fishnet layer in polygon (clip layer). I want to clip the multiple polygons with the fishnet to be able to calculate how big portion of the input ...
1
vote
1answer
37 views

CAD line drawing to GIS polygons

I'm a (reasonably) proficient GIS user (mostly QGIS, but some Arc GIS) who has been thrown the conundrum of converting/importing CAD urban planning drawings (2D drawings produce in AutoCAD 2014) to ...
10
votes
6answers
2k views

Where can I get neighborhood boundaries?

Besides Zillow's creative-commons licensed neighborhood boundaries shapefiles, what sources of neighborhood boundaries are there? Not just in the US, but all over the world. Free/open source is ...
2
votes
1answer
89 views

Polygon centroid coordinates update error

After a week of unsuccessful fighting I'm forced to ask for your help. I have created a table 't_excavations' with fields 'id_excavation', 'geom' (MULTIPOLYGONE), 'longitude', 'latitude' CREATE ...
5
votes
1answer
2k views

How to take polygon centroid in Postgis

I have table with column name,Latitude and Longitude.I want to update this with polygon name and its centroid latitude longitude.I know there is a function in postgis st_centroid(geometry). But I want ...
1
vote
1answer
30 views

Connecting polygon accidentally deleted - filling in the gap

New QGIS user, Brighton 2.6. I accidentally deleted an elongated (lots of "peninsulas" polygon that represents a stream-based habitat - two gaps on SW boundary and two on the northern boundary ...
0
votes
1answer
99 views

GeoServer SLD: fill a polygon with color sampled from gradient

I have a "geometry" and a "rating" column. I want to symbolize the geometries in an SLD (PolygonSymbolizer) but fill it with a color value that is interpolated between BLUE-PURPLE-RED based on the ...
1
vote
0answers
65 views

Create diagonals in polygon with QGIS or ArcGIS

How is it possible to create the diagonals in/of polygons and to calculate the length of this diagonals afterwards. It's for a lot of polygons so maybe a fast/automatic method would be nice. I ...
0
votes
1answer
3k views

Dividing polygon layer into multiple layers by values in attribute table column using ArcGIS for Desktop? [duplicate]

I have polygon layer with multiple types of area (forest, grass, and many more), and I´d like to divide this layer into many layers by the area type. I´ve tried Split function but I receive an error ...
0
votes
0answers
19 views

Overlay polygons on raster in different projections

I'm overlaying polygons on a raster to get the average value inside the polygon (using SAGA->Shapes-Grid->Add grid values to shapes in the QGIS Processing Toolbox), using a geographic and a ...
1
vote
2answers
44 views

Using GDAL to get vertices of a multipolygon

I am successfully using GDAL to get the vertices of a polygon from a ShapeFile using .NET code. This link showed me how to do that: ...
0
votes
0answers
14 views

Showing large number of polygons in SpatiaLite on Android map?

I have 2,300 complex multipolygon features in an offline SpatiaLite database. How can I show them on an Android map without slowing the map to a halt?
0
votes
2answers
944 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 ...
0
votes
1answer
28 views

Simplifying polygons in ArcGIS considering contains-one-point topology rule?

I want to simplify polygons using the "Simplify Polygon (Cartography)" tool in ArcGIS 10.2. Additionaly there is one point in each polygon and this condition should still be fulfilled after ...
0
votes
1answer
629 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
1answer
33 views

Clip multipatch to polygon ArcToolBox

I have a multipatch dataset and a 2d polygon. Which ESRI tool can I use to select only those multipatches whoms x,y are inside the polygon? Basically I want to select all multipatch features that ...
1
vote
2answers
99 views

Determine which points are contained inside a given polygon

I have these database tables defined: CREATE TABLE regions ( id SERIAL PRIMARY KEY, name VARCHAR(150) NOT NULL ) CREATE TABLE region_points ( id SERIAL PRIMARY KEY, region_id SERIAL ...
3
votes
1answer
281 views

ESRI/ArcGIS draw protractor

I am using ArcGIS maps and trying to follow JS API. I am trying to understand how can I add a protractor on the map which will help in angles while drawing polygons. I understand I could add a Feature ...
0
votes
1answer
40 views

Difference between a region and a polygon (mapinfo pro 12)

I am new to using MapInfo and have recently noticed the convert to regions and convert to polygon (edit: convert to polyline) function. What is the difference between a region and a polygon? Also, ...
3
votes
4answers
2k views

Clip a raster using a shapefile into multiple rasters?

I have a raster file representing a large area and a shapefile of 30 polygons representing watersheds. I would like to clip the raster with the shapefile to create 30 rasters representing each ...
1
vote
1answer
31 views

Enlarging polygons in a kml file

I have a KML file containing several hundreds of Polygon all around the globe, projected in lat/lon WGS84, decimal degrees. I need to enlarge all the polygons adding 23km at the top and at the bottom ...
1
vote
1answer
63 views

how to find that two polygon boundaries are connected?

I am working on a Geo database where there is a layer with many polygons. i want to find that which polygons boundaries are connected so that i can create new layer from that polygons and which ...
2
votes
0answers
41 views

Create polygons from many small. Expand to include space between

I'm just a programmer without GIS-skills as such. Hence this question: Intro: I have a lot of polygons; actually each private-owned real estate in my country. I also have "counties" as polygons. ...
2
votes
1answer
47 views

QGIS - Label outside polygon

is it possible to place a label automatically outside its polygon? Marcus
2
votes
3answers
240 views

How to change 0,360 WKT string to -180,180?

I'm reading POLYGON WKT strings using OpenLayers.Format.WKT().read(). The polygons use 0,360 longitudes but my map is -180,180. When I display the polygons on the map they are displayed outside of the ...
6
votes
1answer
286 views

How to compute Straight Skeletons using Python?

Is there a Python package which provides an implementation of a Straight Skeleton algorithm? I'm aware that the open source (C++) project CGALcontains an implementation but it seems like ...
0
votes
0answers
22 views

Bulk geocoded data of historic empires / countries of the world?

Is there an open dataset (of the likes of Pleidas) which provides geojson data (or similiar) of empires / areas of the world? There was a similar question here (link), however, I am looking for a ...