public class GeometryTypeConverterFactory extends Object implements ConverterFactory
- single type geometries (Point, LineString, Polygon) are converted to multi types (MultiPoint, LineString, MultiPolygon) containing 1 geometry element. - GeometryCollection(s) are converted to multi types, converting each element to the permitted type (Point, LineString or Polygon).
SAFE_CONVERSION| Constructor and Description |
|---|
GeometryTypeConverterFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyUserProperties(Geometry sourceGeometry,
Geometry destGeometry) |
Converter |
createConverter(Class<?> source,
Class<?> target,
Hints hints)
Creates a
Converter instance for converting one type of object to another. |
public Converter createConverter(Class<?> source, Class<?> target, Hints hints)
ConverterFactoryConverter instance for converting one type of object to another.createConverter in interface ConverterFactorysource - The type to convert from.target - The type to convert to.hints - Hints used to be used while creating a converter.null if one could not be found.protected void copyUserProperties(Geometry sourceGeometry,
Geometry destGeometry)
Copyright © 1996–2021 Geotools. All rights reserved.