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)

2
votes
1answer
342 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") ...
0
votes
1answer
222 views

ST-Links convert Feature Class to DB Table error

I'm using ArcMap with the ST-Links SpatialKit Conversion tool to convert a Feature Class to a DB Table. But I'm getting an error: ERROR: 42601: type modifier is not allowed for type "geometry". I ...
7
votes
3answers
2k views

How to avoid creating corrupt Shapefiles during Editing?

I have one of my GIS technicians digitizing some lines in QGIS in shapefile format. I don't know how he did it (and neither does he), but somehow the shapefile became corrupt. It was creating random ...
0
votes
1answer
158 views

I want to change using C# the style of a set of shapefiles once I have uploaded them or while I am uploading them

I am using C# and the WebRequest class to create a worksapce and then another WebRequest to create a datastore and upload a folder full of shapefiles to a geoserver. However, I would also like to ...
2
votes
1answer
465 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
2answers
370 views

British National Grid to KML results in offset polygons

I have a shape file of English wards from ONS. It is similar to the files available here: http://www.ons.gov.uk/ons/guide-method/geography/products/census/spatial/2011/index.html except I had to ...
0
votes
1answer
180 views

Shp2pgsql - exec() not allowed on external server

Me and my collegue are using the shp2pgsql and psql commands in php code (a Drupal module to be precise). We put these commands in a php variable and use the exec() command to execute them. This ...
1
vote
0answers
88 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 ...
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 ...
2
votes
2answers
575 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 ...
0
votes
1answer
189 views

Saving part of OSM shapefile in QGIS as GeoJSON strips 'name' field to 25 characters long [duplicate]

I want to copy part of OSM data in ESRI Shapefile (downloaded from http://download.geofabrik.de/europe/ukraine.html ) and save in in GeoJSON to style later in Tilemill. After saving, I see that ...
1
vote
1answer
96 views

BBox missing when converting TIGER to GeoJSON

I can't get the bounding boxes of polygons if TIGER/Line shape files when converting them to GeoJSON using FWTools. The other default information is present and there is no difference between the ...
0
votes
1answer
134 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 ...
2
votes
2answers
995 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?
1
vote
0answers
139 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
0answers
155 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 ...
5
votes
1answer
996 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
80 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 ...
1
vote
1answer
780 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
1answer
57 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 ...
4
votes
1answer
258 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 ...
3
votes
0answers
153 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 ...
1
vote
1answer
516 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 ...
1
vote
1answer
972 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
1answer
654 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 ...
4
votes
2answers
4k views

How do I add my own map layers to Leaflet

I have a Leaflet map and want to add two of my own small polygon layers (currently in shapefile format, but they could be converted to GeoJSON). Can this be done without a mapserver to publish them ...
2
votes
2answers
449 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 ...
4
votes
1answer
2k views

better way to duplicate a layer using ogr in python?

I'm splitting a large shapefile into many smaller ones using ogr. I'd like to just copy all of the field and layer config information from the original. Here's how I'm doing it now: src = ...
0
votes
1answer
171 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 ...
3
votes
0answers
344 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); ...
4
votes
3answers
519 views

In an ESRI Shapefile, what is the “Record Number” field of each record header in the .shp file?

The shapefile specification (http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf) only says "Record numbers begin at 1." (page 5), which doesn't specify what the field actually is. As per page ...
3
votes
2answers
1k views

PyQgis overwrite shape file and adding layer to Qgis

I am creating a shapefile in python by: driver = ogr.GetDriverByName('ESRI Shapefile') datasource = driver.CreateDataSource('c:/temp/toke2.shp') layer = ...
2
votes
1answer
218 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 ...
0
votes
0answers
198 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... :( ...
-1
votes
2answers
209 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 ...
1
vote
2answers
657 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.
12
votes
2answers
8k views

How can I get a shapefile from a postgis query?

My data is in a PostGIS database. I would like to generate a shapefile from a query. How can I do that?
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?
0
votes
0answers
45 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 ...
5
votes
3answers
290 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 ...
1
vote
2answers
529 views

Where can I download Southern California Interstate Highway System in a Shapefile?

Does anybody know where I can download the Interstate highway system (as a shapefile) for Southern California (the area around San Diego in particular)? Thanks, in advance!
2
votes
5answers
2k views

Counting road intersections and blocks

I have a shp file that consists of the road system of Mexico City. I would like to count the number of road intersections (crossings) and blocks (which I would define as a segment starting from one ...
1
vote
3answers
629 views

Looking for a simple method to find the shortest path with Shapefiles

I am having shapefiles for a particular map location, the shapefile consists of points and polylines. Now I want to find the shortest path between the points. What is perfect and simple method to find ...
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)), ...
1
vote
1answer
197 views

Natural Earth: How to get the position of all provinces that belong to a state

This question is about Natural earth 1:10 states and provinces.shp file. I'm using ogr2ogr and want to know the name of the id i need to pass . In purpose of pulling out the right states regions. ...
3
votes
1answer
608 views

“Topo to Raster” tool for QGIS?

is there any analogue of the ArcGIS "topo to raster" tool in QGIS? I need to creates surfaces from shp for some cases from points and for some from lines and this instrument is very convenient.
0
votes
0answers
54 views

Where to find Data with site that have hazardous, toxic or radioactive substances?

Does anybody know where to find data that lists the location of sites that have hazardous, toxic or radioactive substances? I'm working on a HUD project and need to be able to find out if sites for ...
5
votes
3answers
364 views

How to combine stacked polygons within a shapefile?

The image below shows my shp-file. Every polygon has the same transparent color. So a darker blue means, that several polygons are stacked! How do I cut every polygon with each other so no polygons ...
3
votes
1answer
3k views

ESRI Javascript API Export to Shapefile and CSV

I am working on a Javascript Web Application using the ESRI Javascript API v3.3. My application allows the user to edit and query data and also provides a table for attributes. I would like the user ...