Re: [Geotools-gt2-users] Adding Coordinate Reference System to a shape file

2006-10-11 Thread Jody Garnett
Tommaso Agnoloni wrote: Hi, I'm trying to set a crs (ccordinate reference system) to the shapefiles I'm creating using geotools but it seems it doesn't have any effect; This is the code I'm using Any hint on how to set it ? Set it in as the metadata parameter when you create your

Re: [Geotools-gt2-users] (no subject)

2006-10-11 Thread [EMAIL PROTECTED]
Satyanarayana Murty Pindiproli ha scritto: hi guys , Can someone please send me the link to unsubscribe from this mail-list. I am no longer in a similar project and am not active in this group. Ever seen what's at the bottom of all the mails in this list? Geotools-gt2-users mailing list

Re: [Geotools-gt2-users] geotools 2.2 vs 2.3_M0

2006-10-11 Thread Simone Giannecchini
Ciao Gabriella, I understand you are trying to create a GridCoverage2D from a worldimage whose raster is a jpeg image. If this guess is correct then the code you are using is incorrect. A correct snippet of code to cope with your needs would be as follows: // get a reader final WorldImageReader

Re: [Geotools-gt2-users] export geometries to SVG

2006-10-11 Thread Jan Gregor
thanks, geometries are read from oracle and converted by OraReader to JTS geometry. anyway I solved it with MemoryFeatureCollection class this is currently my class, just one feature is created ... problem is that resulting svg file is without this feature. what did I forgot ? public class

[Geotools-gt2-users] not able to fine org.geotools.gui.swing.StyledMapPane.java

2006-10-11 Thread vamsee movva
Hello all, I am trying to find org.geotools.gui.swing.StyledMapPane.java in the source code. any body have any idea about this? Thanks in advance. vamsee - Using Tomcat but need to do more? Need to support web services,

Re: [Geotools-gt2-users] geotools 2.2 vs 2.3_M0

2006-10-11 Thread Martin Desruisseaux
Alessio Fabiani a écrit : Just a hint, for LENIENT_DATUM_SHIFT parameter, do not forget to write crs = CRS.decode(EPSG:27200, true) instead of crs = CRS.decode(EPSG:27200) Just a slight precision: CRS.decode(EPSG:27200, true) is actually for Hints.FORCE_LONGITUDE_AXIS_FIRST. The

Re: [Geotools-gt2-users] WMS queries

2006-10-11 Thread Richard Gould
There is a tutorial here: http://docs.codehaus.org/display/GEOTOOLS/Web+Map+Server+Tutorial But it is out of date, but only some of the method signatures have changed. Armed with the javadocs, it shouldn't be hard to figure out. I do need to update it though. And GeoTools does not currently

Re: [Geotools-gt2-users] not able to fine org.geotools.gui.swing.StyledMapPane.java

2006-10-11 Thread Jody Garnett
There is an alternative available - JMapPane, see the last example: - http://www.foss4g2006.org/materialDisplay.py?contribId=186amp;sessionId=44amp;materialId=slidesamp;confId=1 Or the source code here: -

[Geotools-gt2-users] Help with an error

2006-10-11 Thread Amy Johnson
Sorry for my questions that probably have easy answers. Has anyone seen this error message? FactoryRegistry scanForPlugins WARNING: Can't load a service for category MathTransformProvider. java.lang.NoClassDefFoundError: javax/media/jai/WarpAffine at java.lang.Class.forName0(Native Method)

Re: [Geotools-gt2-users] geotools 2.2 vs 2.3_M0

2006-10-11 Thread Gabriella Turek
Simone Giannecchini wrote: Ciao Gabriella, you were seeing that complain about bursa-wolf parameters missing because you are implicitly requesting a datum-shift when going to WGS84 but your wkt was not providing the bursa wolf parameters to control the shift. I added hem to mine wkt.

Re: [Geotools-gt2-users] geotools 2.2 vs 2.3_M0

2006-10-11 Thread Gabriella Turek
The code URL imgURL = (new File(data/nz2_2.jpg)).toURL(); GridCoverage2D gc = (GridCOverage2D) wir.read(null); now compiles in both 2.2 code to 2.3_M0 but the image does not get plotted, but I don't get any error either gaby -- ***

Re: [Geotools-gt2-users] PostGIS Connection using parameters

2006-10-11 Thread jdONeill dev
I have tried the same code with GeoTools 2.1.0. Now the DataStore object pgDataStore causes the following exception: java.io.IOException: The parameteres map isn't correct!! at org.geotools.data.postgis.PostgisDataStoreFactory.createDataStore(PostgisDataStoreFactory.java:175) at

Re: [Geotools-gt2-users] geotools 2.2 vs 2.3_M0

2006-10-11 Thread Gabriella Turek
Gabriella Turek wrote: The code URL imgURL = (new File(data/nz2_2.jpg)).toURL(); GridCoverage2D gc = (GridCOverage2D) wir.read(null); now compiles in both 2.2 code to 2.3_M0 but the image does not get plotted, but I don't get any error either gaby Correction I do get error messages

Re: [Geotools-gt2-users] Help with an error

2006-10-11 Thread Martin Desruisseaux
Amy Johnson a écrit : FactoryRegistry scanForPlugins WARNING: Can't load a service for category MathTransformProvider. java.lang.NoClassDefFoundError: javax/media/jai/WarpAffine Java Advanced Imaging is probably not installed on your machine. You can donwload it from there: Java Advanced

Re: [Geotools-gt2-users] PostGIS Connection using parameters

2006-10-11 Thread Antonio Grassi
I tried that code today, but using geotools 2.2, with no namespace nor schema parameters. The returned pgDataStore value was null when not having the postgresql jdbc driver in the classpath. After adding it, it worked fine. Maybe it has something to do with your case. Bye,Antonio

[Geotools-gt2-users] Setting world and CRS information on the fly image obtained from server

2006-10-11 Thread Gabriella Turek
I have to be able to read images from an ARCIMS server that is not configured to support WMS. To make it work with geotools, I get the map image URL from the server, write the image to a temp jpg file, write out a world file and a a prj file and read it back in as usual using a WorldImageReader,