Hey Andrea,
Wondering if this change warrants some further discussion since as I understand it this will result in a element not being encoded in many cases. Which perhaps for storing configuration might not be an issue since we do have the native crs wkt but it could have negative side affects for restconfig in which clients may be expecting a srs.
-Justin
On Sun, May 27, 2012 at 11:35 AM, <aaime@anonymised.com> wrote:
### Log Message
- Revision
- [17118](http://fisheye.codehaus.org/changelog/geoserver/?cs=17118)
- Author
- aaime
- Date
- 2012-05-27 12:35:41 -0500 (Sun, 27 May 2012)
[GEOS-5126] Saving a layer whose native SRS has no native EPSG code takes several seconds
Modified Paths- trunk/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java
Diff
Modified: trunk/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java (17117 => 17118)
--- trunk/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java 2012-05-27 17:34:30 UTC (rev 17117) +++ trunk/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java 2012-05-27 17:35:41 UTC (rev 17118) @@ -973,7 +973,7 @@ public String toString(Object obj) { CoordinateReferenceSystem crs = (CoordinateReferenceSystem) obj; try { <del>- Integer epsg = CRS.lookupEpsgCode(crs, true); </del><ins>+ Integer epsg = CRS.lookupEpsgCode(crs, false); </ins> if (epsg != null) { return "EPSG:" + epsg; }
To unsubscribe from this list please visit:
–
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.