KML example

7 messages Options
Embed this post
Permalink
mbedward

KML example

Reply Threaded More More options
Print post
Permalink
Hi Justin and all,

Inspired by a KML question on the user list today I've added a simple
KML writing example to demo/example...

http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/xml/KMLExample.java

It runs OK but the method demonstrating feature collection -> KML
produces many warnings like this...

WARNING: org.geotools.feature.DefaultFeatureCollection@b96738
(org.geotools.feature.DefaultFeatureCollection)  is not of type
org.opengis.feature.simple.SimpleFeature
Nov 2, 2009 3:26:50 PM org.geotools.xml.impl.GetPropertyExecutor visit

The unit test class KMLParsingTest also generates these warnings.

Is there some way to avoid or suppress them ?

cheers
Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
Chris Holmes

Re: KML example

Reply Threaded More More options
Print post
Permalink
Note that GeoServer has done a lot of work on KML output.  We never put
it in to GeoTools since no one ever asked about it, and a lot of it's
ended up using GeoServer specific stuff.  But in general we're happy to
have things migrate from GeoServer to GeoTools and can redo the license
to be lgpl.  So if you're interested in taking the code and making it
more generic for GeoTools let us know.

Michael Bedward wrote:

> Hi Justin and all,
>
> Inspired by a KML question on the user list today I've added a simple
> KML writing example to demo/example...
>
> http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/xml/KMLExample.java
>
> It runs OK but the method demonstrating feature collection -> KML
> produces many warnings like this...
>
> WARNING: org.geotools.feature.DefaultFeatureCollection@b96738
> (org.geotools.feature.DefaultFeatureCollection)  is not of type
> org.opengis.feature.simple.SimpleFeature
> Nov 2, 2009 3:26:50 PM org.geotools.xml.impl.GetPropertyExecutor visit
>
> The unit test class KMLParsingTest also generates these warnings.
>
> Is there some way to avoid or suppress them ?
>
> cheers
> Michael
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel

--
Chris Holmes
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
Justin Deoliveira

Re: KML example

Reply Threaded More More options
Print post
Permalink
In reply to this post by mbedward
Hi Michael,

Yeah, this warning actually pops up when encoding GML as well. It really
should not be logged as a warning, it is something that i have been
meaning to fix. I think there is a bug report open for this. I will put
my money where my mouth is and schedule it high priority for 2.6.1

-Justin

Michael Bedward wrote:

> Hi Justin and all,
>
> Inspired by a KML question on the user list today I've added a simple
> KML writing example to demo/example...
>
> http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/xml/KMLExample.java
>
> It runs OK but the method demonstrating feature collection -> KML
> produces many warnings like this...
>
> WARNING: org.geotools.feature.DefaultFeatureCollection@b96738
> (org.geotools.feature.DefaultFeatureCollection)  is not of type
> org.opengis.feature.simple.SimpleFeature
> Nov 2, 2009 3:26:50 PM org.geotools.xml.impl.GetPropertyExecutor visit
>
> The unit test class KMLParsingTest also generates these warnings.
>
> Is there some way to avoid or suppress them ?
>
> cheers
> Michael
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
mbedward

Re: KML example

Reply Threaded More More options
Print post
Permalink
Hi Justin,

That's would be great - thanks !  Once the warnings are squashed I'll
create a KML page to add to the growing examples section of the web
site.  Let me know if there's anything you'd particularly like to see
covered (or if you'd prefer to do the page yourself).

cheers
Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
Ben Caradoc-Davies

Re: KML example

Reply Threaded More More options
Print post
Permalink
In reply to this post by Justin Deoliveira
On 02/11/09 16:53, Justin Deoliveira wrote:
> Hi Michael,
> Yeah, this warning actually pops up when encoding GML as well. It really
> should not be logged as a warning, it is something that i have been
> meaning to fix. I think there is a bug report open for this. I will put
> my money where my mouth is and schedule it high priority for 2.6.1
> -Justin

Thanks!

[
Gabriel and I have been grizzling about this one for a while. ;-{)
]


--
Ben Caradoc-Davies <[hidden email]>
Software Engineer, CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
mbedward

Re: KML example

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chris Holmes
Hi Chris,

Many thanks for that - it sounds very interesting.

I have to confess that I'm a complete KML neophyte (I mostly just sit
in the corner and play with shapefiles) so I'll leave it to Justin and
the others to respond.

cheers
Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
aaime

Re: KML example

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ben Caradoc-Davies
Ben Caradoc-Davies ha scritto:

> On 02/11/09 16:53, Justin Deoliveira wrote:
>> Hi Michael,
>> Yeah, this warning actually pops up when encoding GML as well. It really
>> should not be logged as a warning, it is something that i have been
>> meaning to fix. I think there is a bug report open for this. I will put
>> my money where my mouth is and schedule it high priority for 2.6.1
>> -Justin
>
> Thanks!
>
> [
> Gabriel and I have been grizzling about this one for a while. ;-{)
> ]

I symphatize with both the thanks and the "annoyed by extra logging
message" club :-)

Cheers
Andrea


--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-devel