From: Adrien A. <ada...@gm...> - 2005-05-25 01:39:01
|
Hi, > > i think there is a bug in > > org.geotools.data.gml.GMLDataStore and/or > > org.geotools.data.gml.GMLDataStoreFactory... > > > > in GMLDataStoreFactory the method createDataStore(url) cheks the url , > > verifying that it ends with ".xml" or ".gml". in other words, it cheks = that > > this url point to a file... > > BUT > > in GMLDataStore, the constructor expected uri (based on url) to be a > > directory. > > > > so as i was needed this classes, i made that fix : > > i change File dir =3D new File(udir.getPath()); with File dir =3D new > > File(udir.getPath()).getParentFile(); > > in GMLDataStore.java line 45 My mistake sorry. I forgot to clean that. At first I was willing to allow several gml files for a single directory but finally I lowered my needs. That's why this is a little bit confusing... -- Adrien |