Hi ,
I have a case where I have to / want to use a GeoDb database with empty layers as an template for new GeoDb database.
Why ? The Template Geodb database contains all the fields and “domains” required and do not need to add these by coding.
What I have now:
the code looks for a template geodb , if exists , copies the databases to a new given name.
I open the dataset and layer , try add or modify feature.
using ( var layer = dataset.EditLayer("layerName",options,spSRS)
{
Aspose.Gis.Feature firstFeature;
firstFeature = layer.ConstructFeature();
firstFeature.SetValue("someField", someValue);
layer.Add(firstFeature);
}
the line “layer.Add(firstFeature);” gives the error , not supported for readonly layer " .
Is this something that can be addressed by Aspose.GIS ?
regards
Mehmet