On Thu, Jul 28, 2011 at 10:00 PM, Tanim S. Islam <[email protected]> wrote: > Hello: > > Would it be possible to read in GIS data through the Geotools SDK, from > an InputStream rather than a File or URL? If so, are there any clear > examples of this in practice. To clarify, I am thinking of a DataStore > (parent of FileDataStore) returned by a DataStoreFinder (similar to a > FileDataStore), that perhaps takes as input an InputStream rather than > File or URL.
Does not make much sense to use a input stream. A data store is supposed to be able to answer queries over and over and a stream can only be read once, so unless you read the contents of the data fully in memory and serve all subsequent requests from there, you won't be able to get a working store. That said, a store can take anything as a initialization parameter, even a stream 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
