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)

2
votes
2answers
877 views

Where to download USGS DOQQ boundaries?

I downloaded a shapefile of USGS DOQQ boundaries a few years ago and cannot seem to find one now. The attached image shows an example of the shapefile I'm looking for (green polygons showing the ...
23
votes
6answers
1k views

“Oddities” in the Shapefile technical specification

I've been writing a shapefile parsing library, and have encountered a couple of design decisions in the specification that I don't immediately understand. I'm hoping there's a wizened old ESRI ...
0
votes
2answers
307 views

Splitting Shapefiles [duplicate]

I am trying to create a code that will accept the input of a shapefile, and separate each of its features into separate shapefiles into a specified directory location. Can anyone help ? I am trying to ...
3
votes
2answers
446 views

How to calculate the shared area between a raster and a shape file in ArcGIS 10?

I have a raster file with 5 classifications developed from habitat modelling algorithms. I'd like to know how much of 2 classes of the raster is covered by the network of protected areas (Shape file). ...
1
vote
2answers
1k views

How to Add Shapefile with Symbology from Layer File to ArcMap MXD using ArcPy/Python?

Say I have a Shapefile: C:\DATA\points.shp A layer file: C:\SYMBOLOGY\symbology.lyr And a map document: C:\MAPS\map.mxd How can I add points.shp to map.mxd with the properties of symbology.lyr ...
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 ...
1
vote
1answer
873 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 ...
8
votes
4answers
1k views

Is there a mapping between OGR and python data types?

I'm writing a shapefile using OGR in python, creating fields on-the-fly from a python data source. Creation of a new field requires an OGR data type, is there a mapping between OGR and python data ...
1
vote
1answer
2k views

Find and replace unicode character in a shapefile

I've found several example of script and blog posts on working with unicode characters, but I haven't been able to make anything works so far... It's a little frustrating I have a shapefile encoded ...
0
votes
1answer
164 views

Problem with encoding of CSV and SHP files in Linux

I am new to using QGIS. I came up against the encoding issue of shp files. This solution to solved my problem in Windows (for source I had to put windows-1253 instead of utf-8) My question is what ...
0
votes
0answers
619 views

Problem reading attribute with Python using osgeo.ogr

I am working thru "Python Geospatial Programming" and I have a problem in a program in Chapter 6 that I cannot seem to solve. The small program: import osgeo.ogr shapefile = ...
1
vote
1answer
320 views

Incorrectly Projected PostGIS data in TileMill

When I bring PostGIS data in EPSG:900913 into TileMill, my layers end up on other continents. This is my workflow: (1) Save shapefiles in QGIS to EPSG:900913 (2) Import the shapefiles using PostGIS ...
3
votes
2answers
736 views

Csv to Shp conversion? [duplicate]

I am working on a really big script right now where I have a csv file that I have removed rows and columns from, and edited the headers. I need to create one big shapefile for the entire csv file then ...
2
votes
0answers
1k views

Adding shapefile causes ArcMap Drawing Errors (General function failure)

I am creating a map that is a hodgepodge of databases, stand alone shapefiles, and a couple image services. Everything seems to go as expected until I add a certain shapefile to the mix. Then all of ...
1
vote
3answers
193 views

Converting Categories to shapefiles [duplicate]

I have created 2 Categories in a feature using classification.Now how do I convert them into new shapefiles?
1
vote
0answers
1k views

Google Earth export from QGIS

I'm using Quantum GIS. Is there a way to export a shapefile to Google Earth format (*.kmz) using QGIS? Thanks.
3
votes
2answers
195 views

Is it possible to create CAD file from shapefile and also create CAD blocks from the database fields

I am trying to find out if there is any software or plugin/code that I can bundle that will take a shapefile and export it to a CAD file with CAD blocks generated so our CAD mappers can just move the ...
15
votes
4answers
8k views

How to add an attribute field to an existing Shapefile via Python

