[Geotools-gt2-users] how to solve "org.xml.sax.saxparseexception premature end of file"

2010-09-16 Thread eros
I am trying to parse a gml 3.2.1 but getting the following error: [Fatal Error] :1:1: Premature end of file. org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unkno

Re: [Geotools-gt2-users] Maintaining line order when creating a shapefile

2010-09-16 Thread Larry Reeder
If you're using MemoryFeatureCollection, it's backed by a TreeMap which sorts by Feature Id.You could use LeanFeatureCollection as an alternative. I think it's slated for addition to GeoTools at some future date (not sure if it's in the 2.7-M releases), but if it's not availabe now you could

[Geotools-gt2-users] Maintaining line order when creating a shapefile

2010-09-16 Thread GTn00b
Hello, I've noticed that when writing a shapefile, the original line order of the source (e.g. csv file) is not maintained. I believe this is due to Features being not specifically ordered within the FeatureCollection? I saw somewhere that a FeatureList may be an option, but I'm not sure if this

Re: [Geotools-gt2-users] ErdasImgReader compression support

2010-09-16 Thread Daniele Romagnoli
Hi Dustin, do you have any chance to share that dataset? (It is freely available? Did you create it through gdal_translate? ...) Anyway, actual geotools version is using GDAL 1.4.5. Taking a look on the releases news on [1], I can see several bug fixes involving Erdas Imagine (HFA driver) after tha

Re: [Geotools-gt2-users] Escape characters in CQL

2010-09-16 Thread Mauricio Pazos
Hello Jesse: I have improved cql/ecql to support this feature. It is available in trunk. Example: "crazy_name" like 'abc%' cheers On Monday 09 August 2010 02:45:50 pm Mauricio Pazos wrote: > On Saturday 07 August 2010 10:17:21 pm Jesse Eichar wrote: > > Its hard to explain the reasoning, but I