Stack Exchange Network

Stack Exchange network consists of 175 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
48 views

Matching streets in two line datasets with PostGIS or QGIS?

Explanation: I have 2 tables on PostgreSQL, one table named 'city' that have linestrings wich represents streets from a city (using QGIS I downloaded OpenStreetMaps data and imported to PostgreSQL ...
0
votes
4answers
104 views

Problem editing, clipping, and saving large shapefile QGIS 3.4

I'm working with a very large shapefile in QGIS 3.4. I only need one section of the layer (near the main city, not the areas outside it) and I'm trying to delete the large sections which I don't need. ...
1
vote
2answers
93 views

Reproject all shapefiles in same folder in same projection with raster?

I have 4 shapefiles in the same folder names like that (1996.shp, 2000.shp, 2006.shp, 2014.shp) and one raster. I need to reproject all shapfiles in the same projection (4326) of raster, but I do it ...
0
votes
0answers
26 views

full python 3 script to load shp file inpo Postgis file

I am using Python 3 libraries to programmatically push a shapefile into a remote POSTGIS data base. I retrived the code googling aroung and slighty modifing it. Here the script: import pandas as pd ...
0
votes
1answer
111 views

Extract longitude and latitude from object in shapefile

I'm new to GIS and (ESRI) shapefile. I would like to extract GPS-Coordinates or longitude and latitude from every object in a shapefile, mainly from polygons. Here is a picture with one of these ...
0
votes
0answers
51 views

Create a valid shapefile with phpmyadmin/Shapefile lib

I'm trying to create a shapefile with the PhpMyAdmin\ShapeFile library. I followed the example in the Github project repository, but I would like to create a shapefile within polygon elements, not ...
1
vote
1answer
100 views

Determine on which side of a line points are located

I have a point shapefile (point.shp) and a line shapefile (line.shp). I want to determine on which side of the line each point is located. The best would be to use a pyqgis command to add a field to ...
0
votes
0answers
32 views

Get a column from database and populate the shapefile attributes?

I would like to know how to get copy a specific columns from the database and add that column in a shapefile attribute table? I am open to other better ideas.
0
votes
0answers
34 views

How to parse a shapefile with Esri JavaScript API and/or ArcGIS Server?

I'm developing a webapp that uses the Esri JavaScript API 3.xx (Dojo 1.x) together with an ArcGIS Server 10.6.xx. Until now I was parsing shapefiles in my Java backend that makes use of an offical ...
1
vote
0answers
12 views

Is there a way to convert an RDL filetype to a SHP filetype

I Have an open records file from a county that provided an RDL file extension which we can view in MS 8 Viewer but is there any way of getting that into SHP format so we can normalize the data fields ...
0
votes
1answer
42 views

QGIS: Clip a shapefile based on values in a raster

I would like to clip a shapefile based on the values of a raster file beneath it, using QGIS. The specific context is a shapefile of Local Government Areas overlaid onto a population density raster. ...
1
vote
1answer
60 views

Creating a “catchment area” geometry from place points in QGIS

I have data from Geonames.org on the location of population centres, provided in the format of Center Name, Latitude and Longitude. Only one latitude and longitude point is provided for each ...
2
votes
1answer
33 views

.CSVT File no longer converting string variable to float value

I was testing joining a dataset to shapefiles in Qgis. The text file that I used in my earlier testing as my csvt file worked perfectly and I was able to create gradient maps using my joined dataset. ...
0
votes
0answers
27 views

Comparing Multiple Shapefiles

I have 4 shapefiles that I need to compare spatially, to highlight inconsistencies between them in ArcGIS. I have used the Feature Compare tool so far, but I'm looking for a faster way to compare the ...
0
votes
0answers
63 views

Convert classified point matrix to shapefile

I've use R to generate a matrix of points tagged to separate categories. Each point has a lat, long. and category. When I plot them in QGIS (using colored points of the appropriate size) it looks like ...
4
votes
2answers
110 views

Clustering 30m pixels into 120m pixels, fishnet using QGIS?

I have a raster file representing tree cover loss made of 30m*30m pixels taking the value 0 or 1. 0 means no loss and 1 means tree cover loss. I want to cluster these pixels into bigger pixels of the ...
2
votes
1answer
57 views

Joining 2 layers by location doesn't join desired fields from attributes tables

I have 2 layers that I'm trying to join by location: 1 is a point layer (CRS 4326) and the other is a shapefile layer (CRS 4326). The shapefile layer has a field in the attribute table whose values I ...
5
votes
2answers
86 views

Measuring average, min and max of vertex height of linear shape using QGIS?

I have a linear shape, all of the vertexes of each segment has a z-value, stored in the geometry. I need for every record, segment the average, min and max height value aggregated from their vertex ...
0
votes
0answers
44 views

Rasterise shapefile as 1 band (grayscale)

My code converts shapefiles to rasters. I had first done this in colour, but now I need greyscale (1 band). The code seems to create this for the first raster file, but the other raster files seem ...
-3
votes
2answers
31 views

Get stats from a shape inside another shape

I have a big shapefile with many features. Then I have a another shape of less size, wich is in the same space that the first shape. I need to get stats (area, %) from the first shape that only match ...
0
votes
0answers
51 views

Merge two shapefiles into one new shapefile with OGR/GDAL library in C#?

I am currently coding a C#/WPF application that lets you choose two shapefiles and create a new merged one, with the content of both shapefiles. My problem is that I am quite new (1 month with gis) ...
0
votes
1answer
43 views

Converting bulky shapefiles (54 MB) to GeoJSON

I am trying to convert my shapefile to GeoJSON using the below code snippet: StringWriter writer = new StringWriter(); String geoJson = null; FeatureJSON fjson = new FeatureJSON(); fjson....
3
votes
1answer
122 views

Coordinates offset when using Mapshaper to convert shapefile to GeoJSON

I'm a newbie to the GIS world and I'm trying to convert a shapefile to GeoJSON for use in Mapbox. When I view the resulting layer in Mapbox, most of the features appear southeast by 20-30 feet of ...
0
votes
0answers
63 views

Finding out which U.S. state a tweet was generated in

I have a database of records with latitude and longitude information (imagine this is a CSV file containing tweets and their geo-coordinates). I also have shapefiles of U.S. states. I want to add ...
3
votes
1answer
41 views

How to export a unique ID field of a geopackage

When I am converting my geopackage file in shapefile, the unique ID field is not exported. I could duplicate it before exportation, but I wanted to know if it could be done in one step, in order not ...
2
votes
2answers
131 views

Cannot select polygon from shapefile in QGIS?

I am working currently on a small-scale map using among other sources Natural Earth shapefiles (NE). For an unknown reason, one of the polygons created by me on the basis of the fragments of NE ...
0
votes
0answers
42 views

Matching the attribute table name to the file name in QGIS

I have been using v.rast.stats to generate shapefiles and basic statistics from raster files. Once the shapefiles are generated, the name field in the attribute table has a generic name, which is the ...
0
votes
0answers
26 views

Multi-polygon shapefile geometry incorrect when imported as FC in gdb

I am attempting to import a multi-polygon shapefile (the shapefile was generated from a postgis table, I did not generate this file) into a file geodatabase manually (right click, select import, run ...
0
votes
0answers
36 views

How to write multiple polygon Lat Lon info into a shapefile?

I have the Lat Lon information of the boundaries of 43 shapefiles. Now I want to combine all these 43 polygons into a single shapefile. How can I do that? What I did is I converted every polygon to a ...
0
votes
1answer
65 views

Single Side Buffer pyQGIS

I am trying to create a single side distance buffer around a line on QGIS. Here is the code I am writing but I don't get the expected result: processing.runalg("qgis:fixeddistancebuffer","input.shp"...
1
vote
1answer
58 views

Restoring a shapefile on ArcMap

I just edited a shapefile in ArcMap and I was unaware that this would edit the shapefile in ALL ArcMap documents in which I had used it. I want to restore this shapefile but cannot figure out how. ...
0
votes
1answer
70 views

Field Value shapefile - Add values

I have a shapefile that contains three lines. I want to add a specific numeric id to the field "line_id" and a string id to the field "border_id". Basically, for the first line, I want to add the ...
0
votes
1answer
36 views

Two parallel lines (vectors), only one feature (ID) [closed]

I have one shapefile that contains two parallel lines in yellow in the picture. Both lines have the same feature (these lines were originally both sides of a fixed distance buffer around a line). I ...
0
votes
0answers
24 views

Has QGis 3.4 some limitation for filenumber to load shp files? [duplicate]

I want to load over 600 shp files at once in qgis 3.4. Is there a limitation on the number of shapefiles that can be added?
0
votes
0answers
47 views

How to import a data with unknown coordinate system to a data with known coordinate system

I have recieved a Group of shape files with unknown coordinate System. The coordinates are like: 536605 , 5658923 and I can not find the corresponding projection/coordinate System. It looks like that ...
0
votes
0answers
78 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
2answers
63 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
1answer
31 views

shp2pgsql creates one dimensional shapes

I use shp2pgsql to import an .shp ESRI shapefile 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
vote
0answers
24 views

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

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
55 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
35 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
518 views

How can a missing .shx file be created?

I am using ArcGIS to view one shapefile. 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
60 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 ...
4
votes
4answers
188 views

Generate Start and End Points in QGIS for LineStrings

I wanted to create start and endpoints in QGIS for a Linestring shapefile. I tried using the QChainage plugin but was not useful. Can someone suggest a tool?
2
votes
2answers
64 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 ...
1
vote
1answer
49 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
78 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 ...
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
45 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 ...
1
vote
2answers
124 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 ...