Search in sources :

Example 1 with Geometry

use of org.gwtopenmaps.openlayers.client.geometry.Geometry in project geo-platform by geosdi.

the class WFSLinearRingFeatureHandler method manageUpdatedFeature.

@Override
protected void manageUpdatedFeature(VectorFeature modifiedFeature, VectorFeature oldFeature) {
    Geometry geom = modifiedFeature.getGeometry().clone();
    // String wktGeometry = modifyEditorControl.getWKTEditorConverter().convertGeometry(
    // geom, new Projection(
    // GPCoordinateReferenceSystem.WGS_84.getCode()));
    event.setModifiedFeature(modifiedFeature);
    event.setOldFeature(oldFeature);
    event.setWktGeometry(geom.toString());
    WFSFeatureDispatcher.fireFeatureDispatcherEvent(event);
}
Also used : Geometry(org.gwtopenmaps.openlayers.client.geometry.Geometry)

Example 2 with Geometry

use of org.gwtopenmaps.openlayers.client.geometry.Geometry in project geo-platform by geosdi.

the class WFSMultiLineFeatureHandler method manageUpdatedFeature.

@Override
protected void manageUpdatedFeature(VectorFeature modifiedFeature, VectorFeature oldFeature) {
    Geometry geom = modifiedFeature.getGeometry().clone();
    // String wktGeometry = modifyEditorControl.getWKTEditorConverter().convertGeometry(
    // geom, new Projection(
    // GPCoordinateReferenceSystem.WGS_84.getCode()));
    event.setModifiedFeature(modifiedFeature);
    event.setOldFeature(oldFeature);
    event.setWktGeometry(geom.toString());
    WFSFeatureDispatcher.fireFeatureDispatcherEvent(event);
}
Also used : Geometry(org.gwtopenmaps.openlayers.client.geometry.Geometry)

Example 3 with Geometry

use of org.gwtopenmaps.openlayers.client.geometry.Geometry in project geo-platform by geosdi.

the class WFSMultiPointFeatureHandler method manageUpdatedFeature.

@Override
protected void manageUpdatedFeature(VectorFeature modifiedFeature, VectorFeature oldFeature) {
    Geometry geom = modifiedFeature.getGeometry().clone();
    // String wktGeometry = modifyEditorControl.getWKTEditorConverter().convertGeometry(
    // geom, new Projection(
    // GPCoordinateReferenceSystem.WGS_84.getCode()));
    event.setModifiedFeature(modifiedFeature);
    event.setOldFeature(oldFeature);
    event.setWktGeometry(geom.toString());
    WFSFeatureDispatcher.fireFeatureDispatcherEvent(event);
}
Also used : Geometry(org.gwtopenmaps.openlayers.client.geometry.Geometry)

Example 4 with Geometry

use of org.gwtopenmaps.openlayers.client.geometry.Geometry in project geo-platform by geosdi.

the class WFSPointFeatureHandler method manageUpdatedFeature.

/**
 * @param modifiedFeature
 * @param oldFeature
 */
@Override
protected void manageUpdatedFeature(VectorFeature modifiedFeature, VectorFeature oldFeature) {
    Geometry geom = modifiedFeature.getGeometry().clone();
    event.setModifiedFeature(modifiedFeature);
    event.setOldFeature(oldFeature);
    event.setWktGeometry(geom.toString());
    WFSFeatureDispatcher.fireFeatureDispatcherEvent(event);
}
Also used : Geometry(org.gwtopenmaps.openlayers.client.geometry.Geometry)

Example 5 with Geometry

use of org.gwtopenmaps.openlayers.client.geometry.Geometry in project geo-platform by geosdi.

the class WFSLineStringFeatureHandler method manageUpdatedFeature.

@Override
protected void manageUpdatedFeature(VectorFeature modifiedFeature, VectorFeature oldFeature) {
    Geometry geom = modifiedFeature.getGeometry().clone();
    // String wktGeometry = modifyEditorControl.getWKTEditorConverter().convertGeometry(
    // geom, new Projection(
    // GPCoordinateReferenceSystem.WGS_84.getCode()));
    event.setModifiedFeature(modifiedFeature);
    event.setOldFeature(oldFeature);
    event.setWktGeometry(geom.toString());
    WFSFeatureDispatcher.fireFeatureDispatcherEvent(event);
}
Also used : Geometry(org.gwtopenmaps.openlayers.client.geometry.Geometry)

Aggregations

Geometry (org.gwtopenmaps.openlayers.client.geometry.Geometry)10 VectorFeature (org.gwtopenmaps.openlayers.client.feature.VectorFeature)3 Bounds (org.gwtopenmaps.openlayers.client.Bounds)2 Projection (org.gwtopenmaps.openlayers.client.Projection)1 Style (org.gwtopenmaps.openlayers.client.Style)1 StyleMap (org.gwtopenmaps.openlayers.client.StyleMap)1 Vector (org.gwtopenmaps.openlayers.client.layer.Vector)1