Thanks ... is adding this method enough for a change request? We are taking on responsibility for new capability ... or can we just go through Martin as the module maintainer.
I was under the impression that raw WKT was also allowed for an <SRS> element (although perhaps not for an SRS attribute). Jody > From the WFS 1.1 spec: > > "Any valid URI value can be assigned to the srsName attribute. > However, in order to enhance interoperability, a web feature service > must be able to process srsName attribute values with the following > format models: > > - EPSG:<EPSG code> > - http://www.opengis.net/gml/srs/epsg.xml#<EPSG code> > - urn:EPSG:geographicsCRC:<EPSG code>" > > -Justin > > Jody Garnett wrote: >> We really need to provide: >> CRS.fromSRS >> CRS.toSRS >> >> Their existing method "decode" is not intended to handle an Open Web >> Service SRS element ... Michael do you think we can hunt down a >> range of example SRS values for use with testing. >> >> Jody >>> Hi, >>> >>> I just did a rebuild of geotools, and now it fails to parse >>> geometries with >>> srsName="http://www.opengis.net/gml/srs/epsg.xml#4258" (which I get >>> from a GeoServer WFS), e.g. >>> >>> (...) >>> <gml:featureMember> >>> <orch:portugal_fires fid="portugal_fires.1"> >>> <orch:the_geom> >>> <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4258"> >>> <gml:coordinates (...) /> >>> </gml:Point> >>> </orch:the_geom> >>> (...) >>> >>> I get the following stack trace: >>> >>> java.lang.RuntimeException: Parsing failed for Point: >>> org.opengis.referencing.NoSuchAuthorityCodeException: Authority >>> "HTTP" is unknown or doesn't match the supplied hints. Maybe it is >>> defined in an unreachable JAR file? >>> at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:96) >>> at >>> org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:197) >>> >>> >>> at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:163) >>> at >>> org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:191) >>> >>> >>> at >>> org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:373) >>> at >>> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) >>> at >>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown >>> Source) >>> at >>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown >>> >>> Source) >>> at >>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown >>> Source) >>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >>> Source) >>> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >>> Source) >>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >>> Source) >>> at org.geotools.xml.Parser.parse(Parser.java:161) >>> at org.geotools.xml.Parser.parse(Parser.java:140) >>> at gmlparsing.GMLTest.main(GMLTest.java:84) >>> Caused by: org.opengis.referencing.NoSuchAuthorityCodeException: >>> Authority "HTTP" is unknown or doesn't match the supplied hints. >>> Maybe it is defined in an unreachable JAR file? >>> at >>> org.geotools.referencing.factory.AllAuthoritiesFactory.noSuchAuthority(AllAuthoritiesFactory.java:406) >>> >>> >>> at >>> org.geotools.referencing.factory.AllAuthoritiesFactory.getAuthorityFactory(AllAuthoritiesFactory.java:384) >>> >>> >>> at >>> org.geotools.referencing.factory.AllAuthoritiesFactory.getCRSAuthorityFactory(AllAuthoritiesFactory.java:475) >>> >>> >>> at >>> org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:560) >>> >>> >>> at >>> org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:679) >>> >>> >>> at org.geotools.referencing.CRS.decode(CRS.java:319) >>> at org.geotools.referencing.CRS.decode(CRS.java:255) >>> at >>> org.geotools.gml2.bindings.GMLAbstractGeometryTypeBinding.parse(GMLAbstractGeometryTypeBinding.java:104) >>> >>> >>> at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:84) >>> ... 15 more >>> Caused by: org.geotools.factory.FactoryNotFoundException: No factory >>> of kind "CRSAuthorityFactory" found. >>> at >>> org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:297) >>> >>> >>> at >>> org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:115) >>> >>> >>> at >>> org.geotools.referencing.FactoryFinder.getAuthorityFactory(FactoryFinder.java:236) >>> >>> >>> at >>> org.geotools.referencing.FactoryFinder.getCRSAuthorityFactory(FactoryFinder.java:458) >>> >>> >>> at >>> org.geotools.referencing.factory.AllAuthoritiesFactory.getAuthorityFactory(AllAuthoritiesFactory.java:361) >>> >>> >>> ... 22 more >>> >>> >>> It seems the parser is expecting "epsg:4258" instead of >>> "http://www.opengis.net/gml/srs/epsg.xml#4258". Anyone any ideas why >>> this is (it has worked fine before...)? >>> >>> Cheers, >>> Michael >>> >>> ------------------------------------------------------------------------- >>> >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to >>> share your >>> opinions on IT & business topics through brief surveys - and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> >>> _______________________________________________ >>> Geotools-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geotools-devel >>> >> >> >> ------------------------------------------------------------------------- >> >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> >> !DSPAM:1004,45b77649138421775926497! >> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
