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
2answers
96 views

How to select part of the polygon

I have a shapefile of the country. I need to select only percentage of that polygon for demonstration purposes. As an example, how to select 60% of polygon? I am using ArcGIS 9.3.
0
votes
2answers
135 views

Robust importing of shapefile into spatialite database?

I am trying to import shapefiles into a spatialite database using spatialite-gui. I am having problems with the types of the variables since spatialite-gui has no obvious way to handle shapes which ...
0
votes
1answer
91 views

How to compose WFS GetFeature link from WMS capabilities definition?

This publication of geoinformation provides download links for GetCapabilities documents via WMS. The platform also runs a WFS service as can been seen here. I wonder if it is possbile to compose a ...
1
vote
1answer
113 views

draw multipart polygon with one surrounding border

As you can see on the image below, the waterbody is divided by the border line because it consists of several polygons. I could merge the polygon, but I dont want to change the shapefile. Is there ...
2
votes
2answers
1k views

Creating a new feature class with python and then adding attibutes

I am having trouble adding rows to a shapefile after it has been created. I'm not sure if I need to create the shapefile in memory and add the data or creating then re-open the file. While I've ...
1
vote
3answers
613 views

KML to Shapefile using GDAL (LIBKML) - MultiGeometry data not transforming

I am trying to convert a KML file to Shapefile using GDAL (ogr2ogr). Regular KML files convert fine but KML files containing MultiGeometry features (eg: Geometry containing both Point and Polygon) do ...
1
vote
1answer
91 views

Need to use xlsx data to clip a shapefile

I have an Excel table with just one column, with 1150 records, each of them a species name. I also have a shapefile with 24,000 records, each of them a species name and its geographic range. I need to ...
2
votes
3answers
286 views

How to get a bbox selection of huge shapefile as GeoJSON?

I have a 4.29 GB Shapefile from which I want to extract features as GeoJSON, defined by a bounding box. This should be as fast as possible, because I want to use it in a web application. My first ...
0
votes
1answer
91 views

osm_id in a shapefile vs. the uid and id attributes in an OSM file

I'm parsing an OSM file using the Python package osmread. The entities parsed have the following attributes id, version, changeset, timestamp, uid, and tags. On the other hand, I have a shapefile, ...
0
votes
1answer
99 views

Extract longitude and latitude from shapefile

I want to create a media wiki page with map option where polygon required the following format. What is name of this format and how can it possible to extract this format from shapefile? ...
17
votes
3answers
13k views

How to encode shapefiles from LATIN1 to UTF-8?

Is there a way to encode shapefiles from LATIN1 to UTF-8?
1
vote
1answer
85 views

How to set symbology type and color based on data?

I have a point vector layer with several attributes in QGIS Dufour. One of them is satellite name, and the other is date. I want to display different dates with different colors (using some gradient) ...
5
votes
3answers
382 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 ...
2
votes
1answer
288 views

QGIS vs. SVG export w area names

Salve a tutti, esiste la possibilità di esportare un file SVG (a partire dallo shapefile) che conservi però i nomi delle aree? In sostanza ogni tracciato chiuso dovrebbe avere il nome originale ...
1
vote
2answers
429 views

Problem Importing shapefile into postgresql with simple geometries

I have a Line Type shapefiles to be imported to postgis database on my postgresql, I'm using the SHP loader, I checked the "Generate simple geometries instead of MULTI Geometries" options so that the ...
1
vote
1answer
58 views

Was possibility to mix shape types in shapefiles (.shp) planned for?

For those who have in-depth knowledge of the definition of shapefiles and their file structure ... Why is each and every record header followed by the shape type of the record/shape when, by ...
1
vote
0answers
192 views

How to create static image file with geometries from shapefile using ArcGIS Online?

I'm trying to create static map images, including overlaid geometry features imported from a shapefile, server-side (in PHP if that matters), in order to use them in generated PDFs. We're using ArcGIS ...
2
votes
2answers
438 views

Writing shapefile metadata (shp.xml) programmatically

I want to write the Metadata for a Shapefile, which are saved in the ".shp.xml"-File. I know, I can look at and write those Metadata with ArcCatalog, but I want to do this programmatically. Is this ...
17
votes
9answers
11k views

How can I convert an excel file with x, y columns to a shapefile?

How can I convert an excel file with x, y columns to a point shapefile? There are some somewhat optional requirements in addition to the correct creation of a shapefile: Column types (as per ...
0
votes
0answers
88 views

Export additional data with ogr2ogr

I am trying to import my ESRI-shapefile with OGR2OGR to an existing mysql table. This works fine but unfortunately only the featureID and the geometry data is exported. How do I add the labels of the ...
0
votes
1answer
87 views

How to view attribute information in shapefile using QGIS? [closed]

I have a polygon shapefile (*.shp) and want to view its attribute data. How can I do this using QGIS?
3
votes
1answer
441 views

remove land area from marine region polygons

In my pursuit to merge multiple polygons for the purpose of calculating the surface area of marine species distributions, using shapefiles from Marineregions, I am now trying to remove potential land ...
1
vote
2answers
89 views

How do simple statistics based on polygons?

Hi I have a shapefile from a city. I divided this shapefile into polygons (squares, majority). I would like to perform simple statistics in each square in a easy way, because it is almost impossible ...
0
votes
1answer
1k views

How to extract geo data out of a polygon shape file into csv kwt [duplicate]

I have a polygon shape file that contains all the neighborhoods in the Netherlands. My aim is to export the neighborhoods and coordinates to csv file (KWT). Without success I tried (with QGIS) these ...
1
vote
2answers
382 views

unionize intersections of merged polygons

[Updated quesion] I am using the following code to merged polygons from shapefiles for the purpose of calculating the surface area; library(maptools) library(rgdal) library(rgeos) #enter slots, ...
0
votes
2answers
658 views

How do i draw a route on Quantum GIS between nodes?

I have a requirement to trace path on the points present in the shapefile which is loaded in Quantum GIS. This should enable the user to specify their own routes within the present network. There ...
4
votes
2answers
168 views

Need spatial data for very specific administrative boundaries in Ontario

I was wondering if anyone might know where I can download the rectangular administrative boundaries shown in the image below. I have highlighted one of them in red. On the image, you can see that ...
1
vote
1answer
252 views

How do I convert shapefiles and display them on top of Google Maps?

I generated a set of maps of my region. Each municipality has some associated data. I would like to overlay that data on a google map and display them in a website. (I don't like the flash format) Do ...
2
votes
1answer
177 views

How can I convert a csv file of WKT data to a shape file using QGIS 2.01

Is it possible to create a Shapefile directly from a csv WKT file in QGIS 2.01? WKT POLYGON(...) POLYGON(...) Save as shapefile doesn't seem to work. Thanks!
2
votes
2answers
135 views

shp2pgsql mangles date field — quotes data as if it were char or varchar

I'm attempting to import a shapefile into postgis via shp2pgsql. Among the fields in the shapefile's .dbf file is a date field with format yyyymmdd, which is a valid date format for postgresql. ...
5
votes
4answers
1k views

Calculating percent cover from shapefiles

I normally do not work with shapefiles, so I am a bit lost here. I have two shapefiles each with multiple objects. The first is a set of 32 polygons (each one is a plot). The second shapefile has ...
1
vote
1answer
477 views

When trying to convert an .e00 file into a shapefile with ogr2ogr, getting “ERROR 4: This looks like a compressed E00 file”

When I ran this command: ogr2ogr topo.shp flowe86hyp.e00 I got this error: ERROR 4: This looks like a compressed E00 file and cannot be processed directly. You may need to uncompress it first ...
2
votes
1answer
219 views

Axis of rendered shape files not showing numbers that are latitude and longitude

I am using rgdal to render some shape file. The first is a set of building zones from NYC Open Data. The second is the NYC coast line from OSM. The Zone files seems to generally render an X axis ...
2
votes
1answer
187 views

PostGIS ST_Contains query returns null

I have a shapefile of all US States that I've imported into a table with a multipolygon geometry column. (SRID 4326) I perform a spatial query based on lat/lon to return the state abbreviation. This ...
1
vote
3answers
1k views

How to install Fiona to read Shapefile attributes with OSGeo4W?

I´m developing a plugin in Python and I need to read the shapefile attributes, so I found the Fiona API and dbfpy also but I don't understand how to install these packages because I install the QGIS ...
0
votes
1answer
416 views

error of data conversion value getting while importing shapefile in shp2pgsql-gui on ubuntu

Connecting: host=localhost port=5432 user=postgres dbname=tremblement_de_terre Connection succeeded. Connecting: host=localhost port=5432 user=postgres dbname=tremblement_de_terre ...
2
votes
2answers
2k views

How to change shapefile longitude from -180 - 180 to 0 - 360?

I have a shapefile of world countries, with longitude between -180° and 180°. How can I change the shapefile (eg. with ogr2ogr) for having longitude between 0 and 360°. Following OSGEO/Trac ...
2
votes
2answers
660 views

Convert shapefiles in nested folder to geodatabase

I currently have approximately six hundred old .mxds, and all the data source links are broken due to an upgrade in the GIS computer. In the past, all the spatial data was stored as shapefiles in ...
2
votes
1answer
178 views

OTB vector segmentation result is flipped

I'm using Monteverdi 2 to perform a mean shift segmentation on an image of an archaeological dig, to test the feasibility of automatic detection of elements. I've loaded the image in Monteverdi and ...
1
vote
2answers
2k views

How to load shapefile in Oracle Spatial

I am newbie to oracle spatial. I want to load shapefile into oracle spatial. I am using oracle 11g. I have already look at the following examples and answers ...
1
vote
0answers
74 views

How to post an existing shapefile datastore using cURL?

I read geoserver doc, and already Uploaded a shapefile to geoserver using cURL. But I can't change layer name by REST. So I think that there is another way to post a layer. If I can post an existing ...
4
votes
1answer
88 views

SpatialLite BulkLoad and Merge

Via the U.S. Census I have downloaded all of the census group shapefiles. These are approximately 19-20GB across 56 shapefiles. I want to merge these to do some testing. Clearly, shape file ...
1
vote
1answer
87 views

Is it possible to insert note to remember the info of a project?

Sometimes I need to open an old project, and mostly I remember how it works (i.e. the structure, the formatting and so on) but sometimes not. At other times I open a project composed by a colleague ...
4
votes
3answers
557 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 ...
0
votes
3answers
205 views

Computing distance of a georeferenced .jpg to each polygon (town) in a shapefile

I have a .jpg that is a highway that spans multiple towns, and a shapefile with boundaries of these towns. I have georeferenced the .jpg so that it is aligned with the shapefile of the towns. My ...
0
votes
2answers
107 views

How do I make shapefiles that I converted from .KML appear in QGIS?

I have created shapefiles from Google Earth but they do not show in QGIS, whereas in ArcGIS they do. I have made sure they are at the top of the layers, not transparent and also I have changed their ...
1
vote
2answers
136 views

Ogr2ogr - shape to postgis - is there a way to use and preserve an existing primary key?

I've been struggling with this for a while, tried a few different ideas inspired by these pages: http://www.gdal.org/ogr2ogr.html http://www.gdal.org/ogr/drv_pg.html ...
1
vote
1answer
54 views

not all polygons showing up in qgis 2.0

I am working with the block group shp files that I got from tiger 2010. When I bring in the shp files some of the block groups show up, but this is spotty. I have adjusted the CRS and still nothing. ...
0
votes
4answers
358 views

How can I clip a shapefile?

I have a SHP that includes the entire county and want to downsize it to a specific area...how??
4
votes
2answers
673 views

Convert polyline shapefile to points 1m apart and add xy coords in R

I have a table with xy coordinates in R and the following packages loaded: spatstat, raster, rgdal, sp and zoo. I do know how to use this to make a point shapefile, a line shapefile that goes through ...