[Geoserver-devel] Free marker templates for geoJSON getFeatureInfo customization

Dear all,
write to comunicate that I’ve opend a new ticket (https://osgeo-org.atlassian.net/browse/GEOS-9570) regarding the possibility to use free marker templates for getFeaureInfo with a GeoJSON output format
and made a pull request as well (https://github.com/geoserver/geoserver/pull/4181).
The new functionality will not break the existing one since by default the GeoJSON output will continue to work as it does now.
Thus no default templates will be added, and the output customization will be issued only if header_json.ftl, footer_json.ftl and content_json.ftl are explicitly
placed in the geoserver data dir by the user.

Best regards,
Marco Volpini

I am not sure I get it, geojson is just a standard what do you want to customize? And if you did would it still be geojson …

···


Jody Garnett

HTML is a standard too… and if you want, you can have the freemaker templates for it generate CSV instead.
The GeoJSON customization would be the same, allow to rewrite the response in a different fashion, calculations, mappings
and so on, whether the result is still GeoJSON is indeed up to whoever is building the templates.

Cheers
Andrea

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.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.

Okay so the ability to use expressions is the win, that is what I was missing.

···


Jody Garnett