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
97 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
290 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
256 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
125 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
64 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
725 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
352 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
174 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
91 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
527 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
116 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
695 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
413 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
557 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
73 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 ...
6
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
62 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
629 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
68 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 ...
9
votes
2answers
679 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
40 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
185 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 ...
0
votes
1answer
105 views

How can I export a point shapefile from ArcGIS to R

I am having several problems in exporting my point shapefile from ArcGIS 10 to R. I tried to save the shapefile as a CSV, but R reads all in one row; somebody in another question answered to use ...
2
votes
2answers
1k views

Shapefiles for US city and Zip level

I already have the information for US states and Counties. I have the information in the Json files. I want the information for ALL US city and Zip Code information. Any leads appreciated. I cant ...
2
votes
4answers
1k views

How to get street names from OpenStreetMap?

I have some SHP layers that contain some streets and buildings data, and i'm showing it with openLayers (by GeoServer). they are not contain the names of the streets or the numbers of the buildings. ...
4
votes
5answers
13k views

How to cut one ESRI Shapefile with another ESRI Shapefile? [closed]

I have one ESRI Shapefile as a map with many objects in it. I have another ESRI Shapefile only with borders in it. This shapefile is bigger in size (covering a bigger area) with many border lines. ...
2
votes
1answer
672 views

How to provide meanings (metadata) of attributes/fields with shapefiles?

Usually when doing GIS projects, especially when working as a freelancer, you're just provided with a bunch of shapefiles and you have to figure out yourself what all the table attributes mean. ...
3
votes
2answers
244 views

Calculate distance in QGIS, wrong geographic projection?

I'm trying to do the following: I have 2 shapefiles, one containing all the public schools in NY, another one containing the hotspots in NY (both in points form). Now what I'm trying to do is ...
1
vote
1answer
96 views

BBox missing when converting TIGER to GeoJSON

I can't get the bounding boxes of polygons if TIGER/Line shape files when converting them to GeoJSON using FWTools. The other default information is present and there is no difference between the ...
2
votes
3answers
662 views

How to find and apply reprojection parameters?

I have a data set in one projection, and a shapefile in another, and I am trying to combine the two. I am using Python. I apologize for posting a "help me transform coordinates" question on this site ...
2
votes
0answers
797 views

Coverting annotation into a shapefile

I have created an annotation feature class in Arc10 and when viewed within the database, looks great. However, whenever I go into catalog and export the annotation feature class to a shapefile, it ...
0
votes
1answer
211 views

How to read shapefile of road segments into Python data structure to get begin and end point coordinates? [duplicate]

How can I take a shape file that has road segments and read it into a data structure in python that I can use to get begin and end points with? For example x, y to x2, y2. It's not a large shape ...
5
votes
1answer
474 views

ogr2ogr selecting features by attributes

I am writing a shapefile after some processing; however, in the final step I need to do some selection by attributes from the the shapefile. I am using the command in a shell with the aim of using it ...
12
votes
5answers
436 views

What in-depth spatial database systems tutorials exist?

Is there a good tutorial that explains in depth the internals of a GIS and a spatial database system such as PostGIS with examples and without any background assumption? I'm specifically looking for ...
2
votes
1answer
623 views

How can I clip this shapefile in Arcmap?

I'm trying to clip one shapefile with another in ArcMap 10.1, but every time I try I get an error saying "overlay not polygon". I'm pretty new to GIS - is clip the right tool to be using here? I've ...
1
vote
3answers
5k views

How to read coordinates from shapefiles and overlay on Google Maps?

I have shapefiles i.e. *.shp, *.dbf and *.shx files. I need to read geo coordinates from these files and overlay the area on Google Maps at the right location. I believe that *.shp and *.dbf ...
3
votes
1answer
673 views

How to convert all shapefiles in folder into KML using ArcPy?

I was trying to convert all the shp in a folder into kml. featureclasses = arcpy.ListFeatureClasses() for fc in featureclasses: # Set Local Variables composite = 'COMPOSITE' pixels = ...
1
vote
1answer
522 views

How to convert shapefile to KML file using ArcPy? [duplicate]

Python script that checks to see if a specific layer file exists in the current workspace and, if it does, converts the layer file to a KML file. Does it work with a shapefile? Code so far: for file ...
0
votes
1answer
237 views

Why do Shapefiles and GeoJSON behave differently in GDAL Python?

I have a test.shp. I loop over the file, buffer the features, and write the buffers to a new file. I tested writing the buffers to a Shapefile and to a GeoJSON. If I try to use the new buffer layer ...
7
votes
1answer
338 views

Python3 libraries for GIS analysis

I am trying to do some spatial data analysis in Python 3 now, and I was wondering what the best libraries are for GIS in Python 3. The Fiona library was developed with Python 3.3 but the Python 3+ ...
2
votes
1answer
283 views

How I can insert feature attribute after feature drawing complete

I am new to OpenLayers. I am trying to insert wfs feature information to my map after drawing like this. I can draw a WFS feature like (polygon, line, point) on map and after drawing the feature ...
0
votes
0answers
889 views

Add new rows to a shapefile

I'm using QGIS. When I enable editing of a shapefile's table attributes and select, 'open attribute table,' is it possible to add new rows to the shapefile's table attributes? The problem I'm trying ...
2
votes
1answer
309 views

How to modify the coordinates of a SHP geometry using Geotools?

I have a shapefile with some polygons. I would like to change the height for this elements using Java. The rest of the attributes should be the same. I've thought using GeoTools but I haven't found ...
9
votes
5answers
1k views

Looking for USDA plant hardiness zone shape file

given that this is a USDA resource I really thought that it would be available online somewhere, but for the life of me I cannot find a shape file for the USDA plant hardiness zones anywhere. anyone ...