Hello,

I have got a little change in the Oracle DataStore on trunk.
I put the Instantiation of the CRS back to the determineCRS Method so that I
can override the Method again to instantiate an CRS when no EPSG-Code is
given.
Can I commit the Changes?

    protected CoordinateReferenceSystem determineCRS(int srid) throws
IOException {
        CoordinateReferenceSystem crs = null;
        try {
                        crs = CRS.decode("EPSG:" + srid);
                        
                } catch (Exception e) {
                        LOGGER.warning( "Could not map SRID "+srid+" to
CRS:"+e );
                }
                 return crs;
    }

  private AttributeDescriptor getSDOGeometryAttribute(String tableName,
String columnName, boolean isNullable ) {
        int srid = 0; // aka NULL
        AttributeTypeBuilder build = new AttributeTypeBuilder();
        build.setNillable(isNullable);
        try {
            Class geomClass = determineGeometryClass(tableName, columnName);
            build.setBinding(geomClass); 
        } catch (Exception e) {
            LOGGER.warning("could not determin Geometry class");
        }
                try {
                        srid = determineSRID( tableName, columnName );
                        CoordinateReferenceSystem crs = determineCRS( srid );
            build.setCRS(crs);
    
                } catch (Exception e) {
                        LOGGER.warning( "Could not map SRID "+srid+" to
CRS:"+e );
                }
                return build.buildDescriptor(columnName);               
        }
Thanks a lot
Tim



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to