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.

554 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

QGIS - How to add joined values table data to shapefile

For some reason I lost my previous question here but I proceeded a little bit after upgrading to the newer version of QGIS. My problem was combining spreadsheet .csv data to the .shp map layer, where ...
1
vote
0answers
37 views

GML file converted to ESRI shapefile with ogr2ogr missing spatial reference information

I am trying to convert Sentinel-2 cloud masks from GML format to ESRI shapefiles. I have managed to use ogr2ogr in a python script as described in the answer to Using ogr2ogr to convert GML to ...
1
vote
1answer
50 views

QGIS - exporting shapefile to convert to .JSON for use in PowerBI

I'm trying to export a shapefile I've been using in QGIS for use in PowerBI because PowerBI only supports .JSON extensions. So I've been converting them with mapshaper.org. This is my shapefile result ...
1
vote
0answers
100 views

Changing CRS of geometry in geopandas dataframe efficiently?

I have a shapefile which I am converting into a geopandas dataframe. The CRS of this shapefile is epsg:4326 and I want to convert this to epsg:3857. import geopandas as gp file_path = 'zip_poly.shp' ...
1
vote
0answers
16 views

Layering grid codes visually

Is it possible to order grid codes in a shapefile visually by building a query in ArcMap? For example in symbology I have grid codes 1, 2, 4, 5 in a shapefile and I want to make it so that when the ...
1
vote
0answers
23 views

Interpolating sea level data using ArcGIS Desktop?

I have monthly sea level data obtained from PSMSL in the form of excel sheet for the region Chennai. I want to interpolate the data in ArcGIS Desktop. The shapefile of the region has Polygons and I ...
1
vote
0answers
46 views

Synchronisation problems using QFieldSync

When resynchronizing data from QField GPKG project to QGis SHP project, using QFieldSync, attribute data are shifted to the right column. There is a lag, I have never seen something like that before. ...
1
vote
0answers
100 views

Optimizing polygon ordering

Does anyone know of any GIS tool that reorders polygons so that the path through all polygons is minimized, i.e. it solves the travelling salesman problem? Here's an example of just how poorly ...
1
vote
0answers
77 views

Shapefile not working in QGIS

I am a beginner with QGIS. I downloaded from different websites administrative levels for a country (0, 1, 2), full package: dbf, shp, shp.xlm, snb, shx, sbx, sbn, prj etc. However, QGIS is not ...
1
vote
0answers
44 views

Recovering shapefile with green question marks?

I have a shapefile with a green question mark in the ArcCatalog. The shp-extension in the shapefile has 0Kb size Is there any way to recover the corrupted file?
1
vote
0answers
269 views

Error in reproject vector file using GeoPandas

I have a vector file (in this case shp file) and I read it with GeoPandas (gpd). vector_folder = r'C:\poly' vector_file = 'poly.shp' df = gpd.read_file(os.path.join(vector_folder,vector_file)) df ...
1
vote
1answer
34 views

In QGIS, how can I use a delimited text layer to keep only those polygons and records of a shapefile which match a column in the delimited text layer?

What I want to do is trim the shapefile so that only those records and associated shapes that match the same values in a column in the delimited text layer (which in my case is a CSV) are kept in a ...
1
vote
1answer
59 views

Using Click locations to determine azimuth in QGIS 3

I am using QGIS 3 64bit. While adding points to a shapefile (layer), what expression captures the insertion point coordinates of a point feature to use as a start point for an azimuth determination ...
1
vote
0answers
45 views

Most of a shapefile is not exporting to ArcGIS Online or Google Maps

I am having an issue where the vast majority of the shapefile and point data is not exporting from ArcMap. Its just in one particular area where the polylines show, the rest do not show and this is ...
1
vote
0answers
113 views

Geofencing radius distribution/ratio across multiple geofences

I understand that this problem might be simple geometry, but Im using specific shapefiles for a geographical area and looking for a specific gis solution (hopefully code). Essentially Id like to find ...
1
vote
0answers
61 views

Large increase in .dbf file size after attribute table join

I have a polygon shapefile of about 12,000 features that I joined a CSV attribute table to using 'Join attributes by field value' in QGIS 3.2.1 The .dbf file size before the join = 5.6 MB The .dbf ...
1
vote
0answers
73 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
24 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 ...
1
vote
1answer
78 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 ...
1
vote
0answers
158 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 ...
1
vote
0answers
128 views

QGIS error while importing .shp file, missing geometry (gdal issue)

In Manjaro Linux (Antergos as well and so I suppose vanilla Arch), with QGIS 3.2 + gdal from official repository, and QGIS 3.4 + gdal-ecw from archgeotux repository, when I try to add a .shp the ...
1
vote
0answers
63 views

Solving invalid geometries

I have ASCII data from different parts of water bottoms. I would like to convert all the parts into shapefiles. But, when I use the polygonize raster to vector tool in QGIS I get invalid geometries. ...
1
vote
0answers
62 views

Summarising all the (NDVI) values pixelwise for a masked polygon

A .tif image has been created using the NDVI formula in QGIS. The resulting image shows a region, with varying grades of NDVI values over the image. A .shp file has then been created for an area of ...
1
vote
0answers
23 views

Calculating route length per grid cell using fishnet

I have a problem determining the length of the routes (boat) I've surveyed in order to calculate the survey effort. I added the GPS points of the boat and then used the points to line tool and added a ...
1
vote
0answers
48 views

How to deal with decimal separator when uploading geometries to MSSQL server using shape2sql.exe?

I'm using Shape2Sql.exe to upload .shp shapefile to MSSQL server 13.0.4502.0 on a Win10 64bit laptop. I've added Shape2Sql.exe.config <?xml version="1.0" encoding="utf-8"?> <configuration>...
1
vote
0answers
46 views

QGIS vectors and rasters

I have created a map with polygon shapefiles and am trying to import them onto an different raster but when I do they are larger than the raster image and are far away. What am I doing wrong? My ...
1
vote
0answers
150 views

QGIS “Sum Line Lengths” return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...
1
vote
0answers
61 views

Spatial join of building footprints with Shapely and Fiona

I would like to do a spatial merge of the address nodes of Baton Rouge into their surrounding building footprints. Every building (polygon) should get the properties of the address (point). Here is ...
1
vote
1answer
458 views

Geopandas not recognizing geometry type

I am trying to write a point in polygon spatial join to file by county. In my code I read in a geojson object of building polygons for a whole state, grab the centroid and split the centroid points by ...
1
vote
0answers
38 views

Conversion of Text layers to vector 'Line' Feature Class

Is there a way to convert Text or Labels to Vectors within Geomedia or utilize the Publish to KML and convert using Google Earth? I do not have Adobe Illustrator installed here to 'Create Outlines', ...
1
vote
1answer
268 views

Fill color in polygons using attribute variable in GMT (Generic Mapping Tool)

I want to FILL colors of the polygon (converted from .shp ESRI shapefile) based on an attribute (here OBJECTID, Area) from lookup color (.cpt), but I am getting colored outline of each polygon. I ...
1
vote
0answers
22 views

How to find USA Water Hardness shapefiles?

I want to find USA water hardness shapefiles. I have searched for it from here: https://www.epa.gov/waterdata/waters-geospatial-data-downloads but without success. Is there any good data source from ...
1
vote
1answer
36 views

QGIS Union erroneously creating gaps

I'm trying to do a union between two Polygon Shapefiles, but when I do Vector > Geoprocessing Tools > Union I have the odd issue where most of it works fine, but some areas are returned in the union ...
1
vote
0answers
78 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
0answers
82 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
0answers
68 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
1answer
159 views

Converting multiple geometry KML to Shapefile

I have a KML file with multiple geometry, points and polygons. I want to convert it to a point Shapefile and a polygon Shapefile. Using OSGeo4W Shell I tried this : ogr2ogr -where "OGR_GEOMETRY='...
1
vote
2answers
2k 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 ...
1
vote
0answers
62 views

Does anyone know why I'm getting a completely black geotiff as a result of this shapefile cut out of another geotiff in rasterio?

I am using rasterio to cut out the shape of a lake outlined in my shapefile from a geotiff. When using a shapefile of a singular lake with a geotiff, this works perfectly, but not when cutting out a ...
1
vote
0answers
110 views

Read shapefiles in Python and render on Google Maps?

Is possible to read shapefiles in Python and render them on Google Maps? After research I'm really confused. Should I convert shapefiles to KML?
1
vote
0answers
136 views

Unable to upload shapefile using geoserver REST API and php

I am not able to upload shapefile and create a store in Geoserver using its rest api and Php. below is my php code <?php // Open log file $logfh = fopen("GeoserverPHP.log", 'w') or die("can't ...
1
vote
0answers
205 views

Save layers and auto save: QGIS

When I save the shapefiles and the project the shapefiles do not save so I loose a lot of work every day. The problem starts when qgis starts to delay the save of the layers after long time in edit ...
1
vote
0answers
295 views

Is there any way to automatically update a shp layer in QGIS?

I work with a vectorial layer (shp) created from a a csv file which periodically changes its content. The issue I'm raising is the following: every time I perform changes in the CSV file, I have to ...
1
vote
0answers
56 views

Importing Shapefile into PostGIS and EPSG of created table is different from Shapefile?

I'm trying to import a Shapefile into PostGIS using the ogr2ogr, but it seems that the OGR is not automatically getting the EPSG from Shapefile. My Shapefile has EPSG 4618, but the table created by ...
1
vote
0answers
36 views

Result of intersect between two shapefile is empty

I'm trying to intersect one shapefile with an other one in QGIS. The problem is, whatever I do, the result is always empty, (the files I'm working on are not empty). I tried to change the scr, delete ...
1
vote
0answers
64 views

Make polygons the same spatial resolution as a GeoTIFF

I downloaded a GeoTIFF DEM from EarthExplorer and loaded it onto QGIS. This GeoTIFF is of the state of Florida. I have a shapefile (polygon) of the state and want to overlap it with the raster file so ...
1
vote
0answers
370 views

When draw line in QGIS 3, it is not attached to the shapefile layer, can't select or edit or make invisible

I am trying to draw a line in QGIS3. I create the appropriate Shapefile layer, click on the editing pencil, select add feature and draw the line. However the resulting line does not seem to be drawn ...
1
vote
0answers
625 views

Keep getting AttibuteError: 'NoneType' object has no attribute 'CreateLayer'

I want to create a shapefile. Here is my code: import ogr, sys, os import osgeo.osr as osr line=ogr.Geometry(ogr.wkbLineString) line.AddPoint(10,10) line.AddPoint(20,20) driver=ogr.GetDriverByName('...
1
vote
0answers
48 views

What is causing ogr2ogr to fail to merge shapefiles without a reprojection?

Update 23-04-2018 The main issue has been solved, I (incorrectly) assumed all the files would share the same crs. This isn't the case and zones UTM 13N to 16N are used. So with no target crs for ...
1
vote
1answer
247 views

Export spatial data from SQL Server to ESRI shapefile using OSGeo

i did a join between 2 tables departements2 which has all department with their id and geometry with BM_REGIONFR with id of department and region ( i have 5 region in each region many departement ) ...