Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
8 views

Reprojecting shapefile using DotSpatial gives unexpected lat/long coordinates?

I need to take an uploaded polygon shapefile and extract some information from it, including the lat/long positions of the centroids of the features. Using DotSpatial I attempt to Reproject the ...
0
votes
1answer
14 views

Import shapefile as table in MS SQL Server (QGIS 3)?

I have made a successful connection with MS SQL Server in QGIS 3. I can see all of the tables. I know with QGIS 2 and PostgreSQL you had to use DB Manager to import a shapefile as a table. Well, DB ...
0
votes
0answers
8 views

shp2pgsql creates 1 dimensional shapes

I use shp2pgsql to import an .shp ESRI shape file into PostgreSQL database. I use brew installed shp2pgsql. I used this command first: shp2pgsql -I -s 4326 /path/to/shape_file.shp public.os_gb | psql ...
-1
votes
0answers
25 views

Creating shapefile from coordinates? [on hold]

I'm creating a web page where person can click on map and create series of points, I want to know how can I take those co-ordinates and export them as a shapefile.
-1
votes
0answers
24 views

Where can I find London boundary's shapefile?

Does anyone know where I can get the shapefile of London, just London, without the wards/boroughs/LSOAs? I would just like the outline of London.
0
votes
0answers
19 views

Union polygons, retain attribute tables and write the polygon to a new .shp in R [on hold]

I have drawn shapefiles from bathymetry maps that contain depths within a contour interval (3-10m, 10-20m, 20-30m etc..) I am trying to take these shapefiles and union them into one shapefile and ...
1
vote
0answers
14 views

How to output file with all overlaps between two Shapefiles - Neighborhood/Zip Codes [on hold]

I have a pretty specific problem I would like help with. I have two shapefiles: neighborhoods from https://www.zillow.com/howto/api/neighborhood-boundaries.htm zip codes from the census bureau: ...
0
votes
1answer
19 views

How can I write a zipped shapefile with ogr2ogr and /vsizip/?

After reading a bit of GDAL Virtual File Systems docs, I am trying to write a zipped Shapefile using this gdal command involving the use of /vsizip/: ogr2ogr -f "ESRI Shapefile" /vsizip/test.zip\test....
0
votes
1answer
31 views

Drawing a marker on a shapefile with the given latitude and longitude?

I am using shapefiles to draw a custom map. They were created successfully with the help of ArcGIS Desktop. Now I need to draw a marker on shapefile based on an existing tuple of lat, lng. How can I ...
5
votes
2answers
384 views

How can a missing .shx file be created?

I am using ArcGIS to view one shape file. Only a select number of features are being displayed. The same number are showing in the attribute table even though the database file (.dbf) has a complete ...
0
votes
1answer
23 views

writeOGR error: length(dsn) == 1L is not TRUE

I'm running a for loop R that results in a shapefile being written with each iteration. The for loop runs successfully once, with a shapefile being written out, but then on the second iteration I get ...
2
votes
2answers
36 views

QGIS3 Shape Digitizing Circles is Drawing Improperly

I'm trying to draw a circle in QGIS 3 with the shape digitizing toolbar. I've tried several of the "add circle" options and they all look normal while drawing, but once I click to finish the shape it ...
0
votes
0answers
16 views

Importing shapefile into AutoCAD Map 3D

I would like to ask about the import of shapefiles where the objects are sorted on the basis of data. The problem here is that I want to sort the objects on the basis of two different data fields with ...
1
vote
1answer
42 views

QGIS time manager - shapefile in edit mode?

In QGIS 2.18, shapefiles are not editable when loaded in the timeManager. Is there a workaround? Or do you know if this is available in more recent version? The timestamps in the shapefile are set ...
0
votes
2answers
24 views

Multipatch to polygon/polyline conversion in ArcGIS Pro?

I have a file captured from Bentley software already converted to .shp format. I would like to have polygon or polyline to be able to simply edit it but I don't know how to convert Multipatch to ...
-1
votes
0answers
12 views

Seeking Quebec 1992 election ridings shapefile?

Does anyone know where I can get shapefiles for Quebec's electoral boundaries, in 1992? The following site only has data going back to 2012: https://www.electionsquebec.qc.ca/english/provincial/...
2
votes
1answer
47 views

Getting list of shapes on border of map using ArcMap

I have the following map of a state with its precincts inside of it: Is there any way that I can get a list of the precincts that are on the border of the state? I have been looking through the ...
1
vote
1answer
37 views

