On Mon, Aug 1, 2011 at 4:17 AM, Michael Bedward
<[email protected]> wrote:
> Perhaps try this...
>
> Url url = MyClass.class.getResource("someshapefile");
> File shapefile = new File( url.toURI() );
> FileDataStore dataStore = FileDataStoreFinder.getDataStore(file);

Actually I think you can provide the shapefile data store the initial url,
directly (but I guess that you might have to go to the store constructor
directly, or use the more general data store finder)

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to