Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Michael Bedward
Super - that's a nice clear example. Thanks very much Ben ! Michael -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterp

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Benoît Thiébault
Hi Michael, hi everyone, Here is how to use the NumberFormatFunction. 1) First, you have to register it so the factory can find it dynamically. To do so, you have to create a META-INF/services folder in your jar file and put in it a simple text file called "org.opengis.filter.expression"

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Michael Bedward
Hi Ben, Many thanks for posting your code. I've just been studying it. If it's not too much trouble could you post a little snippet sometime showing how you would use this programmatically please ? No hurry. cheers Michael --

[Geotools-gt2-users] Moving from POSTGIS Lab to Oracle use

2009-03-03 Thread Jody Garnett
Another question from off list... Alwyn Nolte wrote: > Hi > > Thank you for the geotools tutorials/labs. > I need to connect to oracle spatial. Is the POSTGIS lab relevant for oracle > as well? > Yes; just change the connection parameters and you are good to go. I think that the PostGIS lab ca

Re: [Geotools-gt2-users] ArcSDE Raster support JP2

2009-03-03 Thread Simone Giannecchini
I am not sure whether you ran into a limitation of the ArcSDE Java api or of the GeoServer coveragestore, Gabriel shold be able to ask. Just out of curiosity, of which amount of information are we talking about? The combination of an highly compressed format + a db has always looked a bit of an ove

Re: [Geotools-gt2-users] ArcSDE Raster support JP2

2009-03-03 Thread jericks
I am trying to display our ArcSDE JPEG 2000 orthophotography raster layers with GeoServer. Our ArcSDE Raster Layer is loaded with JPEG2000 compression to save space (we were using LZW77 before) and is 8bit unsigned. I can't find anything except the stack trace message that says the ESRI ArcSDE J

Re: [Geotools-gt2-users] ArcSDE Raster support JP2

2009-03-03 Thread Simone Giannecchini
Ciao Jared, just out of curiosity, what are you trying to achieve? I am not 100% sure that the couple arcsde + jpeg2000 is the best choice. I might try to give an alternative path. Simone. --- Ing. Simone Giannecchini GeoSolutions S.A.S. Owner -

Re: [Geotools-gt2-users] ArcSDE Raster support JP2

2009-03-03 Thread Andrea Aime
jericks wrote: > Hello! > > I am trying to use GeoTools' ArcSDE raster (2.5.3) support to display some > of our orthophotos in GeoServer (1.7.2), but I am getting the following > error: > > ERROR [imageio.ArcSDERasterReader] - INVALID COMPRESSION TYPE. > > ArcSDE Error Number: -316 >

[Geotools-gt2-users] ArcSDE Raster support JP2

2009-03-03 Thread jericks
Hello! I am trying to use GeoTools' ArcSDE raster (2.5.3) support to display some of our orthophotos in GeoServer (1.7.2), but I am getting the following error: ERROR [imageio.ArcSDERasterReader] - INVALID COMPRESSION TYPE. ArcSDE Error Number: -316 Error Description : INVA

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Benoît Thiébault
Thanks Andrea ! I found what I did wrong. I used two Strings instead of a String and a Double. Your example helped me to find this rather trivial mistake. Here is the working code, for those who are interested. NumberFormatFunction.java Description: Binary data Le 3 mars 09 à 18:10, A

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Andrea Aime
Benoît Thiébault wrote: > OK for the text symbolizer, I have replaced the code as you said. > > Regarding the evaluate method, I have evaluated the two parameters > against the object as you said (see below). > I have built the formatter from the string result. > But then, I don't know what to re

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Benoît Thiébault
OK for the text symbolizer, I have replaced the code as you said. Regarding the evaluate method, I have evaluated the two parameters against the object as you said (see below). I have built the formatter from the string result. But then, I don't know what to return. I have tried (T) formatter.

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Andrea Aime
Benoît Thiébault wrote: > Hi everyone, > > As Andrea suggested, I'm trying to implement a formatting filter > function that could be used in SLD files (or programmatically) to > display text in a given format, like this : > > > myAtt > ##.## > > > I have looked at existing functions and co

[Geotools-gt2-users] Create sld dinamically

2009-03-03 Thread peppe
Hi list, I'm trying to make themes by Geotools on a map service wms (Geoserver). I'm using the sld. I added SLD=http://localhost:8080/webGeoTools/sld.xml at the call wms and it's work fine but now, I would like to create the file sld in my code java and then pass it as string to wms by: SLD_BODY =

Re: [Geotools-gt2-users] Writing with a datastore

2009-03-03 Thread Benoît Thiébault
Thanks Jody for your answers, I will have a look at the updated code. It seems to be a very useful example. Ben Le 3 mars 09 à 14:23, Jody Garnett a écrit : > Hi Mr Thiébault: > > I am jumping in with a couple answers where I can. >> Do you have any example of code using this listenerManager

Re: [Geotools-gt2-users] Centering and formatting the text of a TextSymbolizer

2009-03-03 Thread Benoît Thiébault
Hi everyone, As Andrea suggested, I'm trying to implement a formatting filter function that could be used in SLD files (or programmatically) to display text in a given format, like this : myAtt ##.## I have looked at existing functions and coded the function attached. However, I still

Re: [Geotools-gt2-users] Writing with a datastore

2009-03-03 Thread Jody Garnett
Hi Mr Thiébault: I am jumping in with a couple answers where I can. > Do you have any example of code using this listenerManager ? > You can find the updated source code in our svn repository: - http://svn.osgeo.org/geotools/trunk/modules/plugin/property I hope that can serve as an example. >

Re: [Geotools-gt2-users] Projection management on GeoTools

2009-03-03 Thread Sylvain GRELLET
Ok thanks for the explanation and the work done so far. Sylvain Martin Desruisseaux a écrit : > Hello Sylvain > > Sylvain GRELLET a écrit : >> One last question, do you know when the last port of Proj.4 C/C++ >> code to Java occured ? > > Hard to give a clear answer on this one since it is sprea

Re: [Geotools-gt2-users] Projection management on GeoTools

2009-03-03 Thread Martin Desruisseaux
Hello Sylvain Sylvain GRELLET a écrit : > One last question, do you know when the last port of Proj.4 C/C++ code > to Java occured ? Hard to give a clear answer on this one since it is spread over time... We do not have a complete port of the full Proj.4 library. We usually port parts of it o

Re: [Geotools-gt2-users] Projection management on GeoTools

2009-03-03 Thread Sylvain GRELLET
Hello, Thanks for your answers. One last question, do you know when the last port of Proj.4 C/C++ code to Java occured ? Working in France, maybe you know Martin, that IGN France recently contributed to Proj.4 in order to update projection & transformations related to RGF93/Lambert93 (it's in