Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoundCRS does not recognize Usage node #2813

Closed
olivier80 opened this issue Aug 18, 2021 · 0 comments
Closed

BoundCRS does not recognize Usage node #2813

olivier80 opened this issue Aug 18, 2021 · 0 comments
Assignees

Comments

@olivier80
Copy link

It is not possible to create a BoundCRS with an area of use using wkt or projjson.

For example, if I use proj_create() with following WKT :

BOUNDCRS[
    SOURCECRS[
        PROJCRS["Monte Mario / Italy zone 2",
            BASEGEOGCRS["Monte Mario",
                DATUM["Monte Mario", ELLIPSOID["International 1924",6378388,297, LENGTHUNIT["metre",1]]],
                PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]],
                ID["EPSG",4265]],
            CONVERSION["unnamed",
                METHOD["Transverse Mercator", ID["EPSG",9807]],
                PARAMETER["Latitude of natural origin",0, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8801]],
                PARAMETER["Longitude of natural origin",15, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8802]],
                PARAMETER["Scale factor at natural origin",0.9996, SCALEUNIT["unity",1], ID["EPSG",8805]],
                PARAMETER["False easting",2520000, LENGTHUNIT["metre",1], ID["EPSG",8806]],
                PARAMETER["False northing",0, LENGTHUNIT["metre",1], ID["EPSG",8807]]],
            CS[Cartesian,2],
                AXIS["x",east, ORDER[1], LENGTHUNIT["metre",1]],
                AXIS["y",north, ORDER[2], LENGTHUNIT["metre",1]],
            ID["EPSG",3004]]],
    TARGETCRS[
        GEOGCRS["WGS 84",
            DATUM["World Geodetic System 1984", ELLIPSOID["WGS 84",6378137,298.257223563, LENGTHUNIT["metre",1]]],
            PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]],
            CS[ellipsoidal,2],
                AXIS["latitude",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]],
                AXIS["longitude",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]],
            ID["EPSG",4326]]],
    ABRIDGEDTRANSFORMATION["Transformation from Monte Mario to WGS84",
        METHOD["Position Vector transformation (geog2D domain)", ID["EPSG",9606]],
        PARAMETER["X-axis translation",-50.2, ID["EPSG",8605]],
        PARAMETER["Y-axis translation",-50.4, ID["EPSG",8606]],
        PARAMETER["Z-axis translation",84.8, ID["EPSG",8607]],
        PARAMETER["X-axis rotation",-0.69, ID["EPSG",8608]],
        PARAMETER["Y-axis rotation",-2.012, ID["EPSG",8609]],
        PARAMETER["Z-axis rotation",0.459, ID["EPSG",8610]],
        PARAMETER["Scale difference",0.99997192, ID["EPSG",8611]]],
    USAGE[
        SCOPE["unknown"],
        AREA["Italy - Sicily onshore"],
        BBOX[36.59,12.36,38.35,15.71]]
]

proj_get_area_of_use() does not return the BBOX in the USAGE node.

It seems that USAGE node is not taken account in buildBoundCRS() in io.cpp. Same behavior in the json parser.

@rouault rouault self-assigned this Aug 18, 2021
rouault added a commit to rouault/PROJ that referenced this issue Aug 18, 2021
rouault added a commit to rouault/PROJ that referenced this issue Aug 18, 2021
rouault added a commit to rouault/PROJ that referenced this issue Aug 18, 2021
…rea/extent/id attributes (fixes OSGeo#2813)

For PROJJSON only, also accept the ``name`` attribute.
rouault added a commit to rouault/PROJ that referenced this issue Aug 18, 2021
…rea/extent/id attributes (fixes OSGeo#2813)

For PROJJSON only, also accept the ``name`` attribute.
rouault added a commit to rouault/PROJ that referenced this issue Aug 18, 2021
…rea/extent/id attributes (fixes OSGeo#2813)

For PROJJSON only, also accept the ``name`` attribute.
rouault added a commit to rouault/PROJ that referenced this issue Aug 19, 2021
…rea/extent/id attributes (fixes OSGeo#2813)

For PROJJSON only, also accept the ``name`` attribute.
github-actions bot pushed a commit that referenced this issue Aug 19, 2021
BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (fixes #2813)
rouault added a commit that referenced this issue Aug 19, 2021
[Backport 8.1] BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (fixes #2813)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants