Hello Andrea,
prior to porting back, I'd like to make another change. I'd like to have
a context/storage to share data between methods encodeSimpleFeatures and
writeExtraCollectionProperties. This is at least a requirement for
building and serializing a shared string table.
Since there is no dedicated instance of the ...GetFeatureResponse class
per request, using `this` is likely not an option. (If a single instance
of the class is guaranteed to be used for a single request, that is
while the write method has not yet finished, this could nonetheless be
done safely but that may be bad practice). Or am I wrong here? At least
I did not see a constructor call for every request...
What other options do I have? The simples would be (with the fewest
changes in existing code) to wrap/extend the GeoJSONBuilder class (which
is already passed to all relevant methods) and add a generic Map<String,
Object> storage. By overriding protected method getJSONBuilder, I could
bring my extended class into use. However, that's still a hack, isn't it?
Adding such a context storage to class
GeoJSONGetFeatureResponse.FeaturesInfo is another option. However, then
the FeaturesInfo instance should be passed to all (for the sake of
completeness) write... (writeCollectionCounts to
writeExtraCollectionProperties) methods in method
GeoJSONGetFeatureResponse.write.
Or is there already another concept of sharing volatile/temporary data
for a request/response which I did not see so far (like
ServletContext.set/getAttribute)?
Cheers
Carsten
Am 12.10.2022 um 14:11 schrieb Andrea Aime:
On Wed, Oct 12, 2022 at 10:48 AM Carsten Klein <c.kl...@datagis.com>
wrote:
OK, I will go for SpatialJSON.
I will now do the following:
* Rename all items according to SpatialJSON
* Throw an exception if the result contains complex features
* Update README.md and provide *.rst files in
doc/en/user/source/community/spatialjson
* Provide file ext-spatialjason.xml in src/community/release
* Add required profiles in src/community/pom.xml
* Provide a new (vanilla/)/ branch / PR
Did I forget anything?
Update also web/app/pom.xml with a profile that would include the
module (most community modules have one, check it out)
BTW, I did not yet see any Zip files when doing a nightly build
like so:
mvn package -P communityRelease
Is that a Windows issue? How to invoke Maven in order to build the
plugin Zip files?
Try with:
mvn assembly:single -N -PcommunityRelease
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 339 8844549
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
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel