Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Raif S. Naffah
hello Gabriel, thanks for the reply. yet unless i'm mistaken, i believe the issue i raised is relevant for client side application using the library; i.e. when building a BBOX Filter to use with a WFS 1.1 the coordinates of the bounding box must reflect the normative axis order of the CRS even

Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Gabriel Roldan
Hi Raif, sorry for the late response. It all ends up being that in the new wfs 1.1 datastore I forgot about the axis flipping issue. There's already a JIRA for it . I'll try to fix it this very week though. Gabriel On Tuesday 24 February 2009 23:46:57

Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Raif S. Naffah
hello Jody, On Wed, 25 Feb 2009 03:53:20 pm Jody Garnett wrote: > WFS 1.1 does allow for the external WFS to transform the CRS of the > output; the way in which this *should* be done is to change your > Query (ie set the CRS you want it to reproject to). Now the real > question is if the WFS DataS

Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Jody Garnett
WFS 1.1 does allow for the external WFS to transform the CRS of the output; the way in which this *should* be done is to change your Query (ie set the CRS you want it to reproject to). Now the real question is if the WFS DataStore implementor has allowed for this .. the API allows for it but it may

Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Raif S. Naffah
hello Andrea + all, i'm attaching a JUnit test case that shows the alternative for addressing the axis order on the client side. suggestions for improvements or alternatives for making it more robust are appreciated. On Wed, 25 Feb 2009 09:02:59 am Raif S. Naffah wrote: > hello Andrea, > > th

Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Raif S. Naffah
hello Andrea, the first request is the one that is displayed by GeoServer (1.6.4b) in the Sample Requests section of the GUI. the second one, which i realise suffers the axis related problem, is the best i was able to get from using the GeoTools libraries (2.5.3) with the WFS 1.1 data store an

