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)

5
votes
2answers
798 views

How does shp2pgsql define schema?

Can anyone explain how it is that the shp2pgsql loader for loading shapefiles into PostGIS goes about defining the schema for a table when importing a shapefile? To further explain, shapefiles are ...
5
votes
2answers
68 views

Locating shapefile of European railways for goods transportion?

We are trying to make a project about European goods trade so we need railway data in shapefile format. More specifically, we are trying to find the potential of mine products being exported from ...
5
votes
3answers
164 views

Missing Scottish Administrative Data in OS Opendata sets

I'm not sure if this forum is really the correct place to ask, but impertinence would lead me to believe that there may be some one on here that may know the answer. I'm using the Ordnance Survey Open ...
5
votes
2answers
1k views

Split a shapefile into multiple shapefiles based on a particular Field [duplicate]

I have a shapefile where there are 3 fields OBJECTID, NAME , LOCALITY. I want to create new shapefile that contains the geometry, projection etc. of the parent shapefile and according to the locality; ...
5
votes
1answer
625 views

How to convert a line Shapefile into a CSV with nodes and links?

Is there a way to convert a linear shape file into a csv file of the following format: Node_1, Node_2, attribute_1, ...., attribute_x 1 2 "hello" 567845.334 I have looked at ...
5
votes
3answers
3k views

Add shapefile from a local file to a JS API map

Using ArcGIS.com's Map Viewer it's possible for the user to add a local shapefile to the map, using an Add Data approach. Is it possible to add this functionality to an ArcGIS Server map built on ...
5
votes
1answer
3k views

How to convert shapefile to SVG keeping internal data?

I am very new to GIS. I found a tutorial on how to make a choropleth using Python tools. I want to follow it but use my own data and map. However the tutorial uses a US map SVG file and I need to use ...
5
votes
2answers
1k 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 ...
5
votes
2answers
993 views

Fastest way to convert shapefile to postgis in java

I have been using geotools to read shapefiles and import them into postgis. Unfortunately, when large files are being imported, this leads to a massive lag time --8000% of shp2pgsql piped into pgsql-- ...
5
votes
1answer
3k views

Use python to add layers to TOC

I've been battling with adding layers to the TOC for some time now. I have managed to single layers added but need to loop through a folder and add all layers. Shapefiles I cannot get to add at all. ...
5
votes
2answers
622 views

Importing attributes from Excel file into new Polygons

I have a constantly updated Excel file containing address information which I am currently copying into the attributes of new polygons which I am creating on a daily basis. I am currently doing this ...
5
votes
2answers
2k views

Retain ESRI symbology in Mapinfo TAB

Is there anyway to retain/easily transfer symbology from ESRI to Mapinfo? The only process I found was posted in 2010 - https://groups.google.com/group/mapinfo-l/browse_thread/thread/883223ff4ae56809 ...
5
votes
2answers
843 views

Loading data onto PostGIS using KML files with attibute data

So, I have a kml file which contains 317 data points (317 polygons and the respective 317 names). The kml file also contains attribute data which pops up in a bubble on Google earth with about 12 ...
5
votes
2answers
113 views

Select 90% matching attributes

I have a shapefile (.shp) of 180k roads with information of street name. I need to do a Dissolve on that road network to make only one feature per name. But I have a problem by doing that task ...
5
votes
1answer
191 views

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

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!
5
votes
1answer
602 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 ...
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): ...
5
votes
1answer
3k views

How to use QGIS to fix an invalid geometry without it telling me I'm not allowed?

I have a shapefile, and it's got a self-intersecting geometry in it. I'd like to fix the self-intersection, but it will require a few moves. When I attempt to move a point using the QGIS edit tools, I ...
5
votes
2answers
150 views

Postal codes in shapefile overlapping

I downloaded some shapefiles from the Australian Bureau of Statistics (ABS). Its basically showing a bunch of suburbs when I view the shapefile through a GIS tool. The GIS tool that I am using at ...
5
votes
1answer
190 views

Maritime route prediction avoiding land masses

I am working on a project where the following functions have to be implemented: Predicting the locations of the ships (in maritime environment) at a future time. (Can be done with Kalman filter, IMM ...
5
votes
3answers
286 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 ...
5
votes
1answer
759 views

Working examples of Leaflet/Polymaps with GeoJSON tiles generated from Tilestache using Shapefiles?

I'm looking to create choropleths using GeoJSON tiles generated from ESRI Shapefiles by TileStache(or similar), in either Leaflet or Polymaps. So far reading and drawing GeoJSON from both Leaflet and ...
5
votes
2answers
429 views

Display of zoomable image thumbnails instead of symbols on maps

sincere congratulations on your ingenous QGIS and the many extremely useful extensions. In my research on African archaeology I work a lot with geotagged pictures (drawings; photos; plates etc.) which ...
5
votes
2answers
532 views

Translating all features in a shape file

I have a friend with a bit of a problem. He has 1000+ shape files mapping paddocks and being used for precision agriculture. He's recently discovered the base station positions used to create these ...
5
votes
1answer
395 views

How to divide a polyline by intersecting isochrones

I have two shapefiles, the first representing a path (a polyline with a single category), the second representing isochrons from the same origin (point 0) which intersect the above mentioned path. I ...
5
votes
0answers
130 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 ...
5
votes
0answers
52 views

How are the edges of a polygon defined? [duplicate]

Possible Duplicate: Are long lines in shapefiles to be considered geodesics or straight lines in the 2D latlong space? In various representations, such as shapefiles and kml, polygons are ...
5
votes
1answer
418 views

Ogr2Ogr exported this boundary 90 degrees incorrectly

I've got some GEOGRAPHY data in my Sql Server 2008. I wish to export it as a shapefile (so I can import it into QGIS) and when I do, it's rotated 90 degrees to the left and then flipped 180 degrees to ...
5
votes
0answers
704 views

How to create a routable road network from Ordnance Survey data?

I've been following the "Beginners Guide to pgRouting" in an attempt to create an in-house application that provides drive-time isochrones. I have a server, postgreSQL and PostGIS and pgRouting - no ...
4
votes
5answers
2k views

How to add a projection to a Shapefile using open-source tools?

I have been given some shapefiles WITHOUT a projection. So I need to add the projection in order to display it on google map. I found the projection information I need at ...
4
votes
4answers
5k views

Tool for converting .shp file to .tab file?

I am searching for any free tool which can convert ShapeFile (.shp) to MapInfo (.tab) file.
4
votes
5answers
1k views

Converting LatLng coordinates to point shapefile

I have more than 50,000 LatLng coordinates defined under SWREFF99 1800 projection. I want to know, is it possible to convert these coordinates into a point shapefile ? if yes, then how can I do this ? ...
4
votes
5answers
1k views

Simplify shapefile parcel layer

I have a very large shapefile with over a million parcels within it. The problem I am having is that the polygons representing each parcel are very jagged. What I am looking for is a simple and fast ...
4
votes
4answers
1k views

Updating 30 Shapefiles, adding attribute and populating based on data

I need to add an attribute to each shapefile attribute table in ArcMap, I was thinking to do it in SQL, but I'm not sure how to go about doing it since I'm very new to ArcMap. Can someone explain to ...
4
votes
5answers
785 views

Display ESRI Shapefiles in a map in a browser. (Not in google maps)

I have a series of shapefiles that I need to render as a map on a webpage. I have an ASP.Net server, although I would prefer something that will work on Linux servers. I would like to find an easy to ...
4
votes
3answers
9k views

Converting a .jpg map into a shapefile

I have a .jpg map of a set of U.S. counties that were affected by a tornado. The map shades where the tornado passed through, resulting in some counties only partially experiencing the tornado. I ...
4
votes
2answers
725 views

Python - Check for number of shapefiles in a directory

I want to test: to see whether or not ONE AND ONLY ONE shapefile (which will be based on a filename wildcard) exists in a directory. Add these shapefiles to a list Use this list variable as an ...
4
votes
7answers
17k views

Having problems with joining an excel table to a shapefile in ArcMap

I have a shapefile of lower layer super output areas (LSOA) for England and Wales and I have a spreadsheet of the indices of deprivation for each of the LSOA's in England. I want to join the ...
4
votes
1answer
412 views

need help to automatize report generation

i have shapefile that contains a lot of parcels "parcel has like fields (n° parcelle,proprietaire, cin) see picture : and i want for all parcels to generate this plan : take a parcel and ...
4
votes
4answers
8k views

How to Read a Shapefile using C#?

I am new to ArcGIS and trying a few things.. I'm trying to read shape file(which is supply as an input) using c# and I want to generate a .pdf file which contains underlying metadata information ...
4
votes
1answer
3k views

How to re-project shapefiles?

I wanted to re-project a QGIS project, but there is no such option. When searching for an answer I see ogr2ogr suggested for this task, by re-projecting each vector layer (shapefile in this example). ...
4
votes
1answer
2k views

How do I edit shape file attribute tables so they all have the same information?

I am trying to merge several pipeline shapefiles using GEOMERGE but it cannot complete the function because they have different column definitions. So I need to edit the attribute tables so that ...
4
votes
4answers
3k views

Where can I find a shapefile for the coastline of North America?

I am looking for a shapefile representing the coastlines of North America, such as something like this: http://www.diva-gis.org/gdata Does anyone have any suggestions?
4
votes
3answers
132 views

How to shrink polygon on two sides?

I have a polygon which I know is a rectangle, although it may be at any orientation: I want to shrink this polygon by a third of the width from two sides, so that I just get the strip in the middle ...
4
votes
1answer
101 views

Why do I need to know what “endianness” is?

I'm just learning about GIS and shapefiles. I am a total newb right now. I'm probably going to get into some SQL Spatial stuff and I'm just reading about what shapefiles are. I keep on seeing a lot ...
4
votes
3answers
321 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 ...
4
votes
2answers
122 views

Creating space at intersection of two links

I have a shapefile consisting of two links which are crossing over each other. I want to create an empty space at the point of intersection of the two links. As of now, I have been manually doing ...
4
votes
2answers
125 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 ...
4
votes
2answers
431 views

Easiest way to create measured intervals between shape points

I need to import a scanned photo of the outcrop (geology project) and re-create the grid from which i took plug data- each plug point will be drawn as a shape point file. The plugs were taken on a ...
4
votes
1answer
843 views

How to programatically populate a shapefile field with polygon areas in OGR?

I'm trying to programatically populate a shp field with polygon areas: import sys import ogr ds = ogr.Open( 'tttttttttt.shp', update = 1 ) if ds is None: print "Open failed./n" sys.exit( 1 ...