Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7215 closed enhancement (fixed)

Add support for CRS into OpenJUMP JML driver

Reported by: Jukka Rahkonen Owned by: Even Rouault
Priority: normal Milestone: 2.3.0
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

OpenJUMP adds support for coordinate reference systems into its native JML format in program version 1.12. The support is implemented by adding a GML2 style boundedBy element into featureCollection. In addition, a new entry is needed for the internal <JCSGMLInputTemplate> that is written into the beginning of the JUMP JML file

<CRSElement>boundedBy</CRSElement>

<featureCollection>
  <gml:boundedBy>
    <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
      <gml:coordinates decimal="." cs="," ts=" ">26.47,45.48 26.47,45.48</gml:coordinates>
    </gml:Box>
  </gml:boundedBy>

Special cases:

1) If CRS is not known or CRS can't be expressed with an EPSG code, gml:Box is written without srsName

2) If extent is not known because the layer is either empty or all the features have empty geometries a special fake Box is used

 <gml:boundedBy>
    <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
      <gml:coordinates decimal="." cs="," ts=" ">0.00,0.00 -1.00,-1.00</gml:coordinates>
    </gml:Box>
  </gml:boundedBy>

The change is backward compatible for older OpenJUMP versions thus no creation option for old style JML is not needed.

Attachments (4)

no_features_srid_4326.jml (680 bytes ) - added by Jukka Rahkonen 6 years ago.
no_features_no_srid.jml (625 bytes ) - added by Jukka Rahkonen 6 years ago.
one_point_no_srid.jml (822 bytes ) - added by Jukka Rahkonen 6 years ago.
one_point_srid_4326.jml (877 bytes ) - added by Jukka Rahkonen 6 years ago.

Download all attachments as: .zip

Change History (8)

by Jukka Rahkonen, 6 years ago

Attachment: no_features_srid_4326.jml added

by Jukka Rahkonen, 6 years ago

Attachment: no_features_no_srid.jml added

by Jukka Rahkonen, 6 years ago

Attachment: one_point_no_srid.jml added

by Jukka Rahkonen, 6 years ago

Attachment: one_point_srid_4326.jml added

comment:1 by Even Rouault, 6 years ago

Milestone: 2.3.0
Owner: changed from warmerdam to Even Rouault

comment:2 by Even Rouault, 6 years ago

In 41387:

JML: add support for reading SRS from gml:Box element (refs #7215)

comment:3 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 41388:

JML: add support for writing SRS and layer extent in gml:Box element (fixes #7215)

comment:4 by Even Rouault, 6 years ago

In 41389:

JML: update doc [ci skip] (refs #7215)

Note: See TracTickets for help on using tickets.