Title: Shapefiles
That is a geotools issue.  To create a new shapefile do something like:

IndexedShapefileDatastoreFactory fac=new IndexedShapefileDataStoreFactory();

ShapefileDataStore ds=fac.createDatastore( url );
ds.createSchema( featureType );

List<IService> service = CatalogPlugin.getDefault().getServiceFactory().acquire(url);


Now you have a service with which you can get the resource and create a layer from the resource.

Jesse

M.S.Bachler wrote:

Hi!

This is probably a daft question, but I have had a hunt around the API and can't figure it out.

If I want to create new layers programmatically on the drop of my icons and I want that data to be stored in a shapefile,

Are there classes/methods in uDig to create a new shapefile for a new layer, or do I have to create the shapefile myself somehow?

Michelle



_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel



_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to