Re: [Geotools-gt2-users] Build error for 2.3.5 on JDK 1.5.0_13

2007-12-17 Thread Lourens Veen
On Monday 05 November 2007 14:10:17 Andrea Aime wrote: mzorova ha scritto: Running org.geotools.styling.SLDStyleTest [Fatal Error] :1:117: The prefix sld for element sld:StyledLayerDescriptor is not bound. Nov 4, 2007 2:02:00 PM org.geotools.styling.SLDParser parseUserLayer INFO: layer

[Geotools-gt2-users] dynamically generating KML w/ geotools

2007-12-17 Thread fage0020
I was investigating the use of geotools to dynamically generate KML from Oracle Spatial. I was browsing the API and noticed that there wasn't an implementation of DataStore for KML (There were ones for GML, Shapefiles, ...). Does anyone know the strategy/method used with geotools for

Re: [Geotools-gt2-users] dynamically generating KML w/ geotools

2007-12-17 Thread Andrea Aime
[EMAIL PROTECTED] ha scritto: I was investigating the use of geotools to dynamically generate KML from Oracle Spatial. I was browsing the API and noticed that there wasn't an implementation of DataStore for KML (There were ones for GML, Shapefiles, ...). Does anyone know the strategy/method

Re: [Geotools-gt2-users] dynamically generating KML w/ geotools

2007-12-17 Thread Justin Deoliveira
Hi, There is no kml datastore no. But on Geotools trunk there is an experimental parser for kml. However, the same classes that do parsing can do encoding, but that functionality is not implemented. The xml framework i speak of is complex, and has a learning curve so if you have some time to do

Re: [Geotools-gt2-users] Help with filters updating to 2.4

2007-12-17 Thread Gabriella Turek
Thanx Jody, I'll try one of the options you listed. If I may, a bit of a critique: it seems like in many instances when working with the geotools library there's is more than one way of doing things. I find this rather confusing, rather than helpful. Gaby

Re: [Geotools-gt2-users] Help with filters updating to 2.4

2007-12-17 Thread Jody Garnett
It is a good critique! Indeed if I was doing the code review there would only be the two ways .. :-) - the query based approach; ie make a function and evaluate it on the collection - the object oriented approach; for when you want to hack a bit more The mess of confusion left open by having

Re: [Geotools-gt2-users] StyleBuilder 2.4.x confused over featureTypeName and featureTypeStyleName

2007-12-17 Thread Jody Garnett
My code review of this class is that: a) it is in trouble and makes your life harder b) it is a thin wrapper around private StyleFactory sf; private FilterFactory ff; c) the value add is a bunch of methods that accept normal literals (rather than expressions) d) the bad part is letting

[Geotools-gt2-users] IndexedShapeFileReader vs. ShapeFileReader (2.4-RC0)

2007-12-17 Thread Gabriella Turek
I apparently have some shape files which are not indexed, so when JMapPane tries to render them, it throws an exception: Dec 18, 2007 3:20:22 PM org.geotools.renderer.lite.StreamingRenderer processStylers SEVERE: null java.util.NoSuchElementException at

[Geotools-gt2-users] StyleBuilder confusion - two fixes; which one?

2007-12-17 Thread Jody Garnett
Okay so we sorted out where the confusion was ... now for the hard part. There are two options: a) change the code mistake so that the featureTypeStyleName value is not passed on to the wrong thing - this would leave the documentation the same - and disable functionality that currently exists b)

Re: [Geotools-gt2-users] StyleBuilder confusion - two fixes; which one?

2007-12-17 Thread Gabriella Turek
b) is fine, sometimes just a bit more javadocs documention is all that's needed. Thanx gaby *** ** Gabriella Turek [EMAIL PROTECTED] ** ** National Institute of Water Atmospheric Research (NIWA) ** ** PO Box

Re: [Geotools-gt2-users] IndexedShapeFileReader vs. ShapeFileReader (2.4-RC0)

2007-12-17 Thread Jody Garnett
Indexed Shapefile support was still an experiment at this time for GeoTools 2.3... for GeoTools 2.4 the experiment was ended and there is now a single ShapefileDataStoreFactory that should do all the logic needed to set you up with ShapeFileDataStore or IndexedShapefileDataStore as needed... I

Re: [Geotools-gt2-users] IndexedShapeFileReader vs. ShapeFileReader (2.4-RC0)

2007-12-17 Thread Gabriella Turek
I was making it by hand... Quickly chaged my code to use the ShapefileDataStoreFactory but it does not work, I get the same error. gaby *** ** Gabriella Turek [EMAIL PROTECTED] ** ** National Institute of

[Geotools-gt2-users] Turning off IndexedShapefile as a workaround...

2007-12-17 Thread Jody Garnett
Thanks for trying; so run me over the bug again ... - we get an exception out of IndexedFidReader - the shapefile is not indexed? Or does an existing index exist that is broken? - can you limit your test to one shapefile and confirm that it does not have an index of any form, set the create