remove hack introducer for the parser to recognize CRS's from a GML 3.1.1
document when GEOT-1659 is fixed
----------------------------------------------------------------------------------------------------------
Key: GEOT-1685
URL: http://jira.codehaus.org/browse/GEOT-1685
Project: GeoTools
Issue Type: Sub-task
Components: data wfs, new modules
Affects Versions: 2.5-M0
Reporter: Gabriel Roldán
Assignee: Gabriel Roldán
Fix For: 2.5-M1
GEOT-1659 is giving too much grief for WFS 1.1.0 GetFeature parsing.
A couple hacks have been introduced on the {{gt2-xml-gml2}} and {{wfs}} modules
in order to temporarily overcome this limitation and thus being able to keep
going with the wfs 1.1 client support in udig.
Yet, those are horrible hacks so this issue is meant as a reminder to remove
them.
The hacks on {{org.geotools.gml2.bindings.GML2ParsingUtils}} and
{{org.geotools.wfs.v_1_1_0.data.WFS110ProtocolHandler}} look like this:
{code}
try {
return CRS.decode(raw.toString());
} catch (NoSuchAuthorityCodeException e) {
// HACK HACK HACK!: remove when
// http://jira.codehaus.org/browse/GEOT-1659 is fixed
final String crs = raw.toString();
if (crs.toUpperCase().startsWith("URN")) {
String code = crs.substring(crs.lastIndexOf(":") + 1);
try {
return CRS.decode("EPSG:" + code);
} catch (Exception e1) {
throw new RuntimeException("Could not create crs: " +
srs, e);
}
}
} catch (FactoryException e) {
throw new RuntimeException("Could not create crs: " + srs, e);
}
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel