Hi Maurizio + list

I’ve submitted a fix for this exact thing, but it hasn’t been applied since it 
breaks some GeoServer feature.

I’ll look and see if I can get it fixed some time this week.

-Jesper

> On 12 Jun 2018, at 16.19, Maurizio Nagni <maurizio.na...@rezatec.com> wrote:
> 
> Hello,
> 
> I have problem to extract a FeatureColleciton using 
> FeatureJSON.readFeatureCollection(featureCollectionJson)
> 
> The reason for this is that in FeatureHandler.startObjectEntry(String key) it 
> is assumed that the "properties" element is only an ArrayList: however 
> according to geoJSON specification 
> (https://tools.ietf.org/html/rfc7946#page-12) can be any JSON object (and in 
> my case is another JSONObject).
> 
> Sample data can be found from this freely available NASA service
> 
> https://power.larc.nasa.gov/cgi-bin/v1/DataAccess.py?request=execute&outputList=JSON&user=compass&tempAverage=DAILY&userCommunity=AG&lat=12&lon=34&identifier=SinglePoint&siteElev=0&parameters=ALLSKY_TOA_SW_DWN%2CALLSKY_SFC_SW_DWN%2CALLSKY_SFC_LW_DWN%2CT2M%2CT2M_MIN%2CT2M_MAX%2CRH2M%2CT2MDEW%2CPRECTOT%2CWS10M&startDate=20170101&endDate=20171201
> 
> For the moment the only trick I can use is to transform the JSONObject before 
> use readFeatureCollection but I hope it could be a quick fix in some future 
> release (actually I use 19.1). 
> 
> Maurizio Nagni
> Software Engineer 
>  
> <Outlook-oveyad51.png>
>  
> We have relocated to our brand new global headquarters.
> <Outlook-mrxoulim.png>
> Rezatec Limited: Quad One, Becquerel Avenue, Harwell, Didcot, Oxfordshire 
> OX11 0RA, United Kingdom
> Switchboard: +44 (0)1865 817500
> maurizio.na...@rezatec.com
> www.rezatec.com
>  
> Image of building: Courtesy of Harwell Campus | Map image: Google
> This e-mail and any attachments are confidential and may contain information 
> that is privileged. If you are not the named recipient, or responsible for 
> delivering the message to the named recipient, you must not use this e-mail 
> or its attachments in any manner. If you have received this communication in 
> error, please inform the sender and immediately delete this message. Thank 
> you. 
> 
> Although this e-mail and its attachments have been checked by an up-to-date 
> virus-checking program before transmission, it is your responsibility as 
> recipient to ensure they are actually virus free when received. 
> 
> Rezatec Limited is a private limited company registered in England, with 
> registered number 07940023 and registered office at Rezatec Limited, Quad 
> One, Becquerel Avenue, Harwell, Didcot, Oxfordshire OX11 0RA, United Kingdom.
> 
>  
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to