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

ogr2ogr srs options: where is the well known definition determined?

In the ogr2ogr documentation it says that when using -a_srs srs_def: Srs_def can be a full WKT definition (hard to escape properly), or a well known definition (ie. EPSG:4326) or a file with a WKT ...
20
votes
3answers
4k views

Simple thematic mapping of shapefile using Python?

I wish to visualize geographical data in Python, without using ArcGIS/ArcPy, and make a map. On the internet I found how to make a thematic map using Python: Here is some code that I tried: ...
17
votes
10answers
16k views

Best way to add Attribute data to a shape file

Hei GISers!! Thanks for your help with my previous question. My apology if this may be too simple a question for this site, but I am still learning the various aspects of GIS. Now that I can ...
0
votes
0answers
18 views

Shape file generation [duplicate]

Is it possible to generate a shape file with lines and polygons using only the image for which it has to be generated ? I need the lines,polygons feautres of the shape file in an algorithm which i am ...
0
votes
1answer
60 views

Creating records in output shapefile using Python

I have a list (output from a previous loop) containing attributes from an input shapefile. What I am stuck with is inputting those attributes to a new shapefile. I have plotted the point data using ...
6
votes
4answers
733 views

Postal areas for Germany? - Shape?

does anyone of you know how and where I can download postal area districts of Germany in shape files (download free of charge if possible). best regards desputin
4
votes
4answers
5k views

Postcode Shape Files for the UK

I am trying to find the shape files for postcode sector and districts in the UK. Specifically inside London. I know I can go and pay for these but I only really need to use them once. I want to ...
0
votes
0answers
33 views

Openstreet map loosing information

I succesfully created a shapefile from openstreetmap with the OpenStreetMap tool in QGIS 2.2. When I try to create a polyline layer, it says that there are 8000 values in the db file for the property ...
1
vote
2answers
178 views

How to get shapefile of river from OpenStreetMap?

I dont want to download whole map of an area. I just want rivers and other waterbodies present in an area in shapefiles so that I can use them in Qgis. I tried geofabrik but it is giving whole map and ...
0
votes
0answers
32 views

Copy queried attributes of a shapefile to a new shapefile [duplicate]

I have a polyline-shapefile, which I have successfully read into python using pyshp module. My problem is to save the 2nd node of every line feature into a separate, single point file. I have ...
0
votes
0answers
40 views

Extracting rooftops using MATLAB

I am using Matlab to extract rooftops of buildings and I want an orthoimage i.e. a .jpg file, a world file .jgw and a shape file .shp as input. A mask is needed to "hide" the pixels of the image ...
0
votes
2answers
69 views

How to split a shapefile feature?

The world map that I am using from NaturalEarth.com has France and French Guyana as one feature. I want to split these into two separate shapes. I'm sure there is a quick fix for this, and the others ...
1
vote
2answers
222 views

How to convert Shapefile to TopoJSON with grouping neighbor shapes by some criteria

I have a shapefile with countries, which I convert to GeoJSON using ogr2ogr and then converting that json to another TopoJSON, using topojson command-line tool. Everything works like charm, but now I ...
1
vote
2answers
55 views

Convert shapefiles from WGS84 to Miller Projection

I have some shapefiles of the world from Natural Earth at WGS84. I would like to convert them to the Miller Projection. I have ogr2ogr, but I'm not sure what the parameters for this conversion ...
4
votes
1answer
253 views

How to merge shape files with attributes from a python script in QGIS?

I have some shape files. They are all the same kind of shape and all have the same attributes. If I wanted to merge them manually the "Vector/Data management tools/merge shape files to one" works ...
0
votes
1answer
41 views

Merge or Intersect Shapefiles based on a Field Attribute

I have three shapefiles of building footprints for a city. Each shapefile has a field called "Status" with attributes 1, 2, or 3. For example: Shapefile A, Polygon 1 = 1 Shapefile B, Polygon 1 = 2 ...
0
votes
1answer
43 views

Geometry to Shapefile

From importing the shapefile to postgis, its geometry is added to the database postgresql. The question, how can I load the shapefile in the Visual Basic.Net using the geometry in the database ?
0
votes
0answers
11 views

SHP to DWF with centerline and annotation (labels) [duplicate]

I am looking for a way to dump a street network (shp) into CAD but also include a text layer for street names (labels). Is this possible? I feel like there is likely an easy solution but I can't seem ...
1
vote
1answer
72 views

Convert shape file to kml without losing symbols

I am using QGIS 2.2 and want to convert a shape file containing point coordinates with userdefined svg-symbols to a kml file. Everything seems to work. The orginal file is in WGS 84 / UTM zone 32N ...
0
votes
0answers
22 views

How do I convert a VMAP to a shapefile using GDAL?

This is my first time trying to convert a VMAP to a shapefile and the examples online aren't as straightforward to me. Any guidance is appreciated.
1
vote
2answers
93 views

Shapefile to GeoJson conversion using C#

I have some shapefile which I want to convert to GeoJSON and store in MongoDB for querying. Is it possible to take a shapefile and convert it to GeoJSON format in C#? I have been able to convert ...
0
votes
3answers
108 views

Calculating distance between points using ArcGIS Desktop?

I want to write Python syntax to calculate the distance from point to other points in the water network and so on for others, I have 21 points. I need distances have to follow the network That ...
1
vote
4answers
1k views

How to convert KML (Google Latitude) to SHP on Linux?

I downloaded a KML track from Google Latitude. The service allows to download the tracked route from the user's profile providing a link such as: ...
2
votes
1answer
3k 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 ...
0
votes
1answer
79 views

Writing shapefile with projection defined crashes fiona

I've just started trying to use Fiona to write out shapefiles. I found the example code below, which seems to work fine from shapely.geometry import mapping, Polygon import fiona # Here's an example ...
3
votes
2answers
127 views

Join a CSV file to shapefile using gdal/ogr?

I have a shapefile with several attributes, for example YEAR, COUNTY, and AREA. I also have a CSV file with more fields that I want in the shapefile, such as POPULATION. Both the shapefile and the CSV ...
1
vote
2answers
34 views

finding the index of a field with its name using arcpy

I wan to extract the index of a field with its name using arcpy. it seems what I have written is so dumb. is there any simpler method with out using for-loop. import arcpy fieldList = ...
0
votes
2answers
65 views

creating many shapefiles from one multi-polygonal shapefile

Does anyone know of a way to create a standalone shapefile from every entry (row) in the attribute table of a large set of polygons (4909 in total)? preferably using python in a way that the results ...
0
votes
2answers
45 views

Where to find Metropolitan Statistical Area (MSA) KML data?

Hello GIS stackexchange, GIS is not my field, so I apologize if my question is very basic. I need this data for a odd job at work. I have been unsuccessful in finding the data from Google ...
0
votes
0answers
25 views

Converting/clipping KML to shapefile in QGIS without truncating field information (data)?

While I am clipping KML file by using polygon shapefile in QGIS, filed information (data) are truncating .Anybody can suggest a solution for this one.The same data losing issue occurring, at the time ...
0
votes
2answers
35 views

Exporting to 2D (Arcview 3.0 compatible) shapefile in QGIS?

I need to run my shapefiles through a web mapping application which is incompatible with 3D shapefiles. At present I run them through the FME Universal Translator in Mapinfo, which enables you to ...
-1
votes
1answer
48 views

Convert Road layer shapefile into a graph

I'm going to use Astar algorithm to find a path between two selected points.And I used the following code for that.Is there any way I could convert my Road Layer shapefile into a graph, which can be ...
1
vote
1answer
53 views

How to filter data by category, then map only maximum-value row for each?

I'm building a consolidated map of all transit systems in my area in QGIS. I have a GTFS dataset of bus lines, and it includes shapes for every trip on every route in the system (as it should), but ...
0
votes
1answer
25 views

Add attributes to an output shapefile schema (via meta)

I am trying to copy the schema of an existing shapefile and add to it in an output shapefile. Somehow I am not getting anywhere with this...though the docs seem very clear (and the download page : ...
0
votes
0answers
35 views

Generating XML to create a file geodatabase table from an existing shapefile DBF

I am writing a C# .NET application to convert a folder of shapefiles into a file geodatabase. Basic Info Windows 7 64 bit VS 2010 - Application is being run as 64 bit. Version 1.3 of the File ...
0
votes
1answer
47 views

Change Attirbute Name (Fiona)

I have a shapefile that has 2 attributes named "X" and "Y". I want to change this to "Lon" and "Lat". My (limited) experience tells me that I should read in the original shapefile, preserve the ...
1
vote
1answer
24 views

shp2pgsql data appent without gid

I have a shape file, I opened it in QGIS that has columns in attribute table named CITY_NAME, POPULATION and I have a database table in Posqgresql that has columns named gid (primary key), ...
-1
votes
1answer
45 views

shapefile damaged after editing in ArcMap 10.0 [closed]

I drew a layer on Autocad and exported it to a shapefile. I edited this layer on Arcmap. After editing the layer it is corrupted. I use Shapechk to fix it however I will need to edit plenty of layers ...
0
votes
1answer
26 views

How to fill Field2 to its corresponding values in Field1 of a shapefile using Filed calculator ARCGIS 10.2

I have to give explanation in a new field of the existing field which contains abbreviation. Example: Field "Geology" has values Q, Qs,N....(abbreviation), I have to give explanation of those in a ...
2
votes
2answers
70 views

Why OSM data has different attribute values from the same element and same time frame?

Here is my question: Does anyone know why OSM has different attribute values from the same element and same frame time? The example explains itself, when I try the Shapefile from different mirrors ...
0
votes
0answers
20 views

Overlay Shapefile and Raster layer in R [duplicate]

I have a raster layer with climate data from the north of Mexico, part of Canada and the US mainland. I am trying to restrict the climate data to only the zone of the US mainland. To do this I thought ...
8
votes
7answers
7k views

How to display ESRI shapefile in Android

It's the first time I work with Android and ESRI shapefile. I tried to find but could not find any tutorials to display ESRI shapefile in Android. Somebody can help me about this??? Thank you so so ...
1
vote
2answers
61 views

Convert a mask image to polygon shape file using GRASS

I used image classification technique in GRASS GIS v7 and generated the image mask below in which white area has NULL value and red area contains 1. I am going to clip those red color areas in a ...
0
votes
0answers
39 views

PGSQL2SHP Commnad switch column type

I work with Postgis. I have table CREATE TABLE centerline ( gid serial NOT NULL, l_from integer, l_to integer, r_add_pre character varying(15), r_to integer ... } Export this table with ...
3
votes
3answers
836 views

How to transfer data from spreadsheet into shapefile?

I am looking at Deprivation in the UK and there is some good data in the form of spreadsheets on this website http://www.communities.gov.uk/publications/corporate/statistics/indices2010 I would like ...
3
votes
1answer
137 views

How to find the distance to the nearest coastline from a land-based latitude/longitude point?

I'm completely new to GIS and unsure what I need to solve this problem: In the image above turquoise is actually land. Sea is white. I tried using the NASA Distance to the Nearest Coast data dump ...
0
votes
2answers
48 views

Is there any way to use open source tools to make sure that lines on a map dont overlap?

I am a generalist developer getting the hang of basic gis. I made this geojson map by clipping and converting different shapefiles. The problem is that the precincts of New Orleans extend into the ...
0
votes
0answers
30 views

QGISCloud in mobile QGIS

I’m new with QGIS mobile, I can’t open shapefile on QGISCloud using samsung note 8. Does anyone know how to do that? I haven’t found qgis plugin for mobile yet. Thank you
2
votes
2answers
76 views

convert a shapefile into graph with nodes and edges

Is there a way to convert a shapefile into graph with nodes and edges(except networkx). I'm using qgis and I want to convert a road vector layer into a graph, so that I can use it to apply shortest ...
2
votes
1answer
174 views

Why does the file size increase after I clipped the polygons to be smaller?

I have a polygon layer that shows properties along a road. I want to create a kml-file of the polygons, and to downsize the file, I tried clipping the properties with a buffer. But, the filesize of ...