Some other ones from last week ....

FileDataStore is now an interface; replacing AbstractFileDataStore as the explicit public api. FileDataStoreFinder now returns one of these things ....

Andrea points out that new PostgisDataStoreFactory works so I will remove the etDataStoreFactory( PostgisDataStoreFactory.class ) method.

Jody

On 28/09/2009, at 1:47 AM, Jody Garnett wrote:

I have been adding methods in order to tidy up tutorial examples .....

A DataStoreFinder method to look up a factory instance by type name. This method allows me to remove all the new ShapeFileDataStoreFactory () . Used type narrowing to make it a bit easier...

ShapefileDataStoreFactory factory =
DataStoreFinder.getDataStoreFactory ( ShapefileDataStoreFactory.class );

PostgisDataStoreFactory factory =
DataStoreFinder.getDataStoreFactory ( PostgisDataStoreFactory.class );

If you missed it last week you can look up FileDataStore by file extension now.

FileDataStoreFactorySpi factory = FileDataStoreFinder.getDataStoreFactory("shp");


I have been adding metadata information to shapefiledatastore and postgisdatastore in order to make the example ui work.

Additional Parameters keys:
- EXT - used for a url or file parameter to check the file will work
- LEVEL - "user", "advanced", "program" in order to tone down the madness

I have reached the limits of Collections.singletonMap ( Parameter.EXT, "shp" ) and have created KVP using the Object ...pairs notation from Hints. KVP is a straight extension of LinkedHashMap and is useful for inline map definition.

new KVP( Parameter.EXT, "shp", Parameter.LEVEL, "user" );


Fun fun,
Jody

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to