All Questions
890 questions
1
vote
1
answer
380
views
Polygons not appearing when creating shapefile based on criteria using GDAL and Python (area calculated properly)
I am looping over the features of a shapefile containing multiple polygons. If certain criteria are met, I want to save the current feature in a new shapefile.
I am doing this using GDAL 1.10.0 with ...
1
vote
1
answer
3k
views
How to extract geo data out of a polygon shapefile into CSV KWT [duplicate]
I have a polygon shapefile
that contains all the neighbourhoods in the Netherlands.
My aim is to export the neighbourhoods and coordinates to CSV file (KWT).
Without success I tried (with QGIS) ...
1
vote
0
answers
468
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
1
answer
1k
views
Extracting RGB values from symbology of .lyr or polygon file using ArcGIS Desktop?
I have a polygon shapefile of geological units. Someone has already created a symbology and assigned standard colours to the units, available as a .lyr file.
What I need to do is create a list of the ...
1
vote
2
answers
2k
views
Making a rectangular vector shapefile that is a perfect square in QGIS
I'm having trouble making a square vector shapefile, using "Make Rectangle from Extent" (or anything really).
I've googled for hours, regrettably the older plugins aren't compatible and of ...
1
vote
1
answer
5k
views
FME Workbench: Merging Multiple Shapefiles into One Database Table
I'm new to FME Workbench, but have used Quick Translator for a while. What I have is a directory: C:\Mexico\Maps\Rural where I’ve extracted the Shapefiles for multiple states. Nothing else is in that ...
1
vote
1
answer
1k
views
Bulk SHP/KML Processing Tools [closed]
I need to accomplish two things in bulk:
Convert SHP to KML
Modify the fill and outline color and opacity either of SHP or KML files
What tools can you recommend for these two tasks?
I've tried ...
1
vote
1
answer
396
views
Is it possible to efficiently get all the polygons inside a polygon from a shapefile without using PostGIS?
I have a huge shapefile (over 400MB) of an entire city that contains many polygons of the residential area of this city. I can check it on QGIS as the following:
This shapefile contains a huge number ...
1
vote
1
answer
3k
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
1
answer
367
views
Making a for loop/function testing geometries' intersections for multiple time-units in R
I have two multipolygons and I want to test intersections between their geometries based for different cycles of years.
Basically I have a flood dataset that contains flood events and their geometry ...
1
vote
2
answers
894
views
Convert shapefiles from WGS84 to Miller Projection
I have some shapefiles of the world from Natural Earth at WGS84. I would like to convert them to the Miller Projection. I have ogr2ogr, but I'm not sure what the parameters for this conversion ...
1
vote
0
answers
669
views
Error clipping a raster with a shape layer "Attempt to create ADRG dataset with an illegal data type (Float32), only Byte supported by the format. " [duplicate]
I try to clip a raster with a vector layer. When I try to do it, I get the error "ERROR 1: Attempt to create ADRG dataset with an illegal data type (Float32), only Byte supported by the format."
Can ...
1
vote
1
answer
149
views
generate massive shapefiles
I have a shapefile with 1475 records, and I want to generate a shapefile for each record.
What can I do to generate them avoiding selecting and exporting each record to do that?
1
vote
3
answers
1k
views
Storing shapefile in PostgreSQL database as a table using PHP?
I want to create a table from a shapefile in PostgreSQL. To do that, I can run this command in cmd:
shp2pgsql -s 4326 -W LATIN1 E:\Any\THA_adm public.test123 | psql -h localhost -d DATA -U postgres -...
1
vote
0
answers
328
views
Intersections Between Two Shapefiles in R
I have these two shapefiles in R:
file_1
file_2
I imported these files into R:
file_1 <- sf::st_read("C:/Users/me/OneDrive/Documents/folder1/lada000b21a_e.shp", options = "ENCODING=...
1
vote
2
answers
2k
views
Attempting to use ogr2ogr to convert shapefile to SQL Server table; getting error "unable to find driver mssqlspatial"
I have shapefiles with geographic data (polygon geometry only) that I'd like to import into tables in a SQL Server instance over which I have no direct control (but I'm working closely with someone ...
1
vote
1
answer
1k
views
Polygon holes/rings are showing up as polygons in QGIS
I am having an issue in both QGIS 2.18.17 and QGIS 3.0.1. It is to do with holes/rings. Where there are meant to be holes/rings, actual polygons are showing, these are effectively coming in as ...
1
vote
1
answer
666
views
Using kriging with data in GDB
I have series of data in my GDB
I am running the program under VBA and what I want to do is using the data by the tool Kriging.
This is what I thought:
First, Kriging needs data that must be a ...
1
vote
1
answer
903
views
Last edited information missing when used QGIS - Dxf to Shp
I am doing as constructed drawings which require the information to be in a GIS system and more specifically drainage as constructed drawings.
I must have a separate file for Pipes and Pits. First I ...
1
vote
2
answers
5k
views
"Item not found in this collection" when trying to set the Shape on IFeatureBuffer
I'm working on code to open a 3rd party data file and convert it into a collection of features in a custom layer based on FeatureLayer. I have had no issue importing the data itself (nodal data for ...
1
vote
1
answer
95
views
Non-destructive improvement of vector layer (shapefile) representing a road network?
I have a QGIS project with some vector layers backed by shapefiles. One of these layers contains all the roads, and I would like to "improve" it:
It is organized in a way that each vector feature ...
1
vote
1
answer
405
views
Shapefile is shifted after exporting [duplicate]
I used Google Maps as a basemap. In Map Composer window it is showing in the
correct location in QGIS, but when I try to export it, it is shifted.
1
vote
1
answer
151
views
Create a map of time since fire in QGIS
Using QGIS I want to create maps which visualise the fire history of an area, in particular the time since the last fire.
I have a shapefile which contains polygons of each fire that has occurred in ...
1
vote
1
answer
275
views
Building a shapefile for Canadian postal codes
Background: I am working with the R Programming language. I am looking for a shapefile of Canadian Postal Codes - but unfortunately, there is nothing available online for free. Therefore, I had the ...
1
vote
1
answer
5k
views
How to dissolve polygons and aggregate their data in QGIS? [duplicate]
I have a shapefile (one layer) with my country but I have a problem.
It is divided into 4 entries (prefectures), and I want it as one, not 4.
Also, there is a table with some data, and I want to ...
1
vote
1
answer
736
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
vote
1
answer
2k
views
Display Shapefile on website (Java or PHP)
i have to write an application where similar to Google Maps where i have to display a shapefile in a web application. My available technologies are Java (frontend framework: Apache Wicket) or PHP. It ...
1
vote
2
answers
2k
views
How to get feature values from multiple polygons of shapefile while using extract function on raster
I have a shapefile which contains arround 800 circular polygons with diameter of 60 meters each. Raster is 20 meter resolution so I would have multiple cell values extracted for each polygon. I am ...
1
vote
0
answers
1k
views
How to read vector datasets using GDAL library
Up to now, I have used GDAL in order to read raster information and geotiffs and show them with the help of OpenGL. Now I have a vector dataset, and by that, I mean I have the files with types:
DBF ...
1
vote
1
answer
2k
views
How to make necessary changes to Geodataframe to export as geopackage or shapefile
I am trying to export a geodatabase I created via the OMSNX package. ()
When I attempt to convert the file from a geodatabase to shapefile I get an error "ValueError: Invalid field type <class ...
1
vote
3
answers
1k
views
WFS layer saved as a shapefile
I wish to interrogate a WFS layer: 'https://environment.data.gov.uk/spatialdata/flood-map-for-planning-rivers-and-sea-flood-zone-2/wfs'
I am not the greatest python programmer (not quick) but can do a ...
1
vote
3
answers
32k
views
How to add a field to a shapefile using R [closed]
This question is trying to make sense of a post that already exists that looks good, but is failing in practice.
The second ranked answer uses the foreign package to read a shapefile attribute table ...
1
vote
1
answer
2k
views
Truncating field names to 10 characters in ModelBuilder
I have a number of different animal GPS location points, and a bunch of different habitat characteristics. I have built a simple model that uses the Near tool to calculate the distance from each point,...
1
vote
1
answer
3k
views
Calculate attribute height of point data
I have an x (easting), y (northing) and z (height) values associated with my point shapefile. I would like to calculate the z values from the DTM I have - how do I do this in QGIS? I am fairly new ...
1
vote
1
answer
769
views
Persisting ArcGIS Network Analysis Route Layer?
I'm using ArcGIS 10.0.
I'd like to be able to specify the location (path) where to create the route layer, for network analysis, when I click on Network Analysis -> New Route. Is that possible?
...
1
vote
2
answers
130
views
Atlas and county level data, but creating maps zoomed out to the entire U.S map
I am using QGIS 3.16.12.
I have a dataset of 150 retail companies, each selling a product over 100 counties across the country. This dataset also includes data on the number of sales per county for ...
1
vote
1
answer
2k
views
Use lapply and writeOGR to write multiple shapefiles within a list
I have a nested list with multiple shapefiles and I want to use lapply with writeOGR ('rgdal') in order to export all the shapefiles. Sorry for not giving a reproducible example.
# My list
shp....
1
vote
1
answer
337
views
Batch rename of geotagged photos taken inside a shapefile
I have hundreds of geotagged JPEG photos, with camera default naming, that are taken somewhere out there but always inside the borders of a shapefile. I need to rename them all with the shapefile id ...
1
vote
1
answer
553
views
Draw horizontal lines on points shapefile using ArcGIS [closed]
I have one shapefile of 200 points in which I would like to draw one horizontal line of 2Km on each of those points.
How can I do this?
1
vote
3
answers
32k
views
Comparing differences in two polygon shapefiles using ArcGIS Desktop? [duplicate]
I am a new user to Arcmap 10. I've been trying to figure out how to compare two polygon shapefiles. I need to figure out what the difference is from 2007 - 2013 (increase/decrease) in a couple of ...
1
vote
1
answer
2k
views
How to get features from WFS as a shapefile?
I have a WFS running on URL that is mentioned in the code below. i want to get all the features available in the service as a shapefile so i can open it and visualize it in QGIS or any other GIS ...
1
vote
0
answers
649
views
QGIS 2.18.3 path and sip module cannot be load in ubuntu 16.04
I'm currently installing QGIS 2.18.3 it works fine at first, after upgrading my ubuntu the problems comes out every time I run my QGIS; it always shows "Couldn't load SIP module. Python support will ...
1
vote
1
answer
329
views
symbology with 2 fields - one for the color and another for the shape?
for example, i have two fields:
1 - a, b, c
2 - X, Y, Z
and i want to do like this: a - square, b - circle, c - point
X - blue, Y - red, Z - pink
and when i have a and Y - it whould be red square.
1
vote
1
answer
14k
views
Convert DWG to SHP in QGIS?
Given files by client:
.dwg
.bak
QGIS doesn't like it; FREECAD doesn't like it; RhinoCAD doesn't like it or Illustrator.
QGIS > Project > Import as .dwg/.dxf actually asks for .gdb, which doesn't ...
1
vote
1
answer
277
views
How to find the area with most intersection for buffer regions?
Find the area with the most intersection
This question relates to previous question asked - How to find the intersection areas of overlapping buffer zones in single shapefile?. I tried to find ...
1
vote
4
answers
8k
views
Administrative boundaries of Brazil? [duplicate]
I am looking for coordinates (longitude and latitude) of each state of Brazil.
Where can I find that?
I have found a file for the US states here: http://econym.org.uk/gmap/states.xml, I am now ...
1
vote
3
answers
1k
views
Can't load a shapefile with Python Console in QGIS?
I'm trying to load a shapefile into QGIS using iface.addVectorLayer, but whenever I do this, I get an error message "Layer is not valid: etc ..."
However, if I try to load the same shapefile use the ...
1
vote
4
answers
37k
views
Merging polygon and point Shapefile in ArcGIS for Desktop?
I have two shapefiles that I want to merge.
One is of polygons, the other is a point file.
The polygons are missing information in the attribute table that the point file has. In general, the two ...
1
vote
1
answer
6k
views
Batch export all layers in ArcMap document that have selected features?
I have several layers in an ArcMap Document. All of these layers are stored as shape files.
Specific features of the said layers are selected. I want to export the data as shapefile programatically. ...
1
vote
1
answer
55
views
Apply Point style in JMapFrame GUI
I've managed to create a Point shapefile creating a SimpleFeature and outputting it as Test_Point.shp,
public static final SimpleFeatureType POINT = createPointType();
private static SimpleFeature ...