@Test public void setGeometry() throws Exception { WKTReader wktReader = new WKTReader(); Point pt = (Point) wktReader.read("POINT (5 5)"); featureModel.setGeometry(feature, pt); Assert.assertEquals(5, featureModel.getGeometry(feature).getCoordinate().x, 0.00001); }
@Override public void setGeometry(Object feature, Geometry geometry) throws LayerException { asFeature(feature).setDefaultGeometry(geometry); }
ShapeInMemFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public void setGeometry(Object feature, Geometry geometry) throws LayerException { asFeature(feature).setDefaultGeometry(geometry); } }
ShapeInMemFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public void setGeometry(Object feature, Geometry geometry) throws LayerException { asFeature(feature).setDefaultGeometry(geometry); } ShapeInMemFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); }
ShapeInMemFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public void setGeometry(Object feature, Geometry geometry) throws LayerException { asFeature(feature).setDefaultGeometry(geometry); } ShapeInMemFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); @Override void setLayerInfo(VectorLayerInfo vectorLayerInfo); @Override Attribute getAttribute(Object feature, String name); @Override Map<String, Attribute> getAttributes(Object feature); @Override int getSrid(); @Override Geometry getGeometry(Object feature); @Override String getId(Object feature); @Override Object newInstance(); @Override Object newInstance(String id); @Override void setGeometry(Object feature, Geometry geometry); @Override boolean canHandle(Object feature); }
ShapeInMemFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public void setGeometry(Object feature, Geometry geometry) throws LayerException { asFeature(feature).setDefaultGeometry(geometry); } ShapeInMemFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); @Override void setLayerInfo(VectorLayerInfo vectorLayerInfo); @Override Attribute getAttribute(Object feature, String name); @Override Map<String, Attribute> getAttributes(Object feature); @Override int getSrid(); @Override Geometry getGeometry(Object feature); @Override String getId(Object feature); @Override Object newInstance(); @Override Object newInstance(String id); @Override void setGeometry(Object feature, Geometry geometry); @Override boolean canHandle(Object feature);  }