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)

4
votes
1answer
425 views

Shapefile vs Arrays of coordinates to build Google Maps overlay?

I am very new to GIS, and my task is to overlay about 100 polygons on a map. I'm using Google Maps Javascript API v3. I think I can define all my polygons as sets of lat/long coordinates in my ...
1
vote
0answers
1k views

importing shp file in matlab

I have digitize 3 rivers on google earth and converted into shp file to use in matlab. I have checked the shp file in Arcgis and they are working. But while opening in Matlab, matlab shows some error. ...
5
votes
1answer
818 views

Working examples of Leaflet/Polymaps with GeoJSON tiles generated from Tilestache using Shapefiles?

I'm looking to create choropleths using GeoJSON tiles generated from ESRI Shapefiles by TileStache(or similar), in either Leaflet or Polymaps. So far reading and drawing GeoJSON from both Leaflet and ...
3
votes
1answer
173 views

How do I find overlapping attributes in two different layers?

I have two layers - one with country borders, and one with river basin borders - and I need to find a way to generate a list of basins that occur in each country. Is there a way to find overlapping ...
4
votes
1answer
815 views

Using PHP and JavaScript to dynamically create shapefile or KML

While I have used GIS software (ArcGIS and just started playing with QGIS at home), I have never looked into the code or file structure of shapefiles. I am working on a project for my work, a ...
10
votes
3answers
5k views

How to create a GeoJSON that works with D3?

I'm simply trying to convert a .shp file to a geoJSON format using: ogr2ogr -f geoJSON output.json input.shp After executing the command nothing seems to be wrong. Here's an excerpt from the ...
15
votes
4answers
14k views

How to open a Shapefile in R?

I need to open a shape file from ArcMap in R to use it for further geostatical analysis. I've converted it into ASCII text file, but in R it is recognized as data.frame. Coordinates function doesn't ...
2
votes
0answers
220 views

KML files to IPad securely? Altitude and shape problems in Google Earth

Does anyone know any options for maintaining privacy of the files and getting them onto iPad using Google Earth? Using Google account to link to Google Earth, privacy settings in Google my maps are ...
3
votes
1answer
405 views

OSS java approach to convert Shapefile to GML

We've got a project coming up where we need to upload .zip of a shapefile, join the .dbf to some lookup tables, join to other tables also uploaded (one to many attributes for each feature), and ...
4
votes
1answer
785 views

How can I export a shapefile to netCDF?

I have a shapefile of the worlds biomes Terrestrial Ecoregional Boundaries Shapefile (TNC), 12/14/09, 50MB download from available from http://conserveonline.org/workspaces/ecoregional.shapefile ...
7
votes
4answers
479 views

What are some alternative sources for USGS data?

I've been using the USGS National Map viewer (http://viewer.nationalmap.gov/viewer/) for getting data for QGIS, but the download system is driving me insane. I enter my email address and [sometimes] ...
5
votes
1answer
1k views

OGR Shapefile to CSV: Using Python to get WKT for multipart Polys.

Using ogr2ogr and python, I'm running into a wall with trying to create a csv with WKTs for a shapefile that contains multipart polygons. Currently this is this code I'm using (found it on interweb): ...
3
votes
1answer
545 views

Opening a shapefile with roads, how to display the roadnames?

