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)

0
votes
3answers
4k 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
174 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? ...
3
votes
1answer
112 views

Attribute manipulation on shapefile

I have a shapefile which contains landuse types. The Landuse types are written in a field called "Type" and contain also the area in m² and a landuse code. Some polygons contain more than one landuse ...
0
votes
2answers
86 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 ...
0
votes
1answer
102 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
1
vote
1answer
541 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 ...
1
vote
2answers
410 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
2answers
2k views

Why does Clip keep giving Error999999: Error executing Function Invalid Topology [Topoengine Error]?

The layer being used as the Clip Features has been used before and worked fine, so I assume the issue is the layer I am trying to Clip (Input Features) - I keep receiving the same error when running ...
0
votes
2answers
771 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
267 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 ...
0
votes
2answers
404 views

FME: Identify a string within a field and populate another field with that same string

I have a shp which needs to be split according to attributes in a field. The problem is that the field contains other Characters and dates. For Example the Field is called "Landtype" and contains the ...
3
votes
3answers
842 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
679 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 ...
2
votes
1answer
261 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
3answers
407 views

From OSM to shape. Parsing problem

I'm working at OpenStreetMap project for android at the moment. I want to retrieve OSM data from my app(nodes, markers and paths) and convert it to shape file (.shp, .dbf and .shx). Later, I'll load ...
0
votes
1answer
392 views

Writing iso19139 compliant xml metadata from a spreadsheet

I am looking at a way to migrate the metadata from a spreadsheet into iso19139 compliant xml metadata documents for a collection of shapefiles. I can parse the data out of the spreadsheet into strings ...
0
votes
1answer
37 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
2
votes
2answers
2k 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
0answers
158 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
139 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 ...
37
votes
7answers
15k views

Whether to use File Geodatabase (*.gdb), Personal Geodatabase (*.mdb) or shapefiles?

I am a bit confused on the topic of geodatabases. Previously, I have used geodatabases as an easy way to keep all files together rather than having dozens of shapefiles all over the place. And it's ...
0
votes
0answers
237 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
1k 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 ...
0
votes
2answers
350 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
500 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). ...
2
votes
1answer
123 views

Web map tool with high interactivity [duplicate]

I'm looking for an ArcGIS Online alternative. It needs to be linked to a private MySql server Use shapefiles Display attribute data and charts upon click/hover Toggle shapefile to display/disappear ...
2
votes
1answer
309 views

How to modify the coordinates of a SHP geometry using Geotools?

I have a shapefile with some polygons. I would like to change the height for this elements using Java. The rest of the attributes should be the same. I've thought using GeoTools but I haven't found ...
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 ...
0
votes
0answers
798 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
338 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
900 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 ...
5
votes
1answer
174 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 ...
1
vote
3answers
234 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?
2
votes
1answer
3k 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 ...
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.
2
votes
1answer
327 views

Kartograph Open Street Maps

Firstly, congratulations to Gregor Aisch for creating such a wonderful library, thank you! I am having a little trouble rendering an svg from some osm data. I downloaded the Sweden transportation ...
7
votes
3answers
5k views

Finding 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 and, ideally, also ...
3
votes
2answers
202 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 ...
1
vote
1answer
170 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" , ...
15
votes
1answer
1k views

How to rename field names in a shapefile from the commandline?

I need to rename the field names (attributes) in a shapefile. Is there an easy way to do this from the command line?
8
votes
2answers
3k views

How to count points in shapefile within polygons of another shapefile?

I'm creating a map with two shapefiles. One is a polygon of counties. The other is points of cities. I used the function intersect to group the cities in each county. I'm trying to get the number ...
0
votes
1answer
1k 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 ...
1
vote
4answers
377 views

Does shapefile or MapInfo TAB have advantage as source format for OGR conversion to GeoJSON?

I'm relatively new to OGR and GIS in general. Most of the sources I look at give a choice of ESRI shapefile and MapInfo formats. I'm using ogr2ogr to convert these to GeoJSON for import into ...
1
vote
1answer
181 views

Arcpy CreateUniqueName usage: keep original input names

This is a continuation of the question I asked here: At this point I'm really just trying to get everything in one place and keep the original shapefile basename. I'll tackle merging like-named ...
5
votes
1answer
304 views

Can I edit shapefile while using a definition query in QGIS? [duplicate]

Is it possible to edit shapes while using a "definition query" or "query builder" in QGIS? I'm trying to do this in the same way I used to in ArcGIS. Thanks!
0
votes
1answer
347 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 ...
1
vote
1answer
1k views

How to dissolve polygons and aggregate their data in QGIS? [duplicate]

I have a shapefile (one layer) with my country but I have a problem. It is divided into 4 entries (prefectures), and I want it as one, not 4. Also, there is a table with some data, and I want to ...
2
votes
1answer
341 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 ...