resolve() returns adaptee.cast(fs) for LayerResource, there rawresource is
MyFeatureStore.
here is MyFeatureStore btw:(my goal für now was just to get the edit tools
enabled, later i would implement write operations ,MyDatastore works very
well for reading the resources)
i am really stuck on this for days....
public class MyFeatureStore extends AbstractFeatureStore {
MyDatastore store;
String typeName;
SimpleFeatureType featureType;
public MyFeatureStore (MyDatastore myDatastore, String typeName) {
store = myDatastore;
this.typeName = typeName;
try {
featureType = store.getSchema( typeName );
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public DataStore getDataStore() {
return store;
}
@Override
public void addFeatureListener(FeatureListener arg0) {
// TODO Auto-generated method stub
}
@Override
public SimpleFeatureType getSchema() {
return featureType;
}
@Override
public void removeFeatureListener(FeatureListener arg0) {
// TODO Auto-generated method stub
}
}
--
View this message in context:
http://udig-devel.19327.n5.nabble.com/enable-edit-tool-on-layer-from-own-datastore-tp4912726p4970653.html
Sent from the udig-devel mailing list archive at Nabble.com.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel