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 (1)

5
votes
4answers
180 views

Calculating percent cover from shapefiles

I normally do not work with shapefiles, so I am a bit lost here. I have two shapefiles each with multiple objects. The first is a set of 32 polygons (each one is a plot). The second shapefile has ...
2
votes
2answers
63 views

shp2pgsql mangles date field — quotes data as if it were char or varchar

I'm attempting to import a shapefile into postgis via shp2pgsql. Among the fields in the shapefile's .dbf file is a date field with format yyyymmdd, which is a valid date format for postgresql. ...
2
votes
1answer
53 views

PostGIS ST_Contains query returns null

I have a shapefile of all US States that I've imported into a table with a multipolygon geometry column. (SRID 4326) I perform a spatial query based on lat/lon to return the state abbreviation. This ...
2
votes
1answer
66 views

Axis of rendered shape files not showing numbers that are latitude and longitude

I am using rgdal to render some shape file. The first is a set of building zones from NYC Open Data. The second is the NYC coast line from OSM. The Zone files seems to generally render an X axis ...
1
vote
3answers
210 views

How to install Fiona to read Shapefile attributes with OSGeo4W?

I´m developing a plugin in Python and I need to read the shapefile attributes, so I found the Fiona API and dbfpy also but I don't understand how to install these packages because I install the QGIS ...
0
votes
1answer
71 views

Selecting a valid format file

There has been an error when uploading a shapefile I want to start with some imported data. Upload a file. Please, select a valid format file # when upload a zip file: Oops! There has been an ...
0
votes
2answers
76 views

error of data conversion value getting while importing shapefile in shp2pgsql-gui on ubuntu

Connecting: host=localhost port=5432 user=postgres dbname=tremblement_de_terre Connection succeeded. Connecting: host=localhost port=5432 user=postgres dbname=tremblement_de_terre ...
0
votes
0answers
10 views

Convert shapefile to MIF programmally [duplicate]

We have a lots of shapefile (300+) which we have to convert them to MapInfo(MIF) format. I know there are some tools can do this manually, but I wonder if we can convert them by program? I found ...
2
votes
2answers
79 views

Convert shapefiles in nested folder to geodatabase

I currently have approximately six hundred old .mxds, and all the data source links are broken due to an upgrade in the GIS computer. In the past, all the spatial data was stored as shapefiles in ...
2
votes
3answers
76 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 ...
1
vote
0answers
34 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
317 views

need help to automatize report generation

i have shapefile that contains a lot of parcels "parcel has like fields (n° parcelle,proprietaire, cin) see picture : and i want for all parcels to generate this plan : take a parcel and ...
4
votes
1answer
57 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
55 views

Help finding Postcode Boundaries for The UK, Spain, Canada, Ireland, Brazil? [closed]

I would be forever grateful for anyone's help finding current Postal Code shapefiles for any or all of these countries. Spain Brazil UK Ireland Canada Free is obviously better but because I may use ...
1
vote
1answer
62 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 ...
1
vote
2answers
167 views

How to load shapefile in Oracle Spatial

I am newbie to oracle spatial. I want to load shapefile into oracle spatial. I am using oracle 11g. I have already look at the following examples and answers ...
2
votes
1answer
49 views

OTB vector segmentation result is flipped

I'm using Monteverdi 2 to perform a mean shift segmentation on an image of an archaeological dig, to test the feasibility of automatic detection of elements. I've loaded the image in Monteverdi and ...
0
votes
1answer
52 views

Merging multiple polygon shapefiles

I want to merge two polygon shapefiles in one without losing the attributes using ArcMap 10.1. To be exact I am creating a geological map and have some geologic formations in one shapefile and some ...
1
vote
2answers
53 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 ...
0
votes
2answers
67 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 ...
0
votes
0answers
100 views

How can I clip a shapefile in java using geotools?

Does anyone have any advice or sample code that shows how to clip a shapefile using geotools? I am looking to build a simple GUI to allow a user to input a bounding box and polyline shapefile, then ...
1
vote
1answer
41 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. ...
1
vote
2answers
210 views

unionize intersections of merged polygons

[Updated quesion] I am using the following code to merged polygons from shapefiles for the purpose of calculating the surface area; library(maptools) library(rgdal) library(rgeos) #enter slots, ...
1
vote
0answers
102 views

Version problems with Geotools CSV2SHP example

I'm trying to use the CSV2SHP tutorial. I spent some time trying to get it to run but using v10.x of Geotools causes the shapefile to be output with no geometries. For instance if I open it in QGIS, ...
2
votes
0answers
76 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 ...
0
votes
1answer
130 views

I would like to convert trimble ssf format to shp format

I would like to convert a small amount of data from trimble ssf format to shp format for inclusion in an ArcGis database. I have been trying to do this for a few months and not success. I have a ...
3
votes
2answers
160 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 ...
1
vote
1answer
56 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
78 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 ...
2
votes
3answers
94 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 ...
2
votes
1answer
53 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 ...
1
vote
1answer
36 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, ...
1
vote
1answer
45 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 ...
0
votes
0answers
99 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 ...
0
votes
1answer
44 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 ...
2
votes
0answers
30 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
27 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 ...
1
vote
2answers
220 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") ...
3
votes
2answers
113 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
77 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
51 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 ...
1
vote
2answers
98 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 ...
1
vote
1answer
89 views

Arcpy ERROR 000732 when ApplySymbologyFromLayer

I want to split a shapefile by certain attribute and then apply a symbology layer, finally output it as a KMZ file. R1 = outpath + 'R1.lyr' arcpy.MakeFeatureLayer_management(fc, R1, "WHERE CAUSE") ...
0
votes
0answers
62 views

Eclipse Quickstart installation Problem

i try my best to install GeoTools using Eclipse QuickStart GeoTools 10 snapshot,and follow all the instructions,but i could't succeeded, and its give error message of download jar....i spend a lot ...
3
votes
1answer
69 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 ...
1
vote
2answers
234 views

How to change shapefile longitude from -180 - 180 to 0 - 360?

I have a shapefile of world countries, with longitude between -180° and 180°. How can I change the shapefile (eg. with ogr2ogr) for having longitude between 0 and 360°. Following OSGEO/Trac ...
0
votes
0answers
84 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 ...
2
votes
4answers
365 views

Converting GDB to shapefiles in ArcGIS

So I'm attempting to convert a GDB database into a shapefile. I found the help for ArcGIS 10.1 (my version) and it tells me 2.On the main menu, click Customize > Toolbars > Production Mapping. But ...
0
votes
0answers
39 views

Newbie, I want to make a map that shows something along the lines of the following:

What is the average income for housing units (middle, mixed, family, etc.) within a 2 mile radius of parks for the City of Anaheim? or What is the average number of parks within the 1/2 mile radius ...
0
votes
0answers
80 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 ...