Hello everyone,

Thanks for your comments. I suggest then that I implement the behaviour as it was suggested in the example of WFS 2.0 specs, since this is also the least invasive for the geotools/geoserver code, and there don't appear to be any particular objections against it. I suggest also however, that I add a boolean parameter to the method in the CRS utility class "allowDifferentDimension" so that the method is generic enough for other purposes and its behaviour with regards to dimensional differences is clear.

Is this a solution that makes sense ?

Kind Regards

Niels

On 1/10/2021 09:43, Andrea Aime wrote:
On Mon, Oct 11, 2021 at 7:05 PM Niels Charlier <ni...@scitus.be <mailto:ni...@scitus.be>> wrote:

    Hello Andrea,

    I did not mean to misrepresent you. I actually thought your
    suggestion made sense. The new method in the CRS class is
    (currently) only intended for reprojection.


The CRS class is a generic facade to the capabilities of the referencing subsystem, exposing some of its functionality in a simpler way. Its javadoc states "Simple utility class for making use of the {@linkplain CoordinateReferenceSystem coordinate  reference system} and associated {@linkplain org.opengis.referencing.Factory} implementations."

While most of the methods deal with reprojection, some have nothing to do with it, like "lookupIdentifier". The class is definitely not meant to be restricted to reprojection alone, nor has a specific focus on WFS related activities. As said before, it should represent the true capabilities of the referencing subsystem, modules that need specific restrictions
should have their

    As far as the standard goes, I was referring to the ""OGC® Web
    Feature Service 2.0 Interface Standard – With Corrigendum"

    sections: 7.9.2.4.4 srsName parameter
    (https://docs.opengeospatial.org/is/09-025r2/09-025r2.html#95
    <https://docs.opengeospatial.org/is/09-025r2/09-025r2.html#95>)
    and 7.9.2.4.4.2 compatibly coordinate systems

    And in particular this example:
    "EXAMPLE: A feature with both 2D and 3D geometry properties is
    requested with srsName set to a 2D CRS; the 2D property is encoded
    in the requested CRS, and the 3D property is encoded with some 3D
    CRS identified in the srsName of the geometry."

Oh, quite interesting!
In the meantime, I've got this two bits of response:

- Regarding OGC API - Features: "if the server implements Part 2 and a CRS is specified then all geometries in the response must be reprojected to the requested CRS in the response." - Regarding WFS: " WFS is a little more flexible since you can have multiple queries in one request each in a different CRS"

I've added the quote above in my chat with the OGC people, let's see if it stirs up more feedback. If you want to participate directly, get on gitter and get in this chat: https://gitter.im/opengeospatial/WFS_FES <https://gitter.im/opengeospatial/WFS_FES>

Cheers
Andrea
==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us>for more information.==Ing. Andrea Aime @geowolfTechnical Lead

GeoSolutions Groupphone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928


https://www.geosolutionsgroup.com/ <https://www.geosolutionsgroup.com/>

http://twitter.com/geosolutions_it <http://twitter.com/geosolutions_it>

-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to