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.

3
votes
1answer
19 views

GeoServer - WMS across the date line

I'm using GeoServer to serve a WMS version of the Natural Earth 1:10m Country shapefile. I have everything working pretty well except that when it wraps around the dateline, there's an extra ...
0
votes
0answers
20 views

Coding of data font non editable in shapefile in QGIS

What is the reason for a shape layer to have the field "Codificación de la fuente de datos" (coding of data font) selectable or not? In the following image the red arrow shows the dropdown list in ...
2
votes
0answers
40 views

How to speed up 'intersection' tool for big amount of data?

I can't figure out how to work with a large dataset. The problem is: I want to know how many points (over 700 000 adresses) are within a polygon layer (it's made out of 5 layers, train noise)(they are ...
2
votes
0answers
17 views

Selecting weights while transferring from shapefile to network

I have a shapefile representing roads (LineStrings) and I need to transfer it to a networkx type (with the lengths as weights) so I can do some network analysis. I have used the s2g library to do so ...
0
votes
0answers
22 views

Seeking shapefile from Brazilian presidential election?

Is there some way to get a shapefile from Brazilian presidential election, like in this link: (per city) http://especiais.g1.globo.com/politica/eleicoes/2018/mapa-da-apuracao-no-brasil-presidente/1-...
2
votes
1answer
60 views

Converting large GeoJSON to shapefile?

I have recently downloaded a building footprint GeoJSON file from Microsoft Bing Maps. The file I downloaded was for the entirety of Texas, and is of approximately 2.2 GB file size. They do not ...
0
votes
2answers
78 views

Calculating polygon area within polygons in QGIS?

I am new to QGIS - I want to estimate the area of the reef under a polygon grid. My shapefiles are already in meters, however I am having a hard time calculating the area under the grid layer. ...
1
vote
0answers
23 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 ...
0
votes
1answer
30 views

Draw a mask on a TIFF file

I have a raster (TIFF file) and I would like to draw a mask on it. So, I basically create a shapefile and draw polygons on the area I wanted to mask. Then, I would like to rasterize this shapefile by ...
0
votes
0answers
8 views

Seeking Hazard Maps that are not in NAMRIA, Project NOAH, LiPAD, and other reliable sources?

Where should I find those updated shape files necessary in creating Hazard Maps? I'm about to create Hazard Maps for San Pascual, Batangas Philippines but I am having a hard time looking for resources....
1
vote
1answer
26 views

Shaping map inside QGIS layout?

I'm composing a print layout with a map on QGIS, and I'm trying to shape the map based on a layer. I have a layer that sets the limit of the study area, and I need to put on the layout only the ...
0
votes
0answers
16 views

MultiLineString with elevation data exports 2D shapefile in QGIS?

I imported lyr data to QGIS. I see the countours nicely. The attribute table shows elevation data. When I save the layer to a shapefile, geometry type in linestring, and open it in a shapefile viewer,...
0
votes
1answer
27 views

How can I turn editable a shapefile that has been previously saved filtered?

After describing this issue in Qgis: Shape layer turns non-editable if saved filtered (where the answer basically was "if you filter, don't edit"), it has happened again (filtering and editing ...
0
votes
0answers
17 views

Converting Legacy Dataset With Self-Defined Grid to UTM

I'm striking out in converting a legacy dataset to a UTM reference. The only information in the paper regarding the grid is that it defines the "project grid" relative to a UTM grid (UTM 5N; NAD27): ...
1
vote
0answers
20 views

Joining CSV file to Shp file using ogr2ogr and python

I am having problems with the code below i.e. parsing the SQL string in python. I keep getting an error. I am joining a CSV file called lookup_scales.csv to a shp file called RC_CATALOGUE_GRANTED. I ...
2
votes
2answers
168 views

Make polygon circular in QGIS

I have drawn a polygon in a shape-layer, but it's not perfectly circular. Is there a way to either Draw a circular polygon with a given radius (in a shape-layer) Make a polygon into a circle I have ...
1
vote
1answer
20 views

Geoprocessing web service not writing out all files for .shp

I created a Python script, run by a toolbox. I am using Python shapefile to generate a point shapefile. If I run the tool locally (i.e. on the desktop) it works great. Shp, shx and dbf all writen out ...
0
votes
2answers
52 views

Atlas map generation in QGIS using point layer only

I am trying to automate generating maps with Atlas using points only. As the snapshot shows the data points for each village is shown by a color. Every four villages fall under one health area. There ...
1
vote
1answer
38 views

QGIS save shapefile - problems with attribute table

I added point coordinates of a delimited text file layer with an attribute table containing about 1000 columns. As soon as I want to save this created layer as a shapefile I get an error that some ...
1
vote
1answer
49 views

Clipping shapefile with Python?

My problem is the following, I cannot find a reasonable method to clip 2 vector based shapefiles using python (without ArcPy or QGIS API). I tried using the geometry.intersections method, but that ...
0
votes
1answer
39 views

OGR multipolygon with holes model

I'm trying to unpack shapefiles in C# using GDAL-OGR library, but I'm confused about the structure of multipolygon with holes in OGR. As far as I know, the models of shapefiles and OGR geometry (the ...
1
vote
1answer
63 views

Seeking shapefile for crosswalks in city?

I saw an article in one of ESRI's publications (not sure which one) about how an app was created to help parents and children find the safest route to walk to and from school. I would like to recreate ...
1
vote
1answer
116 views

Automating conversion from .SHP to .GPX for thousands of shapefiles?

I am looking for a way to automate conversion from .Shp to .Gpx. I know how to save a shapefile into gpx in a layer, but it would take too much time to do 1 by 1 as we might receive thousands of ...
1
vote
1answer
61 views

How to calculate mean value of a raster for each polygon in a shapefile

I wrote a Python script who calculate, for rasters, mean value for each polygon of a shapefile. But I think that it's a "war machine" (it takes many treatment time) and I would like to simplify it. ...
0
votes
0answers
22 views

gdal.Warp error when using python to crop a raster

I am using python and calling gdal to run some raster commands, I previously used gdal.Warp to reproject a raster layer which worked fine, I am now using gdal.Warp to crop this result using the ...
4
votes
2answers
181 views

Can not open shapefiles from QGIS 2.18 in MapInfo 16.0, projection was missing

I am working with QGIS 2.18 where I do have several shapefiles in EPSG 4326 and encoded in ISO 8859-1, see image below. I can check their geometry state for instance with Geometry Validator or Check ...
0
votes
0answers
32 views

Is there a quick way to decode a batch of census block group numbers to create a geopoint?

I have a CSV file containing a list of census block group data numbers. Is there a way to process them quickly to create geopoints to map? The first w_geocode and the second h_geocode column is what ...
0
votes
0answers
22 views

Move vertex of shapefile together [duplicate]

I have a simple vector file of land use. In QGIS, I would like to change the shape of some features without having to re-edit them. In practice, is there a way to move together the coincident vertices ...
4
votes
1answer
142 views

Fitting known size polygons into irregular polygons using ArcGIS Desktop?

I have a task that sounds simple, but I just can't get through the last step. I need to find suitable areas where wind farms that have a size of 500x150 meters, could be placed. The restrictions are ...
0
votes
1answer
37 views

Using field created in ModelBuilder in same model?

I have created a model in ArcGIS ModelBuilder and in a point of the process I insert a python tool (New Field) to create new field in a shapefile. After that I want to use this new field in other ...
2
votes
2answers
60 views

R shapefile transform longitude latitude coordinates

I want to find out the coordinates (latitude and longitude) of Texas precincts. I download the shapefile from here. I am using R to read the file and extract the coordinates: dsn.tx <- "~/.../...
2
votes
0answers
41 views

Dragging one shapefile into QGIS creates three layers?

I am using QGIS 3.0.1. Everytime I drag in a shapefile (actually, *.shp, .shx and .dbf) I get three layers, that seem to differ just in symbology color. This happens with both shapefiles I get from ...
1
vote
1answer
26 views

Deleting empty Geometry in shapefile using GDAL command-line GDAL utilities?

How empty geometries be deleted from shapefile using the command-line GDAL utilities?
0
votes
0answers
40 views

Using GDAL to clip data from Oracle Spatial to SHP has unwanted attribute data

I am using GDAL Library ogr2ogr to export data from Oracle Spatial to ShapeFile and also clipping it as per Bounding Box extents. The geometric clipping is working fine, but the output dbf file ...
0
votes
1answer
23 views

Splitting a Shapefile based off coordinates in Python using osgeo (ogr) or pyshp

I'm having trouble with splitting a shapefile of all the regions in Mongolia into a smaller shapefile based off some input coordinates. The big shapefile I'm trying to split can be found here: https:/...
0
votes
1answer
67 views

Progmatically remove unwanted fields from shapefiles without using disk

I want to remove specific fields that I don't need from multiple shapefiles stored directly in memory (the raw file data stored in a variable). Unfortunately I haven't found any way to do this ...
0
votes
0answers
27 views

numpy array coordinates to polyline in shapefile Python

I am calculating the shortest path in a numpy array which was converted from a raster (.tif). I have a list representing a path like [(1,3),(2,3)(3,3)]. How can I transform this into a polyline in ...
0
votes
1answer
23 views

What is the SQL in pgAdmin for PostgGIS Shapefile loader GUI Import and Export

I have been using PostGIS Shapefile loader to import and export shapefile, but now I want to ask is there any SQL alternative to this GUI import and export.
4
votes
0answers
35 views

The longest straight line (L) within a polygon and the longest perpendicular line (T) to L

I'm mapping elongated glaciological features within QGIS 2.18.22 and I need to measure the longest straight line (L) and the longest perpendicular line (T) to L (as illustrated in the picture) within ...
0
votes
1answer
29 views

Identify EPSG in SQL Server

I have been trying to load a shapefile available at https://www.elections.on.ca/en/voting-in-ontario/electoral-district-shapefiles/open-use-data-product-licence-agreement/download-shapefiles.html to ...
4
votes
1answer
169 views

Turning vector grid into individual shapefiles using QGIS?

I am using QGIS and I created a vector grid on a crop field in order to cut it into plots. I want to save each grid cell into individual polygon shapefiles automatically. Here is an example of a ...
0
votes
2answers
32 views

How to export a feature collection of feature collections in Google Earth Engine?

I have extracted NDVI values from Landsat 8 images to a shapefile of points 90 meters apart. I am trying to get these point files back into ArcGIS and R, but they are too big to print to the console. ...
2
votes
1answer
61 views

Convert Shapefile from EPSG:5320 to 4326

I am trying to need Electoral District boundary data available at the below-mentioned link to SQL Server. https://www.elections.on.ca/en/voting-in-ontario/electoral-district-shapefiles/open-use-data-...
0
votes
2answers
77 views

Edit a shapefile

I am in the ag field and no time or resources for learning or buying GIS to solve one problem. I have a shapefile that came off a Raven monitor in a tractor that was used to plant a crop. I use ...
0
votes
1answer
43 views

Where can I find correct shapefile for Montenegro municipalities?

I downloaded a shapefile for Montenegro from https://gadm.org/download_country_v3.html and created a table in PostGIS using shp2pgsql. The table has column geom of type geometry which is a ...
0
votes
0answers
25 views

How can I create a new, linear object with single-unit increment properties in ArcGIS?

I'd like to create an object representation in ArcGIS that would ultimately allow a type of spatial analysis, for a somewhat unconventional application. Human chromosomes are physical entities that ...
1
vote
0answers
41 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 ...
2
votes
1answer
110 views

QGIS 3 labelling issue

I have added labels showing the District names of Lesotho, but the highlighted feature is not showing a label until I zoom in or out. Zoom to country extent and label is missing: The label shows ...
0
votes
0answers
31 views

Converting from ESRI Shapefile to Aircom Asset data format

I've shapefile contains vector layer of 3D buildings with their Z values. I'm looking for help to convert this file to AIRCOM International’s ENTERPRISE format. The aim is to use converted vector ...
0
votes
0answers
39 views

QGIS raster data to shapefile data as decimal number

in QGIS I have a problem with converting raster data to shapefile data. My data from the raster (values such as 0.13, 0.65, 0.67 etc) converts into a rounded value in the shapefile. At first, I tried ...