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)

5
votes
2answers
1k views

Reduce the resolution of a shapefile in R (or QGIS if necessary)

I'm using shapefiles of history U.S. state boundaries from NHGIS to make maps in R. These shapefiles are much higher resolution than I need when making maps at the scale of the country: over 2 million ...
0
votes
1answer
98 views

WFS with authentication to PostGis (or to shape)

Is there a way to import data from a WFS layer to a Postgis table (or to a shape)? there are blogs explaining how to do it in 3 steps (http://anitagraser.com/2012/09/26/wfs-to-postgis-in-3-steps/) or ...
1
vote
0answers
43 views

Mapwindow and XTools error: XSI is an undeclared namespace

I have tried MapWindow and XTools and have gotten this same error both times when trying to import a KML file into Shapefile format. Does anyone know how I can eliminate this error message? "There ...
2
votes
1answer
237 views

shapefile to gmt format

I have an ESRI shapefile of the contours of my study area, and I want to convert it into a format that is acceptable by GMT, so I can make an elevation map of my study area. Is that even possible? ...
1
vote
1answer
137 views

How can I clip multiple geotiff tiles with a shapefile without greatly increasing their size?

I'm using gdalwarp to clip a number of geotiffs (tiles of a larger map) to a polygon described by a shapefile (which is about the size of the overall map, i.e. much larger than individual tiles) ...
0
votes
1answer
38 views

GDAL: Update spreadsheet from polygons in a shapefile

I am a beginner with GIS data, and have been looking for an answer but have not yet found it. I have a spreadsheet with lat/long points. I also have a shapefile with several numbered polygons over a ...
0
votes
2answers
258 views

Shapefile to Network xml

I have a shapefile representing the US freight highway network available from Oak Ridge National Lab. I'm trying to prepare this as a .xml network for processing with MATSim. The output structure is ...
3
votes
1answer
232 views

Getting StatPlanet to work with custom shapefile and data?

I'm assigned to get StatPlanet Plus working with some 3rd-party data to display a thematic map, on a Mac. I have the custom regions and attribute data in a map.shp/dbf. And I've configured the ...
1
vote
0answers
128 views

Create Polygon with inner polygons from KML or Shapefiles?

I am creating a windows forms application and I want to create a polygon from a KML or Shapefile as a layer on top of a Google Satellite map. Today I am using GMap.NET that got an polygon object but ...
1
vote
2answers
896 views

Avoiding R for windows gui front-end has stopped working error?

I am trying to load huge number of points (shape file) in R. But when I load it, the program displays following error message and just stops. "R for Windows GUI front-end has stopped working" My OS ...
1
vote
2answers
213 views

Vertical lines in a polygon shapefile

I am working with a GIS problem using a single input of a polygon shapefile. Consider an irregular polygon. I want to draw vertical lines across the extent of the polygon at equal spacing. How I ...
3
votes
1answer
554 views

Debugging ogr2ogr “AddGeometryColumn failed” and “Terminating translation prematurely after failed translation of layer”

As noted in the title, I'm getting the following error: ERROR 1: AddGeometryColumn failed for layer pretty_polys, layer creation has failed. ERROR 1: Terminating translation prematurely after failed ...
2
votes
3answers
628 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 ...
1
vote
0answers
226 views

Convert polygon data into extreme lon/lat coordinates using QGIS

I'm very new to QGIS. I have a shape file of census blocks and want to use the data to plot points within each boundary using Google Maps api. I figure the best way to do this is to find the extreme ...
0
votes
1answer
131 views

How to get specific coordinate system to get arcGIS point shapefile in r?

I have a Point shapefile from arcGIS 10. I want to get it in r and also want to get it a specific predefined coordinate systen for my data. I can read the shapefile in R but summary in r Shows ...
1
vote
2answers
161 views

Unable to load shapefile as feature class into geodatabase file, with only 3 of the fields

I'm trying to automate importing census boundary shapefiles to feature class in a Geodatabase File, but somehow could not get it to work with this code: ### ======================== load boundary ...
1
vote
1answer
32 views

32bit to 64bit topology errors

Can generating a shapefile from a pgdb cause topology errors due to floating point conversion? I am running into gaps in a line layer of really small distances (order of 10^-4; CRS EPSG:2227 usft). ...
1
vote
2answers
570 views

Looking for a GeoJSON describing the french departments

Is there any place where I could find a GeoJson describing the borders of the french departments, or do I have to convert a .shp file?
5
votes
1answer
574 views

Convert ESRI Shapefile to Raster using R - biggest polygon area to raster cell value?

I want to create a raster from an ESRI shapefile. Multiple polygons may exist in one raster cell. If so, I want to assign the attribute variable which occupies the biggest area of the raster cell. ...
2
votes
0answers
177 views

Exporting feature class from Geodatabase to shapefile, shortens/abbreviates field values in resultant file?

I'm exporting feature class (File Geodatabase) to shapefile, after exporting the field values in resultant shapefile is shortening, like if a field value is Andhra Pradesh then in Feature class ...
1
vote
3answers
482 views

Create ESRI shape file with attributes from mySQL

I have some geometry which can be perceived as regions within a country and wish to create a shape file which contains all the regions along with some attributes (e.g. name, population, area code, etc ...
6
votes
3answers
241 views

Is the filename of a shapefile the same as its Feature Class name?

This is a very basic question, but I'm not finding the answer on Google or here... I have a bundle of files I have to submit in an incredibly specific format. Our sub-consultants gave us a set of ...
1
vote
0answers
19 views

Good KML conversion program [duplicate]

I recently used the GPSlogger app and created KML files from my routes. I haven't been able to successfully convert them to shape files. Does anyone know a good downloadable program that converts ...
2
votes
0answers
152 views

CRS problem: not recognizing the CRS of shapefiles to be the same for all

I'm attempting to aggregate (average) the attributes a point layer to polygon attributes (i.e. block groups and counties) via a spatial join. Both the points and polygons are in the same projection - ...
0
votes
1answer
255 views

Why is shapefile layer not visible on WMS layer in QGIS?

In my QGIS project I have added a WMS layer for which the CRS is WGS84 EPSG:4326. Now I want to show my shapefile layer which has the same CRS. QGIS shows the layer separately but does not show with ...
1
vote
1answer
163 views

correct projection of GADM data

I'm trying to use a map of Austrias districts from the GADM project. The Shapefile can be found here: AUT_adm.zip (All other formats provided by the project appear exectly equal.) The coordinate ...
1
vote
1answer
50 views

Bringing information from one shapefile into another using ModelBuilder?

I’m trying to use the ModelBuilder to fasten up my work in ArcGis but I don’t know how far I can use it and what’s possible. Here is my problem: I want to analyse agriculture parcels regarding to the ...
2
votes
1answer
328 views

Creating perimeter around multiple polygons using ArcGIS for Desktop?

This may have a simple answer that I'm just missing. I have multiple polygons in one shapefile I would like to make a larger Polygon around all of them. Is there a tool that is able to do this? ...
2
votes
1answer
920 views

Showing unknown SRS (native SRS) when importing shapefile into GeoServer

I am facing a problem on an unknown SRS when I am importing a shapefile into GeoServer. I am trying to import a shapefile into GeoServer but when I am publishing the shapefile, it is giving the ...
2
votes
1answer
228 views

QGIS show gdal_polygonized file in EPSG:54004 instead of EPSG:3857

I am polygonizing a TIFF with the gdal_polygonize.py and the resulting Shape is shown in QGIS in the wrong projection - EPSG:54004 instead of EPSG:3857. I have a TIFF in EPSG:3857 and polygonize it ...
-2
votes
1answer
248 views

Sending Shapefile to SQL Server 2012?

How can I send a shapefile to an SQL Server table? I have searched and found a tool called ShapetoSQL but I am developing a c# Windows application so I am looking for an Open Source solution.
2
votes
1answer
113 views

Intersect shapefile with raster, then determine proportion of each raster value?

Using the arcpy module in Python, I want to find the proportion of each pixel value within the boundary of an overlaying polygon. (The polygon is in a shapefile.) For example, there are 10 possible ...
4
votes
1answer
267 views

How to generate xml for use with geoxml3

I have a kml and shp I would like to convert to an xml to use with geoxml3. How would I go about doing such a thing? The xml I generate should look something like this: <?xml version="1.0" ...
1
vote
0answers
17 views

European Rail Freight Map (shapefile or other ArcGIS format)? [duplicate]

I need European Rail Freight Map (shapefile or other ArcGIS format) for a GIS project. Does anyone have this data?
1
vote
1answer
79 views

How to use polyline Z in shapefiles?

I am researching about shapefiles. I am not able to understand the usage of polyline Z parameters. I have searched the internet but I didn't come across any example where this parameter is being ...
1
vote
1answer
1k views

How to open .shx files?

I want to see the contents of an .shx file to see how the index information is stored in these files so that I can get some help in writing my own shape files. Can any one guide me on how can I open ...
1
vote
1answer
214 views

ogr2ogr reprojection works on command line but shifts output when same command run from inside python?

Reprojection with ogr2ogr works fine on command line, but shifts the polygon to northeast when same command is run from inside python using os.system(...) Any ideas why this could be? I hard-coded ...
3
votes
2answers
5k views

Exporting shapefile to PostGIS database in QGIS

How do I export a vector shapefile to PostGIS database? I am asking what format I have to export it.
0
votes
0answers
114 views

Shapefile to Rectangle Overlay/Intersect Test?

I have a shapefile and a repository of images that have corner Lat/Long points. I want to search that images who overlaps/intersects to shapefile. Here is the scenario that I am doing, creating a ...
1
vote
0answers
81 views

Adding information from excel into ArcGIS [closed]

I am working in ArcGIS and have a excel sheet with data pertaining to properties. I want to add this data to a map in ArcGIS of which i have property boundaries as a shapefile? I have a common folio ...
14
votes
1answer
414 views

How to query OSM for all beaches facing west? - QGIS preferred

I want to identify all beaches on this planet (or a given subset of it) that are facing westwards (+/- 20-30 degrees). My idea is to use OSM as the data source. Extracting all polygons that have the ...
1
vote
1answer
116 views

Filtering out a subpart of a polygon shape file

I have ArcGIS 10.1 for Desktop software. I am working with a polygon shape file (having n rows) in ArcMap. The project demands splitting this file into two polygon shape files having n1 and n2 rows ...
2
votes
1answer
210 views

Unicode Decode Error for shapefile in Python

I have Python script for converting shapefiles to Geojson. My code works well if I use some usa data, but when I want to use some other encoding, it gives me this error: Traceback (most recent ...
2
votes
1answer
31 views

Cant find Define Line Portion tool

I am following the procedure on this help page: http://resources.arcgis.com/en/help/main/10.1/index.html#//00390000002z000000 However when at step 3, I can't seem to find the Define Line Portion ...
0
votes
3answers
441 views

Import shapefiles on my postgis table using R

Using R, I would like to import shapefiles that are in a directory on a geometric table i have on postgresql / postgis. What is the instruction that allows me to do it? EDIT: here is my code to ...
2
votes
0answers
40 views

Generating a map from a shapefile using ms4w mapserver [duplicate]

I am trying to generate a map from a shapefie. Through some initial searching, I wrote the code below but I am getting just a white page. Below is my code: MAP # To enter comments into a mapfile ...
1
vote
1answer
296 views

MapServer (MS4W) test page from shapefile shows only blank white square?

I am trying to create a test page with mapserver and shapefile. At the moment I just want to get the map shown on my test page. I have gotten the EXTENT coordinates by opening shapefiles with QGIS - I ...
1
vote
2answers
74 views

Drawing the boundaries on coordinate file and classifying the points

I have imported the data on coordinates in Excel which are classified into 3 types: Class 1, Class 2 and Class 3. When I Add delimited text layer, I get the following output: I have two basic ...
3
votes
1answer
84 views

How write query in “Select_analysis” that compare string from one column with another column?

I have a shp file (s.shp) with column "A" and column "B". I try copy from this file only that rows where string value from column "A" is part of string value from column "B" e.g. A 0.1 0.2 0.3 ...
1
vote
1answer
311 views

Converting shapefile to KML using JavaScript or PHP?

My client needs to generate maps from shapefiles. Through my initial search, I came to know that we need to convert shapefiles to .kml then we can generate maps from google maps. So I searched for a ...