Class PlacemarkIO
java.lang.Object
org.esa.snap.core.dataio.placemark.PlacemarkIO
Utility class, that reads and writes placemarks from and to various plain text formats.
- Since:
- BEAM 1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapFileFilterstatic PlacemarkcreatePlacemark(org.jdom2.Element element, PlacemarkDescriptor descriptor, GeoCoding geoCoding) Creates a new placemark from an XML element and a given symbol.static SnapFileFilterstatic SnapFileFilterreadPlacemarks(Reader reader, GeoCoding geoCoding, PlacemarkDescriptor placemarkDescriptor) static voidwriteColor(String tagName, int indent, Color color, XmlWriter writer) static voidwritePlacemarkKmzFile(OutputStream os, List<PlacemarkData> placemarks, ProgressMonitor pm) static voidwritePlacemarksFile(Writer writer, List<Placemark> placemarks) static voidwritePlacemarksWithAdditionalData(Writer writer, String roleLabel, String productName, List<Placemark> placemarkList, List<Object[]> valueList, String[] standardColumnNames, String[] additionalColumnNames) static void
-
Field Details
-
FILE_EXTENSION_FLAT_OLD
- See Also:
-
FILE_EXTENSION_XML_OLD
- See Also:
-
FILE_EXTENSION_FLAT_TEXT
- See Also:
-
FILE_EXTENSION_PLACEMARK
- See Also:
-
FILE_EXTENSION_KMZ
- See Also:
-
TAG_FILL_COLOR
- See Also:
-
TAG_OUTLINE_COLOR
- See Also:
-
-
Method Details
-
readPlacemarks
public static List<Placemark> readPlacemarks(Reader reader, GeoCoding geoCoding, PlacemarkDescriptor placemarkDescriptor) throws IOException - Throws:
IOException
-
writePlacemarksWithAdditionalData
-
writePlacemarksFile
public static void writePlacemarksFile(Writer writer, List<Placemark> placemarks) throws IOException - Throws:
IOException
-
writePlacemarkKmzFile
public static void writePlacemarkKmzFile(OutputStream os, List<PlacemarkData> placemarks, ProgressMonitor pm) throws IOException - Throws:
IOException
-
createTextFileFilter
-
createPlacemarkFileFilter
-
createKmzFileFilter
-
createPlacemark
public static Placemark createPlacemark(org.jdom2.Element element, PlacemarkDescriptor descriptor, GeoCoding geoCoding) Creates a new placemark from an XML element and a given symbol.- Parameters:
element- the element.descriptor- the descriptor of the placemark.geoCoding- the geoCoding to used by the placemark. Can benull.- Returns:
- the placemark created.
- Throws:
NullPointerException- if element is nullIllegalArgumentException- if element is invalid
-
writeXML
-
writeColor
-