I was making it by hand... Quickly chaged my code to use the ShapefileDataStoreFactory but it does not work, I get the same error. gaby
*************************************************************** ** Gabriella Turek [EMAIL PROTECTED] ** ** National Institute of Water & Atmospheric Research (NIWA) ** ** PO Box 8602 Christchurch New Zealand +64-3-343-8067 ** *************************************************************** >>>Jody Garnett <[EMAIL PROTECTED]> 12/18/07 4:00 pm >>> Indexed Shapefile support was still an experiment at this time for GeoTools 2.3... for GeoTools 2.4 the experiment was ended and there is now a single ShapefileDataStoreFactory that should do all the logic needed to set you up with ShapeFileDataStore or IndexedShapefileDataStore as needed... I think (if I read the code right) that you can specify a "create spatial index" flag; or it will pick up if an index file is there or not. In this case the docs are up to date: - http://docs.codehaus.org/display/GEOTDOC/Shapefile+Plugin However I think you are going to be the first person other than a test case to tell me if this code works :-( So I gotta ask; how are you making your IndexedShapeDataStore? Using DataStoreFactoryFinder ...or by hand? Jody ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users