Hi,

we are using the newest geotools version 17.1

When encoding our data into kml we encounter the following problems:

1.) When encoding as kml 2.1 then the Metadata is missing (import 
org.geotools.kml.*;)

2.) When encoding as kml 2.2 then the geometry is missing (import 
org.geotools.kml.v22.*;)

This is our feature type:

SimpleFeatureTypeBuilder typeBuilder = new SimpleFeatureTypeBuilder();
      typeBuilder.setName("occurrences");
      typeBuilder.add("geometry", Geometry.class, DefaultGeographicCRS.WGS84);
      typeBuilder.add("name", String.class);
      typeBuilder.add("description", String.class);
      typeBuilder.add("uuid", String.class);
      SimpleFeatureType type = typeBuilder.buildFeatureType();

Anybody any ideas? We appreciate any help.

With kind regards,

Birke
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to