Skip to content
Novus Examples
gml1.8 KB

GML 3.2 — CRS84 srsName (longitude first)

The same five towns as the territory GML twin, but declared with the CRS84 URN instead of the EPSG one — which flips the axis order to longitude first. The two files are otherwise identical in structure, so together they isolate axis-order handling from everything else.

Preview — first 49 linesgml
<?xml version="1.0" encoding="UTF-8"?>
<kb:FeatureCollection xmlns:kb="https://examples.novusstreamsolutions.com/ns/kestrel-bay" xmlns:gml="http://www.opengis.net/gml/3.2" gml:id="fc-crs84">
  <kb:featureMember>
    <kb:Town gml:id="town-KB">
      <kb:name>Kestrel Bay</kb:name>
      <kb:population>4820</kb:population>
      <kb:location>
        <gml:Point gml:id="pt-KB" srsName="urn:ogc:def:crs:OGC:1.3:CRS84"><gml:pos>-12.482 47.064</gml:pos></gml:Point>
      </kb:location>
    </kb:Town>
  </kb:featureMember>
  <kb:featureMember>
    <kb:Town gml:id="town-MR">
      <kb:name>Marram</kb:name>
      <kb:population>1180</kb:population>
      <kb:location>
        <gml:Point gml:id="pt-MR" srsName="urn:ogc:def:crs:OGC:1.3:CRS84"><gml:pos>-12.3915 47.112</gml:pos></gml:Point>
      </kb:location>
    </kb:Town>
  </kb:featureMember>
  <kb:featureMember>
    <kb:Town gml:id="town-HW">
      <kb:name>Holloway</kb:name>
      <kb:population>2670</kb:population>
      <kb:location>
        <gml:Point gml:id="pt-HW" srsName="urn:ogc:def:crs:OGC:1.3:CRS84"><gml:pos>-12.551 47.018</gml:pos></gml:Point>
      </kb:location>
    </kb:Town>
  </kb:featureMember>
  <kb:featureMember>
    <kb:Town gml:id="town-NP">
      <kb:name>Ninepin</kb:name>
      <kb:population>640</kb:population>
      <kb:location>
        <gml:Point gml:id="pt-NP" srsName="urn:ogc:def:crs:OGC:1.3:CRS84"><gml:pos>-12.4402 46.9725</gml:pos></gml:Point>
      </kb:location>
    </kb:Town>
  </kb:featureMember>
  <kb:featureMember>
    <kb:Town gml:id="town-QC">
      <kb:name>Quillan Cross</kb:name>
      <kb:population>310</kb:population>
      <kb:location>
        <gml:Point gml:id="pt-QC" srsName="urn:ogc:def:crs:OGC:1.3:CRS84"><gml:pos>-12.6135 47.0885</gml:pos></gml:Point>
      </kb:location>
    </kb:Town>
  </kb:featureMember>
</kb:FeatureCollection>

Specifications

Format
GML 3.2
Features
5
Srs Name
urn:ogc:def:crs:OGC:1.3:CRS84
Coordinate Order
longitude latitude
Encoding
UTF-8
Line Endings
LF
Contrast With
kestrel-bay-territory.gml, which uses EPSG::4326 and latitude first

Testing contract

Expected to pass
Scenario
Convert both this file and the EPSG-URN territory GML and compare the resulting coordinates.
Expected result
Both yield towns at 47 N, 12.5 W; a reader that hardcodes one axis order gets one of the two files wrong by swapping longitude and latitude.

What is a .gml file?

GML (Geography Markup Language) is the OGC's XML grammar for geographic features. Features carry typed properties and geometry elements such as gml:Point, gml:LineString, gml:Polygon, and their aggregates, with coordinates in gml:posList or gml:coordinates and the coordinate reference system named by an srsName attribute. It is the payload format of WFS services and the base of several national and INSPIRE data standards.

How to use this file

Use an example .gml file to test GML parsers and XML-based GIS pipelines, checking namespace handling, srsName resolution including the axis-order rules that differ between GML versions, and conversion to GeoJSON or shapefile.

How to use this file for testing

“GML 3.2 — CRS84 srsName (longitude first)” is a deterministic Novus Examples fixture for Geospatial, Conversion testing, Error handling. GeoJSON, GPX, and KML files with points, lines, polygons, and tracks — for testing map tools, route parsers, and geo importers.

Documented properties for this file: UTF-8 · LF · GML 3.2. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Geospatial fixtures publish one invented territory across formats, with the coordinate reference system and feature counts documented in specs. Convert or reproject and diff against the twin in the same group; edge-case geometries state exactly which assumption they are built to break.

Generated by generation/geospatial.py. Free for any use, no attribution required — license.