Skip to main content

Questions tagged [invalid-data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

Saving layers after QGIS processing

Context: I am trying to clean some bathymetric data (originally as lines) and am facing many challenges within QGIS. I ran into what I believe was a bug with the attribute table in QGIS in 3.24.1 so I ...
Nick_K's user avatar
  • 31
1 vote
0 answers
314 views

QGIS flagging shapefiles as 'invalid data source'

I've downloaded some shapefiles (zipped) to my C drive for use in QGIS - however it can't seem to find them when I add a vector layer from the web browser, they simply don't appear. When I try to open ...
MOB's user avatar
  • 11
0 votes
1 answer
181 views

QGIS no longer accepts external hard drive as a valid data source

I am working on a mapping project that consists of downloading USGS Lidar data. Due to the volume of the data I have been storing the '.tif' files on a 1T external drive called 'GIS Drive'. For ...
Heidi's user avatar
  • 1
2 votes
0 answers
264 views

QGIS not able to add vector layer from a folder, but can add raster layer from same folder; browser unable access that folder's contents

I've just installed version 3.28, and upon opening for the first time, I may have accidentally denied QGIS permission to access to the folders with my data. Say my data is at /Users/me/Documents/. ...
Jason Brown's user avatar
4 votes
1 answer
204 views

How to replace polyline Z value equal to Nan is PostGIS?

In some polylines stored in PostGIS, I found Z values equal to NaN. For example: LINESTRING Z (30 10 0, 10 30 nan, 40 40 nan) I want to replace the 'nan' with 0 to prevent subsequent errors.
tim's user avatar
  • 417
0 votes
1 answer
195 views

GEE_No valid training data

I am trying to conduct supervised classification using RF, however I face problems with my training data. I have my data as a point shp file, however, whenever I use it, it gives me the error "no ...
Samar Tarek's user avatar
2 votes
0 answers
254 views

QGIS won't open ANY shapefile or geopackage

Running a clean install of QGIS 3.22.10 on a Lenovo laptop running Windows 10. I cannot open any shapefile. Every time I try to open one I get the following error message: Invalid Data Source: xxx.shp ...
milie's user avatar
  • 29
2 votes
1 answer
809 views

Is "Fix geometries" in QGIS working properly?

I am currently using QGIS 3.10 for my GIS project. I run first “Check Validity” to see if there were any invalid features, then I used “Fix geometries” to correct them. Surprisingly, after running the ...
Geo_it's user avatar
  • 523
1 vote
1 answer
140 views

QGIS fix invalid geometry for intersection on Corine Land Cover files

There are many posts on this but I was wondering on which layer should I do my operations. I explain: I am using the Corine Land Cover (CLC) files for 2006 and I am just interested in one part in ...
Robagb's user avatar
  • 447
4 votes
1 answer
2k views

QGIS: Feature passes ‘Check validity’ but ‘Fix geometries’ has an issue - where to start?

I think I have a problem in understanding how the ‘Identify Features’ tool works in QGIS with a shapefile that might have some kind of error. I don’t know quite enough QGIS to be sure I’m asking this ...
Erik Paulson's user avatar
14 votes
2 answers
9k views

Generating invalid Vector layer in QGIS

I need an invalid layer to test a plugin in QGIS. In the plugin window, I select a layer from combobox. So, the invalid layer should be in the Layers panel. I google for a while but I cannot find a ...
Kadir Şahbaz's user avatar
15 votes
3 answers
5k views

What is "Fix geometries" tool actually doing in QGIS?

Sometimes geometry's have to be fixed for further processing. So you can use "Fix geometries" and it will do the job for you without prompting. But I'm wondering, what the tool "Fix ...
MartinMap's user avatar
  • 8,338
4 votes
2 answers
4k views

Google BigQuery error: "Invalid polygon: edge crosses edge"

I am trying to upload the FCC's Study Area Boundaries into Google BigQuery for analysis with other data. I used QGIS to fix the geometries and convert the shapefile to a newline delimited geojson. ...
Nathaniel Lovin's user avatar
3 votes
3 answers
1k views

ST_SnapToGrid makes result invalid depending on size

For fewer than 100 polygons in my set of ~1 million, I am getting a behaviour with ST_SnapToGrid that I do not understand. Depending on the parameter that I pass for size, the validity of the ...
susie derkins's user avatar
1 vote
0 answers
147 views

Defining invalid regions of VRT file with rasterio in a way that allows windowing [closed]

I'm using a VRT file to represent a bunch of individual map tiles as one big image. I noticed that some of the data is invalid but not marked as such (via the invalid data value). I'd like to define ...
Sean's user avatar
  • 189
1 vote
0 answers
154 views

Getting Geometry error: One or more input features have invalid geometry from QGIS

I am trying to use the "Split With Lines" tool to split a polygon layer that consists 1000+ separate objects. Geometry error: One or more input features have invalid geometry. The tool keeps ...
Dan Olson's user avatar
  • 167
3 votes
1 answer
454 views

ST_IsValid and duplicate vertex

I expected to get 'false' from the following statement: SELECT ST_IsValid(ST_GeomFromText('POLYGON((0 0,10 0,10 10,10 10,0 10,0 0))')); Instead it returns true! Even if the vertex in 10,10 is ...
Jacopo Russo's user avatar
1 vote
1 answer
3k views

No valid training data were found [Google Earth Engine]

I would like to create a classification model through randomForest model. I used Sentinel 2 dataset. Everything is working if I'm using the original bands for the predicted variable. However, if I ...
Alexandre B.'s user avatar
5 votes
1 answer
944 views

Seeking code behind Fix Geometries tool in QGIS

I used the "Fix Geometries" tool in the Processing Toolbox of QGIS 3.6 to repair a vector layer that was giving me trouble. The tool in QGIS worked just fine, but I was hoping to find out ...
krishnab's user avatar
  • 919
1 vote
1 answer
474 views

Invalid geometry error after polygonizing a GeoTIFF file

I wanted to clip an OSM vector layer with the boundaries of a raster image--a GeoTIFF file. I was able to polygonize the raster and obtain its boundary in a vector format. But I am getting a error ...
krishnab's user avatar
  • 919
4 votes
2 answers
11k views

Latitude and longitude values in Google Takeout location history data sometimes out of range [closed]

I've exported my geolocation history data as a JSON from Google Takeout and the latitude/longitude values are out of normal range sometimes. It seems to happen for some locations only, while others ...
vbevan's user avatar
  • 135
12 votes
1 answer
25k views

How to fix invalid polygon with self-intersection - Python

I have a self-intersecting polygon inside a shapefile. Does there exist a Python library which spots the self-intersections and makes it possible to correct them? I have found it is possible in QGIS ...
peppe's user avatar
  • 153
2 votes
1 answer
463 views

Do Not Filter vs Ignore Invalid Geometries

In QGIS 3, What's the difference between "Do not filter (better performance)" and "Ignore invalid geometries"? Both can be found at Settings > Options > Processing > General Both are options to ...
csft306's user avatar
  • 649
1 vote
1 answer
718 views

24412: Not valid because the interior of a polygon with rings (2) and (1) is not connected

I've got geography in sqlserver that is invalid. Running IsValidDetailed() I get the reason as 24412: Not valid because the interior of a polygon with rings (2) and (1) is not connected. But I don'...
dibs487's user avatar
  • 408
0 votes
0 answers
399 views

How to fix: JTS TopologyException: Found null DirectedEdge

How can I fix a: TopologyException: Found null DirectedEdge? Initially (sadly), the geometry is invalid. But then when applying a geom.buffer(0) st_valid(my_geom) returns true. Still there are ...
Georg Heiler's user avatar
4 votes
2 answers
3k views

Invalid geometries in QGIS 3 seems to be more prevalent than QGIS 2

I have a large polygon vector data set containing approximately 10,000 rows of data. I have used this data to run specific tasks in the QGIS 2 series (many of the Geoprocessing tools) with no issue of ...
AWGIS's user avatar
  • 3,230
3 votes
0 answers
198 views

Why do I get invalid elements (polygons), when smoothing a vector layer (smooth geometry)?

The problem occurs, when using the commands "Smooth geometry" or "v.generalize.smooth" in QGIS. The shapefile, which I want to smooth, shows a flood water level and looks like this: The water level ...
Christian Harrer's user avatar
1 vote
1 answer
567 views

Invalid Geometry in PostGIS but Valid in FGDB

I have a data with lots of polygons which illustrated below (and it's a little tip of my study area) When I worked with ArcGIS, I run 'repair geometry' and it fixed some of the errors. Then, I ...
Pil Kwon's user avatar
  • 1,040
1 vote
1 answer
256 views

st_intersects of zero area polygon and point returns false

I have the following three geometries: PT: Point(0 0) LINE: LineString(0 0, 0 10) POLY: Polygon((0 0, 0 0, 0 0, 0 0)) Calling st_intersects on LINE and POLY returns true (as though POLY describes ...
Kerry Barnes's user avatar
8 votes
3 answers
10k views

Solving topological errors like invalid geometries in QGIS?

I use QGIS, version 2.18.9. I´ve several polygon-shapes with topological errors. Before I tried to apply the "intersection"-tool and got the message: Input layer A contains invalid geometries (...
Sophie B.'s user avatar
2 votes
0 answers
1k views

Python OGR Execute SQL - Get console output

I am currently trying to scan around 1500~ MapInfo TAB files for invalid geometry using Python and OGR. So far, I've managed to run the following command to filter features that contain errors: ...
JamieTasker's user avatar
2 votes
1 answer
1k views

Compare only valid polygon geometries in PostGIS

I'm trying to run a fuzzy geometry comparison on a large polygon dataset (>2 million rows), but am getting an error like so: ERROR: ptarray_contains_point called on unclosed ring SQL state: XX000 ...
weiji14's user avatar
  • 1,751
3 votes
1 answer
597 views

Export a list of invalid geometries using Python

Is there a way to export a list of layers containing invalid geometry (e.g. self-intersections) via Python? Our GIS server contains over 40,000 layers, some of which have all sorts of errors that ...
JamieTasker's user avatar
2 votes
1 answer
296 views

Invalid geometries

I have downloaded the latest spatialite-gui v.1.4.0. (spatialite version 2.4.0.) When I try to correct invalid geometries and I use the following string (that I use to use with the past version): ...
Fabio's user avatar
  • 21
4 votes
1 answer
3k views

Split Parts Tool Error: Geometry invalid

I have trouble splitting a multipart feature and can't figure out what I'm doing wrong. I have a multipart feature of Islands which all belong to the same country, so they should stay a multipart ...
danielaandrea's user avatar
2 votes
0 answers
958 views

How to solve UnicodeDecodeError in Python when executing Make Valid LWGEOM algorithm in QGIS?

I'm trying to fix some invalid geometries using the Make Valid LWGEOM algorithm in QGIS 2.8.3 processing toolbox but a Python error occurs: Errore durante l'esecuzione di codice Python: Traceback (...
Bryan Ciceri's user avatar
4 votes
1 answer
9k views

Shapefile - problem with number of points in LinearRing

I am new to shapefiles and I've got a bit lost. I am trying to plot pooling sections in my region (Madrid) with different colors. But I get Error: IllegalArgumentException: Invalid number of ...
Marcos Marvá's user avatar
2 votes
1 answer
394 views

Why are a polygon's vertices jumbled after importing KML into MySQL?

This is original KML : <Polygon><outerBoundaryIs><LinearRing><coordinates>104.700355,-3.056064 104.632127,-3.103623 104.608924,-3.103169 104.570166,-3.102411 104.5588,-3....
Christ's user avatar
  • 59
1 vote
1 answer
392 views

Geometry error in roadnetwork

I have a road network table. When I check st_isValid(the_geom)='f', I am getting an error: NOTICE: IllegalArgumentException: point array must contain 0 or >1 elements ERROR: Exception in ...
Sreesha's user avatar
  • 619
37 votes
7 answers
46k views

Fixing geometry validity errors in QGIS 2

I am working on ownership data at a US county level. I have one shapefile per county that contains thousands of tax parcels. I need to dissolve the polygons representing parcels owned by the same ...
Bap's user avatar
  • 983
2 votes
0 answers
2k views

Invalid geometry

I'm working on some shapefiles in both ArcGIS 10.2 and QGIS 2.0. I have 3 files which I have cleaned of self intersections in ArcGIS using Repair Geometry. I have also checked for Overlaps using the ...
DirkB's user avatar
  • 623
2 votes
3 answers
2k views

Polygon inside polygon invalid in QGIS

Looking at this map data from naturalearth (part of Oman & UAE to be specific), each country is defined as a multipolygon. In this case UAE (in red) contains two polygons and Oman (beige) three. ...
user avatar
5 votes
1 answer
5k views

Detecting invalid WKT in text column in SQL Server

I've got a whole load of WKT data in a SQL Server table, of which I'm trying to detect the validity. I'm currently doing a query like this: UPDATE f SET f."CurrentGeomValid" = geometry::...
GHC's user avatar
  • 123
3 votes
1 answer
2k views

Possible solution for dangling nodes?

I was just asked in a interview what a dangling nodes was. I had no idea and asked a former co-worker. I was informed that a significant amount of time was spent fixing these. I was confused how ...
user avatar
5 votes
2 answers
5k views

Why are self-intersecting polygons bad?

Working with both ArcGIS and Oracle Spatial, a self-intersecting polygon renders a geometry invalid. Why are self-intersecting polygons a problem?
Jordan Parmer's user avatar
2 votes
2 answers
2k views

ArcSDE: Specifying fields to not allow null values

I have a feature class in SDE that has various fields where the setting AllowNulls is set to FALSE. When creating a feature in ArcMap in this feature class it still allows nulls to be specified in ...
Rob's user avatar
  • 851
3 votes
2 answers
361 views

Obtaining nodata information for ASTER datasets?

Is there any way to determine what the nodata value should be, in a set of geotiff images that do not have the 42113 tiff tag ? I am trying to get elevation information, programatically in c++, and ...
Thalia's user avatar
  • 217
2 votes
2 answers
1k views

Implementing field validation rules in ArcGIS?

I've found that ArcGIS offers validation of 2 basic constraints: field data type and if the value is required or not. Is there any way or AddIn to attach more complex validation rules? I mean ...
megadrofan's user avatar
2 votes
1 answer
765 views

Validate SDE features within ArcObjects (can't use sdeLayer)

I'm trying to sweep through a feature class checking for invalid features (and log the invalid features). Would IValidation.Validate work or does that just check for rules? If not I'm guessing I ...
user3661's user avatar
  • 215
8 votes
4 answers
8k views

Is there any place in which I can find a list of invalid database characters for ArcGIS 10?

Relating to my question about the split tool here, as suggested I ask a new question: is there any place with a list of invalid characters to use in a database in ArcGIS 10? edit: It is in relation ...
Emily's user avatar
  • 1,099