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)

20
votes
2answers
3k views

Python Efficiency — Need suggestions about how to use OGR and Shapely in more efficient way

I'm looking for some suggestions about how to make my python code more efficient. Normally efficiency doesn't matter for me but I am now working with a text file of US locations with over 1.5 million ...
10
votes
2answers
2k views

How to add custom Feature attributes to ESRI Shapefile with Python?

I am seeking a way to take an existing ESRI Shapefile that has a Feature set of 200 countries. Each country Feature has an attribute of "NAME." My objective is to create a Python script that adds an ...
7
votes
1answer
894 views

How can I use fortify() to create a filtered R data frame from a shape file?

I am in the process of building a ggplot choropleth map of population in administrative areas in Wales. I have downloaded the Boundary-Line data from the Ordnance Survey and extracted what seems to be ...
6
votes
2answers
3k views

How to display a Shapefile on a browser? -offline-

Plot points on a Shapefile like this: https://github.com/gka/pyshpgeocode and then convert it to HTML and display it on a browser? Is this practical method to display the map on a browser? Any cons ...
6
votes
4answers
17k views

Looking for free Shapefile editors

I want to create and edit Shapefiles for my application, and I'm looking for a free shape (ESRI) file editor - free for creating and editing. Thanks in advance.
10
votes
5answers
562 views

Database versus Files for Solo Developer

I'm just getting started in GIS and am interested in using it to create maps of mountain biking trails in my area and nearby. I've been learning QGIS and have made enough progress to generate a decent ...
10
votes
2answers
10k views

How do I add a shapefile in ArcGIS via Python?

I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shape file to the current map. (And then do stuff to it, but that's ...
6
votes
2answers
733 views

Google Earth Enterprise & ArcGIS - How do you use them together?

I have been fielded a few questions about Google Earth Enterprise--which I don't know anything about, I'm having a time finding answers to the two following questions, which can probably be summed up ...
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 ...
3
votes
1answer
3k views

Converting kml to shape file via ogr2ogr including all attributes

Here is the example kml file I am using: <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>My Golf Course Example</name> <Placemark> <name>Club ...
3
votes
8answers
17k views

Having problems with joining an excel table to a shapefile in ArcMap

I have a shapefile of lower layer super output areas (LSOA) for England and Wales and I have a spreadsheet of the indices of deprivation for each of the LSOA's in England. I want to join the ...
12
votes
2answers
3k views

API documentation for Gdal/Ogr with C#

I want to assign projection to shapefile in my web C# application, for this i am using Gdal/OGR/OSR C# bindings and add osr_csharp.dll and ogr_csharp.dll references. But i am facing some difficulty ...
11
votes
0answers
256 views

How to query OSM for all beaches facing west? - QGIS preferred

I want to identify all beaches on this planet (or a given subset of it) that are facing westwards (+/- 20-30 degrees). My idea is to use OSM as the data source. Extracting all polygons that have the ...
10
votes
4answers
1k views

How to reproject spatial data using free libraries?

How can I use free libraries to transform spatial data? For example, I want to change the projection of a Shapefile within the code of my C# web application. How do I do that?
10
votes
2answers
3k views

Point (of a linestring) within Polygon using ogr and Python

I'm currently working on a project in which I need to build a topological network out of the geometry features I find in shapefiles. So far using Ben Reilly's open source project I've managed to ...
7
votes
7answers
2k views

how to overlay shapefile and raster?

I have a shapefile with polygons. And I have a global raster file. I want to overlay the shapefile's polygons onto the raster grid and calculate the mean raster value for each polygon. How can I do ...
7
votes
5answers
10k views

I am struggling to convert .dwg to .shp, ideas?

Any ideas as to how can I convert dwg to shp? I tried Kosmo and gvSIG. gvSIG kind of worked but it seems like I lost information.. in addition everything was converted into lines, no polygons. I can ...
6
votes
1answer
1k views

Get shape filename in attribute field using field calculator

I apologize for crossposting against the ESRI geoprocessing forum, but it seems like this one gets answers. I'd like to have a modified append tool (ArcToolbox) that takes multiple shapefiles with ...
6
votes
2answers
661 views

How is the default label field chosen by ArcMap?

I have 2 questions: I know how to manually go to Layer Properties>Labels tab>Label Field and choose my label field. I also know that I could set up my primary label field and save the setting as a ...
4
votes
2answers
415 views

Easiest way to create measured intervals between shape points

I need to import a scanned photo of the outcrop (geology project) and re-create the grid from which i took plug data- each plug point will be drawn as a shape point file. The plugs were taken on a ...
4
votes
3answers
8k views

Converting a .jpg map into a shapefile

I have a .jpg map of a set of U.S. counties that were affected by a tornado. The map shades where the tornado passed through, resulting in some counties only partially experiencing the tornado. I ...
4
votes
1answer
3k views

How to plot points on maps using ggplot2 and R?

Thanks for help me in GIS 101 Problem #1, now I have geocoded a few hospital in Connecticut using google map, I have able to visualize them in QGIS, now I am trying to do it in R. ct <- ...
4
votes
2answers
317 views

How to register shapefiles to an image?

I'm generating images from various sources and the projections are not necessarily known ahead of time. The images are subject to interpolation and other alterations while being rendered, but I can ...
3
votes
2answers
1k views

Can QGIS automatically load an SLD with a Shapefile?

I have SLD's/lyr files with my shp/gdb files. They all have the same name except for the extension. Is it possible for me to force qgis to load the sld with the shp so that I don't need to manually go ...
3
votes
2answers
642 views

How to find out the co-ordinate system using .prj file

I'm very new to GIS concepts. Is there a way or procedure of finding out whether the co-ordinate system is in UTM, latitude/longitude or in stateplane using .prj file? My .prj file contains the ...
3
votes
9answers
10k views

Creating shape file from file with coordinates

How can I make a shape file of an csv file with coordinates?
3
votes
3answers
550 views

Do you know of any sites where I could find some cool recreational shapefiles?

Do you know of any sites that I could find some cool recreational shapefiles? An example would be shapefile of the golf courses, ski resorts, or maybe baseball fields in the united states?
2
votes
1answer
1k views

encoding problem with QGIS 1.8 and CSV import

I have following problem with QGIS 1.8. Lisboa (standalone installer, Win 7 Pro 64bit) - I import CSV - text in CP1250 separated with ";" and using "," as decimal separator. I correctly set the ...
2
votes
1answer
721 views

Seeking shapefiles of business locations

Does anyone know where to find shapefiles of businesses such as grocery stores or gas stations? Thanks!!
1
vote
2answers
577 views

Python - GDAL : Polygon to point shape file

I want to read all the points in a polygon shape-file and use their coordinates to make a new point shape file. then find the min and max of the X coordinates. So here is the code I wrote for the ...
11
votes
2answers
476 views

How to clean such a bad shapefile for routing ?

I am trying to clean a shapefile to make it usable for routing with pgrouting, postgis, postgresql. Here an intersection, it seems to be connected but when we zoom …. It is not: Same here : ...
10
votes
2answers
1k views

Which Windows GIS editors support the creation of 3D shapefiles besides ArcGIS with 3D Analyst?

I need to find and easy and affordable way to generate 3D linear shapefiles in Windows so one of our users can inspect our tool. We incorrectly assumed that he had 3D shapefile source data available ...
8
votes
7answers
2k views

Is there a Free Opensource Shapefile Writer for .NET?

I am looking for a well documented, OpenSource Library that can create and write to a shapefile from .Net. I need lower lever access:i.e. I should be able to write feature by feature. Does such a ...
8
votes
1answer
3k views

How to convert GDB data to shapefiles without ArcGIS?

We've got some data (supposedly it's a simple collection of points--or at least that is all we need to extract) from a 3rd party in a GDB folder (I don't know how to tell what version) but we don't ...
7
votes
2answers
784 views

Control the colors of a shapefile

I have a Shapefile with road data. Sometimes the roads are blue, sometimes they are green. I didn't used to mind, but now I'm tiling everything so I need to control the colors. I'm loading it with ...
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
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 ...
6
votes
3answers
2k views

How to load OSM data into PostGIS preserving all Tags?

I am new to the field of GIS and am trying to view source tags in OSM. I have downloaded the shapefiles from http://downloads.cloudmade.com and have loaded them into Postgres. When I view the data, I ...
4
votes
2answers
699 views

Splitting DXF layers into Shapfile layers in QGIS?

When i load a dxf into QGIS all the layers are present in the attribute table. Is it possible to split this "entities" layer in QGIS into its component parts and save each component part as an ...
4
votes
2answers
1k views

Dividing Earth into continent polygons

Is there a simple (low res is fine) polygonal data set that divides the entirety of Earth's surface into continents, with no overlap and no area excluded? Specifically: North America, South America, ...
4
votes
5answers
2k views

How to add a projection to a Shapefile using open-source tools?

I have been given some shapefiles WITHOUT a projection. So I need to add the projection in order to display it on google map. I found the projection information I need at ...
4
votes
2answers
834 views

Kicking someone off a shapefile in ArcMap

I have ArcMap open, and someone else has the same shapefile open as me. How can I kick them off so that I can edit? I get the following error message: "Unable to save edits, cannot acquire a lock"
4
votes
1answer
2k views

Mapnik Style Filter on River/Lakes Shapefile attributes (from Natural Earth Data)

As a followup to this question, I downloaded the vector data here: http://www.naturalearthdata.com/downloads/10m-physical-vectors/ and I successfully created the rasterized water/land mask I ...
3
votes
2answers
2k views

ogr2ogr srs options: where is the well known definition determined?

In the ogr2ogr documentation it says that when using -a_srs srs_def: Srs_def can be a full WKT definition (hard to escape properly), or a well known definition (ie. EPSG:4326) or a file with a WKT ...
3
votes
1answer
3k 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
1answer
108 views

Wrong projection high quality shapefile for the coastline of Helsinki region (Finland)

I did some spatial interpolations in R and I need a support for those. Looking for shapefiles online the best I could find was and it looks really horrible, the same area in ggplot looks like . I ...
2
votes
2answers
71 views

Why OSM data has different attribute values from the same element and same time frame?

Here is my question: Does anyone know why OSM has different attribute values from the same element and same frame time? The example explains itself, when I try the Shapefile from different mirrors ...
2
votes
2answers
3k views

Detailed Bathymetric/Bathymetry contour data (0-200M)

I am looking for free Bathymetric contour data in shapefile format for depths between 0-200 meters for North America. I prefer contours at 10 meter increments, but will take whatever I can get. I ...
2
votes
2answers
750 views

How to incorporate drop-down list within cells of shapefile attribute table using ArcGIS 10.0 or 10.1?

A question has been brought to my attention. When working with a shapefile within either 10 or 10.1. Is it possible to create a python script or some sort of programming language to accomplish this ...