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)

0
votes
0answers
28 views

Saving arcGIS online data to shapefile

I have a map that is shared in a group and edited through the online map viewer & iPad collector apps. I need to save the updated data to a shapefile so the changes made online can transfer to ...
3
votes
3answers
74 views

Centering shapefile in layout view?

This is what my screen looks like now. The yellow outline of the US is a shapefile and so are the blue dots. I am using one of the default basemaps in the background. I want center the map so that ...
1
vote
0answers
25 views

batch convert geojson to shapefile [duplicate]

I have a directory full of geojson files that I need to convert to shapefiles for editing in QGIS. As far as I have searched, there are no resources in GIS StackExchange that explain how to do this ...
1
vote
1answer
23 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 ...
2
votes
2answers
50 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
62 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
39 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 ...
4
votes
2answers
101 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
25 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
240 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: ...
1
vote
1answer
54 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
24 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
18 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
38 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
29 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
2answers
44 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
25 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
41 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
29 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
34 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
40 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
12 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
18 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
51 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
124 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
24 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
22 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
107 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
62 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
78 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
124 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
46 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
45 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
37 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
48 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
15 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
54 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
165 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
67 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
68 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
26 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 ...
0
votes
1answer
38 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
45 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
27 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
170 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
29 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 ...
3
votes
2answers
38 views

How do I convert a GPX to SHP with extended properties?

I have a GPX file containing trackpoints, similiar to the following: <trkpt lat="12.34567890" lon="-12.34567890"> <ele>250.100000</ele> <time>2016-06-03T13:09:...
1
vote
2answers
61 views

Preserving special chars using osgeo.ogr.Driver to shape in Python?

I am converting kml files to shape and run in to the problem that special characters are not preserved. #!/usr/bin/env python # -*- coding: utf-8 -*- import os, ogr, osgeo, sys ogr.UseExceptions() # ...