[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.41Y: 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
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 Hi mapserver list, i need to style my map project with SLD. But because using a special client which doesn't support a whole request with SLD=http://placeofmysld/. i have to put the reference to the SLD inside my mapfile. I was researching a way, but the only thing i found was a method to do it in the METADATA element when binding a remote wms. But thats no way - to create a separate wms and bind it in another one because that slows down the map creation drastic. Is there another way to define my SLD inside the map file? Thanks Albrecht ___ 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
Re: [mapserver-users] GPS to GIS
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
AW: [mapserver-users] How do i define my SLD inside the mapfile?
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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GPS to GIS
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 -- Med venlig hilsen Peter Falk Nexus Kommunikation Østre Messegade 2 2650 Hvidovre 36 77 00 46 www.nexus.dk ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] drawing a north arrow on a map
Use the proper symbol name as: Layer style ---symbol 'symbol_name' end end regards, Ritesh fastturtle wrote: Dear list, I'm hoping someone can help me. Following the instructions in the wiki, I am trying to add a north arrow to a map. I've got a basic north arrow image (north.gif), I've added a pixmap symbol referencing it, and I've added a layer to the map.However, the GIF never shows. I've tried this in both a mapscript app and the basic Itasca demo, same result. I know there is nothing wrong with the GIF or symbol definition. I found one solution in which a empty STYLE object that was needed but I am not sure how to implement. Can anyone help? SYMBOL #North Arrow NAME northarrow1 TYPE pixmap IMAGE north.gif END LAYER NAME North Arrow STATUS DEFAULT TRANSFORM FALSE TYPE POINT FEATURE POINTS 250 250 END END CLASS SYMBOL 'north' END END Thanks in advance. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://www.nabble.com/drawing-a-north-arrow-on-a-map-tp18867640p18868108.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] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS
Dear All, I am getting error with query map.But it is working fine for Shape files.Only I am getting error with Postgresql/PostGIS.I do not know where I am doing wrong. Here is my Map File Code :- Name Continents CONNECTIONTYPE POSTGIS CONNECTION host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432 DATA the_geom from rgp_gis_continent And I have also used like DATA the_geom from rgp_gis_continent using unique gid and SRID=-1 But this also getting the same error.I am using Mapserver 5.0 and Postgresql8.1. Please let me know where I am doing wrong. Below is my error prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT continent::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid:: text from rgp_gis_continent WHERE (Africa) and (the_geom setSRID( 'BOX3D(-180 -112.415519399249,180 112.415519399249)'::BOX3D,find_srid('','rgp_gis_continent','the_geom') ))' Postgresql reports the error as 'ERROR: column africa does not exist ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. I am waiting for your great response. Thanks and Regards Venkat. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE : [mapserver-users] drawing a north arrow on a map
John, the symbol name doesn't match __ JAMES LÉVEILLÉ Service des systèmes de Mission Direction des technologies de l'information Ministère des Transports du Québec 5833, boul. Pierre-Bertrand, 2ième étage Québec (Québec) G2K 1K7 Téléphone: (418) 380-2005 poste 227 Télécopieur: (418) 644-6653 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de John Beck Envoyé : 7 août 2008 06:25 À : mapserver-users@lists.osgeo.org Objet : [mapserver-users] drawing a north arrow on a map Dear list, I'm hoping someone can help me. Following the instructions in the wiki, I am trying to add a north arrow to a map. I've got a basic north arrow image (north.gif), I've added a pixmap symbol referencing it, and I've added a layer to the map.However, the GIF never shows. I've tried this in both a mapscript app and the basic Itasca demo, same result. I know there is nothing wrong with the GIF or symbol definition. I found one solution in which a empty STYLE object that was needed but I am not sure how to implement. Can anyone help? SYMBOL #North Arrow NAME northarrow1 TYPE pixmap IMAGE north.gif END LAYER NAME North Arrow STATUS DEFAULT TRANSFORM FALSE TYPE POINT FEATURE POINTS 250 250 END END CLASS SYMBOL 'north' END END Thanks in advance. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Arabic-Farsi-Hebrew support?
Saka Royban wrote: Thanks stephen for your kind help. I'm thinking on a solution of using mapscript. i don't know whether it is true or not. using mapscript, getting the label positions from it and then compling labels in programming language,finally giving the result as an image to mapscript to show iton top of other layers. because i haven't use mapsript up to know, i'm not sure about it. Do you think it works? Why not just let MapServer handle everything? If the issue is simply that the MS4W package doesn't have fribidi2 included in it yet, then please ask for it on the MS4W mailing list and that option should be added in the next MS4W release. -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Arabic-Farsi-Hebrew support?
Daniel Morissette wrote: Why not just let MapServer handle everything? If the issue is simply that the MS4W package doesn't have fribidi2 included in it yet, then please ask for it on the MS4W mailing list and that option should be added in the next MS4W release. The associated ticket for this in MS4W is: http://bugzilla.maptools.org/show_bug.cgi?id=1914 -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] ogrinfo failure.
Hi list. I have a problem running ogrinfo.exe. When i press enter i get the following message: This application has failed to start because gdal15.dll was not found.Re-installing the application may fix this problem. Well,i re-installed ms4w but the problem remains. Does anyone know where the error might be? Thank you in advance...! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ogrinfo failure.
Open up a dos prompt and first run ms4w\setenv.bat, after that you can use ogrinfo. Best regards, Bart Νίκος Παπαδάκης wrote: Hi list. I have a problem running ogrinfo.exe. When i press enter i get the following message: This application has failed to start because gdal15.dll was not found.Re-installing the application may fix this problem. Well,i re-installed ms4w but the problem remains. Does anyone know where the error might be? Thank you in advance...! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Bart van den Eijnden OSGIS, Open Source GIS [EMAIL PROTECTED] http://www.osgis.nl ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PostGreSQL8.2/PostGIS SQL Error
Does anybody know why the following select query returns this error? - ERROR: Operation on two geometries with different SRIDs SQL state: XX000 SELECT * FROM sdghaz WHERE the_geom'BOX3D(-117.052660 32.854340, -117.052664 32.854353)'::box3d AND distance(the_geom, GeomFromText('POINT(-117.052662 32.854349)',4326))0.1 -Bryon This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users