Snapping two line shapefiles according to attribute field value using ArcGIS Desktop?

I have a two line shapefiles (Trace.shp and Snap.shp). There is a GIS_ID field in both files. Now I want to snap "Snap.shp" to "Trace.shp" according to GIS_ID value. I have tried to use Snap tool for ...
-2
votes
0answers
17 views

When trying to export a corrected file error Unable to transform GNSS coordinates into the chosen coordinate system [closed]

1 input file(s) read. 413 position(s) read. A total of 18 feature(s) read or created. 18 point feature(s) read. Unable to transform GNSS coordinates into the chosen coordinate system.
0
votes
0answers
18 views

How to color-code a road by some attribute (roughness, surface material, pothole density) [closed]

I have a two stage application and would like some guidance. First, I want to create a shapefile of a "ribbon" that is color-coded by some attribute (such as roughness, surface material, pothole ...
0
votes
0answers
96 views

Seeking alternative shapefile import in Google Earth Engine code after Fusion Table Shutdown? [on hold]

An email from google says that Fusion Tables will be shutdown in December 2019. As a result this will impact several projects of mine in which I import fusion tables as feature collections which ...
0
votes
0answers
29 views

Edit geometries in python: which tool? [closed]

I was asked to create a python script to do a "simple" cut-copy-paste operation on shapefile geometries. I say simple because it takes 3 minutes to do it by manually editing features in Qgis. But it ...
1
vote
2answers
29 views

Selecting/tracing part of line feature using QGIS?

I have a shapefile which comprises a number of lines, each representing a bus route. I'm wanting to create a new bus route which is the same as an existing line to a certain point, but then branches ...
3
votes
1answer
48 views

Importing from CSV and changing projection using ArcPy?

I'm attempting to convert CSV files to a group of shapefiles, then re-project them to a different coordinate system. The first conversion works, but I'm having issues with the projection piece. ...
-3
votes
0answers
27 views

Converting/exporting more than 60k shapefiles to CSV files? [duplicate]

I am using QGIS. Is there any simple method to convert/export more than 60k shapefiles to CSV files?
0
votes
1answer
27 views

Google Earth Engine uploading table asset meets "invalid shapefile supporting file“

I am trying to upload a series of data coordinates to Google Earth Engine. First, I used ArcGIS and converted the Excel data to shapefile and I got eight files. However, when I am trying to upload ...
0
votes
1answer
41 views

Save/loading shapefiles with SF in R: no simple features geometry column present [closed]

I have this code: library('sf') #init data xes = c(-122.133533701866, -122.141590665524, -122.382782560179, -122.302227764504, -122.347524548303) yes = c(47.617342005802, 47.6102707417054, 47....
0
votes
1answer
22 views

batch merge error: Error in match.arg(method) : 'arg' must be of length 1

I am attempting to read in a series of polygon shapefiles from a directory and batch merge them into a single shapefile. They all have the exact same field names. I am using this code: all_data <-...
0
votes
0answers
19 views

Python - Merge shapefile polygons based on criteria

I have a shapefile with thousands of polygons and would like to merge (join) adjacent polygons based on a threshold between attributes. I need to use python because I'm not allowed to use ArcGIS. e.g....
0
votes
0answers
55 views

Failing to read shapefiles in folder using ArcPy?

I want to use create random point tool on list of shapefiles, but keep failing to list the shape files. My code stops at line (print fcList); and gives me "None" as output. Is it because of the ...
0
votes
1answer
24 views

Importing shapefile into Mapit

Unable to import an ESRI generated shapefile (just a simple polygon layer) into the Android app. MapIT does not recognize the file(s) in the upload screen, I can not select nor view it. I have ...
0
votes
1answer
19 views

Capturing data in clip from smaller extent

What I am trying to perform is a clip what captures the shoreline on a town in CT. I have the town boundary and I can use the buffer to extrude the polygon but I have wondering if there was an easier ...
1
vote
0answers
34 views

Exporting raster with map context using ArcPy?

I am a user of ArcGIS Pro. I am trying to convert a polygon shapefile into a raster dataset, then export a raster dataset to a PNG format via arcpy.RasterToOtherFormat_conversion. From .shp to .tif ...
2
votes
0answers
26 views

Create custom projection for Shapefile, given specific target coordinates [duplicate]

I have a somewhat odd situtaion. A client has provided me with a Shapefile that has no projection information, along with an image of the map that it corresponds to. I have run some coordinates ...
0
votes
1answer
20 views

Shapefiles - ability to toggle editing and filtering

I have a shapefile from a county HER which I have successfully loaded. I have catagorised the point so depending on type they show a different symbol. I can filter those points in order to show ...
0
votes
0answers
9 views

Changing a shapefile to aoi file in ERDAS, but somethign is weird about the shapefile

I am trying to change a shapefile to an aoi file in ERDAS imagine, however, the shapefile I have is not the same as the ones I have seen in tutorials on how to do this. The shapefiles in tutorials are ...
0
votes
1answer
48 views

Converting RTK Elevation Data to DEM?

I have a shapefile that contains elevation data. I want to eventually convert this to a slope layer. I'm assuming I have to convert to a raster, then a DEM, then slope. Is that correct? If so, ...
1
vote
1answer
34 views

Polygon geometry suddenly disappeared/deleted from shapefile in QGIS

I was editing a polygon shapefile in QGIS (3.0.1) today when suddenly 966 out of 5382 polygons disappeared from the map. I had been changing attribute information in the table, cutting polygons, etc ...
0
votes
1answer
24 views

Raster to shapefile results in polygons with no difference in values

I am trying to convert a 32bit floating point raster in tiff format to a vector .shp file in ArcMap. In particular, I have been attempting to convert my continuous data set found in the TIFF extension ...
0
votes
1answer
42 views

Existing C++ libraries that convert ESRI shapefile to DXF/DWG [closed]

Is there any C++ library that can convert ESRI Shapefile to DXF/DWG file? I seek a link/or sample on how this can be done with the said C++ library. I'm aware that one can do this with ArcGIS ...
0
votes
0answers
29 views

Shapefile conversion tool for WGS84 to TN state plane

I collect location points using a Magellan Mobile Mapper. A bit dated but that's what I got, in WGS 84 shapefile format. I typically import the shapefile into ArcMap and create soil survey maps. I ...
0
votes
0answers
22 views

Fishnet programmed in python does not display correctly in ArcMap but displayed correctly in QGIS

I programmed a fishnet in python to use as a reference map for georeferencing. I am facing the following issue: The fishnet is not displayed correctly in ArcMap 10.5.1. The fishnet has parameters lat-...
0
votes
2answers
35 views

Providing multiple shapefiles belonging together in single file with predefined symbology in ArcGIS Desktop?

There are multiple shapefiles which belong together and should be provided in a single file with predefined symbology (see figure). Is there an option to do so? Currently, the shapefiles are bundled ...
-1
votes
1answer
48 views

Shapefile DBF Editing in Stata for ArcMap?

I am trying to edit shapefile in ArcMap. How I can keep or clean some information from shapefile in ArcMap? In my shapefile, I have information about street type such as road, route, highway, ...
0
votes
0answers
23 views

OGR SetAttributeFilter does not let datasource to update

I am trying to update an attribute value for a certain feature in a shapefile. To filter out that feature, I use SetAttributeFilter. This returns the feature I want, and SetFeature also works as ...
0
votes
0answers
34 views

Clipping larger vector layer to smaller layer, QGIS 2.18.25?

I'm clipping two vector layers, and I want the clipped layer to have the attributes of the smaller layer/ smaller spatial area. So, when using the clipping tool, my input is the small shapefile (80 KB)...
2
votes
3answers
196 views

How to Identify Coordinate System (CRS) from projection file using Python

I am working on many shapefiles (their corresponding projection files are also presented). Every shapefile has a different Coordinate System, so it becomes difficult to plot these in a generic manner....
0
votes
0answers
21 views

Converting 100m Rasterdata to Shapefile using ArcGIS Desktop?

I've got 100m raster data in a database, looking like the example below. I want to convert it to a shapefile. When I usually import data, it have explicit X and Y coordinate columns. Is there any ...
2
votes
1answer
43 views

dbf to shp within BASH (ogr2ogr would be ideal)

I have a CSV with many points and attributes that I'm trying to convert into a shapefile but I'm having no luck. I have installed gdal-bin and can use my terminal environment to create a shapefile ...
-1
votes
0answers
30 views

Determine which shapefile polygon each observation of a separate dataframe is located in (R) [closed]

I am having trouble matching coordinate points in a data frame to the corresponding polygon zones in a shapefile. I have checked other threads of those with the same issue and still can't seem to find ...