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
1answer
46 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
11 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
31 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
18 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
31 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
22 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): ...
2
votes
1answer
34 views

Whitebox Tools ClipLidarToPolygon writes no points to output file?

Running Whitebox Tools (v 0.11) on Windows from the official binary. The ClipLidarToPolygon tool creates an output LAS file with no points and the message There are fewer than two points in the LAS ...
2
votes
1answer
52 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
259 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
23 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
74 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
43 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
2answers
256 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
65 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
73 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 ...
2
votes
1answer
125 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 ...
2
votes
3answers
283 views

Clipping GeoTIFF with shapefile?

I have a GeoTIFF file and a shapefile. I want to clip the GeoTIFF file using the polygons defined in the shapefile in such a way that it produces a separate output for each polygon (which is different ...
1
vote
1answer
136 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. ...
4
votes
2answers
225 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
34 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
24 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
211 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
39 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
259 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
42 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
39 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
54 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
34 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
69 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
66 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
45 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.
6
votes
1answer
88 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
54 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
214 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
104 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
66 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
91 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
66 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
26 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
1answer
154 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
124 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
39 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
1answer
79 views

How realistic is it to be able to build a dynamic map with ~50k points that change colour depending on supplied data? [closed]

I'm a programmer, but I'm new to GIS. I want to build a map that displays the status of some IoT devices I work with. My ideal vision is a world map, which would fill the screen, but for now, ...
1
vote
1answer
81 views

Assigning an ID to each pixel which overlaps with polygon shapefile (Python)

I calculated NDVI values for the last 24 years and created Pandas Dataframe which every cell includes columns with XY coordinates and 24 NDVI values. I have several polygon shapefiles which overlap ...
2
votes
2answers
80 views

QGIS attribute editing doesn't allow values greater than or equal to 10

I'm trying to modify an attribute field in a shapefile, type double/real by hand. The existing number, for example, is 100.01 or 123.45, etc. QGIS will not let me type in a number with more than one ...
1
vote
1answer
80 views

PostGIS Shapefile Loader Tool / export manager

I am trying to upload a shapefile to PostGIS using the PostGIS Shapefile Loader Tool/export manager and I receive this error? Connection to the PostQL seems successful... though. Any idea? ...
0
votes
2answers
116 views

Convert shapefile into lat long points and export it as CSV in R?

I have a shapefile that I extracted form a compilation of species distributions taken from IUCN. > foo Simple feature collection with 1 feature and 27 fields geometry type: MULTIPOLYGON dimension:...
1
vote
2answers
54 views

Copy a .prj-file from another shapefile to a new one when the projection is known?

I have a bunch of shapefiles of which I know the projection (EPSG:28992). However, they did not come with a prj-file (.prj). Rather than defining the projection and re-saving the files, I wonder ...
7
votes
3answers
2k views

Explaining difference between shx and shp files of shapefile?

I am searching for a more in depth explanation of the differences in shp and shx files to little avail. I mean beyond the 'shp contain geometry - shx contains an index of the geometry'. The reason I ...
0
votes
0answers
97 views

Converting shapefile data to .osm using ogr2osm

I've used ogr2osm command line tool to convert shapefile to .osm file while doing some editings in QGIS. The problem is after this convert, the updated OSM includes no feature and the attribute table ...