use of org.opensextant.giscore.geometry.Point in project Xponents by OpenSextant.
the class GISDataModel method addPlaceData.
/**
* Adds the place data.
*
* @param row
* row of data
* @param g
* geocoding
*/
protected void addPlaceData(Feature row, Geocoding g) {
addColumn(row, OpenSextantSchema.ISO_COUNTRY, g.getCountryCode());
addColumn(row, OpenSextantSchema.PROVINCE, g.getAdmin1());
addColumn(row, OpenSextantSchema.FEATURE_CLASS, g.getFeatureClass());
addColumn(row, OpenSextantSchema.FEATURE_CODE, g.getFeatureCode());
addColumn(row, OpenSextantSchema.PLACE_NAME, g.getPlaceName());
if (includeCoordinate) {
if (g.hasCoordinate()) {
// Set the geometry to be a point, and add the feature to the list
row.setGeometry(new Point(g.getLatitude(), g.getLongitude()));
addLatLon(row, g);
}
}
}
Aggregations