Hey Pierre,
It's appreciated if you can keep questions on the public list.
It would be awesome if you could implement the encode bindings. Generally
the way it works is that we have "bindings" that correspond to elements and
types in the KML schema. The bindings live in these packages.
https://github.com/boundlessgeo/geotools/tree/master/modules/extension/xsd/xsd-kml/src/main/java/org/geotools/kml/bindings
https://github.com/boundlessgeo/geotools/tree/master/modules/extension/xsd/xsd-kml/src/main/java/org/geotools/kml/v22/bindings
Which bindings are used are controlled by these two classes.
-
https://github.com/boundlessgeo/geotools/blob/master/modules/extension/xsd/xsd-kml/src/main/java/org/geotools/kml/KMLConfiguration.java
-
https://github.com/boundlessgeo/geotools/blob/master/modules/extension/xsd/xsd-kml/src/main/java/org/geotools/kml/v22/KMLConfiguration.java
Because much of the KML 2.2 schema is the same as 2.1 the 22 config uses a
lot of the 21 bindings.
If you look at the binding classes you'll see some of them implement either
a getProperty() method or an encode() method. Those are the two methods
that are important for implementing the encoding side.
Hope that helps!
-Justin
On Wed, Nov 19, 2014 at 1:46 AM, Pierre Mauduit <
[email protected]> wrote:
> Hi,
>
>
>
>> I don't think your missing anything. It looks like only the parse
>> bindings for 2.2 have been implemented and not the encoding ones.
>>
>>
> Thanks Justin, you seemed to say in your mail from february 2013 that it
> might not be that hard to implement ; do you think I can give it a shot,
> and if so, do you have some insights to give on the code so that I can try ?
>
> Cheers,
>
>
> -- Pierre
>
>
--
Justin Deoliveira
VP Engineering | Boundless <http://boundlessgeo.com/>
[email protected]
@boundlessgeo <http://twitter.com/boundlessgeo/>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel