Hi,

Based on my experience on OpenJUMP which has very close relation to JTS I 
really believe it has internally the coordinate axis always in the same order 
and I believe it is the same with WKT and GML2. I have never programmed 
anything but I would guess that you can decide to store the (x,y) coordinates 
in whatever way if you just take care that when you read them back to JTS 
geometry they are again as (x,y). If you want to make your living hard, store 
them to GML3 with the logic "if the SRS/CRS is one of these two thousand codes 
save it as (x,y) otherwise as (y,x)" and remember to do the same while reading. 
 

-Jukka Rahkonen-

christian.mueller wrote:

 
> Thanks for your fast reply. Only to be sure:
> 
> If I create a JTS geometry  and want to store it for EPSG:3035 (y,x)  
> or EPSG:4326 (lat,long), I always store the points as (x,y) or  
> (long,lat).
> 
> Is this correct ?
> 
> 
> Zitat von Rahkonen Jukka <[email protected]>:
> 
> > Hi,
> >
> > WMS version does not have any effect on the data storage. 
> Shapefiles  
> >  remains the same, so do PostGIS, Oracle and so on. It is 
> only about  
> >  converting geometries to/from GML3 and about how to 
> interpret the   
> > BBOX. It is up to client and server to undestand that if 
> the system   
> > is EPSG:4326 and if the WMS version is 1.3.0 they must play the   
> > stupid game so that the key is CRS and coordinates are in   
> > nothing-easting order, but if it is version 1.1.1 then the 
> rules say  
> >  to use SRS and easting-northing. The data in shapefiles, MapInfo   
> > files, Oracle, PostGIS and so on remains the same.
> >
> > -Jukka Rahkonen-
> >
> >> -----Alkuperäinen viesti-----
> >> Lähettäjä: [email protected]
> >> [mailto:[email protected]]
> >> Lähetetty: 18. lokakuuta 2011 16:17
> >> Vastaanottaja: Andrea Aime
> >> Kopio: Rahkonen Jukka; [email protected]
> >> Aihe: Re: [Geoserver-users] WMS GetMap 1.1.1 versus 1.3, CRS
> >> instead of SRS
> >>
> >> Hi Andrea, I am little bit confused. If I have to deploy a 
> geoserver
> >> for INSPIRE using WMS 1.3 and using EPSG:3035 and EPSG:4326 (y,x)
> >> order, the WMS request has to bee in y,x order too.
> >>
> >> How should I store the my geometries in the
> >> database/shapefiles. y,x or x,y.
> >>
> >> I need another system EPSG:31287 which has x,y order, see no
> >> problem here.
> >>
> >> Cheers
> >> Christian
> >>
> >>
> >>
> >> Zitat von Andrea Aime <[email protected]>:
> >>
> >> > On Wed, Oct 5, 2011 at 4:40 PM, Rahkonen Jukka
> >> > <[email protected]>wrote:
> >> >
> >> >> **
> >> >> Andrea,
> >> >>
> >> >> You are too positive in saying "(there are a few projected
> >> ones that flip
> >> >> anyways, but they are
> >> >> a small minority)".  Majority of the compulsory INSPIRE 
> systems are
> >> >> Northing-Easting (ETRS89 / LAEA Europe) like
> >> >>
> >> >>
> >> http://epsg-registry.org/report.htm?type=selection&entity=urn:
> > ogc:def:crs:EPSG::3035&reportDetail=short&style=urn:uuid:report->   
> > style:default-with-urn&style_name=OGP%20Default%20With%20Urn&t
> > itle=EPSG:3035
> >> >>
> >> >
> >> > Interesting, I never had to use one so I guess my
> >> perception is skewed (all
> >> > common italian projected
> >> > systems are in E/N order, so do all of the USA ones I've
> >> worked with so
> >> > far).
> >> > Let's check on the database itself (I was not referring to
> >> the INSPIRE case,
> >> > but in general).
> >> > I created a little program, attached, that scans the EPSG
> >> database in its
> >> > natural order and
> >> > checks all the projected CRS, seeing what their axis order is.
> >> >
> >> > The result confirm what you said, 30% of the projected SRS
> >> in the official
> >> > database, v 7.5,
> >> > is indeed in North/East order:
> >> >
> >> > total: 3522
> >> > north/east: 1068
> >> > unknown: 41
> >> >
> >> > Do you know why this order is preferred? Really makes no
> >> sense to me (this
> >> > is not boat/aircraft navigation)
> >> >
> >> > Cheers
> >> > Andrea
> >> >
> >> >
> >> > --
> >> > -------------------------------------------------------
> >> > Ing. Andrea Aime
> >> > GeoSolutions S.A.S.
> >> > Tech lead
> >> >
> >> > Via Poggio alle Viti 1187
> >> > 55054  Massarosa (LU)
> >> > Italy
> >> >
> >> > phone: +39 0584 962313
> >> > fax:      +39 0584 962313
> >> >
> >> > http://www.geo-solutions.it
> >> > http://geo-solutions.blogspot.com/
> >> > http://www.youtube.com/user/GeoSolutionsIT
> >> > http://www.linkedin.com/in/andreaaime
> >> > http://twitter.com/geowolf
> >> >
> >> > -------------------------------------------------------
> >> >
> >>
> >>
> >>
> >> ----------------------------------------------------------------
> >> This message was sent using IMP, the Internet Messaging Program.
> >>
> >>
> >>
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to