Hi,

You should try something like :
DATA "the_geom FROM (select * FROM rgp_gis_continent) as foo USING UNIQUE gid USING SRID=-1"

Regards

Laurent

Le 07/08/2008 13:37, > [EMAIL PROTECTED] (par Internet, dépôt [EMAIL PROTECTED]) a écrit :
Send mapserver-users mailing list submissions to
        mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

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? ([EMAIL PROTECTED])
   2. Re: AW: [mapserver-users] How do i define my SLD inside the
      mapfile? ([EMAIL PROTECTED])
   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: <[EMAIL PROTECTED]>
Subject: AW: [mapserver-users] How do i define my SLD inside the
        mapfile?
To: <[EMAIL PROTECTED]>
Cc: mapserver-users@lists.osgeo.org
Message-ID:
        <[EMAIL PROTECTED]>
        
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

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 7. August 2008 09:52
An: Weiser, Albrecht (HZD)
Cc: mapserver-users@lists.osgeo.org
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


------------------------------

Message: 2
Date: Thu, 7 Aug 2008 11:34:31 +0200 (CEST)
From: [EMAIL PROTECTED]
Subject: Re: AW: [mapserver-users] How do i define my SLD inside the
        mapfile?
To: [EMAIL PROTECTED]
Cc: mapserver-users@lists.osgeo.org
Message-ID:
        <[EMAIL PROTECTED]>
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 http://145.50.148.45/nu.sld
~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

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

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. August 2008 09:52
An: Weiser, Albrecht (HZD)
Cc: mapserver-users@lists.osgeo.org
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




------------------------------

Message: 3
Date: Thu, 07 Aug 2008 11:35:15 +0200
From: Peter Falk <[EMAIL PROTECTED]>
Subject: Re: [mapserver-users] GPS to GIS
To: mapserver-users@lists.osgeo.org
Message-ID: <[EMAIL PROTECTED]>
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:
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 (http://proj.maptools.org/man_cs2cs.html) 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" <[EMAIL PROTECTED]>
To: <mapserver-users@lists.osgeo.org>
Sent: Thursday, August 07, 2008 9:20 AM
Subject: [mapserver-users] GPS to GIS


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
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

Reply via email to