StreamingRenderer - MySQL CRS Support
-------------------------------------

                 Key: GEOT-1215
                 URL: http://jira.codehaus.org/browse/GEOT-1215
             Project: GeoTools
          Issue Type: Bug
          Components: data mysql
    Affects Versions: 2.4.M1
            Reporter: Debasish Sahu
         Assigned To: Gary Sheppard
             Fix For: 2.4.M2


MySQLDataStore currently does not supports CRS , cause of which when one tries 
to render mysql geometries using StreamingRendererer (2.4-M1)
the following exception is thrown

Mar 31, 2007 4:29:14 PM org.geotools.renderer.lite.StreamingRenderer 
processSymbolizers
WARNING: null
java.lang.NullPointerException
    at 
org.geotools.referencing.operation.BufferedCoordinateOperationFactory$CRSPair.<init>(BufferedCoordinateOperationFactory.java:83)
    at 
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:245)
    at 
org.geotools.renderer.lite.StreamingRenderer.getMathTransform(StreamingRenderer.java
 :2413)
    at 
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1845)
    at 
org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1759)
    at org.geotools.renderer.lite.StreamingRenderer.processStylers 
(StreamingRenderer.java:1704)
    at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:724)
    at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:446)

A possible fix is to modify the buildAttributeType to take in account the CRS 
of the table or geometry .Example modification of Mulitpolygon

    return AttributeTypeFactory.newAttributeType(rs
                            .getString(COLUMN_NAME), MultiPolygon.class);
 
to

                    return   
AttributeTypeFactory.newAttributeType(rs.getString(COLUMN_NAME),Geometry.class, 
false, 0, null,DefaultGeographicCRS.WGS84);


-- 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to