I have a Python script that adds an attribute field to a Shapefile if doesn't exist. This is easy to do with ArcGIS (graphically or via Python), but I'm looking for something that doesn't depend on ...
1
vote
1answer
144 views

Postgis invalid geometry from shape file

I'm having trouble converting a Feature class (shape file) to a DB table (Postgresql 8.4/Postgis 1.5). This is the command in the pg log: INSERT INTO "public"."distritos" ("Shape" , "DEPARTAMEN" , ...
3
votes
3answers
989 views

Where can I find a shapefile of all the Montreal Neighborhoods?

I am trying to map out Montreal and was wondering if there is already an existing polygon shapefile of all the neighborhoods. Here is a link to a perfect example of what I am looking for. ...
0
votes
1answer
4k views

How to convert AutoCAD file to Shapefile for map from ArcGIS API 3.2 for JavaScript?

I have an AutoCAD file that I want to convert to Shapfile to appear in a map by API for JavaScript in .net. What do I do?
0
votes
1answer
909 views

How to calculate polygon areas in acres or square miles instead of feet?

I have a layer in State Plane NAD83. When I use "Vector|Geometry Tools|Add/export geometry columns" or Field Calculator they both create the area in feet. What if I want acres or square miles? Thanks ...
0
votes
1answer
237 views

Is it possible to update layer source in qgis

I've loaded a few shape files as layers in qgis, and I'd like to make a duplicate of the project and all associated shape files into a single directory. However, all of the layer sources are still ...
2
votes
1answer
310 views

OGR - Weird GeomType -2147483645 on polygon shapefile

I am trying to import a shapefile (multipolygon) in an app with ogr but I got an error about invalid geom type. If I inspect the data with ogr like this: datasource = ogr.Open("c:\\temp\\data.shp") ...
2
votes
1answer
375 views

Force dimensionality with shp2pgsql

After invoking: shp2pgsql -W "latin1" theshape.shp > thesql.sql My console responds with: Shapefile type: PolygonZ Postgis type: MULTIPOLYGON[2] Note the shapefile type is PolygonZ. The result ...
1
vote
0answers
85 views

Mapping between two different agencies roadway shapefiles of Las Vegas in ArcGIS

I have two roadway shapefiles of Vegas. But they do not overlap. One of the file has a certain shift from its exact location. Can anyone help me how can I move the location so that they overlap ...
6
votes
2answers
1k 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 ...
2
votes
2answers
494 views

How to calculate area in sq km of an ellipsoid shapefile

In QGIS, I often find myself setting up projects with an ellipsoid coordinate system (e.g. WGS84) so that the resulting maps have lat lon scales, etc. Often in these projects I also need to do some ...
2
votes
2answers
858 views

GeoJSON to Shape file conversion with geotools

Can someone please provide me an example of how to convert GeoJSON to Shape file using geotools?
0
votes
1answer
126 views

Correlation and terrain databases [duplicate]

I would like to know what kind of computation I could perform on a terrain database. I'm making terrain for VBS2 from raw data (shp files and DTM Elevation files) and then I'd like to be able to check ...
1
vote
0answers
120 views

Join .csv file and .shp of georeferenced points

I have georeferenced a map and saved a selection of some points on the map. These points are cities of departure and arrival and I want to join the .shp with a and excel .csv with the information of ...
1
vote
1answer
666 views

Why does Add Field to Layer File give “ERROR 000840: The value is not a Feature Layer”?

I'm trying to add a field to a layer file, but it always gives an error. What I did was making a closest facility layer and save the result as a layer and after that I tried to add a field, but then ...
1
vote
0answers
143 views

How can I add data to a shp file attribute table from arcobjects?

I have a code that selects row data from a listview table in VB.net. I have declared that data as a variable and I can see it if I ask it to dispay a message box (see code below). Now I would like to ...
1
vote
1answer
433 views

Problem to clip a raster with a shapefile

I need to clip a rasterlayer with a vector layer. When I try this, the following error appears: **ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero.** What am I ...
5
votes
1answer
838 views

Using ArcPy to batch merge based on shapefile name?

ArcGIS 10 SP4 Python 2.6.5 I have quite a few shapefiles that are in many different directories. I'd like to pull out groups of like shapefiles, merge them, and move the results into a FGDB. I've ...
1
vote
3answers
72 views

Trying to match delimited text layer to my shapefile

I'm pretty new to QGIS and having a bit of trouble getting a text layer to match my shapefile. I'm trying to plot Canadian cities on a shapefile I have of Canada provinces. The provinces shapefile is ...
4
votes
1answer
226 views

How to determine correlation between two databases?

I need to perform some tests and verifications on databases and/or datasets. I need for example to analyze two databases and then determine if there is enough correlation between both. My main issue ...
1
vote
1answer
56 views

Is there a way to traverse and select all vectors connected to a starting vector?

Preferably using QGis I'd like to remove errors from a road network .shp file and was wondering if there was a away to perform a flood fill or traversal on a vector layer to select all connected ...
3
votes
0answers
143 views

Shapefile and geocoding to retrieve an area name

I'm very new to GIS and all things geospatial! I have dbf, prj, sbn, sbx, shp and shx files that have been provided to me. The shapefile contains information on parts of the country that have been ...
0
votes
1answer
553 views

Unable to load Shapefile using pgShapeloader / shp2pgsql-gui (pgAdmin3's PostGIS Shapefile Import/Export Tool)

I am trying to load a shapefile (http://dds.cr.usgs.gov/pub/data/nationalatlas/statesp020_nt00032.tar.gz) into PostGIS 2.0.1 using pgAdmin3's PostGIS Shapefile Import/Export Tool. However its not ...
2
votes
2answers
397 views

What's the correct transformation for Lambert Conformal Conic for Wyoming?

I am a newb in QGIS. I have loaded QGIS 1.8 (Lisboa) and practicing with a number of maps for portions of the state of Wyoming. My maps are mostly in UTM 12N NAD 27 & NAD 83 some are in decimal ...
3
votes
0answers
292 views

Creating a ShapeFile spatial index programmatically in .Net

I am creating a shapefile programmatically using DotSpatial using the following example syntax / pseudo code FeatureSet features = new FeatureSet(DotSpatial.Topology.FeatureType.Polygon); ...
3
votes
3answers
762 views

Add date to feature class name?

I still working on my big project, big at least for me, but I am currently stuck on this: I have a lots of .shp, that I want to move to a gdb. While creating a feature class, I want to add date ...
2
votes
1answer
183 views

How to fix distortions for Baden-Württemberg?

I'm working in an area in Baden-Württemberg, Germany. I loaded some OSM data in QGIS but the map display is distorted. I tried ftools define projection with many different projections but nothing ...
-1
votes
2answers
203 views

styles when merging shapefiles in qgis

Trying to create something for mapstory.org It wants it in all one shapefile. So I create a polygons and lines (with time attributes) in qgis 1.8 Then merge them all into one shapefile, how can you ...
0
votes
0answers
193 views

Help in GRASS/QGIS/Python

I have Idea about ArcGIS, and a bit of QGIS and zero programming knowledge, which I am trying for thesedays. I saw GRASS GIS and have started working with shapefiles, which are not being loaded... :( ...
6
votes
3answers
6k 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?
1
vote
2answers
577 views

How to convert OSM data to a projected Coordinate system

What is the easiest way to get OSM data into a shapefile projected data format for QGIS? Sounds simple but I've run into problems with this before.
5
votes
3answers
269 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 ...
0
votes
0answers
41 views

Convert Shp to Dxf with QGIS [duplicate]

8.0. I have asked this before and seen similar but not the same (all of which I Have not got an answer to so not a duplicate). But is there a way to export a shp as a dxf so that it will not crash ...