default Geometry getDefaultGeometry(Content c, QName targetFeature) {
// TODO deal with more defaults
// TODO deal with target feature
+ if (c.hasContentClass(EntityType.geopoint)) {
+ return getGeoPointGeometry(c);
+ }
+ return null;
+ }
+
+ void writeProperties(JsonGenerator g, Content content, QName targetFeature);
+
+ void addConstraintsForFeature(AndFilter filter, QName targetFeature);
+
+ static Geometry getGeoPointGeometry(Content c) {
if (c.hasContentClass(EntityType.geopoint)) {
double latitude = c.get(WGS84PosName.lat, Double.class).get();
double longitude = c.get(WGS84PosName.lon, Double.class).get();
}
return null;
}
-
- void writeProperties(JsonGenerator g, Content content, QName targetFeature);
-
- void addConstraintsForFeature(AndFilter filter, QName targetFeature);
}