ShapefileDataStore uses memory-mapped I/O even when told not to
---------------------------------------------------------------

         Key: GEOT-817
         URL: http://jira.codehaus.org/browse/GEOT-817
     Project: GeoTools
        Type: Bug

  Components: shapefile  
    Versions: 2.1.0, 2.1.1, 2.2.M0, 2.2.M1, 2.2.M2, 2.2-RC0, 2.2-RC1    
 Environment: Linux, kernel version 2.4.27 and 2.6.8.
    Reporter: Tuure Laurinolli
 Assigned to: Ian Wolfe Schneider 


When trying to get the schema from a newly opened ShapeFileDataStore, my 
program fails with a mmap error deep down in Sun's nio. The workaround to this 
problem would be reading the file without mmapping it, but ShapefileDataStore 
fails to obery it's useMemoryMapped-constructor flag.

The problem is caused by line 487 in 2.1.0 ShapefileDataStore.java - it creates 
a subordinate DbaseFileReader without passing on the useMemoryMappedBuffer 
flag. This line of code is unchanged in newer versions.


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



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to