I am using ((AxMapControl)myMap.AddShapeFile( directory, shapeFileName) To display a shape file which has road data. Now the roads display properly, but the road names aren't displaying. How can ...
1
vote
3answers
533 views

Merge Zip Codes to Create new sales Markets

Let me preface this question by saying I am very novice with respect to GIS. With this in mind, I am looking to merge zip codes into sales territories. Instead of plotting data by zip code, I want to ...
4
votes
2answers
1k views

Shape-file encoding problem in QGIS 1.9.0 (built with GDAL 1.9.2)

I have googled a lot but failed to find the answer. My configuration is: Ubuntu 11.10 Quantum GIS - 1.9.0-Master 'Master' (caae7b7) GDAL 1.9.2, released 2012/10/08 Shape-files refuse to open in ...
2
votes
1answer
321 views

Edit Shapefiles Attribute data in GeoServer Programatically

I'm rendering a shapefile using GeoServer and using OpenLayers library to render it in the web browser. Now I have created the option of editing the attribute data in web browser. I want the edited ...
3
votes
1answer
2k views

How to export shp to kml?

I already browsed your FAQs, and could not come up with a good answer, I am trying to export shp files to kml to be placed on Google Earth. On a previous version of QGIS it was as simple as right ...
6
votes
1answer
10k views

How to crop Shapefiles in QGIS?

I need to clip a large and very detailed .shp file in QGIS showing environmental data similar to a temperature map. Is there something like the very simple crop tool alike in photoshop where you can ...
0
votes
1answer
266 views

Does a polygon in a layer intersect with another polygon in the same layer [closed]

I am a CS major with little experience in GIS. I am working on vector polygon overlay. Looking at GML and shapefile data, I realized that a map is made up of a large number of polygons. Does a polygon ...
8
votes
1answer
1k views

How can I use fortify() to create a filtered R data frame from a shape file?

I am in the process of building a ggplot choropleth map of population in administrative areas in Wales. I have downloaded the Boundary-Line data from the Ordnance Survey and extracted what seems to be ...
1
vote
1answer
121 views

Extending ArcGIS

I've been tasked with a thesis project where i have to extend the features of ArcGis. I've been asked to create a model written in Python that can run out of ArcGIS 10. This model will have a simple ...
3
votes
2answers
1k views

From text data create a FeatureClass with table with python

I'm searching how the output of one program (text file with some writings, but also with data as numbers, dates, times, coordinates, all separated with commas) can be transformed to a Feature Dataset. ...
1
vote
0answers
175 views

Best practice for loading shapefiles into ArcSDE geodatabase using web application

We are developing a web GIS using Flexviewer and we want to allow users to upload a shp file and insert it into a ArcSDE geodatabase. I think there are two steps at least. upload the shp file (zip) ...
3
votes
3answers
503 views

Shapefile import with Oracle + GeoServer produces points instead of vector shapes

I have implemented the example at http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html and got it working properly. Now ...
5
votes
1answer
3k views

Use python to add layers to TOC

I've been battling with adding layers to the TOC for some time now. I have managed to single layers added but need to loop through a folder and add all layers. Shapefiles I cannot get to add at all. ...
8
votes
5answers
2k views

How to get an ocean shapefile from a very detailed land area shapefile?

I am looking for a possibility to "invert" a shapefile. What I want to do is to convert a shapefile with the continents and islands into a shapefile that has water polygons. The existing ocean ...
6
votes
1answer
1k views

How import a shapefile on-the-fly and have GeoServer render it instantly?

I am tasked with adding one feature to an existing app. It was built with OpenLayers and GeoServer. The task is to import a shapefile on-the-fly and have GeoServer render it instantly. However, I ...
7
votes
1answer
3k views

Using the python shape library: pyshp - how to convert .csv file to .shp

I am trying to understand how I can use the csv module in python to open a csv file in the same folder as the python script, and then create a shapefile using the shapefile module pyshp. The csv file ...
4
votes
1answer
3k views

How do I edit shape file attribute tables so they all have the same information?

I am trying to merge several pipeline shapefiles using GEOMERGE but it cannot complete the function because they have different column definitions. So I need to edit the attribute tables so that ...
2
votes
0answers
328 views

create geotiff from shapefiles

I need to colorized geometries from shapefiles and convert them to raster image (geotiff). I tried to use geotools's VectorToRasterProcess and ImageWorker ("d:\gis\tmp\32 27 25 w4.shp" is path to my ...
5
votes
4answers
310 views

We sent Client Esri Files and Now they want to See Polygons

We are a voter list company. Every ten years new political boundaries are written for federal and state offices. All of the corresponding shape files are ESRI ready. One of our clients is getting ...
1
vote
1answer
169 views

Unable to load the GADM data in QGIS

I have downloaded the shapefile of Mexico's Admin Boundaries from the GADM site but I am not able to load it in QGIS. It keeps giving me the following error, ...
1
vote
3answers
1k views

How to export a shapefile through the Wikimapia API?

I am trying to download a kml file from Wikimapia containing information on quaters (districts), the very same information that is nicely available on Wikimapia. What I want to get at the end of the ...
1
vote
2answers
352 views

How to use -where SQL in an ogr2ogr loop in GDAL/OGR (bash)?

I'm using the following code: while read line; do for att in $line; do ogr2ogr -where "newcode='$att'" -f "ESRI Shapefile" $OUTPUT/$att.shp $INDATA done done < $SCRIPT/newcodes.txt The text file ...
1
vote
1answer
1k views

Drawing a Straight Line Between Two Polygons on a Map and Listing Which Polygons It Passes Through

I have a shapefile of United States counties. I have two counties that I would like to highlight. I would like to draw a straight line distance between them. By straight line, I mean, if you were ...
3
votes
1answer
715 views

Can't get MapServer WFS to display in OpenLayers

I'm new to OpenLayers and MapServer and I'm trying to serve a shapefile through a WFS but can't seem to get the data to display. When I use Firebug and HttpFox in Firefox I seem to be getting some ...
0
votes
1answer
166 views

overlay a county shapefiles for 2 different years [duplicate]

Possible Duplicate: overlay county shapefiles for 2 different years 2 down vote favorite I have county-level shapefile for South Caroline in 1880 and one for 1940. I would like to overlay ...
4
votes
1answer
130 views

Creating a feature of a part of a state boundary from a shapefile of U.S. States

I have a shapefile of U.S. states. I want to create a feature layer from it so that I can do a Near analysis with it. Suppose that I am interested in the Georgia boundary, but only the part of ...
3
votes
2answers
2k views

How to edit Shapefile Attributes?

How might I go about exporting a polygon shapefile (e.g. CSV) so that attributes (not geometry) are editable by others, and importing it with the changed attributes (of which there are several columns ...
3
votes
2answers
253 views

calculate coastline at risk

I have an idea of what I want to do but I don't know yet what tools will bring me there. I have administrative boundaries in one layer and coastline in another layer. The coastline is categorized in ...
3
votes
1answer
407 views

How to stop writeOGR from abbreviating Field Names when using “ESRI Shapefile” driver

I'm currently using the following script to add some attribute data from a table to lots of individual shapefiles: library(rgdal) specieslist <- read.csv("SpeciesList1.txt", header=F) attdata ...
8
votes
4answers
738 views

How to create a multi-story building infrastructure web map?

Hi please bear in mind that I've got absolutely NO experience working with GIS before you begin laughing at this. During a recent meeting, our client was bouncing around their complaints about how ...
6
votes
1answer
160 views

Is there a difference between projecting shapefiles then rasterizing & rasterizing shapefiles then projecting?

I currently have a project where I rasterize shapefiles into simple presence/absence (1 & 0) rasters and then add each one to a running total to create a total richness raster at the end. The ...
9
votes
2answers
9k views

Merge polygon in a shapefile based on a field value

Hello I have a shapefile with a lot of polygons in it. These polygons are grouped into a category: district. How can I merge the polygons based on the same name of the category within this shapefile?
1
vote
1answer
255 views

Summarize polygon area using another polygon

I have a shapefile representing public/private lands in Montana. This is a multipart shapefile where I've simplified attributes so that #1==private and #0==public. Next I have a shapefile of ...
1
vote
1answer
457 views

Converting a shp file to a list of latitudes and longitudes

I have a shp file with the latitudes and longitudes for the boundaries for various geographic regions. I'd like to convert the shp file into lists of just latitudes and longitudes for the regions. ...
2
votes
1answer
696 views

World map shapefile including disputed areas

I am looking for a global shapefile that allows you do show data for all disputed areas (like Waziristan, Spratlay Islands, Kahsmir, etc.). Do you have any idea where I can find a shapefile with not ...
1
vote
0answers
345 views

QGIS: opening a shapefile without an exclusive file lock [closed]

UPDATE: I did some analysis of what happens with the locking and it looks like QGIS doesn't use an exclusive lock. It just requires (non-exclusive?) write lock to the file. So this C# code fails: ...
0
votes
0answers
153 views

Merging point shape file problems?

I've got a whole bunch of shape files that have soil testing data in them that I would like to merge together so I can do some analysis but when I use the Ftools merge shape files command I get an ...
1
vote
0answers
106 views

I've converted a kml to shp and want to import it to pgsql database, but no geometry column [closed]

As the title explains, I have a shapefile whose attribute table has no geometry column specifying the location of points. Rendered in QGIS, it looks fine, so the geometry data is obviously there. ...