SLDTransformer does not handle UserLayers with InlineFeatures -------------------------------------------------------------
Key: GEOT-1180 URL: http://jira.codehaus.org/browse/GEOT-1180 Project: GeoTools Issue Type: Bug Components: core styling Affects Versions: 2.4.0 Environment: Linux gumbi 2.6.19-1.2911.6.4.fc6 #1 SMP Sat Feb 24 14:39:04 EST 2007 i686 i686 i386 GNU/Linux java version "1.5.0_11" Maven version: 2.0.5 Reporter: raif Fix For: 2.4.0 Attachments: gt2-main-20070305.patch the SLDTransformer class does not handle UserLayers with InlineFeatures. the attached patch addresses the issue by adding appropriate implementation. it also allows for generating well formed features with user-defined namespace. the Changelog for this patch, in GNU style is: 2007-03-05 Raif S. Naffah <[EMAIL PROTECTED]> * modules/library/main/src/main/java/org/geotools/styling/SLDTransformer.java: Updated copyright year. Updated import list. (LOGGER): New static field. (uri2prefix): New instance field; tracks mappings between URIs and prefixes. (SLDTransformer()): New 0-arguments constructor. (SLDTransformer(Map)): New constructor with user-defined bindings of URIs to prefix strings; to be used when generating user features with qualified namespace. (createTranslator()): Handle user-specified URI-to-prefix mappings when creating, initializing the Translator before returning it to the caller. (visit(UserLayer)): Added javadoc documentation. Handle in-line features. (visitInlineFeatureType()): New private method. (visit(Style)): Distinguish between NamedStyle and UserStyle elements. * modules/library/main/src/test/java/org/geotools/styling/UserLayerTest.java: New test case. -- 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 ------------------------------------------------------------------------- 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 Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel