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)

2
votes
0answers
382 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
323 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
173 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
390 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
215 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
302 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
73 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
80 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
161 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
2k 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
168 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
403 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
285 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
219 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
144 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
244 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
105 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
309 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
270 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
69 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
834 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
410 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
187 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
95 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
604 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 ...
12
votes
7answers
15k 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
122 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
748 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
432 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
4k 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
623 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 ...
1
vote
0answers
79 views

Issue on IFeatureDataConverter.ConvertFeatureClass

Does anyone know if it's possible to reuse this method with a "feature dataset" already present ? I'm trying to import multiple shapefiles under a featuredataset inside a fgeodb. Everything it's ...
7
votes
5answers
2k views

Automate SHP to JPG creation

Does anyone know of a way to batch convert shapefiles to jpegs or another common image format? edit: I should have clarified that I would like to apply a styling to each shapefile, and then export ...
1
vote
1answer
63 views

How to export one shapefile per shape in shapefile? [duplicate]

I have road shapefile consists of Road No. Suppose i have a road network consisting of 125 roads. I need to get 125 individual shapefiles from one road network shapefile without select one by one. Is ...
1
vote
3answers
668 views

Looking for a simple method to find the shortest path with Shapefiles

I am having shapefiles for a particular map location, the shapefile consists of points and polylines. Now I want to find the shortest path between the points. What is perfect and simple method to find ...
0
votes
0answers
72 views

By converting into a shp file points are reduced

I am new here, so sorry if I missed something, but when I try to converta data from an xls file into a shp file by export data, all the points I had before get reduced to only one?! I also want to ...
10
votes
2answers
742 views

Where did the polygons go after projecting a map in QGIS?

I'm fairly new at GIS know-how, but I've run into a problem with a projection of a world map. I have a shapefile of all countries I downloaded from Natural Earth. After projecting it into a ...
0
votes
1answer
42 views

Opening many shape at the same time

It may seem like a simple question but I haven't found a solution. I have a structure of directories with many shapefiles inside. Is there a method to open all these shapefiles at the same time with ...
2
votes
2answers
1k views

json to shapefile in javascript

I know, there are some libraries to convert .shp to .json even with javascript, but haven't found a way to convert .json back into .shp that could be implemented in web enviroment. Do you know or ...
9
votes
7answers
3k views

how to overlay shapefile and raster?

I have a shapefile with polygons. And I have a global raster file. I want to overlay the shapefile's polygons onto the raster grid and calculate the mean raster value for each polygon. How can I do ...
1
vote
1answer
206 views

Automatically determine polygon overlap 'islands'

I have a shapefile with many polygons. Some partly overlap with each other, some are not overlapping. I'm considering a polygon to be overlapping given a minimum area of overlap. 'Islands' of partly ...