ShapefileDataStore createSchema method dies on when creating prj file for some 
CRS
----------------------------------------------------------------------------------

                 Key: GEOT-2388
                 URL: http://jira.codehaus.org/browse/GEOT-2388
             Project: GeoTools
          Issue Type: Bug
          Components: data shapefile
    Affects Versions: 2.6-M1, 2.6-M0, 2.5.4
            Reporter: Simone Giannecchini
            Assignee: Jesse Eichar
         Attachments: patch.txt

ShapefileDataStore createSchema method dies on when creating prj file for some 
CRS due to some wrong assumptions in the code that creates the schema.
This code tries to create the various files for a shapefile and fails to create 
the prj for CRS that are not valid all  over the world. I have create a patch 
that improve the situation but a more in depth look is needed for a definitive 
fix.
The problem is  that a shapefile has a header where we can store the bbox for 
the all shape. The createSchema method tries to create a default bbox by 
reprojecting the whole world against the shapefile CRS, this is obviously NOT 
always possible. In case this was not possible the original CRS was set to null 
and an empty PRJ was created with a fake envelope. 
I have added some code to reduce the possibility to run into this case, but I 
think that we should strive to find a definitive solution that might involve 
setting the header to use a null envelope.

-- 
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

        

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to