<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
You should try something like :<br>
DATA "the_geom FROM (select * FROM rgp_gis_continent) as foo USING
UNIQUE gid USING SRID=-1"<br>
<br>
Regards<br>
<br>
Laurent<br>
<br>
Le 07/08/2008 13:37, > <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a> (par
Internet, dépôt <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>) a écrit :
<blockquote cite="mid:20080807113758.2D9AFE01BC0@lists.osgeo.org"
type="cite">
<pre wrap="">Send mapserver-users mailing list submissions to
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
To subscribe or unsubscribe via the World Wide Web, visit
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
or, via email, send a message with subject or body 'help' to
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a>
You can reach the person managing the list at
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-owner@lists.osgeo.org">mapserver-users-owner@lists.osgeo.org</a>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."
Today's Topics:
1. AW: [mapserver-users] How do i define my SLD inside the
mapfile? (<a class="moz-txt-link-abbreviated" href="mailto:Albrecht.Weiser@hzd.hessen.de">Albrecht.Weiser@hzd.hessen.de</a>)
2. Re: AW: [mapserver-users] How do i define my SLD inside the
mapfile? (<a class="moz-txt-link-abbreviated" href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>)
3. Re: GPS to GIS (Peter Falk)
4. drawing a north arrow on a map (John Beck)
5. Re: drawing a north arrow on a map (Ritesh Ambastha)
6. Reg: QueryMap(Zoom To Shape) with Mapserver
PostgreSql/PostGIS (Venkat Rao Tammineni)
7. RE : [mapserver-users] drawing a north arrow on a map (L?veill?)
----------------------------------------------------------------------
Message: 1
Date: Thu, 7 Aug 2008 11:25:02 +0200
From: <a class="moz-txt-link-rfc2396E" href="mailto:Albrecht.Weiser@hzd.hessen.de"><Albrecht.Weiser@hzd.hessen.de></a>
Subject: AW: [mapserver-users] How do i define my SLD inside the
mapfile?
To: <a class="moz-txt-link-rfc2396E" href="mailto:bartvde@osgis.nl"><bartvde@osgis.nl></a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Message-ID:
<a class="moz-txt-link-rfc2396E" href="mailto:CE18753D388B804D89BEF318AA1554DC0C8CC7@SRVSHPCL03EX2.itshessen.hessen.de"><CE18753D388B804D89BEF318AA1554DC0C8CC7@SRVSHPCL03EX2.itshessen.hessen.de></a>
Content-Type: text/plain; charset="iso-8859-1"
Hi Bart,
what a luck that there's a workaround. Unluckily i'm not a php crack :o/ Could you please tell in a few catchwords how to apply the script?
Thanks
Albrecht
</pre>
<blockquote type="cite">
<pre wrap="">-----Ursprüngliche Nachricht-----
Von: <a class="moz-txt-link-abbreviated" href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a> [<a class="moz-txt-link-freetext" href="mailto:bartvde@osgis.nl">mailto:bartvde@osgis.nl</a>]
Gesendet: Donnerstag, 7. August 2008 09:52
An: Weiser, Albrecht (HZD)
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Betreff: Re: [mapserver-users] How do i define my SLD inside
the mapfile?
No you can't use an SLD directly in a WMS server MAP file.
What I normally do is apply the SLD to the MAP file using a simple PHP
script:
#!/bin/sh
sudo -u apache php -f $0 $*; exit $?
<?php
if ($argc != 4) {
echo "Usage: applysldurl.php <input MAP file> <SLD url> <output MAP
file>\n";
echo "\n";
echo "Applies the SLD url to the layers in the MAP file\n";
echo "\n";
exit(1);
}
$oMap = ms_newMapObj($argv[1]);
$oMap->applySLDURL($argv[2]);
$oMap->save($argv[3]);
echo "Output saved to $argv[3]\n";
?>
Best regards,
Bart
</pre>
</blockquote>
<pre wrap=""><!---->
------------------------------
Message: 2
Date: Thu, 7 Aug 2008 11:34:31 +0200 (CEST)
From: <a class="moz-txt-link-abbreviated" href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>
Subject: Re: AW: [mapserver-users] How do i define my SLD inside the
mapfile?
To: <a class="moz-txt-link-abbreviated" href="mailto:Albrecht.Weiser@hzd.hessen.de">Albrecht.Weiser@hzd.hessen.de</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Message-ID:
<a class="moz-txt-link-rfc2396E" href="mailto:14438.145.50.39.11.1218101671.squirrel@webmail.hostingdiscounter.nl"><14438.145.50.39.11.1218101671.squirrel@webmail.hostingdiscounter.nl></a>
Content-Type: text/plain;charset=iso-8859-1
Hi Albrecht,
you can run the script like:
php -d safe_mode=off /data/geoservices/scripts/applysldurl.php
/data/OGC_UMN_services/kerngisnat_utre.map <a class="moz-txt-link-freetext" href="http://145.50.148.45/nu.sld">http://145.50.148.45/nu.sld</a>
~bart/kgnat_svn2/services/kerngisnat_utre.map.new
Make sure the paths to your input and output MAP file are absolute, and
read the SLD from a webserver.
Btw, Mapserver matches the NamedLayers from the SLD to the NAME of the
LAYER in the MAP file, so they have to be the same for it to work
properly.
This will generate CLASSes for your layers in the MAP file.
Best regards,
Bart
</pre>
<blockquote type="cite">
<pre wrap="">Hi Bart,
what a luck that there's a workaround. Unluckily i'm not a php crack :o/
Could you please tell in a few catchwords how to apply the script?
Thanks
Albrecht
</pre>
<blockquote type="cite">
<pre wrap="">-----Ursprüngliche Nachricht-----
Von: <a class="moz-txt-link-abbreviated" href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a> [<a class="moz-txt-link-freetext" href="mailto:bartvde@osgis.nl">mailto:bartvde@osgis.nl</a>]
Gesendet: Donnerstag, 7. August 2008 09:52
An: Weiser, Albrecht (HZD)
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Betreff: Re: [mapserver-users] How do i define my SLD inside
the mapfile?
No you can't use an SLD directly in a WMS server MAP file.
What I normally do is apply the SLD to the MAP file using a simple PHP
script:
#!/bin/sh
sudo -u apache php -f $0 $*; exit $?
<?php
if ($argc != 4) {
echo "Usage: applysldurl.php <input MAP file> <SLD url> <output MAP
file>\n";
echo "\n";
echo "Applies the SLD url to the layers in the MAP file\n";
echo "\n";
exit(1);
}
$oMap = ms_newMapObj($argv[1]);
$oMap->applySLDURL($argv[2]);
$oMap->save($argv[3]);
echo "Output saved to $argv[3]\n";
?>
Best regards,
Bart
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
------------------------------
Message: 3
Date: Thu, 07 Aug 2008 11:35:15 +0200
From: Peter Falk <a class="moz-txt-link-rfc2396E" href="mailto:peter@nexus.dk"><peter@nexus.dk></a>
Subject: Re: [mapserver-users] GPS to GIS
To: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:489AC1D3.3030800@nexus.dk"><489AC1D3.3030800@nexus.dk></a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Guys,
Thanks for your input. It's been a great help. The fact that I'm now
aware of the translation - from WGS84 to UTM Zone 32 - has narrowed the
problem down.
Peter
Benoît Andrieu skrev:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Peter,
What do you mean with 'GIS' coordinates ?
For me, GIS means Geographic Information System and is a very common
term.
Looking at your 'GIS' coordinates I would say that your GIS coordinate
system is a UTM 32 coordinate system.
And in your case, you could use cs2cs
(<a class="moz-txt-link-freetext" href="http://proj.maptools.org/man_cs2cs.html">http://proj.maptools.org/man_cs2cs.html</a>) in order to make the
translation.
cs2cs.exe +proj=latlong +datum=WGS84 +to +proj=utm +zone=32
+datum=WGS84 -r
input : 54.9808N 8.86707E
output : 491492.61 6092662.95 0.00
The results are not exactly accurate with yours but they are close
enough to me (by what ? 600 meters ? ^^).
I hope it will help.
Regards,
Benoît Andrieu
----- Original Message ----- From: "Peter Falk" <a class="moz-txt-link-rfc2396E" href="mailto:peter@nexus.dk"><peter@nexus.dk></a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users@lists.osgeo.org"><mapserver-users@lists.osgeo.org></a>
Sent: Thursday, August 07, 2008 9:20 AM
Subject: [mapserver-users] GPS to GIS
</pre>
<blockquote type="cite">
<pre wrap="">Hi David,
Yes I know i was a bit vague. What I need is a simple function, that
can turn a point in GPS - a lattitude and a logitude value - into a
point in GIS.
I.e. I got these coordinate:
GPS: N: 54.9809 E: 8.86707
that applies to
GIS: X: 491055.41 Y: 6092507.928
What I need is the correlation between the two.
Regards
Peter
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>