[mapserver-users] OpenLayers, WFS, Postgis and SWEREF99 TM

2010-10-04 Thread Sofia Bryntse
Hello all,

We have a number of points (reference system SWEREF99TM/epsg:3006) in a 
Postgres db with PostGIS, that we want to display as choosable vector features 
on a web map, with the help of MapServer. E.g., if you hover over or click on a 
point, you will get a popup window with link to more info read from the 
database. The problem is that we don't know yet how to create this 
functionality in the best possible way. 

We are trying to use OpenLayers, connected to a WFS generated by MapServer. 
I've noticed a lack of examples of this combination of software and since we 
are new to WFS and OpenLayers and no real experts on MapServer either, we don't 
know if perhaps we're on the wrong track.  We are bumping into problem after 
problem, and I just want to make sure that what we are trying to do is even 
feasible. Is this the right method to solve our basic problem, or is there a 
better way (for example not using OpenLayers or not using WFS, but something 
else)? How many points is the optimal amount to visualise with WFS/OpenLayers ? 
Can WFS/OpenLayers handle our reference system SWEREF99 TM (epsg:3006)? Are 
there problems showing PostGIS data through WFS, that we are unaware of?


Kind regards,
Sofia___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


SV: [mapserver-users] Projection error, RT90 in MapServer

2010-01-23 Thread Sofia Bryntse
Hi Jukka, 

Wonderful! You fixed the problem, thank you very much! This solution saves me 
hours of work. :)

And you are right about the 'units=m' in the wgs84 projection, it works fine 
without it.

Regards,
Sofia

Från: Rahkonen Jukka [jukka.rahko...@mmmtike.fi]
Skickat: den 22 januari 2010 16:06
Till: Sofia Bryntse; mapserver-users@lists.osgeo.org
Ämne: Re: [mapserver-users] Projection error, RT90 in MapServer

Hi,

How about these parameters?


"+proj=tmerc +lat_0=0 +lon_0=15.808278 +k=1 +x_0=150 +y_0=0 
+ellps=bessel +units=m 
+towgs84=414.0978567149,41.3381489658,603.0627177516,-0.8550434314,2.1413465,-7.0227209516,0
 +no_defs"

Taken from 
http://www.zonefivesoftware.com/SportTracks/Forums/viewtopic.php?t=3543&postdays=0&postorder=asc&start=25

By the way, I suppose the unint in your WGS84 definition are wrong. Maybe you 
do not need the line at all.

> PROJECTION
>   'proj=longlat'
>   'ellps=WGS84'
>   'datum=WGS84'
>   'no_defs'
>   'units=m'
> END


-Jukka-


-Alkuperäinen viesti-
Lähettäjä: Sofia Bryntse [mailto:sofia.bryn...@et.slu.se]
Lähetetty: pe 22.1.2010 16:09
Vastaanottaja: Rahkonen Jukka; mapserver-users@lists.osgeo.org
Aihe: SV: [mapserver-users] Projection error, RT90 in MapServer

Hi Jukka,

Thank you, I tried adding your line to my RT90 projection parameter list now, 
but it didn't help. The point moved 50 meters or so, but not in the right 
direction. (See attached screenshot.)

Regards,
Sofia
________
Från: Rahkonen Jukka [jukka.rahko...@mmmtike.fi]
Skickat: den 22 januari 2010 11:16
Till: Sofia Bryntse; mapserver-users@lists.osgeo.org
Ämne: Re: [mapserver-users] Projection error, RT90 in MapServer

Hi,

Have you tried adding 'towgs84=0,0,0,0,0,0,0' also to RT90 definitions?

-Jukka Rahkonen-


> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Fia
> Lähetetty: 22. tammikuuta 2010 10:56
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] Projection error, RT90 in MapServer
>
>
> Hello,
>
> I have a problem showing data in the former Swedish standard reference
> system RT90 2,5 gon V. The point is projected ~250 meters
> northwest of where
> it should be. I have used the projection parameters for MapServer from
> Spatialreference.org.
>
> The underlying map projection is SWEREF 99 TM (the new
> standard Swedish
> reference system), with the following projection parameters:
> PROJECTION
>   'proj=utm'
>   'zone=33'
>   'ellps=GRS80'
>   'towgs84=0,0,0,0,0,0,0'
>   'units=m'
>   'no_defs'
> END
>
> I have then tested to pinpoint an intersection, in both
> WGS-84 and RT90, but
> the RT90 point does not end up where it should be.  I have
> double checked
> that the RT90 coordinates are correct by transforming them to
> WGS-84. See my
> attached screenshot.
> http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg
>
> For the WGS-84 point I have the following projection parameters:
> PROJECTION
>   'proj=longlat'
>   'ellps=WGS84'
>   'datum=WGS84'
>   'no_defs'
>   'units=m'
> END
>
> And the RT90 point has:
> PROJECTION
>   "proj=tmerc"
>   "lat_0=0"
>   "lon_0=15.808278"
>   "k=1"
>   "x_0=150"
>   "y_0=0"
>   "ellps=bessel"
>   "units=m"
>   "no_defs"
> END
>
> I have also tried all the other RT90 projections provided by
> Spatialreference.org, just to see if any of them would work
> better, but
> without luck.
>
> Have I made a mistake somewhere, or are there any suggestions
> of why this
> error occurs? I'm out of ideas.
>
> Regards,
> Sofia
> --
> View this message in context:
> http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438
> 959p4438959.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


SV: [mapserver-users] Projection error, RT90 in MapServer

2010-01-22 Thread Sofia Bryntse
Hi Jukka,

Thank you, I tried adding your line to my RT90 projection parameter list now, 
but it didn't help. The point moved 50 meters or so, but not in the right 
direction. (See attached screenshot.)

Regards,
Sofia

Från: Rahkonen Jukka [jukka.rahko...@mmmtike.fi]
Skickat: den 22 januari 2010 11:16
Till: Sofia Bryntse; mapserver-users@lists.osgeo.org
Ämne: Re: [mapserver-users] Projection error, RT90 in MapServer

Hi,

Have you tried adding 'towgs84=0,0,0,0,0,0,0' also to RT90 definitions?

-Jukka Rahkonen-


> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Fia
> Lähetetty: 22. tammikuuta 2010 10:56
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] Projection error, RT90 in MapServer
>
>
> Hello,
>
> I have a problem showing data in the former Swedish standard reference
> system RT90 2,5 gon V. The point is projected ~250 meters
> northwest of where
> it should be. I have used the projection parameters for MapServer from
> Spatialreference.org.
>
> The underlying map projection is SWEREF 99 TM (the new
> standard Swedish
> reference system), with the following projection parameters:
> PROJECTION
>   'proj=utm'
>   'zone=33'
>   'ellps=GRS80'
>   'towgs84=0,0,0,0,0,0,0'
>   'units=m'
>   'no_defs'
> END
>
> I have then tested to pinpoint an intersection, in both
> WGS-84 and RT90, but
> the RT90 point does not end up where it should be.  I have
> double checked
> that the RT90 coordinates are correct by transforming them to
> WGS-84. See my
> attached screenshot.
> http://n2.nabble.com/file/n4438959/rt90_mapserver_error.jpg
>
> For the WGS-84 point I have the following projection parameters:
> PROJECTION
>   'proj=longlat'
>   'ellps=WGS84'
>   'datum=WGS84'
>   'no_defs'
>   'units=m'
> END
>
> And the RT90 point has:
> PROJECTION
>   "proj=tmerc"
>   "lat_0=0"
>   "lon_0=15.808278"
>   "k=1"
>   "x_0=150"
>   "y_0=0"
>   "ellps=bessel"
>   "units=m"
>   "no_defs"
> END
>
> I have also tried all the other RT90 projections provided by
> Spatialreference.org, just to see if any of them would work
> better, but
> without luck.
>
> Have I made a mistake somewhere, or are there any suggestions
> of why this
> error occurs? I'm out of ideas.
>
> Regards,
> Sofia
> --
> View this message in context:
> http://n2.nabble.com/Projection-error-RT90-in-MapServer-tp4438
> 959p4438959.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users