Tagged Questions

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

0
votes
1answer
287 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 ...
7
votes
3answers
1k views

Create a square grid polygon shapefile with python

i have the following coordinates minx,maxx,miny,maxy = 448262.080078, 450360.750122, 6262492.020081, 6262938.950073 i wish to create a square grid of size 1 m using python. import math ...
2
votes
1answer
213 views

Convex Quadrilateral Polygons subdivision in equal parts using Python / OGR

Consider an irregular polygon (P) which has four vertices. I would like to subdivide P into smaller polygons as shown here http://i.stack.imgur.com/4SKhB.jpg In the old days I was using ArcGIS 9.3 ...
2
votes
1answer
313 views

R: How can I create a polygon from several polygons and a line?

I have some spatial objects that I want to combine, namely three polygons and a line. The ultimate goal is to create a polygon that I can overlay on an area of a map of administrative divisions of the ...
3
votes
1answer
176 views

Polygon to Raster is taking longer in script than in arcmap

I have a large dataset that I am working with. Basically I have a table with 900,000 records that I join to a geodatabase feature layer, then convert that to a raster. This process takes a total of ...
6
votes
1answer
77 views

Is there a way to select only a certain polygon for editing?

I have a spatialite data base with 4300 polygons contained within. I wish to be able to edit the polygons but once i have highlighted the Polygon from the attributes table i find it hard to edit the ...
1
vote
0answers
58 views

Avoid rounding of coordinates in pyQgis

If I get the coordinates of a polygon in qgis by x = geom.asPolygon() It rounds off the coordinate from i.e. -27,200,334.86 to -2.72003e+07 How can I avoid that?
4
votes
1answer
519 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 ...
1
vote
0answers
99 views

Is segment of polyline contained in polygon

I am pretty new to arcpy and am slowly learning all its functions. I have a scenario where I am traversing a polyline. I get a start point and an end point on the polyline and form a segment with ...
3
votes
1answer
357 views

How to make survey lines within polygon?

I am trying to figure out how to make survey lines within a polygon. So first I make a polygon. Now I need to fill this polygon with lines, where I can choose the spacing between the lines, and the ...
14
votes
2answers
1k views

Creating Thiessen (Voronoi) polygons using lines (rather than points) as the input features?

I have a set of line features inside a particular polygonal boundary. For each line, I'd like to generate a polygon inside which every possible point is closer to the given line than to any other line ...
5
votes
2answers
329 views

Need an Algorithm to Determining Polygon Borders

I'm currently writing a program in Java and I'm dealing with polygon objects. I want to create a different color border between touching objects depending on their class (i.e. land, ocean, etc). I ...
1
vote
1answer
762 views

arcpy points in polygon check

I have a list of points and a list of polygons both in a separate shape files. I am trying to write a ArcPy script to loop through the points, and then the polygons respectively and tell me when a ...
2
votes
1answer
297 views

Remove intersect of one polygon from another in R

I am trying to remove the intersect from Poly2 onto Poly1. Below are the coords of the 2 polygons. > coords1 [,1] [,2] [1,] 992.0161 7462.531 [2,] 950.1962 7413.532 [3,] 902.3632 ...
1
vote
3answers
2k views

How to auto fill or delete sliver polygons without losing precision?

I am developing some boundaries in which precision holds the key value. Using ArcGIS 9.3 I am converting lines to polygons using the "feature to polygon" tool. The lines are accurate but I find ...
3
votes
2answers
1k views

How to create a multipart polygon?

I have two polygons that consist of two separate polygons/lines in QGIS). How can I make this into a multipart polygon, which consists of 1 line in QGIS?
4
votes
1answer
4k views

How do i calculate line segment lengths within a polygon?

I have a layer with line segments and a layer of polygons (in this case, buffers around points). I need to create a new field for each polygon that contains the total length of all line segments ...
0
votes
1answer
658 views

Geojson multipolygon doesn't work with Leaflet bindPopup?

I have polygon and multipolygon data in Geojson format and when I try to bind popup for polygon, it works perfectly, and when I try to bind it for multipolygon, it doesn't work. Is that some Leaflet ...
1
vote
0answers
31 views

Suggestions for vector format for polygons

I am using two polygon tables in postgis (A and B ). I need to make a vector file that incorporates information of the overlapped polygons B intersecting each polygon on (A). I can make a single ...
1
vote
0answers
65 views

When digitizing, objects are not saved well

I've some problems with digitizing. If I draw a line or a polygon, the line or polygon is saved in the attribute list, but not visible and its location is not saved either (when I zoom to the object ...
3
votes
1answer
2k 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 ...
0
votes
1answer
2k views

Calculate maximum and minimum elevation for a polygon layer from a DEM [duplicate]

I have a polygon layer and would like to know the min and max elevation within each polygon. My elevation layer is a digital elevation model. I'm not quite sure how to extract that information. I am ...
0
votes
0answers
108 views

Where can I get polygons for the Municipalities of Puerto Rico?

I'd like to find GeoJSON files to draw the polygons of municipalities of Puerto Rico. It might be nice get the Nokia Map (or any reasonable publicly available map) of the same regions and overlay ...
2
votes
1answer
279 views

Tearing in ggmap (R) after using spTransform and random point generation using splancs

I am using R and the package ggmap to try and generate some random points within the city limits of Chapel Hill, NC. I have downloaded the shapefile for the town of Chapel Hill from the Orange County ...
4
votes
3answers
3k 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 ...
11
votes
5answers
4k views

How best to fix a non-noded intersection problem in PostGIS?

I'm using a PL/R function and PostGIS to generate voronoi polygons around a set of points. The function that I am using is defined here. When I use this function on a particular dataset I get the ...
9
votes
1answer
430 views

