Hi again, For information, the map printing seems to work now (for how long ?) even if I did not change anything, but I still have the error message. Thanks,
2015-08-04 19:28 GMT+02:00 Augustin Doury <augustindo...@gmail.com>: > My first time on this mailing : hello everybody ! > I began to use Geotools some days ago for a simple purpose : load in my > java app some shapefile content, do some routing, print the result. I set > up a Maven project in Eclipse as explained in the QuickStart guide. > > Somebody gave me a shapefile with the road network of a capital. This > shapefile have been created through ArcGis and everything is ok when I use > Geotools to parse and print the data following the QuickStart guide. > > Using Qgis, I've extracted a smaller part of the road network to test my > routing algorithms because the original one is too big. I've just selected > some features (lines) and save it in a new shapefile. I added some new > columns to the attribute table. > Here is the problem : when I run my app, Geotools is able to read the > attributes table of my shapefile but can't print the map (as explained in > Quickstart) : the window stay empty and a small gif show me that it is > processing, but it never stop. > I have this error message in my console : > > org.geotools.data.shapefile.ShapefileFeatureReader finalize > AVERTISSEMENT: There is code leaving shapefile readers unclosed, this > might result in file system locks not being cleared. File is: lignes_extract > août 04, 2015 6:50:58 PM > org.geotools.data.shapefile.ShapefileFeatureReader finalize > AVERTISSEMENT: There is code leaving shapefile readers unclosed, this > might result in file system locks not being cleared. File is: lignes_extract > > Once I used Qgis option "Create a spatial index" for my shapefile and I > was able to print it correctly. But it is not working again now. > > I noticed that the different extensions associated to my shapefile are > different after Qgis extraction. > My original shapefile from Arcgis is composed of 6 files : .dbf ; .prj ; > .qix ; .sbn ; .sbx ; .shp ; .shx ; .shp.xml > My new shapefile from Qgis is composed of 7 files : .dbf ; .cpg ; .prj ; > .qix ; .qpj ; .shp ; .shx > > So my original shapefile have 3 extensions (.sbn and .sbx and shp.xml) > which are absent of my new shapefile. > and my new shapefile have 2 extensions (.cpg and .qpj) which are absent of > my original one. > > Hope somebody here can help me to understand this problem and solve it ! > > Thanks in advance, > > Augustin >
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users