[CITE-Forum] GML 3.2.1 test: Java exception rather than an error message

Richard Martell rmartell at galdosinc.com
Fri Jul 4 15:25:40 EDT 2014

Hi Peter,

Can you post a sample geometry instance with the incorrect CRS reference? If the length of the coordinate tuple does not 
agree with the CRS dimension then a message like this should result:

"Point[@gml:id='p1'] has unexpected coordinate dimension."

That exception shouldn't occur, so the example will help to isolate the issue.

-- Richard

-----Original Message-----
From: CITE-Forum [mailto:cite-forum-bounces+rmartell=galdosinc.com at lists.opengeospatial.org] On Behalf Of Peter Parslow
Sent: Thursday, 03 July, 2014 07:14
To: cite-forum at lists.opengeospatial.org
Subject: [CITE-Forum] GML 3.2.1 test: Java exception rather than an error message

I'm running sample data through the GML test: http://cite.opengeospatial.org/teamengine/rest/suites/gml/3.2.1-r15/run?gml=

I get an error which I think is true, but the message isn't helpful:

<test-method description="urn:iso:std:iso:19107:clause:" started-at="2014-07-03T09:29:37Z" name="pointHasValidPosition" finished-at="2014-07-03T09:29:37Z" duration-ms="2" signature="pointHasValidPosition()[pri:0, instance:org.opengis.cite.iso19136.data.spatial.PointTests at 6ccbf6f9]" status="FAIL">
        <exception class="java.lang.ArrayIndexOutOfBoundsException">
                <message> 2 </message>
        <!-- java.lang.ArrayIndexOutOfBoundsException -->
        <reporter-output> </reporter-output> </test-method>
<!-- pointHasValidPosition -->

It made me realise that the sample data I'd put through declared urn:ogc:def:crs:EPSG::27700, but actually contained 3D coordinates - so should have been declaring urn:ogc:def:crs:EPSG::7405

So, good catch to the test engine, assuming that is what provoked the exception, but could there be a better message 'the coordinate set has the wrong number of dimensions'?


This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.

Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.

Thank you for your cooperation.

Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
CITE-Forum mailing list
CITE-Forum at lists.opengeospatial.org

More information about the CITE-Forum mailing list