I am developing a GIS-based desktop tool for a land area in geotool.

How we can convert shapefile into KML file?

closed as off-topic by Ian Turton Jan 28 '18 at 14:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – Ian Turton
If this question can be reworded to fit the rules in the help center, please edit the question.


You read in the shapefile using a shapefile datastore and write out the KML using a KML datastore.

  • While correct, a better answer would include some kind of sample code or a link to a relevant sample... – spy Jan 28 '18 at 14:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.