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)

3
votes
1answer
802 views

Problem creating point shapefiles programmatically using python in QGIS 2.2

I am trying to create a point shapefile in the memory buffer (for a temporary label) and then zoom to the extents on this buffer. The working (in version 2.1) test code for this is: def ...
1
vote
1answer
196 views

When I join a table to a shapefile and then export it the titles of the columns are transformed to data1, data2

I'm using QGIS 2.0.1 The table is in an excel format that i import through "add vector" and the shapefile is a polygone I join the attributes by right clicking the polygone-->properties-->join Then ...
12
votes
5answers
3k views

How can I update ogr2ogr to include the PostgreSQL driver?

I'm trying to use ogr2ogr to upload a shapefile to a remote PostGres installation. When I ran this command: celenius:~ celenius$ ogr2ogr -f PostgreSQL PG:"host=255.34.00.00 user=postgres dbname=mydb ...
13
votes
2answers
9k views

How can I get a shapefile from a postgis query?

My data is in a PostGIS database. I would like to generate a shapefile from a query. How can I do that?
1
vote
1answer
124 views

Merging more than two shapefiles in QGIS

I want to merge 9 shapefiles (all polygons) into one file. The problem is, when I try to merge more than two files at once, I seem to loose attributes on the way? Is there any other way of merging ...
0
votes
1answer
1k views

Converting .dxf to shapefile

I have a .dxf file to convert to .shp. Using ArcMap I've added the .dxf and tried exporting to .shp (various types, polyline, point, polygon) and also tried exporting to a gdb. For the most part it ...
0
votes
1answer
119 views

Can QGIS report/calculate areas/perimeters of individual polygon components within multipart shapefile?

Can QGIS report/calculate the areas/perimeters of individual polygon components within a multipart shapefile without using the "explode" vector tool to generate a new file? using QGIS 2.2.0 on ...
0
votes
1answer
101 views

Error in performing transect in ambur R?

I'm trying to filter a transect, window size is 5 and filter individual baselines is set to 0. I select the transect shapefile, then the inner baseline shapefile and it gives me this error. Error in ...
5
votes
5answers
9k views

Why can't I export XY data to a shapefile?

I have added a table from Access to ArcMap, and then used 'Display XY data' to plot points. When I then try to export the Events to a shapefile I get an error message telling me: "Error exporting ...
1
vote
1answer
714 views

Convert from eastings and northings to latitude and longitude without ArcGIS

I am not a GIS user, but I was given some shapefiles to work with. I do not have ArcGIS or any other GIS tool, but I do have Matlab with the mapping toolbox and R. From what I can tell, the data is ...
3
votes
2answers
638 views

How can I create a choropleth from the 2010 census ZCTA shapefile using R and ggplot2?

I have created state and county choropleths in R using ggplot2. The method I have used for this came from Winston Chang's "R Graphics Cookbook". For those choropleths the map was already represented ...
-5
votes
2answers
79 views

Where can i get Shape Files for AE - U.S. Armed Forces – Europe AP - U.S. Armed Forces – Pacific PR - Puerto Rico? [closed]

I need shape files for these : AE - U.S. Armed Forces – Europe AP - U.S. Armed Forces – Pacific PR - Puerto Rico Where can i find them ?
5
votes
4answers
4k 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?
6
votes
3answers
6k views

How to write Shapely geometries to shapefiles?

Can someone demonstrate a simple way to write geometry data-structures from shapely into shapefiles? I am particularly interested in polygons with holes and linestrings. It would also be beneficial to ...
0
votes
3answers
1k views

How to import shp2pgsql on mac?

I am using EnterpriseDB to run Postgis. when I run "shp2pgsql" on got an error message. ~ macbook$ shp2pgsql -bash: shp2pgsql: command not found ~ macbook$ which shp2pgsql I read that I should ...
-3
votes
2answers
210 views

Batch Conversion software for latitude and longitude into shapefile format [closed]

I have a huge list of latitude and longitude and I want them to be converted into a shapefile format using some batch processing.
1
vote
0answers
133 views

GeoServer - OSM .shp file and aerial shifted

I have a problem with two layers that I have imported into geoserver. One is retrieved via WMS from a Geoserver (aerial tiles) I don't have access to (I'm just allowed to use it via WMS) the other one ...
2
votes
0answers
252 views

How to add multiple shapefiles with VB.Net

I have created a toolbar add in for arc with a button that opens a form with 3 selections that are shapefiles, once the shapefile is selected I click the Add Layer button. Currently I can only get one ...
0
votes
2answers
166 views

How to join CSV data to SHP without ArcGIS?

I'd like to create a chloropleth map displaying quantitative data for an upcoming event. Using TileMill, MapBox. I am having trouble joining my data to a .shp because the #'s correspond to COUNTY ...
4
votes
1answer
757 views

Importing multiple shapefiles into single PostGIS table

