A vector data storage format for storing the location, shape, and attributes of geographic features. Often referred to as 'an ESRI shapefile', as ESRI developed it.

learn more… | top users | synonyms (1)

6
votes
1answer
2k views

Spatial distance join between polygon and points using R?

I'm figuring out how to do a Intersection (Spatial Join) between point and polygons from shapefiles. My idea is to get the closest points and those points that match completely inside the polygons. In ...
6
votes
2answers
2k views

Where can I find municipal-level administrative boundary data for India?

Does anyone know how to find a shapefile with boundaries of Indian municipalities? I have tehsil boundaries as for year 2001, but I would like boundaries of municipalities. Ideally, also historic ...
6
votes
1answer
547 views

How to connect places (points) without crossing lines?

I have two sets of data. One with placemarks represented by blue dots in image below, and another set of geographic data with lines represented by grey lines. 1) For the first point in drawing, I'm ...
6
votes
1answer
1k views

Generating tiles for osm/esri shapefiles

I've generated tiles for OpenStreetMap .OSM files using Maperitive and quickly consumed them with leaflet (with no tile cache yet). I'm now looking for the right and simple way to do that also with ...
6
votes
1answer
198 views

GIS storage format for better performance - Android device

We have developed an android application which loads different eco-zones and does geo-fencing based on current GPS location. We have converted a shapefile to KML, then to JSON format, for loading in ...
6
votes
1answer
573 views

Polygon creation (Clockwise rotation or not)

According to "ESRI Shapefile Technical Description An ESRI White Paper—July 1998", Vertices for a single, ringed polygon are, therefore,always in clockwise order. Otherwise,"Dirty" polygons occur when ...
6
votes
2answers
340 views

How to generate discrete areas from multiple, overlapping features?

I have a point dataset that I want to append some information from a polygon to. My polygon shapefile contains over 500 features. Whilst each of these features represents individual areas they are ...
6
votes
3answers
775 views

How to convert factfinder2.census.gov map data to KML?

I've downloaded a map from http://factfinder2.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=DEC_10_SF1_P1 (limited to San Francisco census tracts), and I'd like to convert it to KML ...
5
votes
3answers
2k views

How to write Shapely geometries to shapefiles?

Can someone demonstrate a simple way to write geometry data-structures from shapely into shapefiles? I am particularly interested in polygons with holes and linestrings. It would also be beneficial to ...
5
votes
4answers
298 views

We sent Client Esri Files and Now they want to See Polygons

We are a voter list company. Every ten years new political boundaries are written for federal and state offices. All of the corresponding shape files are ESRI ready. One of our clients is getting ...
5
votes
3answers
5k views

Where can I download the Google Road network as shapefile?

Is there any site from where I can get Google Road network as shapefile? As per my knowledge It is not distributed by google. So anybody can suggest how can I create this road network for a custom ...
5
votes
4answers
3k views

How to change field length in QGIS

I have a shapefile I made in QGIS 1.7.4. One of the fields is a String of length 80. I'd like to make the field accept longer stings, but I can't figure out how to change its length. How do I do this? ...
5
votes
3answers
229 views

GIS file format for space and time data?

I need some advice with GIS file format choice. Here is my problem: I have about 100 stations. At each station water temperature is measured daily for 1 year I want to load this data to QGIS and be ...
5
votes
1answer
402 views

How to determine optimal windmill placement to maximize production?

How can I add automatically the maximum number of points (dots) with 6m diameter and 100m distance each point from other into an area. The dots will present the windmill base (6m) and I want the ...
5
votes
4answers
402 views

Calculating percent cover from shapefiles

I normally do not work with shapefiles, so I am a bit lost here. I have two shapefiles each with multiple objects. The first is a set of 32 polygons (each one is a plot). The second shapefile has ...
5
votes
2answers
839 views

GeoServer: Shapefile or PostGIS?

I'm going to build a web application, which will render around ten maps using GeoServer. I will be also changing the attribute data in the application for some layers. So, what is the recommended ...
5
votes
3answers
926 views

How to produce a singlepart featureclass with unique IDs for each spatially non-connected polygon?

What is the best method to convert a singlepart shapefile (i.e. one record that contains several non-connected polygons) into a mutlipart shapefile? --EDIT For clarification the original question ...
5
votes
2answers
276 views

Can we merge shapefiles with different geometries (point and polygon) to get a single layer which shows both geometries?

I want to merge two shape files in which one is of point geometry type and other is polygon type in order to get a single layer containing both points and polygon in a single map.
5
votes
2answers
792 views

Is it possible to change the field length of a shapefile to over 255?

The maximum field length that I can specify is 255 and because of that I'm having problems with the input attributes, which have a size greater than 255. What alternatives are there for having longer ...
5
votes
3answers
2k views

FME: Join attributes in text file with attributes in SHAPE file

I have a SHAPE file with points and different attributes - one attribute MyID. I also have a plain text file with several attributes - each in a separated column: MyID MyValue 1 A 2 B 3 C ...
5
votes
5answers
2k views

How can one execute an SQL script in field calculator in ArcGIS 10?

I am trying to transfer over row data from a table to columns in a shapefile table. There is a common "SA" variable between the two (i.e. the study area number) but there is more than one land use ...
5
votes
1answer
185 views

ogr2ogr selecting features by attributes

I am writing a shapefile after some processing; however, in the final step I need to do some selection by attributes from the the shapefile. I am using the command in a shell with the aim of using it ...
5
votes
4answers
818 views

draw shp files or kml files on ipad?

I need to be able to draw a polygon in the field while the landowner is there to approve it. Is there an app that is easy to use so all of the field hands can operate it? I also need to be able to ...
5
votes
1answer
10k views

QGIS - Change unit of measure from degrees to meters

I am running QGIS 1.7.0 on windows, and I donwloaded a shapefile of census block group boundaries from TIGER. This file appears to be in the WGS 84 coordinate system, and when I open it in QGIS the ...
5
votes
3answers
1k views

Why doesn't the split tool return any records in the attribute table?

I've been trying to split a large land use shapefile using a set of study area polygons as the split feature, but when the function finally finishes running (the land use dataset is quite large), all ...
5
votes
3answers
663 views

Fastest way to merge a feature

I am writing a arc engine application that can take a shapefile, and merge a set of polygons together. Here is the code that I am using to merge the polygons: private static void ...
5
votes
3answers
2k views

2010 Census Tiger County shp file with defined coastal land area

I am looking for a 2010 Census Tiger Shape file that hugs the coastline and doesn't include the ocean in county boundaries. I have a pre 2010 file that did this and I can't seem to find a 2010 ...
5
votes
3answers
172 views

How to know if shapefile is georeferenced?

I have a shapefile which is located in province in indonesia. it contains many sub-province if i removed sub regions inside a shapefile, and it leaves a small region, and my question is that small ...
5
votes
1answer
2k views

R : convert a spatial polygon objet to spatial polygon data frame

My goal is to modify an existing shapefile by merging certain polygons. After importing the shapefile and using the UnionSpatialPolygons command, I get the polygon outline that I want. However, this ...
5
votes
3answers
610 views

Looking for a .NET Dijkstra component using Shapefile

I'm totally new to stackexchange and i'm in this beautiful informative place for one problem. I'm a .net programmer and i need to write a program that reads a shapefile and performs routing operation. ...
5
votes
3answers
2k views

Python: Combine multiple Shapefiles

i have got a lot of Point-Shapefiles (r20010101.shp, r20010202.shp, r20020101.shp...). Each of them has the same amount of points at exactly the same location. In a column that is named after the Date ...
5
votes
2answers
1k views

Converting feature class with domains to SHP file

I have a feature class which has coded value domain associated with it. The code and the description are different. For example, I have coded value domain for pipe diameter. For pipe diameter of 8" I ...
5
votes
2answers
2k views

what is the best way to programmatically convert between WKT and Proj4 string?

some shapefiles have a .prj file associated with it. and the .prj file contains the projection info of the shapefile in the format of WKT. Sometimes I need to convert WKT to proj4 string, and ...
5
votes
2answers
705 views

Some objects missing after importing a .shp into PostGIS

I have a .shp file which I am trying to import into a PostGIS database using the "PostGis SHP and DBF Loader". This works smoothly but some (maybe 5%) of the records have an empty geometry field. (I ...
5
votes
1answer
154 views

How to get maximum value where two shapefiles overlap using ArcGIS for Desktop 10.1?

I'm trying to merge 2 datasets (both shapefiles, but I can convert them to raster layers if necessary) where the values are compared, and whichever is higher becomes the new value for the layer. How ...
5
votes
3answers
690 views

How to get a list of distinct values from a shapefile field using QGIS?

I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city_name' and by stating 'city_name = "London"' in the where clause only ...
5
votes
1answer
2k views

How to programmatically add shapefile to data frame in Arcmap

I have a toolbox with python script which creates a shapefile from JSON txt file, but it does not show the generated shapefile in arcmap, i have to add it from the output location. What code shall I ...
5
votes
2answers
2k views

Converting KMZ/KML to SHP (3D objects)

I have 3D buildings in .kmz file. I can see them in Google Earth, but I cannot import them to ArcGIS. What I've tried until now: I saved it as a .kml file in GoogleEarth and then try to convert the ...
5
votes
5answers
4k views

Why can't I export XY data to a shapefile?

I have added a table from Access to ArcMap, and then used 'Display XY data' to plot points. When I then try to export the Events to a shapefile I get an error message telling me: "Error exporting ...
5
votes
1answer
127 views

Tools for discovering spatial data defects

Spatial data often have defects that may include incomplete polygons, sleathers (non-uniform administrative boundaries), overlaps, having points that belong to more than one polygon, etc. I have a ...
5
votes
2answers
942 views

Shapefiles for U.S. Area Codes (NANP)

I have a bunch of telephone numbers (just the area codes), and I'd like to geolocate them and make a map, but I haven't had too much luck googling for shapefiles for Area Codes. Surely these are in ...
5
votes
3answers
6k views

How to convert coverage (.adf) to shapefile?

Is there any tool or software except ArcGIS which I can use for converting coverage (.adf) files to shapefiles?
5
votes
1answer
2k views

Extracting Lat/Lng from Shapefile using OGR2OGR/GDAL [closed]

I'm trying to extract lattitude/longitude values for the streets in this shapefile: http://gispub02.sfgov.org/website/sfshare/catalog/stclines_streets.html I've seen it reommended in many places that ...
5
votes
1answer
191 views

Python3 libraries for GIS analysis

I am trying to do some spatial data analysis in Python 3 now, and I was wondering what the best libraries are for GIS in Python 3. The Fiona library was developed with Python 3.3 but the Python 3+ ...
5
votes
1answer
115 views

Where do I append point values with pyshp?

I would like to generate a .shp with five points using shapefile available through pyshp. However, when I loop through my list I get only the last value. This makes sense as I did not append any of ...
5
votes
1answer
805 views

SQL Query to Reverse Geocoding in PostGIS

I try to do Reverse Geocode from my shapefile on the database. I'd already try with Spatialite and PostGIS to put shapefile (.shp) into it. But I'm still can't delivered my objection about reverse ...
5
votes
2answers
1k views

How to draw a point at an exact location with spplot?

I imported a Shapefile holding a quite detailed world map from: http://www.diva-gis.org library(sp) library(rgdal) world = readOGR('./countries_shp/', 'countries') Using R with the sp-Packages, ...
5
votes
2answers
2k views

ogr2ogr kml to shp conversion created 184 shapefiles?! What am I missing?

I'm trying to convert this KML dataset of ice arenas to a shapefile using ogr2ogr (GDAL 1.8). After some initial troubleshooting to get the script running, it's creating 184 different shapefiles (736 ...
5
votes
1answer
2k views

Converting a CAD/DXF file to a SHP file

I need your ideas and suggestions about a problem.... I have a dxf file which was converted from a CAD file. I used QGIS to convert it to a shp file... This is when I realized that the text ...
5
votes
1answer
172 views

How display outlines in a Map, only from a scale, but the colored polygon in all scales?

I want to display a shape with UMN-Mapserver. It has different coloured polygons and also outlines. But I want to display the outlines only, from a specific scale. I could add MINSCALE 150000, but in ...