Hey Andrea OK, but current behavior is simply to check Query.getCoordinateSystem() and, if nothing is there, the bounds returned have a null CRS :(
So you guys no longer use MemoryDataStore for tests? In any case, is it OK for me to add a JIRA issue with a fix for that? Cheers Milton On terça-feira, 19 de junho de 2012 17:09:09, Andrea Aime wrote: > On Tue, Jun 19, 2012 at 8:37 PM, Milton Jonathan > <mil...@tecgraf.puc-rio.br <mailto:mil...@tecgraf.puc-rio.br>> wrote: > > Hey there > > It's been a while since I showed up here :) > > I am still using 2.7.x, and I just wanted to know if anyone has > noticed > the strange behavior of the method > MemoryDataStore.getBounds(Query). It > seems to extract the CRS of the returning ReferencedEnvelope from > Query.getCoordinateSystem(), instead of looking at the Schema's > CRS (as > all other DataStores do). Is there any reason for this? > > Query.getCoordinateSystem() is the way to force a CRS onto the data, > it serves the case of overriding a wrong native CRS. > Query.getCoordinateSystemReproject() is used instead to reproject on the > fly data from the native CRS to the desired one > > If you want the native, don't use either of them > > > > This was also noticed a long time ago here: > > http://osgeo-org.1560.n6.nabble.com/Several-problems-using-MemoryFeatureCollection-MemoryDataStore-td4290533.html > > Just wondering: is MemoryDataStore still the preferred way of dealing > with DataStores for test purposes, or is there something new around? > > > I guess it is, but nobody is really using it and there are stores > which are far more efficient (shapefiles) > and/or far more tested (all jdbc ones) > > 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 > mob: +39 339 8844549 > > 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 > -- Milton Jonathan Grupo GIS e Meio Ambiente Tecgraf/PUC-Rio Tel: +55-21-3527-2502 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel