[Geoserver-devel] [JIRA] (GEOS-8765) Undocumented GDAL 2.3.0 CSV output geometry column name change breaks WPSOgrTest

Ben Caradoc-Davies created an issue

GeoServer / BugGEOS-8765

Undocumented GDAL 2.3.0 CSV output geometry column name change breaks WPSOgrTest

Issue Type:

BugBug

Assignee:

Unassigned

Attachments:

feature.gml

Components:

WPS

Created:

31/May/18 3:43 AM

Environment:

debian sid gdal-bin 2.3.0+dfsg-1 amd64

Priority:

MediumMedium

Reporter:

Ben Caradoc-Davies

On debian sid gdal-bin 2.3.0+dfsg-1 amd64:

Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.253 sec <<< FAILURE!
testOGRCSVOutputExecuteDocument(org.geoserver.wps.ogr.WPSOgrTest)  Time elapsed: 214 sec  <<< FAILURE!
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at org.geoserver.wps.ogr.WPSOgrTest.testOGRCSVOutputExecuteDocument(WPSOgrTest.java:169)

Failed tests:   testOGRCSVOutputExecuteDocument(org.geoserver.wps.ogr.WPSOgrTest)

Failure started after upgrade from GDAL 2.2.4 to GDAL 2.3.0 on Debian sid when processing a GML file with a geometry property called “geometry”:

$ ogr2ogr --version
GDAL 2.3.0, released 2018/05/04
$ ogr2ogr -f CSV -lco GEOMETRY=AS_WKT feature.csv feature.gml; grep STATE feature.csv 
geometry,gml_id,STATE_NAME

Comparison with Ubuntu Bionic:

$ ogr2ogr --version
GDAL 2.2.3, released 2017/11/20
$ ogr2ogr -f CSV -lco GEOMETRY=AS_WKT feature.csv feature.gml; grep STATE feature.csv
WKT,gml_id,STATE_NAME

GEOMETRY=AS_WKT is documented to output a geometry column WKT by default.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100086-sha1:9f755a9)

Atlassian logo