Questions tagged [validation]

The process, using formal methods, of evaluating a system or software component to determine whether it functions as expected and achieves the intended results.

Filter by
Sorted by
Tagged with
52 votes
14 answers
153k views

Online WKT and GeoJSON viewer

I once found a great but simple webpage that has a drop-down with several text-based GIS formats such as GeoJSON and WKT, and a text box to copy/paste your data. The feature is then drawn on a world ...
JPhi's user avatar
  • 631
22 votes
5 answers
28k views

How to validate GeoJSON?

I have a small script that I'm using to generate GeoJSON data from a data format not currently supported by GIS software. I would like to validate the output, but when I use ogr2ogr to read it, it ...
BenjaminGolder's user avatar
11 votes
2 answers
2k views

Checking validity of Geodatabase file using ArcPy

As the title suggests, how can I whether a GDB file is valid using ArcPy? One approach is, only checking the whether the name ends with .gdb, but that's not a robust approach. Because a normal file ...
user's user avatar
  • 1,337
10 votes
3 answers
892 views

Spatial Network Cleaning

Data used to create a network from has special considerations when cleaning, as minor spatial errors can lead to major bugs in connectivity. What techniques could be considered best practice for ...
Sideshow Bob's user avatar
  • 2,343
8 votes
1 answer
658 views

PostGIS Multipolygon when converted to shapefile doesn't match the source geometry

I am trying to convert a MULTIPOLYGON record from PostGIS (v2.2.2) to the shapefile via QGIS (v2.18.9), but the source geometry and the resulting shapefile do not match as displayed on the images ...
Dejan Stojanovic's user avatar
6 votes
1 answer
9k views

Well-known text (wkt) validator

Is there anything like http://jsonlint.com or http://geojsonlint.com for WKT? How can I validate a complex WKT string, say e.g. a Multipolygon?
nachtigall's user avatar
6 votes
1 answer
283 views

How is IValidate.GetInvalidRules supposed to work?

we are currently trying to programmatically validate features against geodatabase-defined rules. This includes attribute rules as well as connectivity and relationship rules. We have consulted the ...
Petr Krebs's user avatar
  • 10.3k
5 votes
3 answers
458 views

Getting ST_IsSimple reason and detail similar to ST_IsValidDetail in PostGIS?

How can you get ST_IsSimple reason and detail similar to ST_IsValidDetail in PostGIS? When validating geometries I can use these handy functions to not only check if geometry is valid, but also the ...
Miro's user avatar
  • 9,744
5 votes
1 answer
1k views

Cross-validation of TPS and kriging outputs from the fields package in R

I am looking for existing package or functions that will allow me to cross-validate multiple outputs of Thin plate spline (TPS) and Kriging from the fields package. Does anyone know of any available ...
Gago-Silva's user avatar
  • 2,546
4 votes
2 answers
10k views

fixing polygons with "ring not closed" errors

I have a shapefile with a single Polygon feature. This feature has a "ring not closed" geometry error (seen here in QGIS): I tried using buffering and the GRASS v.clean command as suggested in other ...
kontextify's user avatar
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
4 votes
1 answer
767 views

How to determine why feature is invalid according to Validate features?

I have a feature class with a lot of domains and a lot of different properties e.g. null values, subtypes, and so on. I am using Validate features (Editor tool) and get the selection of the invalid ...
Dror Har Gil's user avatar
  • 2,524
4 votes
2 answers
3k views

Explanation of the Thinness ratio formula?

I am looking for sliver polygons and am using the following formula to identify which polygons have a smaller area-to-circumference ratio (aka Thinness Ratio): 4 * pi * area/(length*length) That ...
Robert Buckley's user avatar
4 votes
1 answer
3k views

Populating a Value List in one Parameter, from Values Derived from a Second Parameter, Python

Using the Validator in the ArcGIS 10.1 tool GUI, can I loop through and List feature classes from a workspace type parameter (ie a file geodatabase) and then go on and list the values of a field in a ...
Mike's user avatar
  • 2,281
4 votes
1 answer
609 views

Topology problems with QGIS/GRASS

*edited file links below I'm working on several NGO projects at the moment, all of which are reliant on being able to use a district level map with some 490+ features, and I am running into some ...
Justin's user avatar
  • 71
3 votes
1 answer
2k views

Validating geometries in PostGIS

I am trying to validate the geometry of all polygons in my table. When I perform the following query, I get an error: update parcel2016 set geom = St_MakeValid(geom) ERROR: Column has M dimension ...
iskandarblue's user avatar
  • 2,092
3 votes
2 answers
760 views

FME - Conditionally make parameters visible

I have an FME workspace in which the user sets several parameters before running. The first parameter is a multiple choice where the user selects which layers they would like to process. Depending on ...
Fezter's user avatar
  • 21.9k
3 votes
1 answer
556 views

Retrieving only type of the geometry error by using validateGeometry() in PyQGIS

I have a polygon layer and I am trying to catch the geometry error by using validateGeometry(). The following snippet is working and finding the reason for the error as well as the location. layer = ...
Nil's user avatar
  • 1,517
3 votes
3 answers
694 views

GML validation errors with FME

I am wondering if I am missing something. I am exporting some records from an Oracle dB to a GML2 file using FME. When I validate the resulting XML using online validators I don't find any errors. ...
Lay's user avatar
  • 305
3 votes
1 answer
248 views

Validating shape type of input feature layers in Python Toolbox of ArcPy?

How can I get in explorer folder window a layer in specify shape? For example allow: How can We look, explorer after click INPUT FEATURES, shows a layers only points type. How can I get validate ...
Bocian's user avatar
  • 69
3 votes
1 answer
856 views

ModelBuilder - Data dependencies within model

I have a "parent" model with two nested submodels. Submodel A creates a gdb & FC's. These FC's are output and exposed as model parameters to the input of Submodel B which exports them to CAD. ...
Steve's user avatar
  • 773
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
2 votes
1 answer
670 views

Validating whether shapefile exists using ArcPy?

I am very new to Python and am trying to complete my final project with not a lot of success. My code works without functions, the problem is I need it to work with functions. In the main(): ...
user24720's user avatar
2 votes
1 answer
1k views

ST_MakeValid() leaving data unaltered?

I recently received a PostGIS instance and am trying to figure out how much of my current processing workflow (in proprietary tools) can be ported over to PostGIS. One of the most frequent tasks I ...
auslander's user avatar
  • 1,507
2 votes
2 answers
750 views

Call ArcGIS Repair Geometry Function from Oracle 11.2

Could anyone please point me to the right direction on how to call an ArcGIS Function (i.e. Repair Geometry) from PL/SQL? All information I found so far concerns the other way round. This is needed ...
stevo's user avatar
  • 47
2 votes
1 answer
903 views

Validating Values in Multiple Fields in an Attribute Table

I've been playing around with 'Maintaining Attribute Integrity' functions found here: http://resources.arcgis.com/en/help/...000000n000000/ I see how I can set domains and subtypes to control the ...
Mike's user avatar
  • 2,281
2 votes
1 answer
1k views

Geometry valid in PostGIS turns out to be not valid in Oracle

Geometry is in PostgreSQL database. It is valid. Geometry is exported as GML and then inserted into Oracle database. Then function SDO_UTIL.RECTIFY_GEOMETRY(geometry, tolerance) is called, which ...
Rauni's user avatar
  • 344
2 votes
1 answer
846 views

QgsRasterLayer is invalid when run as standalone PyQGIS

The following code behaves as I expect when I run it in QGIS Python Console, but when I run it as a standalone from the console, the layer is invalid. urlWithParams = 'type=xyz&url=https://tile....
Mads Skjern's user avatar
2 votes
1 answer
412 views

Validate Features in ArcGIS Pro?

In ArcMap, I can easily enforce my geodatabase relationships rules (ex. one-to-one relationships) by selecting features and selecting, in the editor toolbar, the Validate Features button. I can then ...
Goldorak84's user avatar
  • 1,284
2 votes
1 answer
406 views

Validating schema of my XSD wth GML with GeoTools

I would like to control if my GML file is valid with my actual XSD using GeoTools. I found something here: GML2 Parsing TestSchema Example. But I don't know if it's a good way to do what I want. ...
justin1298's user avatar
2 votes
0 answers
142 views

How can I validate a SQL statement in ArcObjects?

I'm trying to validate the results of a ISQLQueryDialog2, but can't find any out of the box solutions. This particular dialog has a built in validate button, but I would like to programmatically ...
Barbarossa's user avatar
  • 5,797
2 votes
0 answers
531 views

pass selected value from drop down list in updateParameters(self) as input to python script

I managed to create two drop down lists using the validation code where an user can select the first parameter from a list and get another filtered list for the second parameter. However, I am ...
Giacomo's user avatar
  • 307
2 votes
0 answers
367 views

How to find a polygon error in QGIS?

I loaded the following multipart polygon in QGIS which consists of three separate polygons. The highlighted (yellow) polygon consists of the bigger upper part and the smaller lower part. My aim is to ...
JJD's user avatar
  • 1,511
2 votes
0 answers
180 views

Topology Checking issue in Qgis 2.14.1