I have a folder full of shapefiles that I want to import into a single PostGIS table. This table should have the following columns: id, filename, multipolygon I can bulk import all shapefiles using ...
4
votes
1answer
594 views

Is there a recipe for large shape files to be used in an Android App?

I am very new to GIS and I am diving into cartography and mapping because of an Android App that I am currently developing. I want to display environmental data, more precisely noise pollution data on ...
2
votes
1answer
108 views

shape file for linked micromap not working

I am trying to replicate the example provided in the micromap R package of a linked map with the poverty rate for the 50 US states. I am trying to achieve the same results with a Shapefile from ...
2
votes
3answers
430 views

Shapefile with overlapping polygons: calculate average values

I have a very big polygon shapefile with hundreds of features, often overlapping each other. Each of these features has a value stored in the attribute table. I simply need to calculate the average ...
2
votes
1answer
167 views

Shapefiles from Nationalgrid without a .prj file - what projection are they in?

Im working with these shapefiles: http://www2.nationalgrid.com/uk/services/land-and-development/planning-authority/shape-files/ They show pipelines & electricity grid of the UK. They do not ...
3
votes
1answer
717 views

How to maintain GlobalIDs while copying shape file data into Esri FGDB feature class?

I want to copy a shape file data into an Esri file geodatabase feature class. That feature class having a GlobalID column and it is being auto generated by the system while copying. The GlobalID ...
4
votes
2answers
2k views

Can QGIS automatically load an SLD with a Shapefile?

I have SLD's/lyr files with my shp/gdb files. They all have the same name except for the extension. Is it possible for me to force qgis to load the sld with the shp so that I don't need to manually go ...
3
votes
2answers
100 views

Are Xbase-dbf-files still the common standard for shapefiles?

For a Java application and for my personal understanding, I am exploring how to read and write shapefiles (at least shx, shp, dbf). The main purpose is to keep the resulting Shapefile-class and it's ...
1
vote
1answer
141 views

Problem with projection of layers in QGIS

I'm having a problem with projections in QGIS that i hope someone here can help me with. I have been searching and found other people having the same problem, but have not been able to solve mine ...
7
votes
1answer
312 views

Can I just swap out a .prj file to reproject a shape file?

I'm an experienced software developer -- but a GIS noob. I have a shape file that I am trying to turn into a SVG map with Kartograph. When I try to run Kartograph I get this error: ERROR 6: No ...
1
vote
1answer
45 views

Software needed to cross-reference geocodes to a Shapefile

I do not have any GIS software except Microsoft MapPoint. I have State district KML and Shapefiles of the districts. I am assuming these are for ArcGIS. I do not want to draw maps. Instead, ...
2
votes
1answer
150 views

Mapnik TextSymbolizer value as integer

I'm working with TextSymbolizer in Mapnik. I have a shape file with a attribute which is a real. I wish to print the value of this attribute as integer and I don't find how I can do it in Mapnik. I ...
1
vote
0answers
437 views

Dubai - Sector/Community GIS SHP Data?

Where can I download free or open access GIS/SHP file datasets for Dubai, including their respective spatial boundaries? If these might not be available, where can I find a map outlining the Sectors ...
1
vote
1answer
192 views

How can I use Openflights database in QGIS?

I would like to have a shape file with the airports position and the routes of the planes I've found Openfilghts but I can't use it in QGIS. Seems that the format of the DB .dat is not supported by ...
8
votes
2answers
639 views

Simple way to detect/select border polygons of a shapefile

I am looking for a simple way to detect/select border polygons of a shapefile. Border polygons are here polygons that are not completely surrounded by other polygons i.e. polygons located at the ...
1
vote
0answers
134 views

Where are dynamic hyperlinks stored?

A while back (ArcGIS 10.0 times, or maybe even 9.3) a colleague of mine created a mxd with a few hundred manholes and attached dynamic hyperlinks to them (pointing to photos of them). (I know this ...
1
vote
2answers
84 views

Which format to choose to convert to ShapeFiles?

Given the following format options: all.json, all.xml, all.xls, all.csv, all.kml, all.gjson Which one is the best/easiest to convert the data into standard ERSI Shapefiles which contains the ...
0
votes
1answer
230 views

How to display data from multiple layers in OpenLayers? [closed]

I am new to using openlayers and Geoserver. I currently have a few shapefiles of a place with a background map of that place. I have imported both shapefiles into postgresql and geoserver. After ...
1
vote
0answers
55 views

MSHP file from SAGA tough to delete

After running a SAGA line dissolve process in QGIS, an MSHP file is created (amongst other things). Fine by me, though I'm not sure what it's used for (metadata in XML format?). Problem is that it ...
-1
votes
1answer
79 views

Mapinfo and qgis file's datum problem [closed]

please refer to following link for the explanation of the problem I had. do you have any idea on this? ...
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
134 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
90 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
608 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
285 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
90 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?