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
1answer
9 views

Error on join in ogr2ogr

I am doing an ogr2ogr process where i will be making a join between two tables, imported as shapefiles and .csv to join on a column with idential attributes. The code i've made so far looks like ...
1
vote
0answers
44 views

Using file opened by GUI in python?

I have these lines of code: import tkFileDialog, arcpy, arcpy.da, numpy as np, Tkinter import arcpy.mapping as mapping fc = tkFileDialog.askopenfilename(filetypes=[('shapefiles','*.shp')],title='...
1
vote
1answer
33 views

Clip raster with shapefile and set a value outside the mask

I want to clip a raster using a shape file with the command: gdalwarp -cutline INPUT.shp INPUT.tif OUTPUT.tif from this answer. However I want to set the pixels outside the mask to a particular ...
0
votes
1answer
315 views

Converting mapsforge .map file to OSM or shp

I have found solution for converting OSM file into .map file but is there a way for converting .map file back to osm or shp or any other well-known vector file type? by .map file i mean mapsforge ....
3
votes
3answers
2k 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 ...
2
votes
1answer
177 views

Using ArcPy to fetch Information from a .GDB

I am new to GIS and I would appreciate if you could guide me a little. I have a .gdb folder with data and I need to process that data to find educational institutions which are within say X Km of the ...
3
votes
2answers
58 views

Geopandas Polygon to matplotlib patches Polygon conversion

Unfortunately geopandas plotting is extremely slow and takes a lot of resources, hence I would like to use instead matplotlib for plotting. When I use pure Fiona to open and read the shapefile I ...
1
vote
0answers
60 views

Rendering shapefiles (.shp) to TIF with labels? [on hold]

I've basically copied the script below with minor tweaks from a few other posts here on stackexchange. When I run my code and all I get for output is a TIF that's white with a legend. For the life of ...
1
vote
1answer
1k 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 ...
1
vote
1answer
24 views

Convert .dwg to .shp via FME

I'm attempting to convert a .dwg to .shp with FME software. So far I have pulled in the .dwg, added the writer to convert to a shapefile with a specified coord system and chose the location of the ...
0
votes
0answers
15 views
9
votes
4answers
8k views

Using ogr2ogr to convert GML to shapefile in Python?

I am trying to convert a GML to an ESRI shapefile using ogr2ogr utility in a python script. I have successfully installed the GDAL/OGR package via osgeo but I am now struggling to find/understand ...
0
votes
1answer
106 views

Using shapefiles as a reference for accuracy assessment in ecognition

I classified my project and got an esri shapefile with points in it. Those points are hand made samples with the right class assigned to them. Now I need to use those samples to check my own ...
0
votes
1answer
210 views

cad to shapefile conversion

i have use arcgis10.1,arcobjects.net. i did following code ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); gp.OverwriteOutput = true; ...
3
votes
1answer
36 views

Why is a single road sometimes split into separate layers?

I'm using data from the Transportation section of the National Map (US). They provide three layers for roads: Trans_RoadSegment, Trans_RoadSegment2, and Trans_RoadSegment3. I seem to recall this ...
4
votes
2answers
82 views

Python: color Canadian provinces in a shapefile based on given values

The goal here is to create a choropleth map of Canada in Python. Suppose I have a dictionary with values referring to each Canadian province/territory: values={'Alberta': 1.0, 'British Columbia': 2....
20
votes
3answers
4k views

Is it possible to look at the contents of Shapefile using Python without an ArcMap license?

I wondered if it is possible to look at the contents of a shapefile using Python without having and ArcMap license. The situation is that you can create shapefiles from many different applications, ...
1
vote
1answer
22 views

Wrong boundary when plotting Canada's shapefile in Python

I want to plot the Canadian shapefile with province boundaries highlighted and hollow filling. I have downloaded the shapefile from here. This is the script I use to visualize the shapefile: ...
2
votes
3answers
216 views

How to use field calculator to change values from a,b,c etc. to 1,2,3 etc.?

I have a vector shp with a column with string values. How can I convert this to a column of integer values in another column but keep the categorization: e.g. from: col1,newcol2 A, A, B, A, C, to: ...
2
votes
1answer
211 views

Trouble Converting from a shp. to gpx file and up loading to GPS

Currently I have a series of random points within a shapefile that I would like to upload to my GPS. Every time I try to upload the points via "Save file" it come up with an error message (posted ...
5
votes
1answer
366 views

Trying to fill polygon fills the entire map

I have been given some shp files to be displayed using Mapserver. Until now I was able to find the correct projections, display the map, and show labels. However, I have problems with polygon colors. ...
1
vote
2answers
187 views

Seeking shapefile of administrative divisions of Cote d'Ivoire (Ivory Coast) post-2011

I've been trying to find a shapefile containing CIV's administrative divisions (preferably down to the level of sous-prefecture) reflecting the national reorganization of 2011 but have had no luck. ...
1
vote
1answer
2k views

Where to Dowload Village layers for India with census 2011 information?

Does anyone know where I could download a layer of all villages in India together with their populations (hopefully from the 2011 census)?
0
votes
0answers
8 views

Estimating ranges from shapefiles [closed]

My thesis is tourism site locations, and I am using FIS and GIS. I have shapefiles of criteria. I have criteria as member functions in Matlab. For each of inputs (Mfs) I need a range. How can ...
6
votes
1answer
276 views

Are there any Objective-C frameworks for shapefile drawing?

Hello can someone point me to library for this? Which can read .shp files and render them?
1
vote
2answers
264 views

Shapefile to KML Conversion Problems in QGIS 2.6.1 on Mac

I am currently using QGIS 2.6.1 on a Mac with OS 10.9.5. I am trying to export a shapefile using QGIS to KML format. I am having success with the export but the data is skewed halfway across the ...
1
vote
1answer
185 views

Plotting an eia shapefile in google maps with R?

I'm trying to plot a eia shapefile onto google maps. I have a code working with the map funciton but can't get it to work with the ggmap function. Where am I going wrong? Working code: library(maps)...
3
votes
1answer
1k views

Shapefile of European Parliament constituencies?

Is there any shapefile (or similar vector data set) of European Parliament electoral constituencies? Some countries (e.g. Germany) are basically one constituency, but others (e.g. UK) are not. Is ...
1
vote
1answer
45 views

Extracting multiple raster data to point shapefile in ArcGIS ModelBuilder?

I used raster iterator tool in ArcGIS ModelBuilder read several raster files in IMG format and extract values of corresponding raster files to a point Shapefile using "Extract multiple values" tool in ...
3
votes
2answers
398 views

Creating shp from txt files using ArcPy?

I have a txt file like this: Point 0 347172.2 4269952.7 60.9090909091 1 337172.8 4278952.4 85.7334909091 2 344572.3 4547952.2 123.909673091 3 347532.8 8777952.8 456.467809091 END The third column ...
1
vote
0answers
16 views

Convert a SHP file set to a categorised ASC raster with Qgis?

I have a shapefile with regolith (soil) data that I would like to use as a categorised raster (say 007_1ASC) in Maxent. The regolith data is in the following files: 007_1.cpg 007_1.dbf 007_1.prj ...
2
votes
1answer
19 views

How to extend an OSM or raster area in Qgis (into 'No Data' area)?

I need to do the opposite of clipping down a raster (or SHP file) in Qgis (or Gdal, Python etc - even R if someone can provide the script). I have a dataset from Open StreetMap (*.OSM) which includes ...
1
vote
0answers
32 views

How to export a training shapefile as an XML spectral signature file via QGIS?

I recently used the answer from Orfeo Toolbox object based classification in QGIS tutorial/workflow to perform an object base segmentation on a spot image i acquired a while ago. I tried both of the ...
1
vote
1answer
33 views

Failed once again to import shape file to postgis DB using ogr2ogr

Once again I try to import a shape file to my remote postgis database using og2ogr. Last time it was an Odyssey but I have managed to solve all the issues and report them one by one here. I have ...
5
votes
2answers
975 views

Data security for GIS Data (shapefiles,AutoCAD files)

This is regarding security for GIS Data (in Esri & open source) (Esri shapefiles, AutoCAD files etc.) Does anyone know how to assign a password to or encrypt shapefiles OR CAD Data? I have found ...
0
votes
0answers
15 views

Esri Shapefile to KML with gdal resulting in “too_big” in altitude value

I'm needing to automate the conversion of .shp files into something more user-friendly like GeoJSON and KML. The conversion to GeoJSON seems to work okay with this command: ogr2ogr -f GeoJSON -t_srs ...
0
votes
2answers
27 views

How to obtain Census block data in SQL format?

I am trying to create a web app where users can query a certain type of data that is offered by the Government. Unfortunately, the government prefers "Census Tract/Blocks" as opposed to Zip codes (it ...
0
votes
0answers
24 views

Raster to categories to shapefiles

I have a raster data file which is the population density. I would like to transfer this raster into a specific number of categories, let's say 5. After that I would like to convert the raster to a ...
1
vote
1answer
70 views

mask raster with shapefile using gdalwarp/gdal

I am struggling to use gdalwarp with cutline option. The following command keeps failing and I do not understand why : gdalwarp -cutline shapefile.shp file.tiff newfile.tiff Warning 1: Self-...
9
votes
3answers
3k views

Getting list of distinct values from shapefile field using QGIS?

I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named 'city_name' and by stating 'city_name = "London"' in the where clause only ...
1
vote
1answer
27 views

QGIS: how to label a continent map with distinct values from shape file?

I have a continent shapefile containing the names of its different countries. Unfortunately, many of these countries have more than one entry (i.e. more than one row in the attribute table). ...
0
votes
1answer
31 views

Files resulting in dBASE table and projection file but not shapefile

Received data from an agency I'm working with. The documentation they included said what they're sending me is a shapefil. When I go into ArcCatalog all that appears is a dbase table and project file. ...
1
vote
1answer
3k 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. ...
0
votes
1answer
2k views

How can I create new shapefile in QGIS1.8 from “Save selection as…”

when select a shapefile feature from census boundary file and use "save selection as" to create a new shapefile, program returns error: "Export to vector file failed. Error: creation of layer failed ...
1
vote
0answers
17 views

Cropping vector map into tiles with QGIS - how to get around shapefiles which have stray points on boundary of tiles?

I am trying to use QGIS to generate a set of tiles in Shapefile format from a vector coastline map. My script is correctly generating the 5x5 degree tiles I want, however a few tiles clearly have ...
1
vote
0answers
9 views

Convert Microstation dgn v8i files to shapefiles in Linux

I am looking for some program which would allow me to convert Microstation .dgn v8i files to OGR supported format (preferably ESRI shapefile) in Linux. I have tried GRASS and QGIS, but both support ...
3
votes
4answers
752 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 ...
1
vote
0answers
50 views

How to select only some of the polygons from a Shapefile [closed]

I have a Shapefile containing many polygons. I need to filter and save only part of them in another Shapefile. How can I do this using QGIS?