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)

3
votes
3answers
687 views

Why does QGIS crash when merging shapefiles?

This is a repeatable problem. I have created a shapefile using a csv. I am trying to merge it with an existing shapefile, both of which contain only points. (Using the Vector | Data Management | Merge ...
1
vote
3answers
1k views

ArcGIS Server geoprocessing service examples for shapefile data export

I have a web application client built using ArcGIS Server Manager which is currently showing a single map composed by three data layers. The map data are provided as a map service by my ArcGIS Server ...
2
votes
2answers
753 views

What can go wrong in UTM to WGS1984 conversion (shifted data)

I try to convert .shp files to OSM data with shp2osm and ogr2osm but the output data is shifted. Semi-Cross-Posting Warning: I have already asked a questions on the OSM help site, but this questions ...
1
vote
2answers
169 views

information from a shapefile to another shapefile

I am very new to GIS and learning by myself so what I'm about to ask is possibly quite basic. I am using QGIS. I have a shapefile, which categorizes areas (land cover) by numbers (corresponding to ...
3
votes
2answers
1k views

How to convert ESRI SHP to KML with correct coordinate system?

I am working on this SHP file, containing geographical district of Hong Kong. I would like to export this to KML and export it to Google Map for overlay. After I converted it to KML in QGIS (just ...
3
votes
1answer
133 views

Points warped when exporting to shape

I have recently purchased a Trimble GeoXH (used) and have done a few surveys. I have done differential correction in Trimble Pathfinder Office and all points seem fine. When exporting to shape and ...
4
votes
2answers
2k views

How can I export data from a feature layer in ArcGis Server?

I'm using a public ArcGis server with some data I would like to export to shape or some other format. I know I can make a program (I'm a developer) that could query the server for all the features on ...
1
vote
0answers
54 views

SQL server 08 Limitations

The Soil SURvey GeOgraphic (SSURGO) database is a set of very large and complicated shapefiles. We want to load all of the shapefiles for the US into a national SQL database. Are there import ...
4
votes
1answer
141 views

Problem opening a shp in another application

I helped a colleague converting waypoints from a gpx file to a shape file. My colleague has only arcMap. I gave him the shp and when he opened it in ArcMap, it did not show anything in the attribute ...
1
vote
0answers
152 views

What is the best way to create polygons on a map and download files associated with the polygon?

My client wants to build a tourist site and for that he wants a backoffice for the map and the ability to draw polygons on the map (that user can see). When the user clicks on a polygon, he gets a ...
1
vote
1answer
269 views

Unable to add PostGIS table to Geoserver

I am able to add individual tables to Geoserver using, curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d ...
1
vote
2answers
258 views

How to remove shapefile from PostGIS

I added a shapefile to the PostGIS using, ogr2ogr -f PostgreSQL PG:"host=server_ip user=username dbname=dbname password=password" yourshapefile.shp; Now I want to remove it. What is the command ...
10
votes
2answers
8k views

Adding shapefiles to PostGIS database

I was able to create a Postgresql database and then I executed, createlang plpgsql geospecies psql -d geospecies -f postgis.sql psql -d geospecies -f spatial_ref_sys.sql So now can I directly ...
2
votes
2answers
635 views

Problems converting CSV to Shapefile using pyshp

I have a python script which converts csv data to shapefiles. It converts but won't get angle from csv. Can anyone help me? The CSV data looks like this: fid_nr;x;y;angle ...
5
votes
0answers
134 views

How to add shapefile name as attribute during merge? [duplicate]

Possible Duplicate: How to add field with filename when merging shapefiles with ogr2ogr? I have more 200 shapefiles with a unique name. I would like to merge all of these together and save ...
3
votes
1answer
3k views

Creating Isolines from point Data

I'm quite new with ArcGis 10 so I’m having difficulties with something that may be simple to some. Anyway I have a list of bores that I’ve plotted using coordinates. Now I need to draw a single ...
1
vote
2answers
151 views

Length of Feature

I have a shapefile which renders a map. I want to calculate and preferably store length of each feature in the shapefile either using QGis or through programmatic means. What is the best way to get ...
3
votes
1answer
651 views

Automate removal of duplicate polygon nodes from shape file in Arcmap

I have a whole lot of polygon shape files, many of which have got duplicate nodes. This makes processing difficult as almost all tools (erase, union, calculate area) do not work. I found that by ...
5
votes
1answer
131 views

Where do I append point values with pyshp?

I would like to generate a .shp with five points using shapefile available through pyshp. However, when I loop through my list I get only the last value. This makes sense as I did not append any of ...
3
votes
2answers
2k views

Create point to a center of polyline

I'm trying to create a points in the middle of polylines. The data is now in the form of shapefile. Is there an easy way to do this? Cheers, Sanna
19
votes
2answers
9k views

How to convert .shp into .gpx using QGIS?

I'm newbie using QGIS. I would like to convert .shp into .gpx. So, using Qgis, I open my shapefile and I tried to "save as" gpx but it gives an OGR error: creation of field ObjectId failed (OGR ...
1
vote
1answer
457 views

Is the PostGIS Shapefile Import Manager able to upload to phpmyadmin or only pgadmin III?

After trying to import a shapefile into pgadmin III with no success I was wondering how to successfully upload it, but also if it is possible to upload to phpmyadmin instead. In any case, how exactly ...
18
votes
3answers
4k views

How to easily edit attribute data using Regular Expressions?

I am writing a tutorial for MSc students that uses QGIS. One of the tasks requires the attribute data to be modified (see pdf draft of tutorial here if interested ). The question is how to get them ...
1
vote
0answers
1k views

importing shp file in matlab

I have digitize 3 rivers on google earth and converted into shp file to use in matlab. I have checked the shp file in Arcgis and they are working. But while opening in Matlab, matlab shows some error. ...
4
votes
3answers
848 views

Why is the curl syntax unable to create datastore?

I am implementing the following code to upload an existing shapefile as per the documentation, curl -u admi PUT 'Content-type: application/zip' \ --data-binary ...
3
votes
1answer
177 views

How do I find overlapping attributes in two different layers?

I have two layers - one with country borders, and one with river basin borders - and I need to find a way to generate a list of basins that occur in each country. Is there a way to find overlapping ...
4
votes
1answer
471 views

Shapefile vs Arrays of coordinates to build Google Maps overlay?

I am very new to GIS, and my task is to overlay about 100 polygons on a map. I'm using Google Maps Javascript API v3. I think I can define all my polygons as sets of lat/long coordinates in my ...
4
votes
2answers
492 views

ArcGIS: Rapid digitizing of Point Data

I have several big maps with a lot of points that I have to digitize. All these Points have different Values (depth in Meter, double) and will be stored in 1 Shapefile. Is there a way to speed up my ...
16
votes
2answers
4k views

Using R to calculate the area of multiple polygons on a map that intersect with another overlaid polygon

I have a shapefile downloaded from the Ordnance Survey that gives electoral ward (division) boundaries for a county of the United Kingdom. I have successfully used R to load the shapefile and plotted ...
11
votes
3answers
6k views

How to create a GeoJSON that works with D3?

I'm simply trying to convert a .shp file to a geoJSON format using: ogr2ogr -f geoJSON output.json input.shp After executing the command nothing seems to be wrong. Here's an excerpt from the ...
4
votes
1answer
5k views

How to import shp2pgsql?

I want to import shape file into PostGIS. There is 1 database postgres in it but no table added yet. I am using this command: shp2pgsql -I -s 4326 districts.shp districts | psql -d postgres -U ...
3
votes
1answer
1k views

How to overlay a Shapefile on a WMS layer using Geotools?

I am trying to overlay a shp file on wms layer using the example http://docs.geotools.org/latest/userguide/tutorial/raster/image.html. Each time I want to read the format of the file to get a reader ...
2
votes
0answers
232 views

KML files to IPad securely? Altitude and shape problems in Google Earth

Does anyone know any options for maintaining privacy of the files and getting them onto iPad using Google Earth? Using Google account to link to Google Earth, privacy settings in Google my maps are ...
3
votes
1answer
419 views

OSS java approach to convert Shapefile to GML

We've got a project coming up where we need to upload .zip of a shapefile, join the .dbf to some lookup tables, join to other tables also uploaded (one to many attributes for each feature), and ...
6
votes
1answer
618 views

How to connect places (points) without crossing lines?

I have two sets of data. One with placemarks represented by blue dots in image below, and another set of geographic data with lines represented by grey lines. 1) For the first point in drawing, I'm ...
6
votes
4answers
4k views

How do I use ogr2ogr to convert a GML to shapefile in Python

I am trying to convert a GML to an ESRI shapefile using ogr2ogr utility in a python script. I have successfully installed the GDAL/OGR package via osgeo but I am now struggling to find/understand ...
4
votes
1answer
877 views

How can I export a shapefile to netCDF?

I have a shapefile of the worlds biomes Terrestrial Ecoregional Boundaries Shapefile (TNC), 12/14/09, 50MB download from available from http://conserveonline.org/workspaces/ecoregional.shapefile ...
5
votes
1answer
1k views

OGR Shapefile to CSV: Using Python to get WKT for multipart Polys.

Using ogr2ogr and python, I'm running into a wall with trying to create a csv with WKTs for a shapefile that contains multipart polygons. Currently this is this code I'm using (found it on interweb): ...
7
votes
4answers
534 views

What are some alternative sources for USGS data?

I've been using the USGS National Map viewer (http://viewer.nationalmap.gov/viewer/) for getting data for QGIS, but the download system is driving me insane. I enter my email address and [sometimes] ...
14
votes
6answers
4k views

How to improve rendering performance of very large shapefile?

I have a polygon shapefile that has a 100MB .dbf and 500MB .shp file component. The reason it is so large is it is a landbase classification for a whole district. Everytime I am viewing the file in ...
1
vote
3answers
596 views

