#LIU DONGQUAN# wrote:
> I replace the following lines:
> //             Map connect = new HashMap();
> //             connect.put( "url", file.toURL() );  
> //            DataStore dataStore = DataStoreFinder.getDataStore( 
> connect );
> by:
> ShapefileDataStore dataStore= new ShapefileDataStore(file.toURL());
> it seems the program can work. Why? is it because of my jdk is 1.5 not 
> 1.4?
> is there generics problem in line: connect.put("url", file.toURL())?
>  
I bet the key "url" is wrong; what it should be? We may have to look at 
the source code ;-)
Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to