Indeed, does seem a bit strange for an implementation to throw that
exception there. I would vote for just updating ContentFeatureCollection to
return null from that method. It appears many other FeatureCollection
implementations return some default when there is no id specified...
perhaps CFC should do the same.

On Thu, Nov 15, 2012 at 6:30 AM, Andrea Aime
<andrea.a...@geo-solutions.it>wrote:

> On Mon, Nov 12, 2012 at 4:42 PM, Peter Hopfgartner <
> peter.hopfgart...@r3-gis.com> wrote:
>
>>  With the following
>>
>>
>> https://github.com/phopfgartner/geotools/commit/e9d4c83710c43578424f6fdc0d384df00f9c60ac
>>
>> a ContentFeatureCollection could be encoded to KML.
>> As by now, since the call to getID() on a ContentFeatureCollection
>> generates a UnsupportedOperationException, these kind of Collections can
>> not be handled.
>>
>
> Uh, works for me, although I'm not sure if a collection throwin an
> exception to getId() is
> properly implemented.
>
> The javadoc does not say anything about the method being optional:
>
>     /**
>      * ID used when serializing to GML
>      */
>     String getID();
>
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to