Coder Social home page Coder Social logo

Comments (8)

LennertSchepers avatar LennertSchepers commented on August 15, 2024

Can we check which versions of PROJ & GDAL the servers are using?
I did a quick search and I don't think this is possible automatically. For example, looking at GeoServer (one of the most popular open source software for hosting GIS layers and OGC services) it's quite hard to determine the GDAL version used:

"GeoServer and GDAL are under continuous development/improvement so each release series of GeoServer has some requirements in terms of which GDAL
version need to be used. This is usually reported in the documentation unless there are typos or some sections don't get updated properly during updates. Example: since you are using 2.16, you need GDAL 2.x as reported here: https://docs.geoserver.org/stable/en/user/data/raster/gdal.html#installing-gdal-native-libraries " (from https://sourceforge.net/p/geoserver/mailman/message/36779617/ )

It's possible to retrieve the geoserver version (and other server metadata) by a REST API but it requires authentication. (See comment here: https://gis.stackexchange.com/a/269834 and https://docs.geoserver.org/stable/en/user/rest/about.html)

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

@salvafern what work is involved here? Thank you!

from emodnetwfs.

salvafern avatar salvafern commented on August 15, 2024

I am not sure I am reproducing correctly but I don't see a PROJ4 string now:

library(EMODnetWFS)
t <- emodnet_get_layers(service="geology_seabed_substrate_maps", layers = "seabed_substrate_1m", reduce_layers = T)
# ✔ WFS client created successfully
# ℹ Service: "https://drive.emodnet-geology.eu/geoserver/gtk/wfs"
# ℹ Version: "2.0.0"

sf::st_crs(t)
# Coordinate Reference System:
#   User input: epsg:3034 
# wkt:
#   PROJCRS["ETRS89-extended / LCC Europe",
#           BASEGEOGCRS["ETRS89",
#                       ENSEMBLE["European Terrestrial Reference System 1989 ensemble",
#                                MEMBER["European Terrestrial Reference Frame 1989"],
#                                MEMBER["European Terrestrial Reference Frame 1990"],
#                                MEMBER["European Terrestrial Reference Frame 1991"],
#                                MEMBER["European Terrestrial Reference Frame 1992"],
#                                MEMBER["European Terrestrial Reference Frame 1993"],
#                                MEMBER["European Terrestrial Reference Frame 1994"],
#                                MEMBER["European Terrestrial Reference Frame 1996"],
#                                MEMBER["European Terrestrial Reference Frame 1997"],
#                                MEMBER["European Terrestrial Reference Frame 2000"],
#                                MEMBER["European Terrestrial Reference Frame 2005"],
#                                MEMBER["European Terrestrial Reference Frame 2014"],
#                                ELLIPSOID["GRS 1980",6378137,298.257222101,
#                                          LENGTHUNIT["metre",1]],
#                                ENSEMBLEACCURACY[0.1]],
#                       PRIMEM["Greenwich",0,
#                              ANGLEUNIT["degree",0.0174532925199433]],
#                       ID["EPSG",4258]],
#           CONVERSION["Europe Conformal 2001",
#                      METHOD["Lambert Conic Conformal (2SP)",
#                             ID["EPSG",9802]],
#                      PARAMETER["Latitude of false origin",52,
#                                ANGLEUNIT["degree",0.0174532925199433],
#                                ID["EPSG",8821]],
#                      PARAMETER["Longitude of false origin",10,
#                                ANGLEUNIT["degree",0.0174532925199433],
#                                ID["EPSG",8822]],
#                      PARAMETER["Latitude of 1st standard parallel",35,
#                                ANGLEUNIT["degree",0.0174532925199433],
#                                ID["EPSG",8823]],
#                      PARAMETER["Latitude of 2nd standard parallel",65,
#                                ANGLEUNIT["degree",0.0174532925199433],
#                                ID["EPSG",8824]],
#                      PARAMETER["Easting at false origin",4000000,
#                                LENGTHUNIT["metre",1],
#                                ID["EPSG",8826]],
#                      PARAMETER["Northing at false origin",2800000,
#                                LENGTHUNIT["metre",1],
#                                ID["EPSG",8827]]],
#           CS[Cartesian,2],
#           AXIS["northing (N)",north,
#                ORDER[1],
#                LENGTHUNIT["metre",1]],
#           AXIS["easting (E)",east,
#                ORDER[2],
#                LENGTHUNIT["metre",1]],
#           USAGE[
#             SCOPE["Conformal mapping at scales of 1:500,000 and smaller."],
#             AREA["Europe - European Union (EU) countries and candidates. Europe - onshore and offshore: Albania; Andorra; Austria; Belgium; Bosnia and Herzegovina; Bulgaria; Croatia; Cyprus; Czechia; Denmark; Estonia; Faroe Islands; Finland; France; Germany; Gibraltar; Greece; Hungary; Iceland; Ireland; Italy; Kosovo; Latvia; Liechtenstein; Lithuania; Luxembourg; Malta; Monaco; Montenegro; Netherlands; North Macedonia; Norway including Svalbard and Jan Mayen; Poland; Portugal including Madeira and Azores; Romania; San Marino; Serbia; Slovakia; Slovenia; Spain including Canary Islands; Sweden; Switzerland; Turkey; United Kingdom (UK) including Channel Islands and Isle of Man; Vatican City State."],
#             BBOX[24.6,-35.58,84.73,44.83]],
#           ID["EPSG",3034]]

In any case I would say we move forward by:

  • Check if any EMODnet lot returns PROJ4 strings.
  • If they do: contact each EMODnet lot to ask what version of GDAL they use (ask via EMODnet Central Portal most likely). Ask if there are plans to update.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

Thanks!

Check if any EMODnet lot returns PROJ4 strings.

So you mean making one query per service to check?

from emodnetwfs.

salvafern avatar salvafern commented on August 15, 2024

Yes - if none return the PROJ4 string then we could just close this issue.

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

Checks under way! @salvafern could we also ask centrally about the versions of PROJ and GDAL used?

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

Does this look ok in terms of projections:

https://gist.github.com/maelle/20c8ba8950a4b68dcb92e5f8f734aca8

from emodnetwfs.

maelle avatar maelle commented on August 15, 2024

if no error/warning/message from sf, probably ok

from emodnetwfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.