#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)
Change History (8)
by , 6 years ago
Attachment: | no_features_srid_4326.jml added |
---|
by , 6 years ago
Attachment: | no_features_no_srid.jml added |
---|
by , 6 years ago
Attachment: | one_point_no_srid.jml added |
---|
by , 6 years ago
Attachment: | one_point_srid_4326.jml added |
---|
comment:1 by , 6 years ago
Milestone: | → 2.3.0 |
---|---|
Owner: | changed from | to
In 41387: