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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

1
vote
3answers
54 views

Gaus Krueger shapefiles into Qgis

I'm trying to open a Gaus Krueger shapefile, which comes without any .prj files, in QGIS. These files are not really up to date but they're the only data i can get. So the first question is: Is it ...
0
votes
0answers
15 views

GDAL ogr2ogr OracleSpatial to Shape: Multipolygons with wholes/multiparts are missing

We're holding geodata in an Orcale database (11g) with spatial extension. I want to unload specific polygons and convert them into Shape for further local processing. The table where I'm unloading ...
1
vote
1answer
39 views

How to convert Raster image to Shapefile WITHOUT flipping it upside down

I am using QGIS v 3.2.1 to convert Raster image to Shapefile Unfortunately the resulting shapefile is upside down. How to keep resulting shapefile right side up Here is animated gif (link on GitHub)...
1
vote
1answer
21 views

How to remove part of a string value in the attribute table of a shapefile in PyQGIS

I have a number of shapefiles with a field in the attribute table containing many different string values similar to this one: 'Waypoints_17-JUL-18Timothy waypoints.shp Waypoints_17-JUL-18Timothy ...
0
votes
1answer
42 views

Convert high resolution digital PDFs into a shapefile?

I have to convert several of such formats into a shapefile. Is there any open-source software or quicker ways of doing this? One such file - http://ceodelhi.gov.in/ACMAP/5.pdf Another such file is ...
1
vote
1answer
93 views

Shapefile to GeoJSON with simple style

Does anyone know if there are any applications can support exporting Shapefile to GeoJSON and keeping the style?
1
vote
2answers
23 views

QGIS Shapefile - Units/Editing Shapefile

I have a Shapefile that has properties/parcels as polygons. I am looking to select by parcels that are bigger than a certain size in acres. The problem is that the Shapefile has the properties/parcel ...
0
votes
1answer
44 views

Merging Shapefile with Image in QGIS? [on hold]

QGIS version 3.2.1 Windows 10 Project File on GitHub Shape files on Github I am trying to create shapefile from coffee cup image. The actual coffee should be the shapefile. However I would like ...
0
votes
0answers
12 views

Give field a value in a Featureset Dotspatial

I am creating a shapefile using DotSpatial library in Microsoft Visual Studio and C# programming language. The shapefile consists of a Polygon layer. Each polygon in the layer needs to have a specific ...
0
votes
0answers
11 views

Change raster values in relation to values of another raster in Python

I used 'gdal_rasterize' to create two rasters from shapes (raster 1 and raster 2) os.system('gdal_rasterize -burn 1 -at -a_srs EPSG:4326 -ts 25000 25000 ' + r'C:\shape.shp' + r' C:\raster.tif') ...
1
vote
0answers
39 views

How to calculate sum of values in a point shapefile within a moving window

I have a point shapefile that has a 'rank' attribute with numbers between 0-100. I need to calculate the sum of this value for points within a 10km circular moving window anywhere within my area of ...
1
vote
2answers
48 views

1968 French Administrative Boundaries Shapefile

I am looking for the 1968 French departments administrative boundaries. I've scoured the Internet but have had no luck.
-2
votes
1answer
23 views

Creating Shapefile for WEAP? [closed]

I have to create a shapefile of a river for analyzing it in WEAP (Water Evaluation and Planning) for my engineering research. I have no knowledge about how a shapefile is created. Which software or ...
0
votes
1answer
35 views

Python: Open a (line) Shapefile and calculate distance to point given as a longitude-latitude tuple

I have a pandas dataframe in python with longitude and latitude values of certain locations (see sample below): Index Long Lat 0 -98.58 ...
2
votes
1answer
47 views

QGIS Clip doesn't work

I am using QGIS and I simple want to clip a shape with another shape but the result isn't right - the result is only that what you see in my screenshot. What can I do? Picture 1: Shape 1 Picture 2: ...
0
votes
0answers
38 views

Turning .mdb file into shapefile using QGIS?

I have been trying to work with an .mdb file for hours with no success. I'm working on a project in which a require a shapefile, the government gave me the info in an .mdb file. I had never worked ...
1
vote
1answer
38 views

Take pixel locations from rasterio raster and write out shapefile

I'm pulling a satellite image into python with rasterio, running some analysis to find a specific bounding box within that image, and then want to write those points out as a shapefile. I'm struggling ...
0
votes
0answers
29 views

