ShapefileDataStore createSchema tries to set a non empty envelope in the header
-------------------------------------------------------------------------------

                 Key: GEOT-2564
                 URL: http://jira.codehaus.org/browse/GEOT-2564
             Project: GeoTools
          Issue Type: Bug
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.5.7


This is very error prone and plain wrong as well since there is no data in the 
shapefile at that moment.
>From the spec: "If the shapefile is empty (that is, has no records), the 
>values for Xmin, Ymin, Xmax, and Ymax are unspecified"

So setting all of them to 0 without entering into perilious calculations is a 
valid approach


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

        

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to