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)

0
votes
3answers
2k views

How to compare differences in two shapefiles? [duplicate]

I am a new user to Arcmap 10. I've been trying to figure out how to compare two polygon shapefiles. I need to figure out what the difference is from 2007 - 2013 (increase/decrease) in a couple of ...
2
votes
3answers
125 views

Breaking a continuous contour shapefile into smaller parts?

I created this contour shapefile and I need to break it into smaller parts so its better to manage. I also have a line shapefile of where I want the breaks. Is there a way to intersect and break them? ...
1
vote
2answers
136 views

Why does my 113th Congress Shapefile match up with the wrong districts across the country?

I downloaded a Shapefile from the Census on the 113th congress broken down by district nationally: http://www2.census.gov/geo/tiger/TIGERrd13_st/nation/tl_rd13_us_cd113.zip Within the .dbf file, ...
0
votes
2answers
83 views

Python to get ids from shp dont return all records

I have some Python code to get the ids and georeference from a shapefile: canvas = qgis.utils.iface.mapCanvas() allLayers = canvas.layers() nos = QgsFeature() for i in allLayers: if ...
1
vote
1answer
359 views

How to truncate field names to 10 characters in model builder

Apologies that I have not posted an image of my model, I am away from my computer for a while but am trying to sort this out anyways. I have a number of different animal GPS location points, and a ...
0
votes
1answer
99 views

How to convert geometry of SHP to decimals

I try to create a line with two points. These points are obtained in a SHP layer. How can i convert that points to decimals? Thank you
0
votes
1answer
128 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 ...
1
vote
1answer
201 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 ...
0
votes
1answer
439 views

How to show .shp file on Mapview(ArcGIS Android SDK 2.0.0)

I'm using ArcGIS Android SDK for first time. I have worked on a sample project and am able to get a World map using this.. map = (MapView) findViewById(R.id.map); map.addLayer(new ...
3
votes
1answer
162 views

Is it possible to use UTF-8 characters for shapefile attributes?

I heard that according to a specification shapefile attributes stored in dbf-files cannot have UTF-8 as encoding. And then I found out that an additional file with the ending CPG can be used to define ...
2
votes
3answers
550 views

How to preserve text when converting from .dxf to .shp?

I have tried using dxf2shp converter in QGIS but the text in dxf file is being lost during the conversion process, despite selecting export text labels. I would be grateful if someone can help me ...
1
vote
1answer
420 views

Display Shapefile on website (Java or PHP)

i have to write an application where similar to Google Maps where i have to display a shapefile in a web application. My available technologies are Java (frontend framework: Apache Wicket) or PHP. It ...
1
vote
1answer
142 views

If I've given two different layers the same CRS, why won't they overlay one another?

I have a "towns" and "state" shapefile for Massachusetts as two separate vector layers in QGIS. I've set the project coordinate system to WGS 84 at the bottom of the screen (next to the "coordinate" ...
2
votes
2answers
708 views

Built a query for polygon Shapefile in R

I use the package maptools to read in Shapefiles in R. I would like to know if there is a function that can built up a query/subset to select only some Polygons based on a specific attribute in the ...
0
votes
1answer
35 views

Opening specific area only

I have a Shp file loaded of a County boundary, but i would like to open another shp file but only show the lines etc within that area and automatically delete anything outside. Thank-you
0
votes
0answers
124 views

Grass won't import shapefiles

I have a problem involving the import vector data command, specifically importing shape files. I installed QGIS on a pc at work and there I could import shape files into GRASS GIS 6.4.3RC2 (which is ...
3
votes
1answer
105 views

File size limitation for shape file

I am going through File size limitation for shape file esri support article (this article applicable for ArcGIS 9.X version not for 10.X ) I know may be same article will applicable for 10.x version ...
0
votes
0answers
147 views

catchment delineation

I am trying to use qgis to delineate between three sub-sub-catchments. I have contour shape file of 20 meter height. Sub-catchment is about 12 square kilometers area but consist of three ...
2
votes
2answers
544 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
218 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
304 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
845 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
748 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
698 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 ...
3
votes
1answer
1k 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
140 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
487 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
284 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
565 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 ...
3
votes
0answers
109 views

Shapefile and DEM: check rivers behaviour

I'm working with shapefiles representing rivers (rivers.shp), and DEM for the terrain elevation (terrain.tif). Basically, I want to check that my rivers (stored as polylines in my shapefile) behave ...
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
160 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
646 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
173 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 ...
14
votes
4answers
7k 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
108 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
709 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
3k 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
570 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
117 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
254 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
263 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
1answer
259 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 ...
1
vote
0answers
83 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 ...
5
votes
2answers
891 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
403 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
638 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?