On Mon, May 28, 2012 at 8:45 PM, Justin Deoliveira <[email protected]> wrote: > Right. Well this code is only executed when uploading a file and not > creating a resource directly, but the POST a new resource case will also do > this scan.
Ah ok, I see the use case now... a client that posts a configuration with a WKT description of whatever srs and expects GeoServer persistence to "fix it" and turn it into a official EPSG code when possible. And that would occurr also for the declared SRS. > Nope, looks like the use case is still covered. One other thing though is > that we have code outside of geoserver that uses the xstream persister to > serialize catalog objects. I don't think this should affect any of that but > if it does i would like to reserve the right to roll this change back and > attempt the solution of caching the lookup as discussed. But as it stands i > am fine with this change for now. Cool. The cache idea is going to be useful regardless in the future, one of the things that "regressed" since 1.7.x is the "lookup srs" button that people often did not understand, which provided a GUI way to invoke the full scan. If we have a working cache it may be that we can resurrect that mechanism and simply make it automatic as the page is being presented to the user. It would also speedup extensions like the importer (when importing large number of layers in the same srs). GUI wise something like the Lucene based mechanism of prj2epsg would probably be even better though, so that you get an imprecise, but possibly useful response, even out of of something that cannot be matched. Ah right, the cache mechanism should probably also cache the "lack of match" responses, otherwise we'd end up with long scans every time the native srs cannot be matched at all 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 ------------------------------------------------------------------------------ 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/ _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
