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
11 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
1answer
34 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 ...
1
vote
0answers
47 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
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

How can Auto connect the two points with layer HW by ARCPY [on hold]

How can Auto connect the two points with layer HW
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....
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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
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 ...
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
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?
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
1answer
23 views

Updating a raster using a shapefile [closed]

I have a huge raster file and want to increment all the values within a relatively small shapefile by 1 in Python. Speed is of critical importance, as I have to do this many times. I have been ...
1
vote
1answer
19 views

Error when loading shapefiles into IBM Bluemix dashDB

I am running into the following error when loading my shapefiles data locally into dashDB The shapefiles in my zipped file are the following: Anyone has experience doing this with dashDB? ...
3
votes
1answer
93 views

How to convert multiple csv files to shp using python and no arcpy?

At my internship, I have been asked to learn Python on the job. Its been a rough road never having coded before so please forgive me if my problem is elementary. The Lightning CSV files I am ...
1
vote
2answers
53 views

Renaming shapefiles and raster files with Python

I'm trying to add "_Kiwi" to the name of multiple shapefiles and raster files in a folder C:\data. For the files with multiple extensions (.shp.xml for example), I can't get the files to rename ...
1
vote
1answer
74 views

Cutting a shapefile

I want to plot a figure with my data combined to an shapefile. However, at the moment I am not able to receive output yet since the data from the shapefile covers a larger area than my dataset. My ...
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-...
1
vote
1answer
44 views

Why is QGIS 2.14 automatically changing field type when saving layer?

I'm creating shapefiles with specific field types (i.e. ID: integer, NAME: String, CODE: integer, etc.) using QGIS 2.14.0. When I save the layer using "right-click" - "save as" and load the newly ...
1
vote
1answer
37 views

Read only geometry from shapefile with python/geopandas

I would like to open a shapefile(shp) without loading the attributes(dbf), as I do not care about attributes and it takes about 25 minutes to load them. I am using Python Geopandas, so any Fiona or ...
1
vote
0answers
26 views

Read a shapefile and write an identical one using GeoTools

How would one go about reading a shapefile using GeoTools and then writing it to disk so that the read and written are as identical as possible (idempotent)? I do not feel familiar enough with ...
1
vote
0answers
30 views

Locking shapefiles from editing by ArcGIS for Desktop? [duplicate]

How we can lock or protect a shapefile from editing in arcgis? I want another person to be able to view the data/attributes in the shapefile, but don't want them to be able to change or edit the data....
0
votes
0answers
32 views

Is there any restriction for downloading google maps road network and do analysis on it

Would it be legal to download google road network and perform analysis on that data without officially taking their consent, and publish the findings. Is there any example similar to it?
1
vote
0answers
45 views

Shapefile layer export issue

I am using QGIS to define polygons in a shapefile layer which I am then exporting as an ESRI shapefile for use with JMP. The polygon layer looks correct on-screen in QGIS, but the exported files have ...
0
votes
0answers
14 views

Arcmap 10.2 (query builder and or Expression)

I want to turn off selected sect_label numbers from showing up on my base map as I have a shapefile with Section and acreage loaded for a specific area and i need to use the shape file because it lets ...
1
vote
1answer
52 views

Projecting SHP file in QGIS [duplicate]

I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from ...
5
votes
3answers
157 views

Determining coordinates of a SHP file

i have a SHP file of a building converted from a DXF file. This SHP file is unprojected and have no specific coordinates (origin 0,0). I find WGS84 coordinates (lat, long) of this building from Google ...
-6
votes
1answer
63 views

Edit Shapefiles in QGIS [closed]

I have shapefiles which were created in Arcgis. I want to edit them in Qgis. Is this possible? and if yes how can it be done? Can I open Arcgis shapefiles in Qgis?
1
vote
0answers
60 views

Find Properties of Nearest Line Segments to Point in Python

I have been trying to find a workable Python approach to finding nearest line segments to one (or more) points, and came accross @gene's solution to @RustyMagoo's problem here: from shapely.geometry ...
0
votes
0answers
24 views

DEM from Google Earth, Natural neighbour fails

Does anybody know, why using the tool Natural neighbour fails, when trying to get raster from shape? I followed the instructions here: https://www.youtube.com/watch?v=bLbY3iMBW-A, but all I get are ...
-1
votes
0answers
27 views

Merge village level shapefiles by sub_district_ID to get a new shapefile using R

I am new to using R for manipulating shapefiles and need help with merging the areas inside the shapefile to a superset based on the sub_district_IDs and get a new shapefile.
0
votes
1answer
28 views

Converting png map to polygons with colors and value using ArcGIS for Desktop?

I need to use this map (png file) in which each color is a population density: I've already located it using Georeferencing. Now i need to convert it to shape file with polygons, and narrow down ...
2
votes
0answers
38 views

Why does my GeoJSON have no coordinates when saving from Shapefile in QGIS?

I've got a shapefile (.shp, .shx, .dbf, and .prj) that I'm trying to save as a GeoJSON using QGIS 2.14. When I load the .shp into QGIS, everything seems to work fine, the Shapefile renders properly. ...
0
votes
1answer
25 views

Shapefile not displaying points (vertices) in ArcMap

this code finds all the vertices of every census tract for the state of California and Colorado. The code runs, and creates a shapefile with all proper filled fields (totpop, XCoord,YCoord, area1 etc.)...
5
votes
5answers
166 views

Do 1KB Shapefiles with bigger .shp.xml contain any usable data?

I received this folder from a county's GIS department. Am I right in telling them that there is nothing in it? They seem convinced that everything is included, but all I see is that there is ...
1
vote
0answers
21 views

Sub setting shape file to plot a region and addressing mismatch in ggplot & data

I am plotting India's district map with data (cases). First I read data for each district and district shape file. Later I merge the two on district. Using fortify data I get ggplot. I get a ...