Re: [Geotools-gt2-users] gui.swing widgets demo (WAS: Displaying icon on map in JMapPane, example)

2008-08-04 Thread johann sorel
Hi again, I am aware of this problem. Looks like they are some problems coming from the postgis values. Grab the interesting code part from the demo and paste it in your classes. If you dont see anything at startup, hit the small "earth" icon at the top. it will center the map on the datas. Mi

Re: [Geotools-gt2-users] gui.swing widgets demo (WAS: Displaying icon on map in JMapPane, example)

2008-08-04 Thread Michael Bedward
The demo builds but when I run it with org.geotools.demo.widgets.StreamWidgetsDemo as the main class I get this... java.lang.NullPointerException at org.geotools.gui.swing.datachooser.JPostGISDataPanel.(JPostGISDataPanel.java:74) at org.geotools.demo.widgets.StreamWidgetsDemo$4.a

Re: [Geotools-gt2-users] ways to get Features with click

2008-08-04 Thread Jody Garnett
VASkO wrote: > Is there any method to get the clicked FeatureCollection from a Layer? > There are some examples of making a Filter for a BBOX query; usually you make abounding box the size of the pixel and perform a query that way. - http://docs.codehaus.org/display/GEOTDOC/Filter+Examples#Fil

[Geotools-gt2-users] 2.5-M3 Released

2008-08-04 Thread Jody Garnett
The GeoTools 2.5-M3 milestone release is available for download: * http://geotools.codehaus.org/2.5-M3 The GeoTools 2.5 series has been updated to use *Java 5*, and has undergone many improvements. This release is centred around making a new Feature model available. The new feature model is

Re: [Geotools-gt2-users] Displaying icon on map in JMapPane, example

2008-08-04 Thread Michael Bedward
Excellent - thanks Johann. I had searched the code with grep jstreamnavmap and hadn't thought to grep for a subclass (duh !) cheers Michael 2008/8/4 johann wrote: > > You can find a demo on svn : > http://svn.geotools.org/trunk/demo/example/src/main/java/org/geotools/demo/widgets/StreamWidgetsDe

Re: [Geotools-gt2-users] coordinate conversion: envelope versus point???

2008-08-04 Thread Jay Parsons
Martin, I determined that I need to transform the four corners of the source envelope and then select the max& min values for both the latitude and longitude values from the four points to duplicate the results of the envelope transformation. thanks, -Jay - Original Message > From:

Re: [Geotools-gt2-users] coordinate conversion: envelope versus point???

2008-08-04 Thread Martin Desruisseaux
Jay Parsons a écrit : > I noticed a difference when I convert coordinates based on whether the points > are transformed as an envelope or points. > This just seems to happen for the longitude values and not latitude. What are your sourceCRS, targetCRS and step2 transform? A system.out.println of

Re: [Geotools-gt2-users] ArcSDE filter on shape

2008-08-04 Thread Jody Garnett
Angel, Eric wrote: > Is there a performance difference between using CQL vs creating your own > filters? > There are three ways to produce a Filter; they all produce the same object: 1. FilterFactory2 is fast; you as the programmer are saying exactly what you mean 2. CQL has the overhead of a

Re: [Geotools-gt2-users] ArcSDE filter on shape

2008-08-04 Thread Angel, Eric
Is there a performance difference between using CQL vs creating your own filters? I'm currently using the below code and it's really slow. --- FilterFactory2 ff2 = CommonFactoryFinder.getFilterFactory2(GeoTools.getDefaultHints()); Expression stateProperty = ff2.propert

[Geotools-gt2-users] coordinate conversion: envelope versus point???

2008-08-04 Thread Jay Parsons
All, I noticed a difference when I convert coordinates based on whether the points are transformed as an envelope or points. This just seems to happen for the longitude values and not latitude. Sample code: MathTransform step2; GeneralEnvelope targetEnvelope; MathTransform step2 = fact

Re: [Geotools-gt2-users] Issue regarding alignment of geotiff and postgis layer

2008-08-04 Thread AJ R
Hey Jody Seems like we solved the problem associated with this. The issue and the solution was as follows: We were reading the BBOX in EPSG:32616 coordinate system, but when rendering the ez image we were converting the bbox into EPSG:4326 coordinates when creating the image. There must have been

Re: [Geotools-gt2-users] Displaying icon on map in JMapPane, example

2008-08-04 Thread johann sorel
Michael Bedward a écrit : > Hi Johann, > > Are there any demos, test cases or code fragments that I can look at > to get a bit more understanding of how JStreamNavMap should be used ? > > cheers > Michael > You can find a demo on svn : http://svn.geotools.org/trunk/demo/example/src/main/java/org

Re: [Geotools-gt2-users] NoSuchFieldError: FEATURE_2D on inserting a feature into postgis

2008-08-04 Thread Wouter Schaubroeck
mmmhhh, allrighty, i found it... Indeed it was a matter of old jar's that still where in the classpath... I thought i removed all the directories containing the old jars, but there was one left, configured in the projectfiles of my ide (IntelliJ), and these where copied in the deployment directory

Re: [Geotools-gt2-users] NoSuchFieldError: FEATURE_2D on inserting a feature into postgis

2008-08-04 Thread Andrea Aime
Wouter Schaubroeck ha scritto: > Mm, the problem is getting bigger... I have a application > (basically a wms server) that was working on 2.4.1 code, this weekend > i upgraded it to 2.4.4, and now i'm also getting the NoSuchFieldError: > FEATURE_2D error... > > This is part of the stacktrace:

Re: [Geotools-gt2-users] NoSuchFieldError: FEATURE_2D on inserting a feature into postgis

2008-08-04 Thread Wouter Schaubroeck
Mm, the problem is getting bigger... I have a application (basically a wms server) that was working on 2.4.1 code, this weekend i upgraded it to 2.4.4, and now i'm also getting the NoSuchFieldError: FEATURE_2D error... This is part of the stacktrace: java.lang.NoSuchFieldError: FEATURE_2D

Re: [Geotools-gt2-users] Displaying icon on map in JMapPane, example

2008-08-04 Thread Michael Bedward
Hi Johann, Are there any demos, test cases or code fragments that I can look at to get a bit more understanding of how JStreamNavMap should be used ? cheers Michael 2008/7/30 johann sorel <[EMAIL PROTECTED]>: > Hello, > > If you can switch on the latest GeoTools (snapshot one) > I suggest you us