Questions tagged [shapefile]

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.

Filter by
Sorted by
Tagged with
6
votes
4answers
1k views

Converting factfinder2.census.gov map data to KML?

I've downloaded a map from http://factfinder2.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=DEC_10_SF1_P1 (limited to San Francisco census tracts), and I'd like to convert it to KML ...
5
votes
4answers
3k views

Converting shapefile from Shift_JIS to UTF-8 when the usual methods fail

Long story short, I'm trying to import this ESRI shapefile of Japan into CartoDB. (Sorry, no direct link: to download, click on the orange ファイルのダウンロード button, check 同意する to agree to the T&C, then ...
5
votes
3answers
14k views

Shapefile layer no longer editable (toggle edit option greyed out) in QGIS?

I am using QGIS 2.16 / Windows 10. I have a point shapefile which I have been using for a little while that has always been editable. Today I was editing the layer, saved my edits and left my ...
5
votes
3answers
255 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 ...
5
votes
1answer
1k views

Converting 12-hour time to 24-hour time using Field Calculator

Does anyone know how to convert string time formats in ArcMap v10.2 from 12-hour to 24-hour using a simple query in the Field Calculator? i.e. NO Python, NO editing in Excel, NO changing my Windows PC ...
4
votes
1answer
2k views

Select by attributes within the fiona Python module

Is it possible to select polygons from a shapefile based upon their attributes using the Fiona Python module? I can't seem to find anything in the docs, but it seems like a strange thing not to be ...
4
votes
5answers
5k views

Converting WKT to SHP?

I have a text file containing exactly this: POLYGON ((6.2973716 48.98613 1772.1, ... many other Long Lat Altitude values ... )) And only this. It seems to be just like a WKT geometry of a polygon. ...
4
votes
1answer
429 views

raster::rasterize set wrong values with enclosed polygons

Similarly to this post rasterize (R package raster) fail to rasterize island polygons? the rasterize function in the raster package is giving me problems with enclosed polygons. In my case, some ...
4
votes
2answers
8k 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 ...
4
votes
3answers
2k views

KML to Shapefile using GDAL (LIBKML) - MultiGeometry data not transforming

I am trying to convert a KML file to Shapefile using GDAL (ogr2ogr). Regular KML files convert fine but KML files containing MultiGeometry features (eg: Geometry containing both Point and Polygon) do ...
4
votes
2answers
2k views

How to delete empty fields from a Shapefile with QGIS or ogr2ogr?

I have a Shapefile with a lot of empty columns but many of them are empty. Using QGIS or ogr2ogr, how do I remove all attribute columns where everything is NULL?
3
votes
1answer
764 views

How to get lines and nodes around the confluence point in a network system (line shapefile)?

I got a network line shapefile and the figure below was part of it. I want to do task around confluence point, so I took photo around confluence point as figure below. I want to get line segments (...
3
votes
2answers
667 views

Extract PostGIS line features to GPX

I have a request to provide GPX files of certain trails (around 100) that are present in OpenStreetMap. Given a local PostGIS install with OSM data, I think the process would be something like: ...
3
votes
4answers
3k views

Converting Esri ASCII raster to Shapefile for CartoDB?

I have an ArcGIS grid ascii file (Ramankutty Cropland at 5 minute resolution) that begins as follows: ncols 4320 nrows 2160 xllcorner -180 yllcorner -90 cellsize 0....
3
votes
3answers
81 views

Formally testing whether building type tends to be close to another building type?

In arcGIS 10.1 (advanced licence), I have two polygon shapefiles, each representing two different types of building (let's call them A and B). Each type is actually used for two different purposes. ...
3
votes
1answer
1k views

Exporting Shapefile to SVG using Java & GeoTools?

I am currently working on how to read in ESRI shapefiles, parse/edit layers and then export out to SVG (Scalable Vector Graphic) file type. I have been using GeoTools primarily for reading/loading ...
2
votes
2answers
2k views

Unable to create shapefile using shapefile.py

I am trying to create shapefile from csv data using shapefile.py but i am constantly getting this error, Traceback (most recent call last): File "createShp_Davis.py", line 31, in <module> ...
2
votes
1answer
835 views

Modifying feature attributes of a shapefile in geotools

I have a shapefile with an attribute I want to compute programmatically in Java for each feature. I have found a lot of documentation on how to read and create shapefiles with geotools (http://docs....
2
votes
1answer
504 views

QGIS show gdal_polygonized file in EPSG:54004 instead of EPSG:3857

I am polygonizing a TIFF with the gdal_polygonize.py and the resulting Shape is shown in QGIS in the wrong projection - EPSG:54004 instead of EPSG:3857. I have a TIFF in EPSG:3857 and polygonize it ...
2
votes
3answers
6k views

Convert vector points to GPS waypoints and route

I have a shapefile with a series of points (around 300) using British National Grid. I need to put them on my Garmin Etrex 10 as waypoints. Can someone tell me how to convert this shapefile into ...
1
vote
1answer
73 views

New Geocoded Points Layer Misaligned With Polygon Layer

I learned on ArcGIS, and I'm familiarizing myself with the use of QGIS. So far I love it, but the process of re-projecting and transforming datums seems less intuitive than in Arc. I recently ...
1
vote
0answers
3k views

Seeking block (sub-district) level boundaries for India?

I'm looking for block (sub-district) level shapefiles for India. The GADM database only has files for the 2300 Tehsils, whereas I'm looking for the about 5500 Census blocks (sub-districts) for any ...
1
vote
1answer
786 views

Creating centreline for every polygon in submarine canyon database using ArcGIS for Desktop Basic?

I have the Basic license for ArcGIS and so I cannot use the collapse dual lines to centreline tool or the river bathymetry toolset by ESSA as they both need an advanced license. Any idea how I can ...
1
vote
1answer
847 views

MapServer (MS4W) test page from shapefile shows only blank white square?

I am trying to create a test page with mapserver and shapefile. At the moment I just want to get the map shown on my test page. I have gotten the EXTENT coordinates by opening shapefiles with QGIS - I ...
0
votes
1answer
291 views

Erase shapefile (polygon) area from GeoTIFF

I've been reading several posts to do so and one option would be to use gdalwarp -cutline, but I would need to keep what it is NOT inside the polygon area. GDAL or any command-line tool does that?
0
votes
3answers
4k views

How to convert *.shp files to *.gmt format type files?

I am new at using GMT (Generic Mapping Tools) and I am wondering if it can use a shapefile of a hydrographical network. Can I perhaps change my .shp to .gmt format and combine it with a GMT map? If ...
7
votes
1answer
2k views

Updating Lat/Longs and actual position of point shapefile using arcpy.UpdateCursor()?

I have a point shapefile with over 3000 points that are updated frequently, when they are updated they need to have their lat/longs changed which is entered into the attribute table. When the lat/...
6
votes
2answers
2k views

Uploading large shapefiles to ArcGIS Online?

I am trying to upload a large shapefile to ArcOnline, however I found out ArcGIS Online won't upload any shapefile that has more than 1000 features. My 30 shapefiles have over 1,000,000 features each....
6
votes
4answers
11k views

How to convert SHP to GPX or to JSON?

I would like to convert the tree inventory shape files of London (Canada) into a GPX file and if possible into a JSON file. You can download the archive from their Open Data website. It contains the ...
6
votes
2answers
3k views

Locating shapefile of European railways for goods transportion?

We are trying to make a project about European goods trade so we need railway data in shapefile format. More specifically, we are trying to find the potential of mine products being exported from ...
5
votes
2answers
3k views

Making shapefile Read-Only to ArcGIS for Desktop?

How do you make the shapefile a Read-only so the client can not make any edits using 10.2.2 ArcGIS. It is not within a geodatabase, just a stand alone shapefile. I am using Windows 8
5
votes
3answers
2k views

Producing singlepart featureclass with unique IDs for each spatially non-connected polygon?

What is the best method to convert a singlepart shapefile (i.e. one record that contains several non-connected polygons) into a mutlipart shapefile? For clarification the original question asked how ...
5
votes
2answers
605 views

Finding the boundary polygon from a set of gridded points (no hole)

Let us consider a set of a 2-D points (longitude, latitude) each of which is centre of square grid (intersect point of the diagonals of the square). I try to make you understand what I want to do in ...
5
votes
1answer
3k views

Buffer polygon inward by percentage of area [duplicate]

I would like to buffer a polygon inward by a percentage of its area, using the polygons below as an example. How could I shrink each polygon inward resulting in a 35% reduction of area? I am using ...
5
votes
3answers
8k views

Creating point to center of polyline?

I'm trying to create a points in the middle of polylines. The data is now in the form of shapefile. Is there an easy way to do this?
5
votes
2answers
1k 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 ...
4
votes
3answers
657 views

QGIS split vector layer gives me GPKG files but I need shp files

QGIS 3.6.0 I am new to QGIS software and not very technical on its deep workings. I am trying to split a .shp file using split vector layer. I need .shp file outputs but it auto creates .gpkg files. ...
4
votes
3answers
2k views

How to link data to a polygon ArcMap 10.3

I have a map with different polygons (118). Each of this polygons represent diferent vegetation types. For each of those polygons I have data of which species there is and how abundant they are (the ...
4
votes
2answers
626 views

How to delete duplicate features from shapefile/OSM XML using code/command line tools only? (NOT QGIS/ArcGis)

I have shapefile with lines, some of them are perfectly overlaps - duplicate, although each one have unique id etc. When I view the file in QGIS I see they overlap. When I convert the file with ...
4
votes
6answers
6k views

How do I make a SHP file from waypoints?

I have a Garmin etrex 20 and I want to convert my waypoints into a shapefile for QGIS. The waypoints need their name and background information with them in the shapefile.
4
votes
1answer
401 views

QGIS's “Points in Polygon” counts zero in every census tract

I am mapping the location of incidents of asthma using QGIS. I would like to count how many points are in census tracts to better understand the areas where asthma occurs most frequently. My map ...
4
votes
3answers
7k views

How can I work with very large shapefiles (~1 GB) in QGIS?

I'm performing some basic spatial analyses on a large database of traffic injuries in California between 2003 - 2011. Because the dataset is large (nearly 1 GB of points), I'd like to first cut it ...
4
votes
1answer
14k views

Creating shapefile from Excel file in QGIS?

I am using QGIS 2.6.1 and have worked in an Excel file database (which was actually converted from a Shapefile). I have managed to convert it as CSV file and load it into QGIS (displays data fine) but ...
4
votes
0answers
1k views

Batch Convert Folder of GPX to SHP in QGIS [duplicate]

I have a few GPX files (up to 35 Mb, with a few tracks each one) that I want to convert to SHP. QGis is faster and easiest, than ArcGIS to convert GPX tracks to SHP, but is there a way to batch ...
3
votes
2answers
955 views

Unwanted spaces being placed in shapefile text fields by ArcGIS Desktop?

I have a table with a row Page_Number_N some of the rows have values and others just have a space. For example record 4 is just a space. Field values are Strings. 1 2 3 5 When I start an edit ...
3
votes
1answer
3k views

Creating new shapefile after merge operation using unionSpatialPolygons

I only recently started playing with shapefiles and R packages for manipulating them. I am looking at creating a new shapefile based on merged polyons by following this example, however, I cannot seem ...
3
votes
1answer
4k views

merging 2 polygon adjacent to each other using R

I have several shp files which are the components (or tiles) of a map, I have joint all these tiles together to have a large shp file. Then I realized some of the polygon is now split into 2 halves, ...
3
votes
2answers
934 views

Writing shapefile with projection defined crashes fiona

I've just started trying to use Fiona to write out shapefiles. I found the example code below, which seems to work fine from shapely.geometry import mapping, Polygon import fiona # Here's an example ...
3
votes
1answer
2k views

Convert from shapefile to GPX with selected attributes

I have a points shapefile that originally came from a GPX file (imported using QGIS). The original GPX file contained waypoints only and has disappeared. The shapefile has many attributes, but only ...
2
votes
1answer
277 views

Points along one or more lines at a time, with rotation

I'm using ArcMap 10.3, and I have several lines, that I would like to add arrows along at a defined interval, with that lines rotation, so the arrows point correct way along the line. When I use the ...