Jody Garnett wrote:
>
> Good work!
>
> Updating the page with your example here:
> - http://docs.codehaus.org/display/GEOTDOC/11+Exporting+to+A+Shapefile
>
> You're still using
> FileDataStoreFactorySpi factory = new
> IndexedShapefileDataStoreFactory();
> ShapefileDataStore dataStore = (ShapefileDataStore)
> factory.createNewDataStore(map);
> in your example code, but tit does not compile, so you you must use
>
> IndexedShapefileDataStore dataStore = new
> IndexedShapefileDataStore(f.toURI().toURL());
> directly
>
>
>>>
>>> String typeName = fs.getSchema().getTypeName();
>>> FeatureStore featureStore = (FeatureStore) myData.getFeatureSource(
>>> typeName );
>>>
>>I am confused? Oh wait I get it ... the reason I did not do this is
>>because sometimes the typeName will
>>be different (often for a shapefile it is the same as the filename - no
>>matter what you asked for!).
> Yep, but it's not obvious is it, would be nice if it was documented in the
> javadocs.
>
> gaby
>
>
>
>
--
View this message in context:
http://www.nabble.com/Saving-FeatureSource-to-shapefile-tp14826700p15005680.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users