Converting CSV file with multi polygons into lat/longitudinal pairs? [closed]

I have a CSV file of multi polygon shapefiles that I am trying to convert into a CSV file with only one latitude and longitude for each row in the data set. Does anyone know how I can achieve this ...
0
votes
1answer
22 views

writeOGR KML attributes blank [closed]

Using the below I output a KML file from a Large SpatialPolygonsDataFrame polygonWGS <- spTransform(Polygon, CRS("+proj=longlat +ellps=WGS84 +datum=WGS84")) writeOGR(polygonWGS, dsn="...
0
votes
0answers
31 views

Shapefile conversion to ascii grid

I'm working with shapfile files, but I need to convert to ascii grid, and I was trying to use QGIS, but the following error occurred: File "/usr/share/qgis/python/plugins/GdalTools/tools/dialogBase....
0
votes
0answers
11 views

Creating endpoint circular arc segment shapefile using ArcPy from given endpoints and radius? [closed]

What is equivalent of an endpoint arc segment in ArcPy? I see the example here: https://stackoverflow.com/questions/23436421/drawing-a-circular-arc-using-arcpy Instead of table input, how can I ...
0
votes
1answer
20 views

Dissolving polygons based on multiple attributes with Python (shapely and fiona)?

I would like to dissolve a polygon shapefile based on two different fields, using Python and open source libraries. I'm just able to dissolve the shapefile using one single field, with Gene's answer ...
-1
votes
0answers
9 views

Seeking administrative boundary map of nigeria as shapefile? [duplicate]

Does anyone know where I can download an administrative boundary map of Nigeria as a shapefile?
-1
votes
0answers
38 views

Getting land use data?

Where can I download land use data (e.g., a shapefile for commercial, residential, industrial, or mixed-use)? I know you can download land cover data here But that categorizes the land in different ...
2
votes
1answer
22 views

Transfer geometry from shapefile to related table?

We would like to contact our volunteers based on their geographic location. We settled on zip codes as a reasonable proxy for location, and now have a table with volunteer contact information and zip ...
2
votes
1answer
42 views

GeoPandas: AttributeError: 'DataFrame' object has no attribute 'to_file' even though I converted file into GeoDataframe instead of Dataframe

So I have turn some R scripts for data cleaning/standardization of shapefiles into python scripts. Here is the R code: x<-c(farm,field,"trialyield",2017) file<-paste(x, collapse="_") yield <...
0
votes
1answer
38 views

How to get parcel boundaries with tax roll, land use, and zoning info?

How do I get parcel boundary shapefiles with tax roll, land use and zoning info included? Is it possible to just create the parcel boundaries data from scratch, i.e. could I create parcel polygons in ...
0
votes
1answer
29 views

Rasterize shapefile to overlay on map uisng QGIS (or any other suggestion)

everyone! I'm quite new to QGIS. I'm developing an app to display map. The map data is from Bing Map servers. I want to overlay a shapefile on the map. I want the same visual display we see on QGIS. ...
0
votes
1answer
42 views

Strange behavior when writing coordinates to an ESRI shapefile

I am using python code straight out of the GDAL/OGR Cookbook to write lat/lon coordinates (stored in a numpy array of tuples) to an ESRI shapefile like this: #using almost entirely GDAL cookbook code ...
3
votes
2answers
67 views

TAB (MapInfo) Attribute Data not Imported to shapefile using QGIS?

I am trying to convert some TAB files into Shapefiles by using QGIS. After I import the TAB files, and make sure that these have the correct CRS, it is possible to observe that the spatial data can be ...
1
vote
0answers
17 views

Exporting shapefiles with symbology using ArcGIS Pro for use in ArcGIS Runtime

I have a set of shapefiles with elevation values in its attribute. In ArcGIS Pro, I have placed these shapefiles into a Scene as a 3D layer. Then I have added extrusion, and the shapefiles are ...
2
votes
0answers
25 views

Adding a new link to an existing road shapefile in QGIS

I have an existing road file of Auckland. I wish to add a new road to the existing shapefile so I can calculate a revised distance isochrone. However, when I add the new link, it is ignored by the ...
-2
votes
0answers
31 views

convert .csv to polygon in QGIS? [duplicate]

Would like a step-by-step on converting .csv to Polygon in GIS. I have converted .csv to points, but what about polygons? Please find image attached I could try hundreds of variables, but I thought ...
1
vote
0answers
12 views

ogr SetPrecision doesn't work

I'm creating a shapefile with a field type of real, but I want to lower the standard precision from 15 decimal places to 10, here is my code: dst_filename = "Polygonized.shp" drv = ogr....
1
vote
1answer
26 views

rasterio: ImportError: No module named tools.mask

I was trying to rasterize a geojson using rasterio mask function but there is an issue with importing the function ImportErrorTraceback (most recent call last) <ipython-input-1-37fb1af87d72> in ...
1
vote
2answers
42 views

How edit a table for get a new one in ArcGIS?

I have a shapefile and y want to transform the attribute table (image 1) in other table (image 2) but I only want to get some fields and values. From the atribute table I want to transform FID_malla ...
0
votes
0answers
22 views

Fixed Distance buffer to a shapefile with python [duplicate]

I have a shapefile which indicates the boundary of an area. I want to add 10m buffer with that area and save it as a new shapefile. Searched in internet but did not get any specific way to do that. Is ...
1
vote
0answers
59 views

Programmatically created and added vectorlayer can't be edited

I'm trying to create a vector-layer (point, shapefile) and open it in my project. It all works fine but once I try to edit that layer later it doesn't work. addFeatures gives me back false and when I ...
1
vote
0answers
27 views

Converting multiple geometry KML to SHP

I have a KML file with multiple geometry, points and polygons. I want to convert it to a point shp and a polygon shp. Using OSGeo4W Shell I tried this : ogr2ogr -where "OGR_GEOMETRY='Point'" -f "...
1
vote
0answers
24 views

Creating FeatureCollection from imported assets in Google Earth Engine? [closed]

I have imported several shapefiles as a Fusion Table in Google EE. My goal is to calculate the amount of forest loss (from Hansen et al) and the MODIS VCF (percentage tree cover) for each shapefile, ...
4
votes
1answer
43 views

Drawing border using R in shapefile based on dummy variable?

For an analysis in R I want to create a "new" border from a shapefile. The Shapefile comes with a dummy variable (zone_dummy) indicating the regions laying east and west from the border (see example ...
0
votes
1answer
44 views

Reprojecting coordinate system with Python and lat/lon is only slightly off

I am using Python to reproject a shapefile (called "SCL" in my project) into a new coordinate system that will allow me to plot it on the same map as another shapefile (called "PUMA" in my project). ...
0
votes
1answer
44 views

Assigning an OSM originated tag to a SHP file field in QGIS

I am using QGIS to do some basic data processing. I have a SHP file (originated from OSM data) that has a number of fields. One of those fields (tags) contains a bunch of tag data. Example of a "...
0
votes
2answers
50 views

Remove all polygons except the main one from GeoJSON / Shapefile

I've got the coastline of Canada from OSM. For my work I only need the main landmass without any islands. Despite I was able to manually delete all the islands in JOSM / QGIS I need an automatic ...
0
votes
1answer
28 views

Problem reading shapefile with Python ogr-module

Trying to read naturalearthdatas shapefile vers. 4 "ne_110m_admin_0_countries.shp" with the python-ogr.modul I encounter a problem. inspecting the file with the following code-snippet: counter = 0 ...
-1
votes
0answers
40 views

How to change shapefile datatypes in R [closed]

I have a shapefile I'm working on with about 200+ columns. The dataset has the regular object ID, length, but also a unique identifier for each row. The columns I am working on are for different ...
0
votes
0answers
21 views

Shapefile with data into Unity?

So far I have imported my GeoTIFF as a height map (raw) into unity. The simplest solution to getting the road map shapefile on was to set it up as a PNG texture and layer it on. This worked well, BUT ...
2
votes
0answers
33 views

Add layer info to points, keeps failing in QGIS

Within QGIS, I am looking to get an extra column in the points file, describing in which layer the point lies. All points are within 1 layer: Layer source >SHP file from shapefile.zip. Validate layer ...
1
vote
1answer
23 views

What coordinate system/projection are these Fresno, CA data points? [duplicate]

I have some shapefiles which include various points and a corresponding street address, whose lat/lon I've manually found in Google Maps. There is no .prj file. Google Maps Lat,Lon, unknown ...
0
votes
1answer
52 views

Export shapefiles in QGIS to import to ArcMap

I have one question regarding export shapefiles from QGIS to import after to ArcMap 10.6. I export the shapefiles as Save data/ESRI shapefile. After when I try to upload in ArcMap this shapefile, I ...