Re: [Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Michael Bedward
Hello Pete, > I think you are referring to the "extractPoint" function. But the function > selects the Point between in a fraction between [0,1] No, it takes a distance in whatever units you are using for your geometries. For example, assuming a Cartesian space (and without checking line directi

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Desruisseaux
I forgot to said! A yet simplier way to know about the changes is to look again on the http://www.epsg-registry.org/ site, at the page about the 3035 CRS, on the right side there is a list of "Change ID". Its look like this CRS got no significant changes apart aliases and stuff like that. If old

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Desruisseaux
Martin Tomko a écrit : > It seems that the definition changed in epsg-hsql.jar at some stage. Is > there any change list ublicly available where such things could be > traced? That would help a lot! The epsg-hsql module itself didn't changed significantly. However this module is bundled with a

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Tomko
Dear Martin, Andrea, Simone, thank you very much for clarifying. So, general conclusion - Geotools from 2.4-SNAPSHOT onwards contains the correct, standard compliant ( http://www.epsg-registry.org/ ) definition of the EPSG:3035 system. And yes, forcing the CRSdecode to easting, northing order he

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Desruisseaux
Hello Martin Martin Tomko a écrit : > yes, I am sure - and there is no conflict, what you are getting is > exactly what I get. The problem is that the recent definition (the onoe > you sent) does not seem to be correct!! > Note the end of the wkt: > AXIS["Northing", NORTH], > AXIS["Easting", EAS

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Andrea Aime
Martin Tomko wrote: > Hi Martin, > yes, I am sure - and there is no conflict, what you are getting is > exactly what I get. The problem is that the recent definition (the onoe > you sent) does not seem to be correct!! > Note the end of the wkt: > AXIS["Northing", NORTH], > AXIS["Easting", EAST],

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

2009-02-24 Thread Andrea Aime
Benoît Thiébault wrote: > Thanks Andrea, > > I did not try to set my AnchorX to 0.5. > How do you do it ? I couldn't find any documentation to access the > anchor point of a TextSymbolizer. Mumble... it's part of the label placement structure, it can be a point placement, or a line placement. If

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Simone Giannecchini
Martin, I amo not sure this might help ( I stooped half-way with the eamil thread :-), but try to change from CRS.decode("EPSG:") to CRS.decode("EPSG:XXX",true) this would force things to be easting/northing, always. Simone. --- Ing. Simone

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Tomko
Hi Martin, yes, I am sure - and there is no conflict, what you are getting is exactly what I get. The problem is that the recent definition (the onoe you sent) does not seem to be correct!! Note the end of the wkt: AXIS["Northing", NORTH], AXIS["Easting", EAST], AUTHORITY["EPSG","3035"]] my readi

Re: [Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Desruisseaux
Hello Martin Are you sure you are using epsg-hsql.jar? I just tried on my machine (GeoTools 2.6-SNAPSHOT, but it is identical to 2.5-SNAPSHOT) and I get: PROJCS["ETRS89 / ETRS-LAEA", GEOGCS["ETRS89", DATUM["European Terrestrial Reference System 1989", SPHEROID["GRS 1980", 6378137.

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

2009-02-24 Thread Benoît Thiébault
I found how to do it: text.setLabelPlacement(sb.createPointPlacement(0.5, 0.0, 0.0)); It's still another deprecated method (setLabelPlacement), but there is a way to avoid it : StyleBuilder sb = new StyleBuilder(); org.geotools.styling.Font[] fontArray = {sb.createFont(new Font("sansserif",

Re: [Geotools-gt2-users] WebMapServer Timeout

2009-02-24 Thread Rafael Soto
OK Jody, I will give it to you soon OK? On Mon, Feb 23, 2009 at 6:20 PM, Jody Garnett wrote: > Woot; glad it helped. Do you have a code example you can share with the > list here? (So I can put it in the wiki for others?) > Jody > > > On Tue, Feb 24, 2009 at 4:11 AM, Rafael Soto wrote: > >> OK J

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

2009-02-24 Thread Benoît Thiébault
Thanks Andrea, I did not try to set my AnchorX to 0.5. How do you do it ? I couldn't find any documentation to access the anchor point of a TextSymbolizer. Regarding the new function, I will give it a try and let you know. Benoît Le 24 févr. 09 à 14:03, Andrea Aime a écrit : > Jody Garnett w

Re: [Geotools-gt2-users] controlling axis order with WFS 1.1 GetFeature

2009-02-24 Thread Andrea Aime
Raif S. Naffah wrote: > hello all, > > is there a way of generating a GetFeature request similar to the > following: > >xmlns:topp="http://www.openplans.org/topp"; > xmlns:wfs="http://www.opengis.net/wfs"; > xmlns:ogc="http://www.opengis.net/ogc"; > xmlns:gml="http://www.opengis.net/gm

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

2009-02-24 Thread Andrea Aime
Jody Garnett wrote: > Okay cool; so have you tried the text symbolizer offset yet? Setting an > offset should allow you to draw above or below the line. There is also a > rendering hint that can be used to make the text follow the line; I am > not sure if that only changes orientation or if it a

[Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Tomko
Apologies if this appears twice, does not seem to make it through. I have done a few more tests on the definition of EPSG:3035 in geotools (using epsg-hsql.jar). I can now confirm that the results I am getting from 2.4-SNAPSHOT and 2.5-SNAPSHOT (using maven) are identical, based on the definitio

[Geotools-gt2-users] axis order problem (projection from wgs84 to EPSG:3035), epsg-HSQL lib

2009-02-24 Thread Martin Tomko
I have done a few more tests on the definition of EPSG:3035 in geotools (using epsg-hsql.jar). I can now confirm that the results I am getting from 2.4-SNAPSHOT and 2.5-SNAPSHOT (using maven) are identical, based on the definition of the system as: PROJCS["ETRS89 / ETRS-LAEA", GEOGCS["ETRS89"

Re: [Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Pete
Hi Michael, thanks for your reply. I think you are referring to the "extractPoint" function. But the function selects the Point between in a fraction between [0,1] and i like to have something like "find the lat/lon position with the distance of 50meter from the beginning" I belive i have to con

Re: [Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Michael Bedward
LengthIndexedLine is your friend... http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/linearref/LengthIndexedLine.html Michael -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -

[Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Pete
i'm trying to find the right function for a while now, but i am stuck i have a linestring in wgs84 and i want to find the coordinates along the linestring lets say every 50m... I know i can find the distance between two coordinates in meter (JTS.orthodromicDistance) but thats not the one i am