On Wed, Dec 22, 2021 at 10:52 PM Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> Hi,
>
>
>
> +1, much easier than to play with schema.xsd and offers more features,
> especially for non-SQL data sources when a database view is not an option.
>

Yes, that's the main target.


> Maybe there could be a test button that tests if new names are valid in
> XML and if type casts are possible and/or lossless.
>

Service validity checks would be a GSIP of their own, WFS is not
necessarily active, and not necessarily used to serve data in GML
(I see installations where WFS is just a means to get GeoJSON for example).

Making sure the type casts are sensible is an interesting idea...
conversion is performed via GeoTools Converter implementations,
which are pluggable. What I could do, is to add a check on whether a
converter exists, that goes from the native type to the
target type, using Converters.getConverterFactories(source, target).
However, I have no way to tell if the conversion
will be lossless, or not.... maybe the feature type should be marked as
read-only in that case, as there is no guarantee
the back-mapping would produce something sensible... on the other end, it
might, and the mechanism would deny also
working situations.
What about documenting the issue, and letting the admin decide whether
editing should be allowed, using the security
sub-system (there is no other way to make a feature type read only)?

Cheers
Andrea

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928

https://www.geosolutionsgroup.com/

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
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to