문제

Good morning,

I want to create a Google Maps overlay from GeoTiff data I read with Geotools. I'm new to Geotools and I wasn't able to find any documentation about creating map tiles with this framework. Do you guys know of any such possibility or plugin? Or is it dead simple to manually tile the images?

EDIT: I now understand there is a PyramidBuilder for building image pyramids, there is now the problem of aligning my tiles to the google maps tiles.

If any of you has some experience or good intuition on this problem, glad to hear it:)

Thanks! Patrick

도움이 되었습니까?

해결책

You are working too hard; install GeoServer (which is built using GeoTools) and it can serve your data out as KML for a google maps overlay. You can dive into GeoTools and look at its KML classes; but life is short.

To answer your GeoTools provides:

    Encoder encoder = new Encoder(new KMLConfiguration());
    encoder.setIndenting(true);
    encoder.encode(features, KML.kml, outputstream );

I will add this to the documentation for kml:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top