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)

1
vote
0answers
72 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
86 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
538 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
204 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
129 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
51 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
355 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
644 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 ...
2
votes
0answers
374 views

Shapefile From Excel Sheet Crash When Selected Spatialy or By Attributes

Using ArcGIS 10.2, I am receiving an Excel sheet, on a daily basis, which contains 105 columns(Fields) and includes has X and Y values. For whatever reason (which I cannot understand) all data types ...
1
vote
2answers
282 views

Perform “Add Join” on multiple tables ArcMap or R

The operation I want to perform is the Add join in ArcMap 10.0. It works perfectly when done with one file but I need to do it with a few hundreds tables. What I have is ONE shapefile with divisions, ...
1
vote
1answer
161 views

Polygons not appearing when creating shapefile based on criteria using GDAL and Python (area calculated properly)

I am looping over the features of a shapefile containing multiple polygons. If certain criteria are met, I want to save the current feature in a new shapefile. I am doing this using GDAL 1.10.0 with ...
3
votes
1answer
373 views

Controlling output linewidth linestyle using gdal_rasterize shapefile shp to Geotiff

I have successfully combined a shapefile (.shp) and a GeoTiff using gdal_rasterize. The shapefile displays as one pixel wide in the GeoTiff, but I need it to be wider and more visible, say, 5 pixels ...
0
votes
1answer
205 views

Calculate attribute height of point data

I have an x (easting), y (northing) and z (height) values associated with my point shapefile. I would like to calculate the z values from the DTM I have - how do I do this in QGIS? I am fairly new ...
8
votes
2answers
3k views

How to count points in shapefile within polygons of another shapefile?

I'm creating a map with two shapefiles. One is a polygon of counties. The other is points of cities. I used the function intersect to group the cities in each county. I'm trying to get the number ...
4
votes
1answer
2k views

R - Plotting shapefile with geographical (raster) data

Over the last few days I have been trying to plot a shapefile over data loaded into a data.frame within R. It should be a view of radar precipitation with an overlay of the country borders from a ...
1
vote
0answers
286 views

Publishing Shapefiles via ArcGIS Server

I have some OSM's shape-files and running ArcGis Server 10. Would I be able publish it as Map Service without the using ArcMap or another ESRI clients? Also I want to use my shapes with prepared SLD ...
1
vote
1answer
72 views

Adding point shapefile to map shuts down program

I am trying to add a point file that I have used before to a map. Every time I add it the program (ArcGIS) crashes. I can add other files, including the same data for a different year, but this ...
1
vote
1answer
79 views

Finding percent landcover types with points or polylines

I'm using ArcMap 10.1. I had an orthophoto of an old study site. I traced two polygon shapefiles from this photo- one of "fields" and one of "forest". I made a point shapefile of the sampling points, ...
2
votes
1answer
150 views

measuring adjacency between polygons

I am working with some land ownership data. I would like to identify parcels the have small adjacency between other parcels. In a nutshell I want to identify where there is a small overlap between ...
2
votes
3answers
1k views

Can ArcGIS only merge two shapefiles each time?

I need to merge multiple point shapefiles (in the same directory) into one point shapefile. After inputting these shapefiles and merging it, I found the final output only contained the data from two ...
0
votes
1answer
154 views

How to subset some polygons from shapefile?

I have a shapefile of lakes with lots of polygons. The area I'm interested in is only big lakes. Is there any way to subset only the polygons I interested from the shapefile? How can I do it in ...
1
vote
4answers
390 views

Does shapefile or MapInfo TAB have advantage as source format for OGR conversion to GeoJSON?

I'm relatively new to OGR and GIS in general. Most of the sources I look at give a choice of ESRI shapefile and MapInfo formats. I'm using ogr2ogr to convert these to GeoJSON for import into ...
2
votes
2answers
2k views

Calculate distance in kilometers between two points

I have a few questions regarding the calculation of the distance between 2 postal codes. Take a look at the following code. ### # load the different packages we need ### require("rgdal") ...
2
votes
0answers
33 views

.shx files disappeared/deleted [duplicate]

I am quite new with QGIS and I created some maps with different layers these last weeks (seems easy but took me hours to do so). As usual, I saved everything in a folder yesterday, but today, I ...
1
vote
0answers
42 views

Most efficient way of passing values from OGRGeometry to ModelField in geodjango

I am writing a custom parser that maps shapefile data to a geodjango model in a Django 1.6 project. To read the shapefile I use the DataSource object from django.contrib.gis.gdal, which provides ...
3
votes
2answers
276 views

Create network from shapefile without ArcGIS?

I want to perform shortest-path analysis on a network whose edges represent real-world roads and whose nodes are buildings or other locations. I have the shapefile for the area I'm interested in. ...
1
vote
1answer
209 views

How to validate whether shapefile exists using ArcPy and Python function?

I am very new to Python and am trying to complete my final project with not a lot of success. My code works without functions, the problem is I need it to work with functions. In the main(): ...
1
vote
2answers
137 views

Administrative boundaries worldwide [duplicate]

I am searching for a downloadable database of administrative boundary shapes, best would be worldwide data. I have found GADM but it seems a bit outdated, also the OSM site defining the ...
2
votes
2answers
238 views

How to convert Point coordinates into CSV format?

The GDAL documentation describes how to convert a ShapeFile into CSV data. The layer create options (-lco parameter) allows to prepend the coordinates of Point features to the actual attributes ...
4
votes
2answers
2k views

PyQgis overwrite shape file and adding layer to Qgis

I am creating a shapefile in python by: driver = ogr.GetDriverByName('ESRI Shapefile') datasource = driver.CreateDataSource('c:/temp/toke2.shp') layer = ...
3
votes
1answer
99 views

How to find number of fields in shapefile using Python?

I've been looking at the ArcGIS resources for python but I can't seem to figure this one out. I'm looking for a method to gain access to the number of fields that are within a shapefile / feature ...
0
votes
0answers
300 views

export from .shp to .gpx and .kml fails

I've just upgraded to QGIS Dufour and I am having some problems with the exportation of a simple track from .shp to .gpx and .kml format. I imported from mi smartphone a .gpx track (SR WGS84 ...
0
votes
0answers
265 views

Looking for java (or python) APIs to read shapefiles

Consider a work flow which receives a data field, e.g. “basemap” as shown in the image, and fills polygons with color on the basis of its numeric values. I am interested in java programming to carry ...
0
votes
2answers
129 views

Count the area of rasterdata in specific shapefile polygons (residential density in different districts)

I'd like to count the exact area of three different residential classes (low, medium, high) by district of a shapefile which contains 225 districts. like: district 1 has: XXX sqm low, XXX sqm medium, ...
2
votes
0answers
68 views

ArcGIS - Table columns lose formatting when I make a new copy of shapefile (Decimals, Thousands separator, Highlighting)

When I make a copy of a shapefile or I join two shapefiles and then create a subsequent shapefile, my number type columns (in the attribute table) will default back to numbers with many decimals and ...
1
vote
2answers
781 views

How to add shapefile as layer to map using Python and ArcPy?

I am working on an application and I am a beginner in Python :( I want to add a shapefile, the execution is successful and everything but no result appears on ArcMap, here is the code I use: import ...
7
votes
4answers
5k views

How to change field length in QGIS

I have a shapefile I made in QGIS 1.7.4. One of the fields is a String of length 80. I'd like to make the field accept longer stings, but I can't figure out how to change its length. How do I do this? ...
1
vote
1answer
396 views

Multiple input shapefiles for ogr2ogr sqlite spatial operations

I'm running up against an issue doing a spatial operation requiring multiple input shapefiles using ogr2ogr and sqlite. I have: ogr2ogr -f "ESRI Shapefile" output.shp input.shp -dialect sqlite -sql ...
0
votes
1answer
181 views

calculate least cost pathways for a region and create distance rasters to rivers [duplicate]

How do you calculate all the least cost pathways that exists for a region? I would like the output map to display all routes (and was wondering whether this can be done in one set of operations). I ...
2
votes
0answers
93 views

Is there a way to build topology and work with topology relations in PyQGIS?

Is there a way to build topology and work with topology relations in PyQGIS? I'm asking because I need to run some custom generalization algorithms on my data, and I need to preserve topology. ...
0
votes
0answers
570 views

How to convert lines to start points and end points?

I know there are several ways to convert lines to points in Qgis but I have not been able to find a solution that will convert the file so that it indicates if the point is the start point (upstream) ...
0
votes
0answers
22 views

Where to download shapefile of 2km Tetrad squares for UK? [duplicate]

does anyone know where I can download a shapefile of 2km Tetrad squares for the UK please? A google search wasn't very helpful so I thought I'd try here. A Tetrad is derived from the British ...
11
votes
7answers
14k views

Where can I find a shapefile of city boundaries in the US?

Where can I find a shapefile that contains boundaries for the major cities in the United States? I have tried the census website but could not find anything.
0
votes
0answers
118 views

Does anyone know of Electric Company Boundary Shape files that are out there for Free?

Ohio has a great website for their Electric Service Commission and I am looking for a shape file or data that would get me the service boundaries of electric companies for other states. EIA has data ...
1
vote
0answers
722 views

Importing Census TIGER Shape Files to SQL Server 2012?

I've been doing my research on how to import shape files into Microsoft SQL Server 2012. and am still unable to figure out how to do it after hours of playing around with it. I'll document what I've ...
0
votes
0answers
421 views

How to share ArcMap shapefiles with QGIS?

I'm trying to send a ArcMap 10 shapefile for a QGIS user and something happens with attribute table during the process. Columns will be rearranged, hidden digits will appear to coordinate columns and ...
2
votes
1answer
3k views

Copy single feature into another feature class

I do a lot of editing, in this case areas. Sometimes I add an area to one shapefile, only to realise a bit later that it should have been in another. Is there an easy way of copying only that ...
2
votes
3answers
580 views

Ordnance Survey 1 km Grid

I am wanting to get a copy of the OS 1km Grid layer. I have found these previous questions: Ordnance Survey grids - download or generate? and Ordnance Survey Grids But neither provide the ...