Compare spatial cluster/agglomeration patterns for polygon data

I have agricultural data in form of polygons which I would like to test for spatial clusterings/spatial agglomerations. All in all I have about 40 variables which I can aggregate and standardize in ...
2
votes
1answer
1k views

find polygon corner coordinates

I am trying to get the coordinates of each node of the polygon I create. I would like the attribute table to display the name of the polygon (ex. address) and then the coordinates of the nodes (ex. ...
6
votes
1answer
325 views

Efficiently identifying overlapping polygons with Python

I'm parsing the NOAA severe weather alert feed and using it as a datasource for a weather alerting system. In the feed, I occasionally find a polygon entry for an alert. Unfortunately, counties that ...
1
vote
2answers
502 views

Dissolve polygons - group to others with touching corners

I am working with some data that shows land management. There are many places where corners "touch". I would like to dissolve my dataset so that features are grouped (dissolved) with those that they ...
2
votes
1answer
149 views

In OpenLayers, is there any way to convert polygons to tiles?

I have a OpenLayer map which by enabling a feature by user, a very huge table of polygons (lots of small areas, with information and metadata for each) will appear on the map, which rendering this big ...
5
votes
2answers
903 views

Tips for minimizing shapefile size without compromising geographical detail?

I work for a state government's fisheries service, and lately we've been digitizing a lot of our regulatory boundaries within the state's waters that we'd like to service out on web maps. ...
1
vote
0answers
54 views

Add regular points to each polygon in QGIS [duplicate]

Possible Duplicate: assign and move centroids to their polygons I'm trying to find out a method to define a unique ID based on specific coordinates for each polygon of a shp. The problem is ...
4
votes
3answers
1k views

Python OGR: convert a point geometry into polygon

I'm writing a routine for creating the convex hull envelop around shapefiles of islands. I could read the data, extract polygons vertices into a geometry and then compute the convex hull. Now I need ...
0
votes
2answers
524 views

Adding values to Fishnet Grid?

I have developed a fishnet grid for my study area. I have various datasets for the area and want to allocate a value (from one of the pre-determined datasets) to each polygon within the Fishnet. ...
6
votes
2answers
263 views

Breaking apart a polygon layer by unique values, creating many new layers

I have a large dataset of habitat information that I need to calculate distances from animal locations to the closest polygon of each habitat type. The way to do this, that I understand, would be to ...
5
votes
1answer
768 views

Create a new vector layer that fills space between other polygons in QGIS

I inherited a clipped (500m radius) land cover map containing vector layers of different land cover categories such as buildings, grass, roads, etc from a colleague. The empty (white) space in ...
3
votes
0answers
104 views

Create perimeter from given area [closed]

I need to develop a web-based application to manage areas inside a bigger area. I already have the initial perimeter, and it has irregular borders like that: . I will need to tell the app to ...
1
vote
3answers
524 views

How to create one KML per polygon (from one Shapefile)?

I have a shapefile containing hundreds of polygons. I need to create a kml of each of the polygon. Is there any way that I may not have to deal each polygon individually and my polygon file may give ...
4
votes
1answer
1k views

What is the best way to connect spatial data with attributes in Excel table?

I have many attributes which are stored in an Excel table. They refer to USA counties. I need to somehow connect those attributes to polygons in some format (don't know which is the best) and ...
7
votes
2answers
2k views

How to create a heat map or density map from stacked polygons in ArcMap 10

I have a polygon shape file that has many overlapping features. Each feature represents an area used by polar bears. So some of the polygons overlap and some don't, and there are separate clusters of ...
6
votes
2answers
135 views

summing up over an area based on a distance related function

Through a field study, we learned that the density of a bird species in the forest was related to the distance to forest edge: ln(density) = 1.89*(distance to edge) + 0.34 Now, for any forest ...
3
votes
3answers
397 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 ...
1
vote
0answers
472 views

How to clip the contour map with the polygon using R software?

Hi I am wondering how can I create the contour lines from the discrete x, y and z dataset and then add the shapefile to cut the contour lines by polygon. I want to clip the contour map by the shape ...
5
votes
3answers
431 views

Polygonize vegetation area from Landsat7 RGB using QGis / Bilko?

I'm trying to extract the areas with vegetation as a polygon-shape from a landsat7-image, 30m resolution, RGB, using QGis 1.8 or Bilko or (hopefully in the near future) ArcGIS. The area is in Northern ...
2
votes
1answer
97 views

What is the PostGIS function for retrieving buildings by road side?

I want to get information of buildings by the road side only. Assuming that the building table has multi-polygon geometry and the road table has multi-linestring geometry, what would be a pgSQL Query ...
0
votes
3answers
358 views

Calculate 'Rectangle' Coordinates Given 2 Points and width [closed]

I want to create a rectangular polygon using two points as guides. So let's say a journey starts in Egypt and ends in London, my polygon should have 4 points: 10 miles further from London than Egypt ...
4
votes
3answers
339 views

How to subset X number of features from Shape file in QGIS

I'm looking for a means to take a rather large Shape file and split it out into separate, smaller shapefiles based on number of features. So for example, if I have a file with 1 million features, ...
5
votes
0answers
360 views

Grouping analysis of points to divide a polygon into n number of sub-regions

I'm attempting to create n sub-regions from a polygon based on a cluster analysis of a bunch of overlapping raster layers (physical layers, eg: depth, currents, waves). Briefly, I can create a ...
5
votes
2answers
593 views

How to achieve an “inner glow” effect on polygons drawn using the Google Maps v3 javascript API?

Is it possible to produce an "inner glow" effect on polygons drawn using the Google Map v3 javascript API? If not possible using the vanilla Google Maps API, is there a 3rd party tool that can do it? ...