public class GeoWaveAvroFeatureUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.opengis.feature.simple.SimpleFeatureType |
avroFeatureDefinitionToGTSimpleFeatureType(AvroFeatureDefinition featureDefinition) |
static org.opengis.feature.simple.SimpleFeature |
avroSimpleFeatureToGTSimpleFeature(org.opengis.feature.simple.SimpleFeatureType type,
List<String> attributeTypes,
AvroAttributeValues attributeValues) |
static AvroAttributeValues |
buildAttributeValue(org.opengis.feature.simple.SimpleFeature sf,
org.opengis.feature.simple.SimpleFeatureType sft)
Create an AttributeValue from the SimpleFeature's attributes
|
static AvroFeatureDefinition |
buildFeatureDefinition(AvroFeatureDefinition fd,
org.opengis.feature.simple.SimpleFeatureType sft,
Map<String,String> defaultClassifications,
String defaultClassification)
Add the attributes, types and classifications for the SimpleFeatureType to the provided
FeatureDefinition
|
static org.opengis.feature.simple.SimpleFeature |
deserializeAvroSimpleFeature(byte[] avroData)
* Deserialize byte array into an AvroSimpleFeature then convert to a SimpleFeature
|
public static AvroFeatureDefinition buildFeatureDefinition(AvroFeatureDefinition fd, org.opengis.feature.simple.SimpleFeatureType sft, Map<String,String> defaultClassifications, String defaultClassification) throws IOException
fd
- - existing Feature Definition (or new one if null)sft
- - SimpleFeatureType of the simpleFeature being serializeddefaultClassifications
- - map of attribute names to classificationdefaultClassification
- - default classification if one could not be found in the mapIOException
public static AvroAttributeValues buildAttributeValue(org.opengis.feature.simple.SimpleFeature sf, org.opengis.feature.simple.SimpleFeatureType sft)
sf
- sft
- public static org.opengis.feature.simple.SimpleFeature deserializeAvroSimpleFeature(byte[] avroData) throws IOException, ClassNotFoundException, org.locationtech.jts.io.ParseException
avroData
- serialized bytes of a AvroSimpleFeatureIOException
ClassNotFoundException
org.locationtech.jts.io.ParseException
public static org.opengis.feature.simple.SimpleFeatureType avroFeatureDefinitionToGTSimpleFeatureType(AvroFeatureDefinition featureDefinition) throws ClassNotFoundException
ClassNotFoundException
public static org.opengis.feature.simple.SimpleFeature avroSimpleFeatureToGTSimpleFeature(org.opengis.feature.simple.SimpleFeatureType type, List<String> attributeTypes, AvroAttributeValues attributeValues) throws IOException, ClassNotFoundException, org.locationtech.jts.io.ParseException
IOException
ClassNotFoundException
org.locationtech.jts.io.ParseException
Copyright © 2013–2022. All rights reserved.