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 (2)

9
votes
2answers
2k views

How to split non-contiguous feature in QGIS?

I have a shapefile with a feature that is non-contiguous. I want to split the areas on the left from the area on the right. However, QGIS's Split Features tool requires you to draw a line over the ...
7
votes
3answers
8k views

How can I get the proj4 string or EPSG code from a shapefile .prj file? [duplicate]

I have to work with a shapefile defined in an unusual projection, which my GIS software does not know about. How can I get the proj4 definition or the EPSG code for the projection?
6
votes
3answers
971 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 ...
4
votes
4answers
14k views

How to Read a Shapefile using C#?

I am new to ArcGIS and trying a few things.. I'm trying to read shape file(which is supply as an input) using c# and I want to generate a .pdf file which contains underlying metadata information ...
4
votes
1answer
5k views

How to re-project shapefiles?

I wanted to re-project a QGIS project, but there is no such option. When searching for an answer I see ogr2ogr suggested for this task, by re-projecting each vector layer (shapefile in this example). ...
4
votes
4answers
7k views

Tool for converting .shp file to .tab file?

I am searching for any free tool which can convert ShapeFile (.shp) to MapInfo (.tab) file.
3
votes
1answer
430 views

remove land area from marine region polygons

In my pursuit to merge multiple polygons for the purpose of calculating the surface area of marine species distributions, using shapefiles from Marineregions, I am now trying to remove potential land ...
3
votes
3answers
2k views

QGIS - Convert Vector points to GPS waypoints and route

I'm new here. I have a shape file with a series of points (around 300) using British National Grid. I need to put them on my Garmin Etrex 10 as waypoints. Can someone tell me how to convert this ...
3
votes
3answers
1k views

Updating Attributes using Pyshp

Is it possible to update an attribute field in a shapefile using pyshp ? I went through their documentation and all they show is how to create new attribute rather than editing or updating an already ...
3
votes
4answers
2k views

Converting Esri ASCII raster to Shapefile for CartoDB?

I have an ArcGIS grid ascii file (Ramankutty Cropland at 5 minute resolution) that begins as follows: ncols 4320 nrows 2160 xllcorner -180 yllcorner -90 cellsize ...
3
votes
2answers
3k views

How to edit Shapefile Attributes?

How might I go about exporting a polygon shapefile (e.g. CSV) so that attributes (not geometry) are editable by others, and importing it with the changed attributes (of which there are several columns ...
3
votes
1answer
4k views

How to generate a Shape File in DotSpatial

I have a .csv file of coordinates such as the following: -90.19, 38.62, St Louis -122.42, 37.82, San Francisco -74.04, 40.68, New York I want to create a shape file using DotSpatial that has these ...
2
votes
2answers
1k views

Intersect Shapefiles using Shapely

What I'd like to try and do is intersect some point buffers with census tracts, maintain their ID's and the tracts attributes. I found a sample from ...
2
votes
2answers
3k views

Looping through list of shapefiles to rename them using ArcPy?

I am trying to upgrade a simple script to list all shapefiles in a folder and if necessary in any folders within and then loop through the list of shapefiles and rename them. import arcpy # Set ...
2
votes
1answer
5k views

How to convert a shapefile to WKT?

I'm trying to convert a shapefile into the simple Well Known Text (WKT) format in the example below (from http://en.wikipedia.org/wiki/Well-known_text). MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ...
2
votes
2answers
991 views

Unable to create shapefile using shapefile.py

I am trying to create shapefile from csv data using shapefile.py but i am constantly getting this error, Traceback (most recent call last): File "createShp_Davis.py", line 31, in <module> ...
1
vote
1answer
281 views

MapServer (MS4W) test page from shapefile shows only blank white square?

I am trying to create a test page with mapserver and shapefile. At the moment I just want to get the map shown on my test page. I have gotten the EXTENT coordinates by opening shapefiles with QGIS - I ...
1
vote
1answer
998 views

How to create a 3D shapefile from a raster?

I´m trying to make a 3D shapefile from a raster feature but not working. Tried already to run the command in OSGeo4W but nothing happen. I'm using the Qgis 1.8.0 Lisboa. The purpose is to get a final ...
0
votes
3answers
401 views

Import shapefiles on my postgis table using R

Using R, I would like to import shapefiles that are in a directory on a geometric table i have on postgresql / postgis. What is the instruction that allows me to do it? EDIT: here is my code to ...
9
votes
1answer
11k views

Georeferencing shapefile using ArcGIS for Desktop?

I have a shapefile with some polygons that I would like to superimpose to a raster image, but unfortunately they don't match perfectly due to the reference system the shp has been created with. So, I ...
7
votes
1answer
348 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
2answers
267 views

Are mixed geometry types allowed in a shapefile?

Does the shapefile support mixed geometry types (ie. point and polygon all in the same file)?
5
votes
2answers
423 views

Locating shapefile of European railways for goods transportion?

We are trying to make a project about European goods trade so we need railway data in shapefile format. More specifically, we are trying to find the potential of mine products being exported from ...
5
votes
3answers
974 views

Best choice for building static maps: PostGIS, SpatiaLite or Shapefile?

I usually build static topographic maps, which are mostly printed. I'm often using OSM and rasterfiles (mainly different DEMs). The areas I'm mapping seldom exceeds 20.000 km². I'm using exclusively ...
5
votes
2answers
709 views

Data security for GIS Data (shapefiles,AutoCAD files)

This is regarding security for GIS Data (in Esri & open source) (Esri shapefiles, AutoCAD files etc.) Does anyone know how to assign a password to or encrypt shapefiles OR CAD Data? I have found ...
5
votes
2answers
852 views

What is the cause of 'tearing' of polygons (artifacts) using R, ggplot and geom_polygon?

Thanks to the answer given in this question I have been able to subset and draw a map of electoral divisions in part of the UK, in this case Pembrokeshire. The resulting data frame is large and ...
4
votes
2answers
2k views

merge shapefile using ogr2ogr and retrieve the attribute of both

Ciao, I have two shape files that I want merge (overlay/intersect) having in the destination the attributes of the two sources file. ogr2ogr file_merged.shp tl_2010_us_uac10_conus_albersUA.shp ...
4
votes
3answers
3k views

How to generate a shapefile containing an UTM grid (graticule)?

I'm looking for a shapefile containing an 1000m or 2000m UTM grid ("graticule"). All I was about to find on the web is a 10000m UTM grid (here: http://en.giswiki.net/wiki/UTM) and I am aware that a ...
4
votes
1answer
858 views

Convert from shapefile to GPX with selected attributes

I have a points shapefile that originally came from a GPX file (imported using QGIS). The original GPX file contained waypoints only and has disappeared. The shapefile has many attributes, but only ...
3
votes
1answer
3k views

How to resize shapefile features proportionally in QGIS?

In Quantum GIS (1.8.0-Lisboa) on Windows (OSGeo4W Install), how exactly would you resize a feature proportionally. The only way I've found to do this is by hand using either the Freehand Editing ...
3
votes
1answer
1k views

C# Library for converting Shapefile Projection

Is there any C# library which can take a shapefile as an input with projection information defined (e.g, EPSG 3011) and return a new shapefile with user specified projection (e.g, EPSG 4326) ?
2
votes
0answers
40 views

Generating a map from a shapefile using ms4w mapserver [duplicate]

I am trying to generate a map from a shapefie. Through some initial searching, I wrote the code below but I am getting just a white page. Below is my code: MAP # To enter comments into a mapfile ...
2
votes
2answers
309 views

Writing shapefile with projection defined crashes fiona

I've just started trying to use Fiona to write out shapefiles. I found the example code below, which seems to work fine from shapely.geometry import mapping, Polygon import fiona # Here's an example ...
2
votes
1answer
219 views

Why is shapefile not drawing in expected location after (or before) using Define Projection tool? [duplicate]

I have downloaded this zipped shapefile of bus routes from the City of Houston data portal. I then performed these steps in ArcGIS Desktop 9.3.1: Extracted the shapefile from the *.zip Added this ...
2
votes
3answers
2k views

Python: How to create a Polygon Shapefile from a list of X,Y coordinates?

I have a list of X,Y coordinates from a csv file, that represent a polygon. I´m trying to create a Polygon-Shapefile from this list. I´ve been trying around and found a possbility to write the list to ...
2
votes
1answer
3k views

Copy single feature into another feature class

I do a lot of editing, in this case areas. Sometimes I add an area to one shapefile, only to realise a bit later that it should have been in another. Is there an easy way of copying only that ...
2
votes
4answers
4k views

How to convert SHP into GPX or JSON?

I would like to convert the tree inventory shape files of London (Canada) into a GPX file and if possible into a JSON file. You can download the archive from their Open Data website. It contains the ...
1
vote
1answer
71 views

Using layer file to apply symbology to shapefile with ArcPy?

I have code that doesn't work at the moment: # Import arcpy module import arcpy # Script arguments Input = arcpy.GetParameterAsText(0) if Input == '#' or not Input: Input = "frame" # provide a ...
1
vote
0answers
65 views

Divided road segments from XTools Pro need unique, informative IDs

I can divide segments with my road using XTools Pro, but I want to give a useful identifying number to each segment. For example: If D100 road has been divided into 20 segments, the segments must ...
1
vote
1answer
460 views

Where to Dowload Village layers for India with census 2011 information?

Does anyone know where I could download a layer of all villages in India together with their populations (hopefully from the 2011 census)?
1
vote
0answers
80 views

Adding information from excel into ArcGIS [closed]

I am working in ArcGIS and have a excel sheet with data pertaining to properties. I want to add this data to a map in ArcGIS of which i have property boundaries as a shapefile? I have a common folio ...
1
vote
1answer
109 views

How to close spaces within a polygon in QGIS 2.2?

I have a shapefile displaying the borders of several city units. One of its polygons, however, had free space consisting of four vertices in it. I created another polygon inside the free space and ...
1
vote
2answers
430 views

How to publish shapefiles with GeoServer?

I have multiple shape files of my country, its states and cities. I want them to display in map i.e. First layer is country, then states-layer and then cities layer. I only know that to do this, first ...
1
vote
3answers
7k views

Merging Two or More Layers using ArcGIS for Desktop?

I am working with three clipped layers that are shown in the TOC. I created these layers from a large watershed shape-file. However, each clipped layer includes the layer before it and only expands on ...
0
votes
1answer
53 views

How to rasterize a vector dataset in R?

I would like to compare vector vs raster data. So i try to fix a problem using both ways. I made it in vector first : coastline<-readShapeSpatial("shp") wets<-readShapeSpatial("shp") ...
0
votes
1answer
187 views

Shapefile projection for Matplotlib Basemap

Preface: First time working with GIS data. I'm using python's Basemap library for overlaying data on maps. The tutorial I'm using includes a shapefile for London (london_wards.shp). I use the ...
0
votes
1answer
102 views

Merging polygons which have different coordinate system with map coordinate system?

in order to merge the polygon I go to editor tool and then select merge, however in my case when I want to edit it is giving me this statement" the layers are in a different coordinate system than the ...
0
votes
1answer
361 views

Creating records in output shapefile using Python

I have a list (output from a previous loop) containing attributes from an input shapefile. What I am stuck with is inputting those attributes to a new shapefile. I have plotted the point data using ...
0
votes
1answer
968 views

How to extract geo data out of a polygon shape file into csv kwt [duplicate]

I have a polygon shape file that contains all the neighborhoods in the Netherlands. My aim is to export the neighborhoods and coordinates to csv file (KWT). Without success I tried (with QGIS) these ...
0
votes
2answers
592 views

How do i draw a route on Quantum GIS between nodes?

I have a requirement to trace path on the points present in the shapefile which is loaded in Quantum GIS. This should enable the user to specify their own routes within the present network. There ...