I am working on a large data set of Road with snapping tolerance 5px with topological editing option enable. When i am zooming to the snapped vertex with zoom level upto 1:50, its looking snapped or ...
Rajesh Kumar's user avatar
2 votes
1 answer
319 views

HALE: GML validation errors

I try to export a GML file from HALE editor but the validation has always errors with this text: The value '' of attribute 'gml:id' on element 'ps:ProtectedSite' is not valid with respect to its ...
mrbandy's user avatar
  • 391
1 vote
1 answer
434 views

Setting More Than One Workspace

I have a number of tables that contain known values in a field. For example, I have a soil type table with one field in it. That field contains a list of known soil types. I have another table that ...
Mike's user avatar
  • 2,281
1 vote
2 answers
212 views

Check if coordinates intersect rotated rectangle

In a non-GIS system, I have a Python script that checks to see if coordinates are valid: def is_latlong_valid(laty, longx): #Verify if the numbers are legitimate UTM coordinates return (...
User1974's user avatar
  • 1,132
1 vote
1 answer
633 views

GeoServer WMS INSPIRE validation

I am using GeoServer 2.15 to provide the INSPIRE view service. I am testing it with the INSPIRE reference validator and the test fails for the GetMap operation. The validator expects the service to ...
Elena's user avatar
  • 13
1 vote
1 answer
553 views

Adding custom constraint to a GeoDjango table?

I wish to add a custom constraint to a GeoDjango table. This is the corresponding sql-statement: ALTER TABLE my_table ADD CONSTRAINT enforce_valid_geom CHECK (ST_IsValid(geom)); Do I really have ...
LarsVegas's user avatar
  • 2,536
1 vote
1 answer
902 views

How do you make a GEOMETRYCOLLECTION valid in SSMS?

The following query is used in an app to make shapes valid, however it does not work when using GEOMETRYCOLLECTIONs. I get the following error: A .NET Framework error occurred during execution of user-...
NickyLarson's user avatar
1 vote
0 answers
709 views

Checking geometry validity

I'm using QGIS 3.0 and I have a problem with checking validity of the geometries of a shapefile. I imported a DXF, converted the polylines into polygons, manually corrected the wrong or intersecting ...
Mauro's user avatar
  • 39
1 vote
0 answers
574 views

How to validate high precision GPS systems location [closed]

I am currently working with a high precision RTK-GPS system which claims to be able to reach centimetre level accuracy, I am looking for a way to validate that it is actually reaching that precision ...
Laurence Cullen's user avatar
1 vote
0 answers
475 views

How can I edit spatial data automatically on postgis and check for topology errors on said data whitout using shapefiles?

So, I have spatial data stored in postgis (points, lines and polygons) and would like to edit and update those in an Open Source software (quantum GIS, grass, etc.) to check for topologic errors, ...
Diego Siqueira's user avatar
1 vote
0 answers
1k views

Multi-geometry validation in WFS service using GML [closed]

I'm doing the test to introduce multiple geometry in a WFS service using GML. For now the simple geometry is functional, but I still have some bugs with multiple geometry. I think it may come from my ...
Johnny Boy's user avatar
1 vote
0 answers
2k views

Validation of Regression Kriging [closed]

I am interested in exploring the idea of generating a predictive model for a target variable in a spatial context. I would then like to correct the residuals of this model using kriging, i.e. in a ...
JEquihua's user avatar
  • 1,087
1 vote
2 answers
3k views

TIFF and TFW file validation

This is a bit of a cry for help as I’m still quite new to this. I am looking to create a thing that can validate some specific parameters for TIFF and TFW files, preferable using python, FME or ...
JG_RS_GIS's user avatar
  • 113
0 votes
1 answer
1k views

When is an address in a new subdivision available for mail delivery?

I have customers that are complaining that some addresses validate on the USPS validation site (https://tools.usps.com/go/ZipLookupAction!input.action) but my geocoding vendor can't geocode the ...
lreeder's user avatar
  • 426
0 votes
1 answer
311 views

Classification validation: Trouble with the Confusion Matrix

I'm supposed to validate my supervised classification with a Confusion Matrix, but I'm having a hard time getting what I should use as a comparison. At first, I used the same ROIs I created for ...
Eric Lino's user avatar
  • 394
0 votes
1 answer
3k views

Google Earth KML broken

My Google Earth "My Places" will no longer populate when I open Google Earth. I still have access to the KML file. Is there a way to repair or trouble shoot the KML file to salvage the data? The ...
Jeff Thompson's user avatar
0 votes
2 answers
254 views

FME - Filter Parameter choices to only projected coordinate systems

I have an FME workspace in which the user sets several parameters before running. One of the parameters is a Coordinate System. I would like the user to choose only Projected Coordinate Systems as ...
Fezter's user avatar
  • 21.9k