Merge Zip Codes to Create new sales Markets

Let me preface this question by saying I am very novice with respect to GIS. With this in mind, I am looking to merge zip codes into sales territories. Instead of plotting data by zip code, I want to ...
5
votes
2answers
1k views

Shape-file encoding problem in QGIS 1.9.0 (built with GDAL 1.9.2)

I have googled a lot but failed to find the answer. My configuration is: Ubuntu 11.10 Quantum GIS - 1.9.0-Master 'Master' (caae7b7) GDAL 1.9.2, released 2012/10/08 Shape-files refuse to open in ...
2
votes
1answer
338 views

Edit Shapefiles Attribute data in GeoServer Programatically

I'm rendering a shapefile using GeoServer and using OpenLayers library to render it in the web browser. Now I have created the option of editing the attribute data in web browser. I want the edited ...
3
votes
1answer
2k views

How to export shp to kml?

I already browsed your FAQs, and could not come up with a good answer, I am trying to export shp files to kml to be placed on Google Earth. On a previous version of QGIS it was as simple as right ...
0
votes
1answer
270 views

Does a polygon in a layer intersect with another polygon in the same layer [closed]

I am a CS major with little experience in GIS. I am working on vector polygon overlay. Looking at GML and shapefile data, I realized that a map is made up of a large number of polygons. Does a polygon ...
7
votes
1answer
12k views

How to crop Shapefiles in QGIS?

I need to clip a large and very detailed .shp file in QGIS showing environmental data similar to a temperature map. Is there something like the very simple crop tool alike in photoshop where you can ...
1
vote
1answer
400 views

Is it possible to have self intersecting polygons in GML or shapefile?

GIS vector data for example GML or shapefile contains polygonal data. Lets assume, we have polygon A which has self-intersection which means that the edges in this polygon intersect with each other. ...
4
votes
2answers
685 views

What is the cause of 'tearing' of polygons (artifacts) using R, ggplot and geom_polygon?

Thanks to the answer given in this question I have been able to subset and draw a map of electoral divisions in part of the UK, in this case Pembrokeshire. The resulting data frame is large and ...
1
vote
1answer
124 views

Extending ArcGIS

I've been tasked with a thesis project where i have to extend the features of ArcGis. I've been asked to create a model written in Python that can run out of ArcGIS 10. This model will have a simple ...
8
votes
1answer
1k 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 ...