Thank you for this.
 
( Big sigh if relief !! )
 
I will investigate the GeoTools API.
 
Michelle

________________________________

From: [EMAIL PROTECTED] on behalf of Jesse Eichar
Sent: Fri 24/02/2006 17:53
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] 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
          


<<winmail.dat>>

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

Reply via email to