deegree3 icon indicating copy to clipboard operation
deegree3 copied to clipboard

Adding support for EPSG:2065 and EPSG:5514

Open Kate-Lyndegaard opened this issue 2 years ago • 3 comments

Hi,

I would like to add support for EPSG:2065 and EPSG:5514 in deegree.

I manually created the deegree crs configuration files based on viewing existing configuration examples. I cannot find any documentation on how to create the files.

My datasets publish, however they are not displaying correctly.

EPSG: 5514 grafik

EPSG:2065 grafik

CONFIGURATION FILES EPSG:5514

Added to ..datum-definitions.xml

<crs:GeodeticDatum>

      <crs:Id>epsg:6156</crs:Id>

    <crs:Name>System of the Unified Trigonometrical Cadastral Network</crs:Name>

    <crs:Version>2018-02-16 ChangeID 2017.037</crs:Version>

    <crs:UsedEllipsoid>epsg:7004</crs:UsedEllipsoid>

    <crs:UsedPrimeMeridian>urn:opengis:def:crs:epsg::8901</crs:UsedPrimeMeridian>

</crs:GeodeticDatum>

Added to ..crs-defintions.xml

<crs:GeographicCRS>

      <crs:Id>epsg:4156</crs:Id>

    <crs:Id>http://www.opengis.net/gml/srs/epsg.xml#4156</crs:Id>

    <crs:Id>urn:ogc:def:crs:epsg::4156</crs:Id>

    <crs:Id>urn:opengis:def:crs:epsg::4156</crs:Id>

    <crs:Name>S-JTSK</crs:Name>

    <crs:Version>2018-02-16 ChangeID 2017.037</crs:Version>

    <crs:Description>Handmade proj4 geographic crs definition (parsed from nad/epsg).</crs:Description>

    <crs:AreaOfUse>12.09,47.73,22.56,51.06</crs:AreaOfUse>

    <crs:AreaOfUse>Czech Republic; Slovakia.</crs:AreaOfUse>

    <crs:Axis>

            <crs:Name>longitude</crs:Name>

        <crs:Units>degree</crs:Units>

        <crs:AxisOrientation>east</crs:AxisOrientation>

    </crs:Axis>

    <crs:Axis>

            <crs:Name>latitude</crs:Name>

            <crs:Units>degree</crs:Units>

        <crs:AxisOrientation>north</crs:AxisOrientation>

    </crs:Axis>

    <crs:UsedDatum>epsg:6156</crs:UsedDatum>

</crs:GeographicCRS>

<crs:ProjectedCRS>

      <crs:Id>epsg:5514</crs:Id>

      <crs:Id>http://www.opengis.net/gml/srs/epsg.xml#5514</crs:Id>

      <crs:Id>urn:ogc:def:crs:epsg::5514</crs:Id>

      <crs:Id>urn:opengis:def:crs:epsg::5514</crs:Id>

      <crs:Name>S-JTSK / Krovak East North</crs:Name>

      <crs:Version>2018-02-16 ChangeID 2017.037</crs:Version>

      <crs:AreaOfUse>12.09,47.73,22.56,51.06</crs:AreaOfUse>

      <crs:AreaOfUse>Czech Republic; Slovakia.</crs:AreaOfUse>

      <crs:Axis>

                  <crs:Name>x</crs:Name>

                  <crs:Units>metre</crs:Units>

                  <crs:AxisOrientation>east</crs:AxisOrientation>

      </crs:Axis>

      <crs:Axis>

                  <crs:Name>y</crs:Name>

                  <crs:Units>metre</crs:Units>

                  <crs:AxisOrientation>north</crs:AxisOrientation>

      </crs:Axis>

      <crs:UsedGeographicCRS>epsg:4156</crs:UsedGeographicCRS>

      <crs:UsedProjection>5510</crs:UsedProjection>

</crs:ProjectedCRS>

Added to ..projection-definitions.xml

<crs:TransverseMercator>

      <crs:Id>epsg:5510</crs:Id>

      <crs:Name>Krovak East North (Greenwich)</crs:Name>

      <crs:LatitudeOfNaturalOrigin>49.5</crs:LatitudeOfNaturalOrigin>

<crs:LongitudeOfNaturalOrigin>24.8333333333333</crs:LongitudeOfNaturalOrigin>

      <crs:ScaleFactor>0.9999</crs:ScaleFactor>

      <crs:FalseEasting>0</crs:FalseEasting>

      <crs:FalseNorthing>0</crs:FalseNorthing>

</crs:TransverseMercator>

CONFIGURATION FILES EPSG:2065

Added to ..datum-definitions.xml

<crs:GeodeticDatum>

      <crs:Id>epsg:6818</crs:Id>

    <crs:Name>System of the Unified Trigonometrical Cadastral Network (Ferro)</crs:Name>

    <crs:Version>2018-02-16 ChangeID 2017.037</crs:Version>

    <crs:UsedEllipsoid>epsg:7004</crs:UsedEllipsoid>

    <crs:UsedPrimeMeridian>urn:opengis:def:crs:epsg::8909</crs:UsedPrimeMeridian>

</crs:GeodeticDatum>

Added to ..crs-definitions.xml

<crs:GeographicCRS>

      <crs:Id>epsg:4818</crs:Id>

    <crs:Id>http://www.opengis.net/gml/srs/epsg.xml#4818</crs:Id>

    <crs:Id>urn:ogc:def:crs:epsg::4818</crs:Id>

    <crs:Id>urn:opengis:def:crs:epsg::4818</crs:Id>

    <crs:Name>S-JTSK (Ferro)</crs:Name>

    <crs:Version>2018-02-16 ChangeID 2017.037</crs:Version>

    <crs:Description>Handmade proj4 geographic crs definition (parsed from nad/epsg).</crs:Description>

    <crs:AreaOfUse>12.09,47.73,22.56,51.06</crs:AreaOfUse>

    <crs:AreaOfUse>Czech Republic; Slovakia.</crs:AreaOfUse>

    <crs:Axis>

            <crs:Name>longitude</crs:Name>

        <crs:Units>degree</crs:Units>

        <crs:AxisOrientation>east</crs:AxisOrientation>

    </crs:Axis>

    <crs:Axis>

            <crs:Name>latitude</crs:Name>

            <crs:Units>degree</crs:Units>

        <crs:AxisOrientation>north</crs:AxisOrientation>

    </crs:Axis>

    <crs:UsedDatum>epsg:6818</crs:UsedDatum>

</crs:GeographicCRS>

<crs:ProjectedCRS>

      <crs:Id>epsg:2065</crs:Id>

      <crs:Id>http://www.opengis.net/gml/srs/epsg.xml#2065</crs:Id>

      <crs:Id>urn:ogc:def:crs:epsg::2065</crs:Id>

      <crs:Id>urn:opengis:def:crs:epsg::2065</crs:Id>

      <crs:Name>S-JTSK (Ferro) / Krovak</crs:Name>

      <crs:Version>2018-02-16 ChangeID 2017.037</crs:Version>

      <crs:AreaOfUse>12.09,47.73,22.56,51.06</crs:AreaOfUse>

      <crs:AreaOfUse>Czech Republic; Slovakia.</crs:AreaOfUse>

      <crs:Axis>

                  <crs:Name>x</crs:Name>

                  <crs:Units>metre</crs:Units>

                  <crs:AxisOrientation>south</crs:AxisOrientation>

      </crs:Axis>

      <crs:Axis>

                  <crs:Name>y</crs:Name>

                  <crs:Units>metre</crs:Units>

                  <crs:AxisOrientation>west</crs:AxisOrientation>

      </crs:Axis>

      <crs:UsedGeographicCRS>epsg:4818</crs:UsedGeographicCRS>

      <crs:UsedProjection>19952</crs:UsedProjection>

</crs:ProjectedCRS>

Added to ..projection-definitions.xml

<crs:TransverseMercator>

      <crs:Id>epsg:19952</crs:Id>

      <crs:Name>Krovak</crs:Name>

      <crs:LatitudeOfNaturalOrigin>49.5</crs:LatitudeOfNaturalOrigin>

    <crs:LongitudeOfNaturalOrigin>42.5</crs:LongitudeOfNaturalOrigin>

      <crs:ScaleFactor>0.9999</crs:ScaleFactor>

      <crs:FalseEasting>0</crs:FalseEasting>

      <crs:FalseNorthing>0</crs:FalseNorthing>

</crs:TransverseMercator>

Looking at the conversion parameters in the EPSG database, there are additional parameters however I don't know how to provide these in the deegree files.

Example - 5514 Conversion Parameters:

grafik

Can anyone tell me what is wrong?

Kind regards, Kate

--

Kate Lyndegaard

Kate-Lyndegaard avatar Sep 30 '22 14:09 Kate-Lyndegaard

There is some limited documentation in the XML schema located here: http://schemas.deegree.org/crs/3.4.0/crsdefinition.xsd

copierrj avatar Oct 05 '22 15:10 copierrj

The answer on this question requires quite some research on the code of the CRS subsystem of deegree. Currently no committer is active and can answer this. You may consider to search for a similar CRS in the deegree configuration and try to adjust it to your needs.

tfr42 avatar Oct 05 '22 15:10 tfr42

@copierrj @tfr42 Thank you for responding, however based on the schema @copierrj shared, I cannot see how I can add the azimuth to the definition. AFAIK Krovak is an oblique version of the Lambert Conformal Conic projection with a pseudo standard parallel that intersects the centerline of the projection at a defined azimuth. I can try using the LambertConformalConicType instead of the TransverseMercatorType.

Kate-Lyndegaard avatar Oct 18 '22 10:10 Kate-Lyndegaard