From woodbri at swoodbridge.com Sat Mar 2 10:10:33 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 02 Mar 2013 13:10:33 -0500 Subject: [mapserver-users] ERROR WORKING WITH MAPSERVER In-Reply-To: <26117943.83692.1362243143472.JavaMail.nabble@alf.nabble.com> References: <26117943.83692.1362243143472.JavaMail.nabble@alf.nabble.com> Message-ID: <51324099.6010706@swoodbridge.com> On 3/2/2013 11:52 AM, jgranadosp at gmail.com wrote: > > On 3/2/2013 11:17 AM, reactorh wrote: >> Any one could give me a hand on this..... >> >> Thx > > So you got: > > > I compilded Mapserver and when i try to used it i got this: > > PHP Warning: PHP Startup: Unable to load dynamic library > > > '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/php_mapscript.so' - > > libmapserver-6.2.0.so: cannot open shared object file: No such file or > > directory in Unknown on line 0 > > and ldd says this is the file it is looking for: > > /usr/local/lib/libmapserver-6.2.0.so > > So does this file exist? > > ls -l /usr/local/lib/libmapserver-6.2.0.so > > It need permission so that PHP can access it. It should be owned by root. > > So on my system I have stuff like: > > -rwxr-xr-x 1 root root 5942968 2012-07-02 09:36 libmapserver-6.1-dev.so > -rwxr-xr-x 1 root root 5934502 2012-07-14 17:10 > libmapserver-6.2.0-beta1.so > -rwxr-xr-x 1 root root 5933786 2012-08-01 10:40 > libmapserver-6.2.0-beta2.so > -rwxr-xr-x 1 root root 5947268 2012-11-12 10:14 libmapserver-6.3-dev.so > -rwxr-xr-x 1 root root 2066 2012-11-12 10:14 libmapserver.la > lrwxrwxrwx 1 root root 23 2012-11-12 10:14 libmapserver.so -> > libmapserver-6.3-dev.so > > Notice that libmapserver.so is a symlink that points to another file. If > you have a symlink make sure you have the file it needs to point to also. > > If you are not sure about this stuff and nobody else is using mapserver > on this box, you could clean it up by doing: > > # remove all the mapserver libraries > sudo rm /usr/local/lib/libmapserver* > > cd /path/to/mapserver/src > sudo make install > > # and for good measure > sudo ldconfig > > then try your test again. > > -Steve > > -Steve > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > > > Quoted from: > http://osgeo-org.1560.n6.nabble.com/ERROR-WORKING-WITH-MAPSERVER-tp5037405p5037986.html > > Ok, Jeff i did what u said..... > > i got this: > root at server [/]# find / -name libmapserver* > /root/map/mapserver-6.2.0/libmapserver.la > /root/map/mapserver-6.2.0/.libs/libmapserver.so > /root/map/mapserver-6.2.0/.libs/libmapserver-6.2.0.so > /root/map/mapserver-6.2.0/.libs/libmapserver.lai > /root/map/mapserver-6.2.0/.libs/libmapserver.la > /usr/local/lib/libmapserver.so > /usr/local/lib/php/extensions/no-debug-non-zts-20090626/libmapserver-6.2.0.so > /usr/local/lib/libmapserver.la > /usr/local/lib/libmapserver-6.2.0.so > so the libraries are in the server..... > > I dont know what i'm doing wrong.... > > thx > what does this say: ls -l /usr/local/lib/libmapserver-6.2.0.so Find will report a symlink that does not link to a valid file. And if ls reports a link indicated by -> /path/to/other/file Does /path/to/other/file exist? -Steve From IANT at napier.govt.nz Sun Mar 3 19:53:06 2013 From: IANT at napier.govt.nz (Ian Tidy) Date: Mon, 4 Mar 2013 16:53:06 +1300 Subject: [mapserver-users] Synology Disk Station Message-ID: <66C6266245456C4399B97CE39D19F6891100A9A1F5@ncc-exch1-09> Hi All, I am look into running MapServer and PHP MapScript on a Synology Disk Station as part of our Disaster Resilience (giving us a low cost Intranet solution). Does anyone have a solution like this working? As yet I haven't purchased the hardware to try this, I want to see if it is possible first. Regards, [cid:image001.png at 01CE18F8.BA436CA0] Ian Tidy GIS Developer/Analyst Napier City Council, Private Bag 6010, Napier 4142, NZ Phone: +64 6 835 7579 x8115 Fax: +64 6 834 4195 http://www.napier.govt.nz | mailto:iant at napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 21189 bytes Desc: image001.png URL: From tech_dev at wildintellect.com Sun Mar 3 20:44:20 2013 From: tech_dev at wildintellect.com (Alex Mandel) Date: Sun, 03 Mar 2013 20:44:20 -0800 Subject: [mapserver-users] Synology Disk Station In-Reply-To: <66C6266245456C4399B97CE39D19F6891100A9A1F5@ncc-exch1-09> References: <66C6266245456C4399B97CE39D19F6891100A9A1F5@ncc-exch1-09> Message-ID: <513426A4.6020605@wildintellect.com> On 03/03/2013 07:53 PM, Ian Tidy wrote: > Hi All, > > I am look into running MapServer and PHP MapScript on a Synology Disk Station as part of our Disaster Resilience (giving us a low cost Intranet solution). Does anyone have a solution like this working? > > As yet I haven't purchased the hardware to try this, I want to see if it is possible first. > > Regards, > [cid:image001.png at 01CE18F8.BA436CA0] > > Ian Tidy Should be possible, though might be easier if you can find a home NAS that supports debian (I've seen some over the years). Since it's busybox based, why not spin up a virtual machine and try to get mapserver compiled and running. I personally have built a server with a Zotac atom based machine. The drives can be inside or out depending on model and it's not any different than any other x86_64 platform, so no strange drivers. A little more to setup initially out of the box, but long term more flexible. Enjoy, Alex From aperi2007 at gmail.com Mon Mar 4 05:59:54 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 4 Mar 2013 14:59:54 +0100 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. Message-ID: Hi, I have set a layer with a class and 2 style inside the class. The first style is working in a specific sclae interval, the second style is in another different scale interval. To do this I use this code: MAP ... CLASS .... MAXSCALEDENOM 4000000 MINSCALEDENOM 1 # the style A STYLE WIDTH 2.0 COLOR "#C5C9977F" ANTIALIAS false OPACITY 100 MAXSCALEDENOM 4000000 MINSCALEDENOM 100000 # the style B STYLE WIDTH 3.0 OUTLINECOLOR "#000000FF" ANTIALIAS false OPACITY 100 MAXSCALEDENOM 100000 MINSCALEDENOM 1 .... So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with a color fill and an outline instead in the scale interval 1:1 - 1:100.00 the geometry is with only an outline with width 3. But when I call the Get?LegendGraphics using a scale of 1:300.000 Instead of a legend with the styleA only I have a legend-image with styleA+styleB I'm using the mapserver 6.3dev. I guess there is some mistake on the styles definition but I don't find what. Any hint is welcome. thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From traviskirstine at gmail.com Mon Mar 4 08:14:20 2013 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 4 Mar 2013 11:14:20 -0500 Subject: [mapserver-users] mapcache - multiple resolutions for the same grid Message-ID: I have set up mapcache with a generic grid for all my caches. The grid has resolutions defined for zoom levels 0-21, however depending on the resolution of my source data the tileset may only be seeded to level 19. The tileset no longer has the ability to connect to the source. As a result blank images are displayed the when a client using the mapcache WMS zooms in beyond the max resolution. Is there a way to address this without creating additional grids? GoogleMapsCompatible urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible -20037508.3427892480 -20037508.3427892480 20037508.3427892480 20037508.3427892480 EPSG:3857 EPSG:900913 m 256 256 156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 0.29858214173896975 0.149291070869484875 0.0746455354347424375 disk gmaps mixed 4 4 0 Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Mar 4 08:19:23 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 4 Mar 2013 17:19:23 +0100 Subject: [mapserver-users] mapcache - multiple resolutions for the same grid In-Reply-To: References: Message-ID: ... should do the trick... On 4 March 2013 17:14, Travis Kirstine wrote: > I have set up mapcache with a generic grid for all my caches. The grid has > resolutions defined for zoom levels 0-21, however depending on the > resolution of my source data the tileset may only be seeded to level 19. > The tileset no longer has the ability to connect to the source. As a result > blank images are displayed the when a client using the mapcache WMS zooms in > beyond the max resolution. Is there a way to address this without creating > additional grids? > > > > > > GoogleMapsCompatible > > urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible > > -20037508.3427892480 -20037508.3427892480 20037508.3427892480 > 20037508.3427892480 > EPSG:3857 > EPSG:900913 > m > 256 256 > 156543.0339280410 78271.51696402048 39135.75848201023 > 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 > 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 > 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 > 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 > 0.29858214173896975 0.149291070869484875 0.0746455354347424375 > > > > > disk > gmaps > mixed > 4 4 > 0 > > > Thanks! > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From traviskirstine at gmail.com Mon Mar 4 11:17:04 2013 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 4 Mar 2013 14:17:04 -0500 Subject: [mapserver-users] mapcache - multiple resolutions for the same grid In-Reply-To: References: Message-ID: Thomas, Thanks for your reply. The addition of the ... to the config does address some of the issues, the tileset is advertised as only having 19 zoom levels in the getcapabilties for the TMS. However it does not perform the same as having a configured with 19 (20) when accessing the service using a WMS. The tileset with will return a 404 with a blank tile when making a GetMap request beyond level 19, the grid configured with only 20 resolutions (zoom level 0-19) will return a valid image. -- I think : ) Regards On 4 March 2013 11:19, thomas bonfort wrote: > > ... > > > should do the trick... > > On 4 March 2013 17:14, Travis Kirstine wrote: > > I have set up mapcache with a generic grid for all my caches. The grid > has > > resolutions defined for zoom levels 0-21, however depending on the > > resolution of my source data the tileset may only be seeded to level 19. > > The tileset no longer has the ability to connect to the source. As a > result > > blank images are displayed the when a client using the mapcache WMS > zooms in > > beyond the max resolution. Is there a way to address this without > creating > > additional grids? > > > > > > > > > > > > GoogleMapsCompatible > > > > > urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible > > > > -20037508.3427892480 -20037508.3427892480 > 20037508.3427892480 > > 20037508.3427892480 > > EPSG:3857 > > EPSG:900913 > > m > > 256 256 > > 156543.0339280410 78271.51696402048 39135.75848201023 > > 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 > > 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 > > 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 > > 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 > > 0.29858214173896975 0.149291070869484875 > 0.0746455354347424375 > > > > > > > > > > disk > > gmaps > > mixed > > 4 4 > > 0 > > > > > > Thanks! > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 4 11:36:06 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 04 Mar 2013 14:36:06 -0500 Subject: [mapserver-users] =?iso-8859-7?b?0/fl9DogIEZpcnN0IGF0dGVtcHQgb24g?= =?iso-8859-7?q?Maserver?= In-Reply-To: <1362421952.56503.YahooMailNeo@web171203.mail.ir2.yahoo.com> References: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> <512FB8C1.8000803@swoodbridge.com> <1362421952.56503.YahooMailNeo@web171203.mail.ir2.yahoo.com> Message-ID: <5134F7A6.1000200@swoodbridge.com> Ok, my error. You should probably NOT have the file /var/www/cgi-bin this looks very bad. I would look at this file and see what it is doing. less /var/www/cgi-bin What you should have: $ ls -ld /usr/lib/cgi-bin/ drwxr-xr-x 2 root root 4096 Mar 16 2012 /usr/lib/cgi-bin/ $ ls -l /usr/lib/cgi-bin/ total 36 -rwxr-xr-x 1 root root 34461 Mar 28 2012 mapserv $ /usr/lib/cgi-bin/mapserv -v MapServer version 6.2.0 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE What Linux distribution are you running? -Steve On 3/4/2013 1:32 PM, Stefanos Anastasiou wrote: > OK I'm pasting the results of the commands: > > file /var/www/cgi-bin ----> /var/www/cgi-bin: Bourne-Again shell > script, ASCII text executable, with very long lines > > ls -l /var/www/cgi-bin ----> -rwxr-xr-x 1 root root 7542 Feb 28 20:42 > /var/www/cgi-bin > > /var/www/cgi-bin/mapserv -v ----> MapServer version 6.2.0 OUTPUT=PNG > OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG > INPUT=SHAPEFILE > > What is strange though is that I installed apache through the > repositories and there is no config file, no log file... nothing... just > a folder /var/www > > Apart from that server seems to work.. no need to restart every time... > what is strange though is that I get a weird message when I > start/restart/stop which is: > > * Restarting web server apache2 apache2: Could not reliably > determine the server's fully qualified domain name, using 127.0.1.1 for > ServerName > ... waiting apache2: Could not reliably determine the server's fully > qualified domain name, using 127.0.1.1 for ServerName > > > what's wrong here? > > > > > ------------------------------------------------------------------------ > *???:* Stephen Woodbridge > *????:* mapserver-users at lists.osgeo.org > *????????:* 10:06 ?.?. ??????, 28 ??????????? 2013 > *????:* Re: [mapserver-users] First attempt on Maserver > > On 2/28/2013 2:14 PM, Stefanos Anastasiou wrote: > > Hello everyone! > > > > I'm quite new to mapserver and I'm experimenting with the 2 first > > examples of Kropla's book... the first one, that is supposed to produce > > just an image... I click on "Click me" button and the message I get is: > > > > Not Found > > > > The requested URL /cgi-bin/mapserv was not found on this server > > > > I don't get it.. according to the instructions cp mapserv > /var/www/cgi-bin > > > > Why isn't it working? > > OK, there are a bunch of assumptions in the above: > > cp mapserv /var/www/cgi-bin > > assumes the apache or your webserver is configured to look for cgi-bin > files in this directory > > assumes that the directory already exists. what does these report: > > file /var/www/cgi-bin > ls -l /var/www/cgi-bin/mapserv > /var/www/cgi-bin/mapserv -v > > If the above looks ok, then you probably need to look at the apache > config. If you changed the apache config as part of your install, have > you restarted apache: > > sudo /etc/init.d/apache2 restart > or > sudo /etc/init.d/apache restart > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From emperor_stef at yahoo.gr Mon Mar 4 11:57:14 2013 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Mon, 4 Mar 2013 19:57:14 +0000 (GMT) Subject: [mapserver-users] =?iso-8859-7?b?0/fl9Dog0/fl9DogIEZpcnN0IGF0dGVt?= =?iso-8859-7?q?pt_on_Maserver?= In-Reply-To: <5134F7A6.1000200@swoodbridge.com> References: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> <512FB8C1.8000803@swoodbridge.com> <1362421952.56503.YahooMailNeo@web171203.mail.ir2.yahoo.com> <5134F7A6.1000200@swoodbridge.com> Message-ID: <1362427034.88537.YahooMailNeo@web171204.mail.ir2.yahoo.com> less /var/www/cgi-bin ?gives a very very long bash (?) that looks something like... #! /bin/bash # mapserv - temporary wrapper script for .libs/mapserv # Generated by libtool (GNU libtool) 2.4.2 # # The mapserv program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. ?It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ? emulate sh ? NULLCMD=: ? # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which etc etc ls -ld /usr/lib/cgi-bin/ ? ----> ?drwxr-xr-x 2 root root 4096 Nov ?8 23:37 /usr/lib/cgi-bin/ ls -l /usr/lib/cgi-bin ?----> total 0 ? ?(?? strange huh..) I have a feeling that there has been a mistake in copying... ?cp mapserv /var/www/cgi-bin/ Does this mean that mapserv file is copied into /var/www and takes the name "cgi-bin"?? because the path on my system stops at ?/var/www/cgi-bin I'm using Linux mint 13 Maya? ________________________________ ???: Stephen Woodbridge ????: Stefanos Anastasiou ; mapserver-users ????????: 9:36 ?.?. ???????, 4 ??????? 2013 ????: Re: ????: [mapserver-users] First attempt on Maserver Ok, my error. You should probably NOT have the file /var/www/cgi-bin this looks very bad. I would look at this file and see what it is doing. less /var/www/cgi-bin What you should have: $ ls -ld /usr/lib/cgi-bin/ drwxr-xr-x 2 root root 4096 Mar 16? 2012 /usr/lib/cgi-bin/ $ ls -l /usr/lib/cgi-bin/ total 36 -rwxr-xr-x 1 root root 34461 Mar 28? 2012 mapserv $ /usr/lib/cgi-bin/mapserv -v MapServer version 6.2.0 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE What Linux distribution are you running? -Steve On 3/4/2013 1:32 PM, Stefanos Anastasiou wrote: > OK I'm pasting the results of the commands: > > file /var/www/cgi-bin? ? ----> /var/www/cgi-bin: Bourne-Again shell > script, ASCII text executable, with very long lines > > ls -l /var/www/cgi-bin? ----> -rwxr-xr-x 1 root root 7542 Feb 28 20:42 > /var/www/cgi-bin > > /var/www/cgi-bin/mapserv -v? ? ----> MapServer version 6.2.0 OUTPUT=PNG > OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG > INPUT=SHAPEFILE > > What is strange though is that I installed apache through the > repositories and there is no config file, no log file... nothing... just > a folder /var/www > > Apart from that server seems to work.. no need to restart every time... > what is strange though is that I get a weird message when I > start/restart/stop which is: > > * Restarting web server apache2? ? ? apache2: Could not reliably > determine the server's fully qualified domain name, using 127.0.1.1 for > ServerName >? ... waiting apache2: Could not reliably determine the server's fully > qualified domain name, using 127.0.1.1 for ServerName > > > what's wrong here? > > > > > ------------------------------------------------------------------------ > *???:* Stephen Woodbridge > *????:* mapserver-users at lists.osgeo.org > *????????:* 10:06 ?.?. ??????, 28 ??????????? 2013 > *????:* Re: [mapserver-users] First attempt on Maserver > > On 2/28/2013 2:14 PM, Stefanos Anastasiou wrote: >? > Hello everyone! >? > >? > I'm quite new to mapserver and I'm experimenting with the 2 first >? > examples of Kropla's book... the first one, that is supposed to produce >? > just an image... I click on "Click me" button and the message I get is: >? > >? > Not Found >? > >? > The requested URL /cgi-bin/mapserv was not found on this server >? > >? > I don't get it.. according to the instructions cp mapserv > /var/www/cgi-bin >? > >? > Why isn't it working? > > OK, there are a bunch of assumptions in the above: > > cp mapserv /var/www/cgi-bin > > assumes the apache or your webserver is configured to look for cgi-bin > files in this directory > > assumes that the directory already exists. what does these report: > > file /var/www/cgi-bin > ls -l /var/www/cgi-bin/mapserv > /var/www/cgi-bin/mapserv -v > > If the above looks ok, then you probably need to look at the apache > config. If you changed the apache config as part of your install, have > you restarted apache: > > sudo /etc/init.d/apache2 restart >? ? or > sudo /etc/init.d/apache restart > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 4 12:20:31 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 04 Mar 2013 15:20:31 -0500 Subject: [mapserver-users] =?utf-8?b?zqPPh861z4Q6IM6jz4fOtc+EOiAgRmlyc3Qg?= =?utf-8?q?attempt_on_Maserver?= In-Reply-To: <1362427034.88537.YahooMailNeo@web171204.mail.ir2.yahoo.com> References: <1362078869.93239.YahooMailNeo@web171203.mail.ir2.yahoo.com> <512FB8C1.8000803@swoodbridge.com> <1362421952.56503.YahooMailNeo@web171203.mail.ir2.yahoo.com> <5134F7A6.1000200@swoodbridge.com> <1362427034.88537.YahooMailNeo@web171204.mail.ir2.yahoo.com> Message-ID: <5135020F.1050100@swoodbridge.com> Yes you should not copy the mapserv file anymore 6.2+ You have to sudo make install to install it correctly. So to clean this up: sudo rm /var/www/cgi-bin cd /path/to/mapserv/src-tree sudo make install sudo cp /usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv Then things should start working better. -Steve W On 3/4/2013 2:57 PM, Stefanos Anastasiou wrote: > > less /var/www/cgi-bin gives a very very long bash (?) that looks > something like... > #! /bin/bash > > # mapserv - temporary wrapper script for .libs/mapserv > # Generated by libtool (GNU libtool) 2.4.2 > # > # The mapserv program cannot be directly executed until all the libtool > # libraries that it depends on are installed. > # > # This wrapper script should never be moved out of the build directory. > # If it is, it will not operate correctly. > > # Sed substitution that helps us do robust quoting. It backslashifies > # metacharacters that are still active within double-quoted strings. > sed_quote_subst='s/\([`"$\\]\)/\\\1/g' > > # Be Bourne compatible > if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then > emulate sh > NULLCMD=: > # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which > > etc etc > > > ls -ld /usr/lib/cgi-bin/ ----> drwxr-xr-x 2 root root 4096 Nov 8 > 23:37 /usr/lib/cgi-bin/ > > > ls -l /usr/lib/cgi-bin ----> total 0 (?? strange huh..) > > > I have a feeling that there has been a mistake in copying... cp mapserv > /var/www/cgi-bin/ > Does this mean that mapserv file is copied into /var/www and takes the > name "cgi-bin"?? because the path on my system stops at /var/www/cgi-bin > > I'm using Linux mint 13 Maya > ------------------------------------------------------------------------ > *???:* Stephen Woodbridge > *????:* Stefanos Anastasiou ; mapserver-users > > *????????:* 9:36 ?.?. ???????, 4 ??????? 2013 > *????:* Re: ????: [mapserver-users] First attempt on Maserver > > Ok, my error. > > You should probably NOT have the file /var/www/cgi-bin this looks very > bad. I would look at this file and see what it is doing. > > less /var/www/cgi-bin > > What you should have: > > $ ls -ld /usr/lib/cgi-bin/ > drwxr-xr-x 2 root root 4096 Mar 16 2012 /usr/lib/cgi-bin/ > $ ls -l /usr/lib/cgi-bin/ > total 36 > -rwxr-xr-x 1 root root 34461 Mar 28 2012 mapserv > $ /usr/lib/cgi-bin/mapserv -v > MapServer version 6.2.0 OUTPUT=PNG > OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG > INPUT=SHAPEFILE > > What Linux distribution are you running? > > -Steve > > On 3/4/2013 1:32 PM, Stefanos Anastasiou wrote: > > OK I'm pasting the results of the commands: > > > > file /var/www/cgi-bin ----> /var/www/cgi-bin: Bourne-Again shell > > script, ASCII text executable, with very long lines > > > > ls -l /var/www/cgi-bin ----> -rwxr-xr-x 1 root root 7542 Feb 28 20:42 > > /var/www/cgi-bin > > > > /var/www/cgi-bin/mapserv -v ----> MapServer version 6.2.0 OUTPUT=PNG > > OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG > > INPUT=SHAPEFILE > > > > What is strange though is that I installed apache through the > > repositories and there is no config file, no log file... nothing... just > > a folder /var/www > > > > Apart from that server seems to work.. no need to restart every time... > > what is strange though is that I get a weird message when I > > start/restart/stop which is: > > > > * Restarting web server apache2 apache2: Could not reliably > > determine the server's fully qualified domain name, using 127.0.1.1 for > > ServerName > > ... waiting apache2: Could not reliably determine the server's fully > > qualified domain name, using 127.0.1.1 for ServerName > > > > > > what's wrong here? > > > > > > > > > > ------------------------------------------------------------------------ > > *???:* Stephen Woodbridge > > > *????:* mapserver-users at lists.osgeo.org > > > *????????:* 10:06 ?.?. ??????, 28 ??????????? 2013 > > *????:* Re: [mapserver-users] First attempt on Maserver > > > > On 2/28/2013 2:14 PM, Stefanos Anastasiou wrote: > > > Hello everyone! > > > > > > I'm quite new to mapserver and I'm experimenting with the 2 first > > > examples of Kropla's book... the first one, that is supposed to > produce > > > just an image... I click on "Click me" button and the message I > get is: > > > > > > Not Found > > > > > > The requested URL /cgi-bin/mapserv was not found on this server > > > > > > I don't get it.. according to the instructions cp mapserv > > /var/www/cgi-bin > > > > > > Why isn't it working? > > > > OK, there are a bunch of assumptions in the above: > > > > cp mapserv /var/www/cgi-bin > > > > assumes the apache or your webserver is configured to look for cgi-bin > > files in this directory > > > > assumes that the directory already exists. what does these report: > > > > file /var/www/cgi-bin > > ls -l /var/www/cgi-bin/mapserv > > /var/www/cgi-bin/mapserv -v > > > > If the above looks ok, then you probably need to look at the apache > > config. If you changed the apache config as part of your install, have > > you restarted apache: > > > > sudo /etc/init.d/apache2 restart > > or > > sudo /etc/init.d/apache restart > > > > -Steve W > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From c.pelliconi at sis-ter.it Tue Mar 5 04:27:06 2013 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Tue, 05 Mar 2013 13:27:06 +0100 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. In-Reply-To: References: Message-ID: <5135E49A.2070308@sis-ter.it> Hi Andrea, If I remember well, the legend represents the class objects, so my advice is to create 2 different classes, with 1 style each one. Use the maxscaledenom statement in the class definition and not in the style. I hope it works. Bye, Carlo Il 04/03/2013 14:59, Andrea Peri ha scritto: > Hi, > > I have set a layer with a class and 2 style inside the class. > The first style is working in a specific sclae interval, the second > style is in another different scale interval. > > To do this I use this code: > > MAP > ... > CLASS > .... > MAXSCALEDENOM 4000000 > MINSCALEDENOM 1 > # the style A > STYLE > WIDTH 2.0 > COLOR "#C5C9977F" > ANTIALIAS false > OPACITY 100 > MAXSCALEDENOM 4000000 > MINSCALEDENOM 100000 > # the style B > STYLE > WIDTH 3.0 > OUTLINECOLOR "#000000FF" > ANTIALIAS false > OPACITY 100 > MAXSCALEDENOM 100000 > MINSCALEDENOM 1 > .... > > So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with > a color fill and an outline > instead in the scale interval 1:1 - 1:100.00 the geometry is with only > an outline with width 3. > > But when I call the Get?LegendGraphics using a scale of 1:300.000 > > Instead of a legend with the styleA only I have a legend-image with > styleA+styleB > > I'm using the mapserver 6.3dev. > > I guess there is some mistake on the styles definition but I don't find what. > > Any hint is welcome. > > thx, > From Steve.Lime at state.mn.us Tue Mar 5 05:23:04 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Tue, 5 Mar 2013 13:23:04 +0000 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. In-Reply-To: <5135E49A.2070308@sis-ter.it> References: , <5135E49A.2070308@sis-ter.it> Message-ID: I dunno, I'm thinking the problem may lay in the legend code not respecting scale values. What exactly does your GetLegendGraphic call look like? Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Carlo Pelliconi [c.pelliconi at sis-ter.it] Sent: Tuesday, March 05, 2013 6:27 AM To: aperi2007 at gmail.com Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How use style for distinguish the rendering for scales interval. Hi Andrea, If I remember well, the legend represents the class objects, so my advice is to create 2 different classes, with 1 style each one. Use the maxscaledenom statement in the class definition and not in the style. I hope it works. Bye, Carlo Il 04/03/2013 14:59, Andrea Peri ha scritto: > Hi, > > I have set a layer with a class and 2 style inside the class. > The first style is working in a specific sclae interval, the second > style is in another different scale interval. > > To do this I use this code: > > MAP > ... > CLASS > .... > MAXSCALEDENOM 4000000 > MINSCALEDENOM 1 > # the style A > STYLE > WIDTH 2.0 > COLOR "#C5C9977F" > ANTIALIAS false > OPACITY 100 > MAXSCALEDENOM 4000000 > MINSCALEDENOM 100000 > # the style B > STYLE > WIDTH 3.0 > OUTLINECOLOR "#000000FF" > ANTIALIAS false > OPACITY 100 > MAXSCALEDENOM 100000 > MINSCALEDENOM 1 > .... > > So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with > a color fill and an outline > instead in the scale interval 1:1 - 1:100.00 the geometry is with only > an outline with width 3. > > But when I call the Get?LegendGraphics using a scale of 1:300.000 > > Instead of a legend with the styleA only I have a legend-image with > styleA+styleB > > I'm using the mapserver 6.3dev. > > I guess there is some mistake on the styles definition but I don't find what. > > Any hint is welcome. > > thx, > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pauljame at gmail.com Tue Mar 5 11:15:46 2013 From: pauljame at gmail.com (Paul james) Date: Tue, 5 Mar 2013 16:15:46 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... Message-ID: Hey... Is it possible to use Mapcache cgi with IIS? If so, is there any place where I can download de mapcache fcgi binary? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Mar 5 11:53:47 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 5 Mar 2013 19:53:47 +0000 Subject: [mapserver-users] Trouble coloring a raster Message-ID: I have a geotiff raster which represents forested lands. I'd like it to display in green. I put in a Style section and specified a color, but try as I might, it always displays in grayscale. It is an 8-bit unsigned TIFF file. Below is the layer specification: LAYER NAME "ForestLands" GROUP "ForestLands" TYPE RASTER STATUS on DATA "/mapserver_data/StreamBarriers/forestland06.tif" METADATA "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 EPSG:26984 EPSG:102113" "wms_name" "ForestLands" "wms_server_version" "1.1.1" "wms_format" "image/png" END CLASS NAME "Forest" STYLE COLOR 0 250 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Mar 5 12:12:47 2013 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 05 Mar 2013 13:12:47 -0700 Subject: [mapserver-users] Trouble coloring a raster In-Reply-To: References: Message-ID: <513651BF.8000400@geoanalytic.com> Bob, I'd recommend just re-rendering the raster off-line for performance reasons, but if data management makes that difficult have a look at the "Classifying Rasters" section of http://www.mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file. And Mapserver can only classify a single 8-bit band (grey or paletted), even if your image is say 3 band RGB. Best Regards, Brent Fraser On 3/5/2013 12:53 PM, Bistrais, Bob wrote: > > I have a geotiff raster which represents forested lands. I'd like it > to display in green. I put in a Style section and specified a color, > but try as I might, it always displays in grayscale. It is an 8-bit > unsigned TIFF file. > > Below is the layer specification: > > LAYER > > NAME "ForestLands" > > GROUP "ForestLands" > > TYPE RASTER > > STATUS on > > DATA "/mapserver_data/StreamBarriers/forestland06.tif" > > METADATA > > "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 EPSG:26984 EPSG:102113" > > "wms_name" "ForestLands" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > END > > CLASS > > NAME "Forest" > > STYLE > > COLOR 0 250 0 > > END > > END > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Mar 5 12:07:39 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 05 Mar 2013 16:07:39 -0400 Subject: [mapserver-users] Trouble coloring a raster In-Reply-To: References: Message-ID: <5136508B.3050403@gatewaygeomatics.com> I'm not sure I would recommend doing this on-the-fly in an app, but: - add to your layer: CLASSITEM "[pixel]" - add to your class: EXPRESSION ([pixel] >= 0) My source: http://www.mapserver.org/input/raster.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 13-03-05 3:53 PM, Bistrais, Bob wrote: > I have a geotiff raster which represents forested lands. I?d like it to > display in green. I put in a Style section and specified a color, but > try as I might, it always displays in grayscale. It is an 8-bit > unsigned TIFF file. > > > > Below is the layer specification: > > > > LAYER > > NAME "ForestLands" > > GROUP "ForestLands" > > TYPE RASTER > > STATUS on > > DATA "/mapserver_data/StreamBarriers/forestland06.tif" > > > > METADATA > > "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 > EPSG:26984 EPSG:102113" > > "wms_name" "ForestLands" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > END > > > > CLASS > > NAME "Forest" > > STYLE > > COLOR 0 250 0 > > END > > END > > > > END > > From Bob.Bistrais at maine.gov Tue Mar 5 12:18:22 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 5 Mar 2013 20:18:22 +0000 Subject: [mapserver-users] Trouble coloring a raster In-Reply-To: <513651BF.8000400@geoanalytic.com> References: <513651BF.8000400@geoanalytic.com> Message-ID: Yes, I had looked at that webpage and thought I was doing it correctly. My TIFF is a single band, 8-bit, with no colormap. Still don't see why it won't display in color. From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Tuesday, March 05, 2013 3:13 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Trouble coloring a raster Bob, I'd recommend just re-rendering the raster off-line for performance reasons, but if data management makes that difficult have a look at the "Classifying Rasters" section of http://www.mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file. And Mapserver can only classify a single 8-bit band (grey or paletted), even if your image is say 3 band RGB. Best Regards, Brent Fraser On 3/5/2013 12:53 PM, Bistrais, Bob wrote: I have a geotiff raster which represents forested lands. I'd like it to display in green. I put in a Style section and specified a color, but try as I might, it always displays in grayscale. It is an 8-bit unsigned TIFF file. Below is the layer specification: LAYER NAME "ForestLands" GROUP "ForestLands" TYPE RASTER STATUS on DATA "/mapserver_data/StreamBarriers/forestland06.tif" METADATA "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 EPSG:26984 EPSG:102113" "wms_name" "ForestLands" "wms_server_version" "1.1.1" "wms_format" "image/png" END CLASS NAME "Forest" STYLE COLOR 0 250 0 END END END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Mar 5 12:27:13 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 05 Mar 2013 15:27:13 -0500 Subject: [mapserver-users] Trouble coloring a raster In-Reply-To: References: <513651BF.8000400@geoanalytic.com> Message-ID: <51365521.8060508@swoodbridge.com> Bob, There is no code to do what you are expecting. Basically, COLOR is used for vector objects that do not have the ability to specify a color in most cases. Raster data implicitly defines a color by virtue of the pixel values. I fyou don't like the color of the raster that you have you have to reclassify it. You can do it in mapserver at a significant cost to performance or you can do it with GDAL or other tools once so mapserver does not have to fiddle with every pixel. In theory, there is no reason that mapserver couldn't do what you want, but it has to be coded and there are a bunch of cases would have to be resolved from a use case point of view, like how to deal with other other kinds of rasters with multiple bands, etc. -Steve W On 3/5/2013 3:18 PM, Bistrais, Bob wrote: > Yes, I had looked at that webpage and thought I was doing it correctly. > My TIFF is a single band, 8-bit, with no colormap. Still don?t see why > it won?t display in color. > > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* Tuesday, March 05, 2013 3:13 PM > *To:* Bistrais, Bob > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Trouble coloring a raster > > Bob, > I'd recommend just re-rendering the raster off-line for performance > reasons, but if data management makes that difficult have a look at the > "Classifying Rasters" section of > http://www.mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file. > And Mapserver can only classify a single 8-bit band (grey or paletted), > even if your image is say 3 band RGB. > > Best Regards, > > Brent Fraser > > On 3/5/2013 12:53 PM, Bistrais, Bob wrote: > > I have a geotiff raster which represents forested lands. I?d like > it to display in green. I put in a Style section and specified a > color, but try as I might, it always displays in grayscale. It is > an 8-bit unsigned TIFF file. > > Below is the layer specification: > > LAYER > > NAME "ForestLands" > > GROUP "ForestLands" > > TYPE RASTER > > STATUS on > > DATA "/mapserver_data/StreamBarriers/forestland06.tif" > > METADATA > > "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 > EPSG:26984 EPSG:102113" > > "wms_name" "ForestLands" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > END > > CLASS > > NAME "Forest" > > STYLE > > COLOR 0 250 0 > > END > > END > > END > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Tue Mar 5 12:30:32 2013 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 05 Mar 2013 13:30:32 -0700 Subject: [mapserver-users] Trouble coloring a raster In-Reply-To: References: <513651BF.8000400@geoanalytic.com> Message-ID: <513655E8.3@geoanalytic.com> Bob, As Jeff indicates, you need an EXPRESSION in your CLASS, something like: EXPRESSION ([pixel] > 100) The EXPRESSION has a look at each of the image's pixel values (and that's why it's slow) Best Regards, Brent Fraser On 3/5/2013 1:18 PM, Bistrais, Bob wrote: > > Yes, I had looked at that webpage and thought I was doing it > correctly. My TIFF is a single band, 8-bit, with no colormap. Still > don't see why it won't display in color. > > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* Tuesday, March 05, 2013 3:13 PM > *To:* Bistrais, Bob > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Trouble coloring a raster > > Bob, > I'd recommend just re-rendering the raster off-line for > performance reasons, but if data management makes that difficult have > a look at the "Classifying Rasters" section of > http://www.mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file. > And Mapserver can only classify a single 8-bit band (grey or > paletted), even if your image is say 3 band RGB. > > Best Regards, > Brent Fraser > > On 3/5/2013 12:53 PM, Bistrais, Bob wrote: > > I have a geotiff raster which represents forested lands. I'd like > it to display in green. I put in a Style section and specified a > color, but try as I might, it always displays in grayscale. It is > an 8-bit unsigned TIFF file. > > Below is the layer specification: > > LAYER > > NAME "ForestLands" > > GROUP "ForestLands" > > TYPE RASTER > > STATUS on > > DATA "/mapserver_data/StreamBarriers/forestland06.tif" > > METADATA > > "wms_srs" "EPSG:4326 EPSG:26919 EPSG:26983 EPSG:26984 EPSG:102113" > > "wms_name" "ForestLands" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > END > > CLASS > > NAME "Forest" > > STYLE > > COLOR 0 250 0 > > END > > END > > END > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Wed Mar 6 00:59:43 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 6 Mar 2013 09:59:43 +0100 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. In-Reply-To: <5135E49A.2070308@sis-ter.it> References: <5135E49A.2070308@sis-ter.it> Message-ID: Hi, thx for response. Infact it work it I create two distinct class element everyone with its ownl minscale & maxscale. But so why there is the minscale & maxscale available in the style section ? I notice the map is effectively changed in its rendering style changing the scale when I use only one class and two distincts style with different scale. Instead the getlegendgraphic merge both. So perhaps is a bug. But I'm not sure if it is really a bug because I don't understand how this should be explained in the getcapabilites response. Infact I guess the question is correlated to the getcapabilities response. AFAIK is impossibile to return the right information about distinct styles (for scale) in the same class in the getcapabilities response. And this could explain why the getlegendgrahics is the merge of both class-styles. If this is true it is not a bug. Is only the need to return a getlegendgraphics compliant with what is write in the getcapabilites response. Andrea. 2013/3/5 Carlo Pelliconi : > Hi Andrea, > If I remember well, the legend represents the class objects, so my advice is > to create 2 different classes, with 1 style each one. Use the maxscaledenom > statement in the class definition and not in the style. > I hope it works. > > Bye, Carlo > > Il 04/03/2013 14:59, Andrea Peri ha scritto: >> >> Hi, >> >> I have set a layer with a class and 2 style inside the class. >> The first style is working in a specific sclae interval, the second >> style is in another different scale interval. >> >> To do this I use this code: >> >> MAP >> ... >> CLASS >> .... >> MAXSCALEDENOM 4000000 >> MINSCALEDENOM 1 >> # the style A >> STYLE >> WIDTH 2.0 >> COLOR "#C5C9977F" >> ANTIALIAS false >> OPACITY 100 >> MAXSCALEDENOM 4000000 >> MINSCALEDENOM 100000 >> # the style B >> STYLE >> WIDTH 3.0 >> OUTLINECOLOR "#000000FF" >> ANTIALIAS false >> OPACITY 100 >> MAXSCALEDENOM 100000 >> MINSCALEDENOM 1 >> .... >> >> So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with >> a color fill and an outline >> instead in the scale interval 1:1 - 1:100.00 the geometry is with only >> an outline with width 3. >> >> But when I call the Get?LegendGraphics using a scale of 1:300.000 >> >> >> Instead of a legend with the styleA only I have a legend-image with >> styleA+styleB >> >> I'm using the mapserver 6.3dev. >> >> I guess there is some mistake on the styles definition but I don't find >> what. >> >> Any hint is welcome. >> >> thx, >> > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From vivaldi_albarado at yahoo.com Wed Mar 6 04:24:03 2013 From: vivaldi_albarado at yahoo.com (Vivaldi Al Barado) Date: Wed, 6 Mar 2013 20:24:03 +0800 (SGT) Subject: [mapserver-users] Vivaldi Al Barado Message-ID: <1362572643.36282.YahooMailNeo@web193003.mail.sg3.yahoo.com> http://www.ifans.com.au/hqgoikrm/yxt/vpslaqx.html Vivaldi Al Barado -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 6 05:47:27 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 6 Mar 2013 14:47:27 +0100 Subject: [mapserver-users] mapcache - multiple resolutions for the same grid In-Reply-To: References: Message-ID: Travis, I'll let you open a github issue for this one. regards, thomas On 4 March 2013 20:17, Travis Kirstine wrote: > Thomas, > > Thanks for your reply. The addition of the maxzoom="19">... to the config does address some of the issues, the > tileset is advertised as only having 19 zoom levels in the getcapabilties > for the TMS. However it does not perform the same as having a > configured with 19 (20) when accessing the service using a > WMS. The tileset with will return a 404 > with a blank tile when making a GetMap request beyond level 19, the grid > configured with only 20 resolutions (zoom level 0-19) will return a valid > image. -- I think : ) > > Regards > > > On 4 March 2013 11:19, thomas bonfort wrote: >> >> >> ... >> >> >> should do the trick... >> >> On 4 March 2013 17:14, Travis Kirstine wrote: >> > I have set up mapcache with a generic grid for all my caches. The grid >> > has >> > resolutions defined for zoom levels 0-21, however depending on the >> > resolution of my source data the tileset may only be seeded to level 19. >> > The tileset no longer has the ability to connect to the source. As a >> > result >> > blank images are displayed the when a client using the mapcache WMS >> > zooms in >> > beyond the max resolution. Is there a way to address this without >> > creating >> > additional grids? >> > >> > >> > >> > >> > >> > GoogleMapsCompatible >> > >> > >> > urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible >> > >> > -20037508.3427892480 -20037508.3427892480 >> > 20037508.3427892480 >> > 20037508.3427892480 >> > EPSG:3857 >> > EPSG:900913 >> > m >> > 256 256 >> > 156543.0339280410 78271.51696402048 39135.75848201023 >> > 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 >> > 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 >> > 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 >> > 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 >> > 0.29858214173896975 0.149291070869484875 >> > 0.0746455354347424375 >> > >> > >> > >> > >> > disk >> > gmaps >> > mixed >> > 4 4 >> > 0 >> > >> > >> > Thanks! >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > From jlmartin at usgs.gov Wed Mar 6 11:50:00 2013 From: jlmartin at usgs.gov (Jennifer L Martin) Date: Wed, 6 Mar 2013 11:50:00 -0800 Subject: [mapserver-users] WMS raster reprojection problems: EPSG:4326 to EPSG:2163 for Alaska Message-ID: <51379DE8.9010904@usgs.gov> I was wondering if I could get some advice on a problem I am having with on-the-fly reprojection of a raster map layer. We are using Mapserver 6.0.0. Our raster images are GeoTiffs. All our source data is EPSG:4326 and we have the WMS set up to support a number of other output projections, including EPSG:2163 (US National Atlas Equal Area). However, the image from a GetMap request, when specifying the output projection of EPSG:2163, gets really pixely/blocky when you are zoomed in to the western part of Alaska near the international date line. The image is fine if you are zoomed in to eastern Alaska; the problem only occurs when the image includes the northern and/or western parts of Alaska, especially images that get close to the date line and the Arctic circle. I tried changing the projection to: "proj=latlong" "ellps=WGS84" "datum=WGS84" "+over" on the off chance that it would help, but no luck. Does anybody have suggestion to help resolve this? Here is the layer map file. ======= MAP OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END OUTPUTFORMAT NAME "jpeg" DRIVER AGG/JPEG MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "GAMMA=0.75" END WEB METADATA "wms_onlineresource" "http:///wms?" "wms_enable_request" "GetMap GetCapabilities GetLegendGraphic" "wms_title" "Shaded Relief Land - Gray - Alaska Main" "wms_srs" "CRS:84 EPSG:4326 EPSG:2163 EPSG:102100 EPSG:4269 EPSG:4267 EPSG:54004 EPSG:54008 EPSG:3785 EPSG:3857 EPSG:102113 EPSG:900913" END END IMAGETYPE png EXTENT -179.9985999 49.8276632 -126.9992066 71.9547724 UNITS METERS IMAGECOLOR 255 255 254 SIZE 256 256 SHAPEPATH "/home/public_html/map_server/data/raster/" FONTSET "/home/public_html/map_server/fonts/fonts.list" SYMBOLSET "/home/public_html/map_server/symbols.sym" PROJECTION "init=epsg:4326" END LEGEND STATUS ON IMAGECOLOR 255 255 255 END NAME srgy_6arcsec_akmain LAYER NAME srgy_6arcsec_akmain DATA alaska_geo_wgs84_6arcsec_cc_sr_gray_main.tif STATUS OFF TYPE RASTER OFFSITE 0 0 0 METADATA "wms_title" "Shaded Relief Land - Gray - Alaska Main" END END #end the layer END #end of map ======== Here is the WMS service capabilities map file. ======== MAP OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END OUTPUTFORMAT NAME "jpeg" DRIVER AGG/JPEG MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "GAMMA=0.75" END WEB METADATA "wms_onlineresource" "http:///wms/raster?" "wms_enable_request" "GetMap GetCapabilities GetLegendGraphic" "wms_title" "New Projected Raster Data" "wms_srs" "CRS:84 EPSG:4326 EPSG:2163 EPSG:102100 EPSG:4269 EPSG:4267 EPSG:54004 EPSG:54008 EPSG:3785 EPSG:3857 EPSG:102113 EPSG:900913" END END IMAGETYPE png EXTENT -179.9985999 49.8276632 -126.9992066 71.9547724 UNITS METERS IMAGECOLOR 255 255 254 SIZE 256 256 SHAPEPATH "/home/public_html/map_server/data/raster/" FONTSET "/home/public_html/map_server/fonts/fonts.list" SYMBOLSET "/home/public_html/map_server/symbols.sym" PROJECTION "init=epsg:4326" END LEGEND STATUS ON IMAGECOLOR 255 255 255 END NAME raster_test LAYER NAME srgy_6arcsec_akmain DATA alaska_geo_wgs84_6arcsec_cc_sr_gray_main.tif STATUS OFF TYPE RASTER OFFSITE 0 0 0 METADATA "wms_title" "Shaded Relief Land - Gray - Alaska Main" END END #end the layer END #end of map ====== Any help is greatly appreciated. Thanks! -Jennifer Martin From aperi2007 at gmail.com Thu Mar 7 01:04:31 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 7 Mar 2013 10:04:31 +0100 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. In-Reply-To: References: <5135E49A.2070308@sis-ter.it> Message-ID: Here is an example of what it is returning. (see attached image) As you can see every element has a color fill and a black boundaries. Instead the rendering in the map is for a class with a double style. in an interval of scale act a style with a coloured solid fill and a white boundaries, and in another scale interval act another style with a black boundary and no fill inside. The getlegendgraphics result is the merge of both. 2013/3/5 Lime, Steve D (MNIT) : > I dunno, I'm thinking the problem may lay in the legend code not respecting scale values. What exactly does your GetLegendGraphic call look like? > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Carlo Pelliconi [c.pelliconi at sis-ter.it] > Sent: Tuesday, March 05, 2013 6:27 AM > To: aperi2007 at gmail.com > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How use style for distinguish the rendering for scales interval. > > Hi Andrea, > If I remember well, the legend represents the class objects, so my > advice is to create 2 different classes, with 1 style each one. Use the > maxscaledenom statement in the class definition and not in the style. > I hope it works. > > Bye, Carlo > > Il 04/03/2013 14:59, Andrea Peri ha scritto: >> Hi, >> >> I have set a layer with a class and 2 style inside the class. >> The first style is working in a specific sclae interval, the second >> style is in another different scale interval. >> >> To do this I use this code: >> >> MAP >> ... >> CLASS >> .... >> MAXSCALEDENOM 4000000 >> MINSCALEDENOM 1 >> # the style A >> STYLE >> WIDTH 2.0 >> COLOR "#C5C9977F" >> ANTIALIAS false >> OPACITY 100 >> MAXSCALEDENOM 4000000 >> MINSCALEDENOM 100000 >> # the style B >> STYLE >> WIDTH 3.0 >> OUTLINECOLOR "#000000FF" >> ANTIALIAS false >> OPACITY 100 >> MAXSCALEDENOM 100000 >> MINSCALEDENOM 1 >> .... >> >> So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with >> a color fill and an outline >> instead in the scale interval 1:1 - 1:100.00 the geometry is with only >> an outline with width 3. >> >> But when I call the Get?LegendGraphics using a scale of 1:300.000 >> >> Instead of a legend with the styleA only I have a legend-image with >> styleA+styleB >> >> I'm using the mapserver 6.3dev. >> >> I guess there is some mistake on the styles definition but I don't find what. >> >> Any hint is welcome. >> >> thx, >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: img1.gif Type: image/gif Size: 7975 bytes Desc: not available URL: From thomas.bonfort at gmail.com Thu Mar 7 01:09:23 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 7 Mar 2013 10:09:23 +0100 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. In-Reply-To: References: <5135E49A.2070308@sis-ter.it> Message-ID: The legend renderer does not honor style minscale/maxscale. You might want to open an issue about that. -- thomas On 7 March 2013 10:04, Andrea Peri wrote: > Here is an example of what it is returning. > > (see attached image) > > As you can see every element has a color fill and a black boundaries. > > Instead the rendering in the map is for a class > with a double style. > in an interval of scale act a style with a coloured solid fill and a > white boundaries, and in another scale interval act another style with > a black boundary and no fill inside. > > The getlegendgraphics result is the merge of both. > > > > 2013/3/5 Lime, Steve D (MNIT) : >> I dunno, I'm thinking the problem may lay in the legend code not respecting scale values. What exactly does your GetLegendGraphic call look like? >> >> Steve >> >> ________________________________________ >> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Carlo Pelliconi [c.pelliconi at sis-ter.it] >> Sent: Tuesday, March 05, 2013 6:27 AM >> To: aperi2007 at gmail.com >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] How use style for distinguish the rendering for scales interval. >> >> Hi Andrea, >> If I remember well, the legend represents the class objects, so my >> advice is to create 2 different classes, with 1 style each one. Use the >> maxscaledenom statement in the class definition and not in the style. >> I hope it works. >> >> Bye, Carlo >> >> Il 04/03/2013 14:59, Andrea Peri ha scritto: >>> Hi, >>> >>> I have set a layer with a class and 2 style inside the class. >>> The first style is working in a specific sclae interval, the second >>> style is in another different scale interval. >>> >>> To do this I use this code: >>> >>> MAP >>> ... >>> CLASS >>> .... >>> MAXSCALEDENOM 4000000 >>> MINSCALEDENOM 1 >>> # the style A >>> STYLE >>> WIDTH 2.0 >>> COLOR "#C5C9977F" >>> ANTIALIAS false >>> OPACITY 100 >>> MAXSCALEDENOM 4000000 >>> MINSCALEDENOM 100000 >>> # the style B >>> STYLE >>> WIDTH 3.0 >>> OUTLINECOLOR "#000000FF" >>> ANTIALIAS false >>> OPACITY 100 >>> MAXSCALEDENOM 100000 >>> MINSCALEDENOM 1 >>> .... >>> >>> So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with >>> a color fill and an outline >>> instead in the scale interval 1:1 - 1:100.00 the geometry is with only >>> an outline with width 3. >>> >>> But when I call the Get?LegendGraphics using a scale of 1:300.000 >>> >>> Instead of a legend with the styleA only I have a legend-image with >>> styleA+styleB >>> >>> I'm using the mapserver 6.3dev. >>> >>> I guess there is some mistake on the styles definition but I don't find what. >>> >>> Any hint is welcome. >>> >>> thx, >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aperi2007 at gmail.com Thu Mar 7 01:17:06 2013 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 7 Mar 2013 10:17:06 +0100 Subject: [mapserver-users] How use style for distinguish the rendering for scales interval. In-Reply-To: References: <5135E49A.2070308@sis-ter.it> Message-ID: so it is really a bug. I just opened a ticket. https://github.com/mapserver/mapserver/issues/4601 thx, 2013/3/7 thomas bonfort : > The legend renderer does not honor style minscale/maxscale. You might > want to open an issue about that. > > -- > thomas > > On 7 March 2013 10:04, Andrea Peri wrote: >> Here is an example of what it is returning. >> >> (see attached image) >> >> As you can see every element has a color fill and a black boundaries. >> >> Instead the rendering in the map is for a class >> with a double style. >> in an interval of scale act a style with a coloured solid fill and a >> white boundaries, and in another scale interval act another style with >> a black boundary and no fill inside. >> >> The getlegendgraphics result is the merge of both. >> >> >> >> 2013/3/5 Lime, Steve D (MNIT) : >>> I dunno, I'm thinking the problem may lay in the legend code not respecting scale values. What exactly does your GetLegendGraphic call look like? >>> >>> Steve >>> >>> ________________________________________ >>> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Carlo Pelliconi [c.pelliconi at sis-ter.it] >>> Sent: Tuesday, March 05, 2013 6:27 AM >>> To: aperi2007 at gmail.com >>> Cc: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] How use style for distinguish the rendering for scales interval. >>> >>> Hi Andrea, >>> If I remember well, the legend represents the class objects, so my >>> advice is to create 2 different classes, with 1 style each one. Use the >>> maxscaledenom statement in the class definition and not in the style. >>> I hope it works. >>> >>> Bye, Carlo >>> >>> Il 04/03/2013 14:59, Andrea Peri ha scritto: >>>> Hi, >>>> >>>> I have set a layer with a class and 2 style inside the class. >>>> The first style is working in a specific sclae interval, the second >>>> style is in another different scale interval. >>>> >>>> To do this I use this code: >>>> >>>> MAP >>>> ... >>>> CLASS >>>> .... >>>> MAXSCALEDENOM 4000000 >>>> MINSCALEDENOM 1 >>>> # the style A >>>> STYLE >>>> WIDTH 2.0 >>>> COLOR "#C5C9977F" >>>> ANTIALIAS false >>>> OPACITY 100 >>>> MAXSCALEDENOM 4000000 >>>> MINSCALEDENOM 100000 >>>> # the style B >>>> STYLE >>>> WIDTH 3.0 >>>> OUTLINECOLOR "#000000FF" >>>> ANTIALIAS false >>>> OPACITY 100 >>>> MAXSCALEDENOM 100000 >>>> MINSCALEDENOM 1 >>>> .... >>>> >>>> So in the scale interval 1:100.000 - 1:4.000.000 the geometry is with >>>> a color fill and an outline >>>> instead in the scale interval 1:1 - 1:100.00 the geometry is with only >>>> an outline with width 3. >>>> >>>> But when I call the Get?LegendGraphics using a scale of 1:300.000 >>>> >>>> Instead of a legend with the styleA only I have a legend-image with >>>> styleA+styleB >>>> >>>> I'm using the mapserver 6.3dev. >>>> >>>> I guess there is some mistake on the styles definition but I don't find what. >>>> >>>> Any hint is welcome. >>>> >>>> thx, >>>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> >> -- >> ----------------- >> Andrea Peri >> . . . . . . . . . >> qwerty ????? >> ----------------- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From stiramdasu at lp360.com Thu Mar 7 07:48:58 2013 From: stiramdasu at lp360.com (Sowmya Tiramdasu) Date: Thu, 7 Mar 2013 09:48:58 -0600 Subject: [mapserver-users] Access network share drive for data in mapfile throwing error Message-ID: <002601ce1b4b$485d1500$d9173f00$@lp360.com> Hi, I am trying to access data directly from a network share folder in my mapfile. But it is not working . It is throwing the following error. msDrawMap(): Image handling error. Failed to draw layer named 'ControlPoints'. msShapefileOpen(): Unable to access file. (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic Control Points\Geographic Control Points.shp) msShapefileOpen(): Unable to access file. (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic Control Points\Geographic Control Points.shp) msSHPLayerGetItems(): Shapefile error. Shapefile layer has not been opened. KmlRenderer::startNewLayer: General error message. msLayerOpen failed msShapefileOpen(): Unable to access file. (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic Control Points\Geographic Control Points.shp) msShapefileOpen(): Unable to access file. (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic Control Points\Geographic Control Points.shp) I tried to search in the old email archives. In one of the email chains they suggested me to check if gdal/ogr can actually open the files. I did gdal info for tiff files and they are giving the right information. Similarly ogrinfo for shp files and they too are fine. Can anyone please suggest what is the problem and give me solution to fix this. Find below snapshot of my mapfile for your reference. LAYER NAME KeenelandStatePlane38 DATA "\\DISKSTATION1\data\SheridanData\Keeneland\Imagery\StatePlane\SPSPSPO-00039 .tif" STATUS OFF TYPE RASTER OPACITY 75 PROJECTION "init=EPSG:102679" END DEBUG 5 END LAYER NAME ControlPoints #Photogrammetric points DATA "\\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic Control Points\Geographic Control Points.shp" STATUS OFF TYPE POINT CLASS STYLE # Symbol to be used (reference) SYMBOL "circle" # Size of the symbol in pixels SIZE 8 COLOR 190 20 190 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END PROJECTION "init=epsg:102679" END END Thanks in advance, Sowmya. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Mar 7 07:59:58 2013 From: andy at squeakycode.net (Andy Colson) Date: Thu, 07 Mar 2013 09:59:58 -0600 Subject: [mapserver-users] Access network share drive for data in mapfile throwing error In-Reply-To: <002601ce1b4b$485d1500$d9173f00$@lp360.com> References: <002601ce1b4b$485d1500$d9173f00$@lp360.com> Message-ID: <5138B97E.5030001@squeakycode.net> On 3/7/2013 9:48 AM, Sowmya Tiramdasu wrote: > Hi, > > I am trying to access data directly from a network share folder in my > mapfile. But it is not working . It is throwing the following error. > > msDrawMap(): Image handling error. Failed to draw layer named > 'ControlPoints'. > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msSHPLayerGetItems(): Shapefile error. Shapefile layer has not been opened. > > KmlRenderer::startNewLayer: General error message. msLayerOpen failed > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > I tried to search in the old email archives. In one of the email chains > they suggested me to check if gdal/ogr can actually open the files. I > did gdal info for tiff files and they are giving the right information. > Similarly ogrinfo for shp files and they too are fine. > > Can anyone please suggest what is the problem and give me solution to > fix this. Find below snapshot of my mapfile for your reference. > > LAYER > > NAME KeenelandStatePlane38 > > DATA > "\\DISKSTATION1\data\SheridanData\Keeneland\Imagery\StatePlane\SPSPSPO-00039.tif" > > STATUS OFF > > TYPE RASTER > > OPACITY 75 > > PROJECTION > > "init=EPSG:102679" > > END > > DEBUG 5 > > END > > LAYER > > NAME ControlPoints > #Photogrammetric points > > DATA > "\\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp" > > STATUS OFF > > TYPE POINT > > CLASS > > STYLE > > # > Symbol to be used (reference) > > SYMBOL > "circle" > > # Size > of the symbol in pixels > > SIZE 8 > > COLOR > 190 20 190 > > # > Outline colour (RGB) - black > > > OUTLINECOLOR 0 0 0 > > END > > END > > PROJECTION > > "init=epsg:102679" > > END > > END > > Thanks in advance, > > Sowmya. The error: Unable to access file. (\DISKSTATION1\.. Is missing a slash on front. Maybe in your mapfile, try three slashes up front: >DATA "\\\DISKSTATION1\data... -Andy From woodbri at swoodbridge.com Thu Mar 7 08:03:32 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Mar 2013 11:03:32 -0500 Subject: [mapserver-users] Access network share drive for data in mapfile throwing error In-Reply-To: <002601ce1b4b$485d1500$d9173f00$@lp360.com> References: <002601ce1b4b$485d1500$d9173f00$@lp360.com> Message-ID: <5138BA54.3020608@swoodbridge.com> I might be wrong, but I do not believe you can access files using the this windows syntax. You have to use a mapped drive. Also you should flip all you path separator characters from \ to / as \ is an escape character in a lot of contexts. So try something like: d:/data/SheridanData/Keeneland/Vector Data/Geographic Control Points/Geographic Control Points.shp -Steve W On 3/7/2013 10:48 AM, Sowmya Tiramdasu wrote: > Hi, > > I am trying to access data directly from a network share folder in my > mapfile. But it is not working . It is throwing the following error. > > msDrawMap(): Image handling error. Failed to draw layer named > 'ControlPoints'. > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msSHPLayerGetItems(): Shapefile error. Shapefile layer has not been opened. > > KmlRenderer::startNewLayer: General error message. msLayerOpen failed > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > I tried to search in the old email archives. In one of the email chains > they suggested me to check if gdal/ogr can actually open the files. I > did gdal info for tiff files and they are giving the right information. > Similarly ogrinfo for shp files and they too are fine. > > Can anyone please suggest what is the problem and give me solution to > fix this. Find below snapshot of my mapfile for your reference. > > LAYER > > NAME KeenelandStatePlane38 > > DATA > "\\DISKSTATION1\data\SheridanData\Keeneland\Imagery\StatePlane\SPSPSPO-00039.tif" > > STATUS OFF > > TYPE RASTER > > OPACITY 75 > > PROJECTION > > "init=EPSG:102679" > > END > > DEBUG 5 > > END > > LAYER > > NAME ControlPoints > #Photogrammetric points > > DATA > "\\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp" > > STATUS OFF > > TYPE POINT > > CLASS > > STYLE > > # > Symbol to be used (reference) > > SYMBOL > "circle" > > # Size > of the symbol in pixels > > SIZE 8 > > COLOR > 190 20 190 > > # > Outline colour (RGB) - black > > > OUTLINECOLOR 0 0 0 > > END > > END > > PROJECTION > > "init=epsg:102679" > > END > > END > > Thanks in advance, > > Sowmya. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stiramdasu at lp360.com Thu Mar 7 09:51:02 2013 From: stiramdasu at lp360.com (Sowmya Tiramdasu) Date: Thu, 7 Mar 2013 11:51:02 -0600 Subject: [mapserver-users] Access network share drive for data in mapfile throwing error In-Reply-To: <5138B97E.5030001@squeakycode.net> References: <002601ce1b4b$485d1500$d9173f00$@lp360.com> <5138B97E.5030001@squeakycode.net> Message-ID: <003001ce1b5c$55d29b90$0177d2b0$@lp360.com> Hi Andy, Thanks for your suggestion. Giving an extra slash worked :) Stephen : I think the windows path doesn't give any problem. So the slashes are not the issue here. Anyways thanks for your suggestion. Thanks, Sowmya. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson Sent: Thursday, March 07, 2013 10:00 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Access network share drive for data in mapfile throwing error On 3/7/2013 9:48 AM, Sowmya Tiramdasu wrote: > Hi, > > I am trying to access data directly from a network share folder in my > mapfile. But it is not working . It is throwing the following error. > > msDrawMap(): Image handling error. Failed to draw layer named > 'ControlPoints'. > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msSHPLayerGetItems(): Shapefile error. Shapefile layer has not been opened. > > KmlRenderer::startNewLayer: General error message. msLayerOpen failed > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > msShapefileOpen(): Unable to access file. > (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp) > > I tried to search in the old email archives. In one of the email chains > they suggested me to check if gdal/ogr can actually open the files. I > did gdal info for tiff files and they are giving the right information. > Similarly ogrinfo for shp files and they too are fine. > > Can anyone please suggest what is the problem and give me solution to > fix this. Find below snapshot of my mapfile for your reference. > > LAYER > > NAME KeenelandStatePlane38 > > DATA > "\\DISKSTATION1\data\SheridanData\Keeneland\Imagery\StatePlane\SPSPSPO-00039 .tif" > > STATUS OFF > > TYPE RASTER > > OPACITY 75 > > PROJECTION > > "init=EPSG:102679" > > END > > DEBUG 5 > > END > > LAYER > > NAME ControlPoints > #Photogrammetric points > > DATA > "\\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic > Control Points\Geographic Control Points.shp" > > STATUS OFF > > TYPE POINT > > CLASS > > STYLE > > # > Symbol to be used (reference) > > SYMBOL > "circle" > > # Size > of the symbol in pixels > > SIZE 8 > > COLOR > 190 20 190 > > # > Outline colour (RGB) - black > > > OUTLINECOLOR 0 0 0 > > END > > END > > PROJECTION > > "init=epsg:102679" > > END > > END > > Thanks in advance, > > Sowmya. The error: Unable to access file. (\DISKSTATION1\.. Is missing a slash on front. Maybe in your mapfile, try three slashes up front: >DATA "\\\DISKSTATION1\data... -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From i.geografica at alt-shn.org Sun Mar 10 13:38:01 2013 From: i.geografica at alt-shn.org (ALT SHN) Date: Sun, 10 Mar 2013 20:38:01 +0000 Subject: [mapserver-users] Mapfile with different CRS Message-ID: Hello users, I have a this mapfile wich under the "MAP" section has epsg:3763 has the general CRS. I'm trying to add a WMS server containing OSM data. This WMS delivers the data in WGS84. So, under "Layers" section I added this: LAYER NAME 'Open Street Map' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -9.827190 38.978798 -8.728572 39.676104 CONNECTIONTYPE WMS CONNECTION 'http://geoposer.com:443/server/services/osm.xml' METADATA 'ows_name' 'osm' 'wms_server_version' '1.1.1' 'ows_srs' 'EPSG:4326' 'wms_format' 'image/jpeg' 'wms_style' '' END METADATA 'ows_title' 'osm' END STATUS OFF TRANSPARENCY 100 PROJECTION "init=epsg:4326" END END However, the layer simply does not shows. I'm kinda lost here. Any Idea Why this might be happening? Thank you, -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Sun Mar 10 14:03:52 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 10 Mar 2013 21:03:52 +0000 Subject: [mapserver-users] Mapfile with different CRS In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A639EA1BC@suutari.haapa.mmm.fi> Hi, Server URL for GetCapabilities is http://geoposer.com:443/server/services/osm.xml?service=WMS=version=1.1.1&request=GetCapabilities If you check the response you will see that the GetMap URL is http://data1.geoposer.com:443/server/services/request.php?jname=/wms.img Use that as your CONNECTION and you should be OK. I see that you create your mapfiles with QGis Mapfile export plugin. It does not create totally valid mapfiles but this layer works for me. -Jukka Rahkonen- ________________________________ ALT SHN wrote: > Hello users, > I have a this mapfile wich under the "MAP" section has epsg:3763 has the general CRS. > I'm trying to add a WMS server containing OSM data. This WMS delivers the data in WGS84. So, under >"Layers" section I added this: LAYER NAME 'Open Street Map' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -9.827190 38.978798 -8.728572 39.676104 CONNECTIONTYPE WMS CONNECTION 'http://geoposer.com:443/server/services/osm.xml' METADATA 'ows_name' 'osm' 'wms_server_version' '1.1.1' 'ows_srs' 'EPSG:4326' 'wms_format' 'image/jpeg' 'wms_style' '' END METADATA 'ows_title' 'osm' END STATUS OFF TRANSPARENCY 100 PROJECTION "init=epsg:4326" END END However, the layer simply does not shows. I'm kinda lost here. Any Idea Why this might be happening? Thank you, -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org From i.geografica at alt-shn.org Sun Mar 10 14:58:54 2013 From: i.geografica at alt-shn.org (ALT SHN) Date: Sun, 10 Mar 2013 21:58:54 +0000 Subject: [mapserver-users] Mapfile with different CRS In-Reply-To: <84446DEF76453C439E9E97E438E13A639EA1BC@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A639EA1BC@suutari.haapa.mmm.fi> Message-ID: Thank You! It works fine now. I usually make the Mapfile/Layer by my own, but this time I was just not getting the error, so I tried the Export Plugin :) Best Regards, Andr? 2013/3/10 Rahkonen Jukka > Hi, > > Server URL for GetCapabilities is > http://geoposer.com:443/server/services/osm.xml?service=WMS=version=1.1.1&request=GetCapabilities > > If you check the response you will see that the GetMap URL is > http://data1.geoposer.com:443/server/services/request.php?jname=/wms.img > > Use that as your CONNECTION and you should be OK. > I see that you create your mapfiles with QGis Mapfile export plugin. It > does not create totally valid mapfiles but this layer works for me. > > -Jukka Rahkonen- > > ________________________________ > ALT SHN wrote: > > > Hello users, > > > I have a this mapfile wich under the "MAP" section has epsg:3763 has > the general CRS. > > I'm trying to add a WMS server containing OSM data. This WMS delivers > the data in WGS84. So, under >"Layers" section I added this: > > LAYER > NAME 'Open Street Map' > TYPE RASTER > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT -9.827190 38.978798 -8.728572 39.676104 > CONNECTIONTYPE WMS > CONNECTION 'http://geoposer.com:443/server/services/osm.xml' > METADATA > 'ows_name' 'osm' > 'wms_server_version' '1.1.1' > 'ows_srs' 'EPSG:4326' > 'wms_format' 'image/jpeg' > 'wms_style' '' > END > METADATA > 'ows_title' 'osm' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > "init=epsg:4326" > END > END > > However, the layer simply does not shows. I'm kinda lost here. Any Idea > Why this might be happening? > > Thank you, > > > -- > --------------------------------------------------------------- > Associa??o Leonel Trindade > SOCIEDADE DE HIST?RIA NATURAL > > Apartado 25 2564-909 Torres Vedras Portugal > Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras > > Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto > do Ameal 2565-641 Ramalhal > http://alt-shn.blogspot.com > www.alt-shn.org > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --------------------------------------------------------------- Associa??o Leonel Trindade SOCIEDADE DE HIST?RIA NATURAL Apartado 25 2564-909 Torres Vedras Portugal Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras Laborat?rio de Paleontologia e Paleoecologia: Pol?gono Industrial do Alto do Ameal 2565-641 Ramalhal http://alt-shn.blogspot.com www.alt-shn.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From astrid.emde at wheregroup.com Mon Mar 11 06:33:16 2013 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Mon, 11 Mar 2013 14:33:16 +0100 Subject: [mapserver-users] MapServer Support for WFS 2.0.0 Message-ID: <513DDD1C.8010809@wheregroup.com> Hello mapserver team, are there any plans to implement WFS 2.0.0 in MapServer TinyOWS and if yes is there a timeline? -- Mit freundlichen Gr??en Astrid Emde ----------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ----------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From pauljame at gmail.com Mon Mar 11 09:15:41 2013 From: pauljame at gmail.com (Paul james) Date: Mon, 11 Mar 2013 13:15:41 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: References: Message-ID: I?m trying to compile mapcache with FastCGI support, but so far no success... I got that error (VS2012 compiler) : *Creating library cgi\mapcache.lib and object cgi\mapcache.exp mapcache.obj : error LNK2019: unresolved external symbol ** __imp__apr_date_parse_http at 4* <__imp__apr_date_parse_http at 4>* referenced in function _fcgi_write_response mapcache.lib(configuration_xml.obj) : error LNK2019: unresolved external symbol_mapcache_source_dummy_create referenced in function _parseSource cgi\mapcache.exe : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0 \VC\BIN\cl.EXE"' : return code '0x2' Stop.* ** Any help? On Tue, Mar 5, 2013 at 4:15 PM, Paul james wrote: > Hey... > > Is it possible to use Mapcache cgi with IIS? > If so, is there any place where I can download de mapcache fcgi binary? > > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Mar 11 09:19:52 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 11 Mar 2013 13:19:52 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: References: Message-ID: <513E0428.5090307@gatewaygeomatics.com> On 2013-03-11 1:15 PM, Paul james wrote: > I?m trying to compile mapcache with FastCGI support, but so far no > success... > > I got that error (VS2012 compiler) : > > */Creating library cgi\mapcache.lib and object cgi\mapcache.exp > mapcache.obj : error LNK2019: unresolved external symbol > /**/__imp__apr_date_parse_http at 4/* > */referenced in function > _fcgi_write_response > mapcache.lib(configuration_xml.obj) : error LNK2019: unresolved external > symbol_mapcache_source_dummy_create referenced in function _parseSource > cgi\mapcache.exe : fatal error LNK1120: 2 unresolved externals > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 11.0 \VC\BIN\cl.EXE"' : return code '0x2' > Stop./* > ** > Any help? > I recently committed many changes to allow MapCache-master to compile on Windows (https://github.com/mapserver/mapcache/commit/bf74c798b55b1e1d602f4b78535363d79d003952), but I have not attempted FastCGI support. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pauljame at gmail.com Mon Mar 11 10:42:38 2013 From: pauljame at gmail.com (Paul james) Date: Mon, 11 Mar 2013 14:42:38 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: <513E0428.5090307@gatewaygeomatics.com> References: <513E0428.5090307@gatewaygeomatics.com> Message-ID: Thanks Jeff... I updated my mapache (master) and now I only got 1 unresolved symbol : *Creating library cgi\mapcache.lib and object cgi\mapcache.exp mapcache.obj : error LNK2019: unresolved external symbol __imp__apr_date_parse_http4 referenced in function _fcgi_write_response cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' Stop.* ** Do you have any idea how can I fix that? Thanks On Mon, Mar 11, 2013 at 1:19 PM, Jeff McKenna wrote: > On 2013-03-11 1:15 PM, Paul james wrote: > > I?m trying to compile mapcache with FastCGI support, but so far no > > success... > > > > I got that error (VS2012 compiler) : > > > > */Creating library cgi\mapcache.lib and object cgi\mapcache.exp > > mapcache.obj : error LNK2019: unresolved external symbol > > /**/__imp__apr_date_parse_http at 4/* > > */referenced in function > > _fcgi_write_response > > mapcache.lib(configuration_xml.obj) : error LNK2019: unresolved external > > symbol_mapcache_source_dummy_create referenced in function _parseSource > > cgi\mapcache.exe : fatal error LNK1120: 2 unresolved externals > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > > Studio 11.0 \VC\BIN\cl.EXE"' : return code '0x2' > > Stop./* > > ** > > Any help? > > > > I recently committed many changes to allow MapCache-master to compile on > Windows > ( > https://github.com/mapserver/mapcache/commit/bf74c798b55b1e1d602f4b78535363d79d003952 > ), > but I have not attempted FastCGI support. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at free.fr Mon Mar 11 11:00:34 2013 From: yjacolin at free.fr (Yves Jacolin) Date: Mon, 11 Mar 2013 19:00:34 +0100 Subject: [mapserver-users] Francophone Open Source Geomatics day (FROG) in Paris Message-ID: <3570507.EiL5taoGGC@helios> (Sorry for cross posting this email) OSGeo-fr, the french speaking OSGeo local chapter, is organizing on 10th of June 2013 the Francophone Open Source Geomatics day (aka FROG) in Paris inside French IGN building (at Saint-Mand?, close to Paris). FROG is one day of conferences and meetings on several topics around OSGeo-fr projects and is a great opportunity to bring all together the community of users, developers or just curious of free software in geomatics. The event is expected to attract around 150 people. This meeting will share our experience by 25 mn conferences in two parallel sessions: one technical, dedicated to software develoment, the other will be more focused on practical use. You are an expert in a field related to free GIS? You are using OSGeo stack in a specific context (major project, big data management, innovative project, etc.).? You are participating in a free project linked to the OSGeo? So don't hesitate to give a presentation! You are warmly welcome! Contributors to the Francophone Open Source Geomatics (FROG) who wish to do a presentation of their projects should submit an abstract before 15th of march 2013. Abstracts should be sent by email in plain text at the following address see http://frog.osgeo.fr/AppelContribution (fr). /! \ In the following days a **three days sprint code** is organized. All FOSS4G projects contributor are warmly welcome to add any information on the wiki page to help us to organize it. See http://frog.osgeo.fr/Sprint for more information. For any inquiries, you can send us an email to conferences at osgeo.asso.fr [1] http://frog.osgeo.fr/ About OSGeo-fr OSGeo-fr is the Francophone Local chapter of Open Source Geospatial Fundation whose mission is to support and promote the development collaborative data and open geospatial technologies. The association is a legal entity to which community members can contribute code, financial and other resources, to ensure that their contributions will be maintained for the benefit of the public. OSGeo-fr is also reference organization and support for the community Geospatial free, and provides a common forum and shared infrastructure to improve collaboration between projects. Participation is open to all of the open-source community. All work of the association are posted on public forums can invest a free community of participants. Projects are the OSGeo Foundation all freely available and useable under an open source license certified by OSI. -- Yves Jacolin From jmckenna at gatewaygeomatics.com Mon Mar 11 11:05:25 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 11 Mar 2013 15:05:25 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: References: <513E0428.5090307@gatewaygeomatics.com> Message-ID: <513E1CE5.8060104@gatewaygeomatics.com> On 2013-03-11 2:42 PM, Paul james wrote: > Thanks Jeff... > > I updated my mapache (master) and now I only got 1 unresolved symbol : > > */Creating library cgi\mapcache.lib and object cgi\mapcache.exp > mapcache.obj : error LNK2019: unresolved external symbol > __imp__apr_date_parse_http4 referenced in function _fcgi_write_response > cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' > Stop./* > *//* > Do you have any idea how can I fix that? > > Thanks > Since that function comes from the APR library (apr-util i think), maybe make sure you set all the APR declarations in your nmake.opt -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pauljame at gmail.com Tue Mar 12 09:38:34 2013 From: pauljame at gmail.com (Paul james) Date: Tue, 12 Mar 2013 13:38:34 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: <513E1CE5.8060104@gatewaygeomatics.com> References: <513E0428.5090307@gatewaygeomatics.com> <513E1CE5.8060104@gatewaygeomatics.com> Message-ID: Thanks... I compiled mapcache with success ... mapcache_seed is working fine... But I dont know how use the FastCGI module (mapcache.exe) ... I created a FastCGI 'Module Mapping' in IIS pointing to mapcache.exe ... But how can I use that in my atual map? I didnt find any tutorial/guide how use Mapcache as FastCGI independent module... Paul On Mon, Mar 11, 2013 at 3:05 PM, Jeff McKenna wrote: > > > > On 2013-03-11 2:42 PM, Paul james wrote: > > Thanks Jeff... > > > > I updated my mapache (master) and now I only got 1 unresolved symbol : > > > > */Creating library cgi\mapcache.lib and object cgi\mapcache.exp > > mapcache.obj : error LNK2019: unresolved external symbol > > __imp__apr_date_parse_http4 referenced in function _fcgi_write_response > > cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > > Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' > > Stop./* > > *//* > > Do you have any idea how can I fix that? > > > > Thanks > > > > Since that function comes from the APR library (apr-util i think), maybe > make sure you set all the APR declarations in your nmake.opt > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Mar 12 10:16:53 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 12 Mar 2013 13:16:53 -0400 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: References: <513E0428.5090307@gatewaygeomatics.com> <513E1CE5.8060104@gatewaygeomatics.com> Message-ID: <513F6305.9010505@swoodbridge.com> Paul, I have always use the apache module, so this might be useless info. I guessing that you would configure it under IIS like any other FCGI module. The trick is that you need to inform it where its mapcache.xml config file is located. In apache that is passed as an envronment variable. Then you should be able to hit the configured url for the service. http://sever/mapcache.exe/demo http://sever/mapcache.exe?demo And it should respond with the demo service page if that is configured in the mapcache.xml. This might give you some ideas: http://lists.osgeo.org/pipermail/mapserver-dev/2012-February/012007.html -Steve W On 3/12/2013 12:38 PM, Paul james wrote: > Thanks... > I compiled mapcache with success ... mapcache_seed is working fine... > But I dont know how use the FastCGI module (mapcache.exe) ... I created > a FastCGI 'Module Mapping' in IIS pointing to mapcache.exe ... But how > can I use that in my atual map? I didnt find any tutorial/guide how use > Mapcache as FastCGI independent module... > Paul > > > On Mon, Mar 11, 2013 at 3:05 PM, Jeff McKenna > > > wrote: > > > > > On 2013-03-11 2:42 PM, Paul james wrote: > > Thanks Jeff... > > > > I updated my mapache (master) and now I only got 1 unresolved > symbol : > > > > */Creating library cgi\mapcache.lib and object cgi\mapcache.exp > > mapcache.obj : error LNK2019: unresolved external symbol > > __imp__apr_date_parse_http4 referenced in function > _fcgi_write_response > > cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > > Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' > > Stop./* > > *//* > > Do you have any idea how can I fix that? > > > > Thanks > > > > Since that function comes from the APR library (apr-util i think), maybe > make sure you set all the APR declarations in your nmake.opt > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lenholuu at yahoo.com Tue Mar 12 11:15:55 2013 From: lenholuu at yahoo.com (le nho luu) Date: Tue, 12 Mar 2013 11:15:55 -0700 (PDT) Subject: [mapserver-users] Fw: Breaking news Message-ID: <1363112155.48668.YahooMailNeo@web125205.mail.ne1.yahoo.com> http://www.atamela.de/syoikbg/ibtiukxlk -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Tue Mar 12 11:42:35 2013 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Tue, 12 Mar 2013 19:42:35 +0100 Subject: [mapserver-users] MapServer Support for WFS 2.0.0 In-Reply-To: <513DDD1C.8010809@wheregroup.com> References: <513DDD1C.8010809@wheregroup.com> Message-ID: 2013/3/11 Astrid Emde Hi Astrid, are there any plans to implement WFS 2.0.0 in MapServer TinyOWS and if > yes is there a timeline? > WFS 2.0.0 and especially the INSPIRE Download service part, are clearly identified as a need for future. Right now, Oslandia is ready to participate to sponsor this feature. But not ready to sponsor it alone. We already launched some discussions with some French agencies. The aim is to gather 3/5 organisations able to fund it together. So right now it's a bit early to talk about timeline. Help/contact/partial funding on this subjet is so very welcome. Regards, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From icadedt at yahoo.fr Wed Mar 13 02:35:20 2013 From: icadedt at yahoo.fr (Icadedt) Date: Wed, 13 Mar 2013 09:35:20 +0000 (GMT) Subject: [mapserver-users] build mapserver 6.2 freetype error Message-ID: <1363167320.36302.YahooMailNeo@web28904.mail.ir2.yahoo.com> hi, im trying to build mapserver 6.2: i type this: ./configure? --with-ogr=/usr/bin/gdal-config? --with-gdal=/usr/bin/gdal-config --with-httpd=/usr/sbin/httpd --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr/local --with-tiff --with-gd=/usr/share/locale/ --with-jpeg --with-freetype=/usr/lib64/ --with-threads --with-wcs --with-postgis=/usr/local/database/bin/pg_config --with-libiconv=/usr --with-geos=/usr/local/geos-3.3.5/tools/geos-config? --with-xml2-config=/usr/bin/xml2-config --with-sos but i have this error about freetype: checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config checking for freetype-config... no checking for FT_Init_FreeType in -lfreetype... no configure: error: unable to link - reconfigure with correct --with-freetype=dir i checked freetype-2.3.11-14.el6_3.1.x86_64 is already installed Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at free.fr Wed Mar 13 02:37:38 2013 From: yjacolin at free.fr (Yves Jacolin (Free)) Date: Wed, 13 Mar 2013 10:37:38 +0100 Subject: [mapserver-users] build mapserver 6.2 freetype error In-Reply-To: <1363167320.36302.YahooMailNeo@web28904.mail.ir2.yahoo.com> References: <1363167320.36302.YahooMailNeo@web28904.mail.ir2.yahoo.com> Message-ID: <6038194.zzkZhVscKR@tatras> Bonjour, Try installing libfreetype6-dev When you build something you should install something-dev package to install the source. Cordialement, Y. Le mercredi 13 mars 2013 09:35:20 Icadedt a ?crit : > hi, > > > im trying to build mapserver 6.2: > i type this: > > ./configure --with-ogr=/usr/bin/gdal-config > --with-gdal=/usr/bin/gdal-config --with-httpd=/usr/sbin/httpd > --with-wfsclient --with-wmsclient > --enable-debug --with-curl-config=/usr/bin/curl-config > --with-proj=/usr/local --with-tiff --with-gd=/usr/share/locale/ > --with-jpeg --with-freetype=/usr/lib64/ --with-threads --with-wcs > --with-postgis=/usr/local/database/bin/pg_config --with-libiconv=/usr > --with-geos=/usr/local/geos-3.3.5/tools/geos-config > --with-xml2-config=/usr/bin/xml2-config --with-sos > > > > > but i have this error about freetype: > > > checking if pkg-config path is provided... checking for pkg-config... > /usr/bin/pkg-config checking for freetype-config... no > checking for FT_Init_FreeType in -lfreetype... no > configure: error: unable to link - reconfigure with correct > --with-freetype=dir > > > > > i checked freetype-2.3.11-14.el6_3.1.x86_64 is already installed > > > Thanks in advance From thomas.bonfort at gmail.com Wed Mar 13 03:27:39 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 13 Mar 2013 11:27:39 +0100 Subject: [mapserver-users] build mapserver 6.2 freetype error In-Reply-To: <1363167320.36302.YahooMailNeo@web28904.mail.ir2.yahoo.com> References: <1363167320.36302.YahooMailNeo@web28904.mail.ir2.yahoo.com> Message-ID: don't specify the paths for libraries/dependencies that are in default locations, i.e. ./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --enable-debug --with-proj --with-gd --with-jpeg --with-freetype --with-threads --with-wcs --with-postgis=/usr/local/database/bin/pg_config --with-geos --with-sos On 13 March 2013 10:35, Icadedt wrote: > > > hi, > > > im trying to build mapserver 6.2: > i type this: > > ./configure --with-ogr=/usr/bin/gdal-config > --with-gdal=/usr/bin/gdal-config --with-httpd=/usr/sbin/httpd > --with-wfsclient --with-wmsclient --enable-debug > --with-curl-config=/usr/bin/curl-config --with-proj=/usr/local --with-tiff > --with-gd=/usr/share/locale/ --with-jpeg --with-freetype=/usr/lib64/ > --with-threads --with-wcs --with-postgis=/usr/local/database/bin/pg_config > --with-libiconv=/usr --with-geos=/usr/local/geos-3.3.5/tools/geos-config > --with-xml2-config=/usr/bin/xml2-config --with-sos > > > > but i have this error about freetype: > > checking if pkg-config path is provided... checking for pkg-config... > /usr/bin/pkg-config > checking for freetype-config... no > checking for FT_Init_FreeType in -lfreetype... no > configure: error: unable to link - reconfigure with correct > --with-freetype=dir > > > > i checked freetype-2.3.11-14.el6_3.1.x86_64 is already installed > > > Thanks in advance > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pedrocostaarma at sapo.pt Wed Mar 13 04:40:29 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Wed, 13 Mar 2013 11:40:29 +0000 Subject: [mapserver-users] postgis layers don't show up Message-ID: <514065AD.3020603@sapo.pt> Hi guys, I have one mapfile with conections to postgis layers and one raster. My problem is that the layers from postgis don't show up...If i make the request without the raster i got only white images... I have the debug level in 5 and I got no erros in all logs (including apache)... The permissions of the database are correct because I tried accessing with qgis and it worked fine. I'm also try specified the projection ("using srid = 27493") but without sucess... I'm also tried add one of the Iayers of db but from a shape and worked fine... Furthermore, very strange is that when I try to run mapfile with pmapper, I can search for attributes and zoom to the correct areas (despite can't see geometries) ... Anybody have an idea? Thanks SO: Ubuntu server MapServer version 6.0.1 From yjacolin at free.fr Wed Mar 13 05:21:48 2013 From: yjacolin at free.fr (Yves Jacolin (Free)) Date: Wed, 13 Mar 2013 13:21:48 +0100 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <514065AD.3020603@sapo.pt> References: <514065AD.3020603@sapo.pt> Message-ID: <2005273.lC2orYpd83@tatras> Hello, Could you post you layer object from your mapfile? Does the log says something about your postgis table? Thanks, Y. Le mercredi 13 mars 2013 11:40:29 Pedro Costa a ?crit : > Hi guys, > > I have one mapfile with conections to postgis layers and one raster. > My problem is that the layers from postgis don't show up...If i make the > request without the raster i got only white images... > I have the debug level in 5 and I got no erros in all logs (including > apache)... > The permissions of the database are correct because I tried accessing > with qgis and it worked fine. I'm also try specified the projection > ("using srid = 27493") but without sucess... > I'm also tried add one of the Iayers of db but from a shape and worked > fine... > Furthermore, very strange is that when I try to run mapfile with > pmapper, I can search for attributes and zoom to the correct areas > (despite can't see geometries) ... > > Anybody have an idea? > > Thanks > > > SO: Ubuntu server > MapServer version 6.0.1 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pedrocostaarma at sapo.pt Wed Mar 13 07:50:01 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Wed, 13 Mar 2013 14:50:01 +0000 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <1452057.UoaGmz5WGA@tatras> References: <514065AD.3020603@sapo.pt> <2005273.lC2orYpd83@tatras> <51407077.7040802@sapo.pt> <1452057.UoaGmz5WGA@tatras> Message-ID: <51409219.5030504@sapo.pt> Ok, i got some information [1].... I can see that mapserver tried get the layers....But no errors, i think... [1] http://pastebin.com/fmnBLWcw Em 13-03-2013 12:53, Yves Jacolin (Free) escreveu: > Hello, > > Could you try to add: > DEBUG 5 > > in the LAYER object. You can find some useful information in the mapserver log > and see the request sent by MapServer. > > Regards, > > Y. > > > Le mercredi 13 mars 2013 12:26:31 Pedro Costa a ?crit : >> Hi, >> >> Yes, sure... >> No, nothing about the table.... >> >> Thanks >> >> >> LAYER >> NAME "ruas" >> STATUS DEFAULT >> TYPE LINE >> CONNECTIONTYPE postgis >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTION "user=pedro password=****** dbname=norte host=localhost >> options='-c client_encoding=LATIN1'" >> DATA "the_geom from ruas using unique n_rua using srid=27492" >> TOLERANCE 3 >> TOLERANCEUNITS pixels >> TEMPLATE void >> PROJECTION >> "init=epsg:27492" >> END >> METADATA >> "DESCRIPTION" "Ruas" >> "RESULT_FIELDS" "n_rua" >> "RESULT_HEADERS" "ID" >> "ows_title" "Ruas" >> END # Metadata >> CLASS >> Name 'ruas' >> COLOR 0 0 0 >> END # Class >> END >> >> Em 13-03-2013 12:21, Yves Jacolin (Free) escreveu: >>> Hello, >>> >>> Could you post you layer object from your mapfile? >>> >>> Does the log says something about your postgis table? >>> >>> Thanks, >>> >>> Y. >>> >>> Le mercredi 13 mars 2013 11:40:29 Pedro Costa a ?crit : >>>> Hi guys, >>>> >>>> I have one mapfile with conections to postgis layers and one raster. >>>> My problem is that the layers from postgis don't show up...If i make the >>>> request without the raster i got only white images... >>>> I have the debug level in 5 and I got no erros in all logs (including >>>> apache)... >>>> The permissions of the database are correct because I tried accessing >>>> with qgis and it worked fine. I'm also try specified the projection >>>> ("using srid = 27493") but without sucess... >>>> I'm also tried add one of the Iayers of db but from a shape and worked >>>> fine... >>>> Furthermore, very strange is that when I try to run mapfile with >>>> pmapper, I can search for attributes and zoom to the correct areas >>>> (despite can't see geometries) ... >>>> >>>> Anybody have an idea? >>>> >>>> Thanks >>>> >>>> >>>> SO: Ubuntu server >>>> MapServer version 6.0.1 >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Mar 13 08:02:37 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 13 Mar 2013 12:02:37 -0300 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <514065AD.3020603@sapo.pt> References: <514065AD.3020603@sapo.pt> Message-ID: <5140950D.7040803@gatewaygeomatics.com> On 2013-03-13 8:40 AM, Pedro Costa wrote: > Hi guys, > > I have one mapfile with conections to postgis layers and one raster. > My problem is that the layers from postgis don't show up...If i make the > request without the raster i got only white images... > I have the debug level in 5 and I got no erros in all logs (including > apache)... > The permissions of the database are correct because I tried accessing > with qgis and it worked fine. I'm also try specified the projection > ("using srid = 27493") but without sucess... > I'm also tried add one of the Iayers of db but from a shape and worked > fine... > Furthermore, very strange is that when I try to run mapfile with > pmapper, I can search for attributes and zoom to the correct areas > (despite can't see geometries) ... > > Anybody have an idea? > Here is what I do when this happens to me: - copy mapfile into new name - use new named mapfile for testing - remove all layers - execute ogrinfo to the Postgres DB - use the extents returned from ogrinfo from one pg/postgis layer as the EXTENT parameter in your mapfile - remove all projection objects in mapfile - add one layer to the mapfile, for that same ogrinfo/postgis layer (with no projection object) - test with shp2img utility Hope that process helps. Once that works you can start working forward with more layers or debug as you go. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yjacolin at free.fr Wed Mar 13 08:20:25 2013 From: yjacolin at free.fr (Yves Jacolin (Free)) Date: Wed, 13 Mar 2013 16:20:25 +0100 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <51409219.5030504@sapo.pt> References: <514065AD.3020603@sapo.pt> <1452057.UoaGmz5WGA@tatras> <51409219.5030504@sapo.pt> Message-ID: <4375672.mE92fMQCqm@tatras> Hum, are you sure about your projection or the bbox requested? MapServer send the request to Postgresql but get 0 record. Y. Le mercredi 13 mars 2013 14:50:01 Pedro Costa a ?crit : > Ok, i got some information [1].... > > I can see that mapserver tried get the layers....But no errors, i think... > > > [1] http://pastebin.com/fmnBLWcw > > Em 13-03-2013 12:53, Yves Jacolin (Free) escreveu: > > Hello, > > > > Could you try to add: > > DEBUG 5 > > > > in the LAYER object. You can find some useful information in the mapserver > > log and see the request sent by MapServer. > > > > Regards, > > > > Y. > > > > Le mercredi 13 mars 2013 12:26:31 Pedro Costa a ?crit : > >> Hi, > >> > >> Yes, sure... > >> No, nothing about the table.... > >> > >> Thanks > >> > >> > >> LAYER > >> > >> NAME "ruas" > >> STATUS DEFAULT > >> TYPE LINE > >> CONNECTIONTYPE postgis > >> PROCESSING "CLOSE_CONNECTION=DEFER" > >> CONNECTION "user=pedro password=****** dbname=norte host=localhost > >> > >> options='-c client_encoding=LATIN1'" > >> > >> DATA "the_geom from ruas using unique n_rua using srid=27492" > >> > >> TOLERANCE 3 > >> > >> TOLERANCEUNITS pixels > >> TEMPLATE void > >> > >> PROJECTION > >> > >> "init=epsg:27492" > >> > >> END > >> > >> METADATA > >> "DESCRIPTION" "Ruas" > >> "RESULT_FIELDS" "n_rua" > >> "RESULT_HEADERS" "ID" > >> > >> "ows_title" "Ruas" > >> > >> END # Metadata > >> CLASS > >> > >> Name 'ruas' > >> COLOR 0 0 0 > >> > >> END # Class > >> > >> END > >> > >> Em 13-03-2013 12:21, Yves Jacolin (Free) escreveu: > >>> Hello, > >>> > >>> Could you post you layer object from your mapfile? > >>> > >>> Does the log says something about your postgis table? > >>> > >>> Thanks, > >>> > >>> Y. > >>> > >>> Le mercredi 13 mars 2013 11:40:29 Pedro Costa a ?crit : > >>>> Hi guys, > >>>> > >>>> I have one mapfile with conections to postgis layers and one raster. > >>>> My problem is that the layers from postgis don't show up...If i make > >>>> the > >>>> request without the raster i got only white images... > >>>> I have the debug level in 5 and I got no erros in all logs (including > >>>> apache)... > >>>> The permissions of the database are correct because I tried accessing > >>>> with qgis and it worked fine. I'm also try specified the projection > >>>> ("using srid = 27493") but without sucess... > >>>> I'm also tried add one of the Iayers of db but from a shape and worked > >>>> fine... > >>>> Furthermore, very strange is that when I try to run mapfile with > >>>> pmapper, I can search for attributes and zoom to the correct areas > >>>> (despite can't see geometries) ... > >>>> > >>>> Anybody have an idea? > >>>> > >>>> Thanks > >>>> > >>>> > >>>> SO: Ubuntu server > >>>> MapServer version 6.0.1 > >>>> _______________________________________________ > >>>> mapserver-users mailing list > >>>> mapserver-users at lists.osgeo.org > >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Mar 13 09:39:09 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Mar 2013 12:39:09 -0400 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <4375672.mE92fMQCqm@tatras> References: <514065AD.3020603@sapo.pt> <1452057.UoaGmz5WGA@tatras> <51409219.5030504@sapo.pt> <4375672.mE92fMQCqm@tatras> Message-ID: <5140ABAD.9050302@swoodbridge.com> I should be able to get the SQL query that mapserver is sending to postgresql. I would copy and paste is into pgadmin sql window and try it there. Then you can play with the sql to see what is going on. More than likely you have the wrong projection so something else similar. I use this in a lot of my mapfiles as do others so it is not a bug in the code. Also make sure you have not flipped long-lat to lat-long or something like that. -Steve On 3/13/2013 11:20 AM, Yves Jacolin (Free) wrote: > Hum, are you sure about your projection or the bbox requested? > > MapServer send the request to Postgresql but get 0 record. > > Y. > Le mercredi 13 mars 2013 14:50:01 Pedro Costa a ?crit : >> Ok, i got some information [1].... >> >> I can see that mapserver tried get the layers....But no errors, i think... >> >> >> [1] http://pastebin.com/fmnBLWcw >> >> Em 13-03-2013 12:53, Yves Jacolin (Free) escreveu: >>> Hello, >>> >>> Could you try to add: >>> DEBUG 5 >>> >>> in the LAYER object. You can find some useful information in the mapserver >>> log and see the request sent by MapServer. >>> >>> Regards, >>> >>> Y. >>> >>> Le mercredi 13 mars 2013 12:26:31 Pedro Costa a ?crit : >>>> Hi, >>>> >>>> Yes, sure... >>>> No, nothing about the table.... >>>> >>>> Thanks >>>> >>>> >>>> LAYER >>>> >>>> NAME "ruas" >>>> STATUS DEFAULT >>>> TYPE LINE >>>> CONNECTIONTYPE postgis >>>> PROCESSING "CLOSE_CONNECTION=DEFER" >>>> CONNECTION "user=pedro password=****** dbname=norte host=localhost >>>> >>>> options='-c client_encoding=LATIN1'" >>>> >>>> DATA "the_geom from ruas using unique n_rua using srid=27492" >>>> >>>> TOLERANCE 3 >>>> >>>> TOLERANCEUNITS pixels >>>> TEMPLATE void >>>> >>>> PROJECTION >>>> >>>> "init=epsg:27492" >>>> >>>> END >>>> >>>> METADATA >>>> "DESCRIPTION" "Ruas" >>>> "RESULT_FIELDS" "n_rua" >>>> "RESULT_HEADERS" "ID" >>>> >>>> "ows_title" "Ruas" >>>> >>>> END # Metadata >>>> CLASS >>>> >>>> Name 'ruas' >>>> COLOR 0 0 0 >>>> >>>> END # Class >>>> >>>> END >>>> >>>> Em 13-03-2013 12:21, Yves Jacolin (Free) escreveu: >>>>> Hello, >>>>> >>>>> Could you post you layer object from your mapfile? >>>>> >>>>> Does the log says something about your postgis table? >>>>> >>>>> Thanks, >>>>> >>>>> Y. >>>>> >>>>> Le mercredi 13 mars 2013 11:40:29 Pedro Costa a ?crit : >>>>>> Hi guys, >>>>>> >>>>>> I have one mapfile with conections to postgis layers and one raster. >>>>>> My problem is that the layers from postgis don't show up...If i make >>>>>> the >>>>>> request without the raster i got only white images... >>>>>> I have the debug level in 5 and I got no erros in all logs (including >>>>>> apache)... >>>>>> The permissions of the database are correct because I tried accessing >>>>>> with qgis and it worked fine. I'm also try specified the projection >>>>>> ("using srid = 27493") but without sucess... >>>>>> I'm also tried add one of the Iayers of db but from a shape and worked >>>>>> fine... >>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>> pmapper, I can search for attributes and zoom to the correct areas >>>>>> (despite can't see geometries) ... >>>>>> >>>>>> Anybody have an idea? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> SO: Ubuntu server >>>>>> MapServer version 6.0.1 >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From c.pelliconi at sis-ter.it Wed Mar 13 09:54:34 2013 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Wed, 13 Mar 2013 17:54:34 +0100 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <514065AD.3020603@sapo.pt> References: <514065AD.3020603@sapo.pt> Message-ID: <5140AF4A.6030903@sis-ter.it> I think like others that the problem could be in srid definition. Remember that you need to define an srid for the mapfile and an srid for each layer in the mapfile. When using postgis connectiontype I also put "using srid=yourPostGisLayerSrid" in the DATA sql statement of the layer (mandatory? I don't know, but it works) Hope this helps. Best Regards, Carlo Il 13/03/2013 12:40, Pedro Costa ha scritto: > Hi guys, > > I have one mapfile with conections to postgis layers and one raster. > My problem is that the layers from postgis don't show up...If i make > the request without the raster i got only white images... > I have the debug level in 5 and I got no erros in all logs (including > apache)... > The permissions of the database are correct because I tried accessing > with qgis and it worked fine. I'm also try specified the projection > ("using srid = 27493") but without sucess... > I'm also tried add one of the Iayers of db but from a shape and worked > fine... > Furthermore, very strange is that when I try to run mapfile with > pmapper, I can search for attributes and zoom to the correct areas > (despite can't see geometries) ... > > Anybody have an idea? > > Thanks > > > SO: Ubuntu server > MapServer version 6.0.1 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Carlo Pelliconi - www.sis-ter.it !* proteggiamo l'ambiente: stampa questa mail solo se necessario *! From pedrocostaarma at sapo.pt Wed Mar 13 10:12:14 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Wed, 13 Mar 2013 17:12:14 +0000 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140AF4A.6030903@sis-ter.it> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> Message-ID: <5140B36E.7060104@sapo.pt> Thanks to all. The problem is the query.despite don't give me any error returns 0 features... This happens because the 'where with the polygon' [1]... Anybody knows the origin of that polygon? select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"n_rua" from ruas where the_geom && GeomFromText('POLYGON((88071.2044330519 122184.53,88071.2044330519 124022.08,91531.2955669481 124022.08,91531.2955669481 122184.53,88071.2044330519 122184.53))',27492) Em 13-03-2013 16:54, Carlo Pelliconi escreveu: > I think like others that the problem could be in srid definition. > > Remember that you need to define an srid for the mapfile and an srid > for each layer in the mapfile. > When using postgis connectiontype I also put "using > srid=yourPostGisLayerSrid" in the DATA sql statement of the layer > (mandatory? I don't know, but it works) > > Hope this helps. > Best Regards, Carlo > > Il 13/03/2013 12:40, Pedro Costa ha scritto: >> Hi guys, >> >> I have one mapfile with conections to postgis layers and one raster. >> My problem is that the layers from postgis don't show up...If i make >> the request without the raster i got only white images... >> I have the debug level in 5 and I got no erros in all logs (including >> apache)... >> The permissions of the database are correct because I tried accessing >> with qgis and it worked fine. I'm also try specified the projection >> ("using srid = 27493") but without sucess... >> I'm also tried add one of the Iayers of db but from a shape and >> worked fine... >> Furthermore, very strange is that when I try to run mapfile with >> pmapper, I can search for attributes and zoom to the correct areas >> (despite can't see geometries) ... >> >> Anybody have an idea? >> >> Thanks >> >> >> SO: Ubuntu server >> MapServer version 6.0.1 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From woodbri at swoodbridge.com Wed Mar 13 10:14:37 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Mar 2013 13:14:37 -0400 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140B36E.7060104@sapo.pt> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> Message-ID: <5140B3FD.5010002@swoodbridge.com> The polygon is the bounding box of the image that you requested. Mapserver only needs the geometries the cross of the map image and this is what the where clause is doing. Why do you thin this is not correct? What does the top of you mapfile look like and what does this LAYER definition look like? -Steve W On 3/13/2013 1:12 PM, Pedro Costa wrote: > Thanks to all. > The problem is the query.despite don't give me any error returns 0 > features... > This happens because the 'where with the polygon' [1]... > Anybody knows the origin of that polygon? > > > select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as > geom,"n_rua" > from ruas > where the_geom && GeomFromText('POLYGON((88071.2044330519 > 122184.53,88071.2044330519 124022.08,91531.2955669481 > 124022.08,91531.2955669481 122184.53,88071.2044330519 122184.53))',27492) > > > > Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >> I think like others that the problem could be in srid definition. >> >> Remember that you need to define an srid for the mapfile and an srid >> for each layer in the mapfile. >> When using postgis connectiontype I also put "using >> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >> (mandatory? I don't know, but it works) >> >> Hope this helps. >> Best Regards, Carlo >> >> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>> Hi guys, >>> >>> I have one mapfile with conections to postgis layers and one raster. >>> My problem is that the layers from postgis don't show up...If i make >>> the request without the raster i got only white images... >>> I have the debug level in 5 and I got no erros in all logs (including >>> apache)... >>> The permissions of the database are correct because I tried accessing >>> with qgis and it worked fine. I'm also try specified the projection >>> ("using srid = 27493") but without sucess... >>> I'm also tried add one of the Iayers of db but from a shape and >>> worked fine... >>> Furthermore, very strange is that when I try to run mapfile with >>> pmapper, I can search for attributes and zoom to the correct areas >>> (despite can't see geometries) ... >>> >>> Anybody have an idea? >>> >>> Thanks >>> >>> >>> SO: Ubuntu server >>> MapServer version 6.0.1 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pedrocostaarma at sapo.pt Wed Mar 13 10:22:31 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Wed, 13 Mar 2013 17:22:31 +0000 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140B3FD.5010002@swoodbridge.com> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> Message-ID: <5140B5D7.4010508@sapo.pt> Yes, i confirmed that right now, its the bb but i don't understand the problem because in other server (with the same coordinates) this works fine. i'm also confirmed the extent in qgis and its correct... my mapfile top data: EXTENT 88386.2 122329.41 91216.3 124022.08 UNITS meters SIZE 500 500 SHAPEPATH "shape" SYMBOLSET "../common/symbols/symbols-pmapper.sym" FONTSET "../common/fonts/msfontset.txt" RESOLUTION 96 IMAGETYPE png INTERLACE OFF PROJECTION "init=epsg:27493" END my layer: LAYER NAME "ruas" STATUS DEFAULT DEBUG 5 TYPE LINE CONNECTIONTYPE postgis PROCESSING "CLOSE_CONNECTION=DEFERl" CONNECTION "user=pedro password=****** dbname=norte host=localhost options='-c client_encoding=LATIN1'" DATA "the_geom from ruas using unique n_rua using srid=27493" TOLERANCE 3 TOLERANCEUNITS pixels TEMPLATE void PROJECTION "init=epsg:27493" END METADATA "DESCRIPTION" "Ruas" "RESULT_FIELDS" "id" "RESULT_HEADERS" "id" "ows_title" "Ruas " END # Metadata CLASS Name 'ruas' COLOR 0 0 0 END # Class END Em 13-03-2013 17:14, Stephen Woodbridge escreveu: > The polygon is the bounding box of the image that you requested. > Mapserver only needs the geometries the cross of the map image and > this is what the where clause is doing. > > Why do you thin this is not correct? What does the top of you mapfile > look like and what does this LAYER definition look like? > > -Steve W > > On 3/13/2013 1:12 PM, Pedro Costa wrote: >> Thanks to all. >> The problem is the query.despite don't give me any error returns 0 >> features... >> This happens because the 'where with the polygon' [1]... >> Anybody knows the origin of that polygon? >> >> >> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >> geom,"n_rua" >> from ruas >> where the_geom && GeomFromText('POLYGON((88071.2044330519 >> 122184.53,88071.2044330519 124022.08,91531.2955669481 >> 124022.08,91531.2955669481 122184.53,88071.2044330519 >> 122184.53))',27492) >> >> >> >> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>> I think like others that the problem could be in srid definition. >>> >>> Remember that you need to define an srid for the mapfile and an srid >>> for each layer in the mapfile. >>> When using postgis connectiontype I also put "using >>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>> (mandatory? I don't know, but it works) >>> >>> Hope this helps. >>> Best Regards, Carlo >>> >>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>> Hi guys, >>>> >>>> I have one mapfile with conections to postgis layers and one raster. >>>> My problem is that the layers from postgis don't show up...If i make >>>> the request without the raster i got only white images... >>>> I have the debug level in 5 and I got no erros in all logs (including >>>> apache)... >>>> The permissions of the database are correct because I tried accessing >>>> with qgis and it worked fine. I'm also try specified the projection >>>> ("using srid = 27493") but without sucess... >>>> I'm also tried add one of the Iayers of db but from a shape and >>>> worked fine... >>>> Furthermore, very strange is that when I try to run mapfile with >>>> pmapper, I can search for attributes and zoom to the correct areas >>>> (despite can't see geometries) ... >>>> >>>> Anybody have an idea? >>>> >>>> Thanks >>>> >>>> >>>> SO: Ubuntu server >>>> MapServer version 6.0.1 >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Mar 13 10:39:48 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Mar 2013 13:39:48 -0400 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140B5D7.4010508@sapo.pt> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> <5140B5D7.4010508@sapo.pt> Message-ID: <5140B9E4.4080200@swoodbridge.com> So What do you get in pgadmin or psql with: select count(*) from ruas where the_geom && GeomFromText('POLYGON((88071.2044330519 122184.53,88071.2044330519 124022.08,91531.2955669481 124022.08,91531.2955669481 122184.53,88071.2044330519 122184.53))',27492); select st_astext(st_extents(st_collect(the_geom))) from ruas; -Steve On 3/13/2013 1:22 PM, Pedro Costa wrote: > Yes, i confirmed that right now, its the bb but i don't understand the > problem because in other server (with the same coordinates) this works > fine. > i'm also confirmed the extent in qgis and its correct... > > > my mapfile top data: > > EXTENT 88386.2 122329.41 91216.3 124022.08 > UNITS meters > SIZE 500 500 > SHAPEPATH "shape" > SYMBOLSET "../common/symbols/symbols-pmapper.sym" > FONTSET "../common/fonts/msfontset.txt" > RESOLUTION 96 > IMAGETYPE png > INTERLACE OFF > > PROJECTION > "init=epsg:27493" > > END > > > > my layer: > > > LAYER > NAME "ruas" > STATUS DEFAULT > DEBUG 5 > TYPE LINE > CONNECTIONTYPE postgis > PROCESSING "CLOSE_CONNECTION=DEFERl" > CONNECTION "user=pedro password=****** dbname=norte host=localhost > options='-c client_encoding=LATIN1'" > DATA "the_geom from ruas using unique n_rua using srid=27493" > TOLERANCE 3 > TOLERANCEUNITS pixels > TEMPLATE void > PROJECTION > "init=epsg:27493" > END > METADATA > "DESCRIPTION" "Ruas" > "RESULT_FIELDS" "id" > "RESULT_HEADERS" "id" > > "ows_title" "Ruas " > END # Metadata > CLASS > Name 'ruas' > COLOR 0 0 0 > END # Class > > END > > > > > > > > > > > > > > > Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >> The polygon is the bounding box of the image that you requested. >> Mapserver only needs the geometries the cross of the map image and >> this is what the where clause is doing. >> >> Why do you thin this is not correct? What does the top of you mapfile >> look like and what does this LAYER definition look like? >> >> -Steve W >> >> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>> Thanks to all. >>> The problem is the query.despite don't give me any error returns 0 >>> features... >>> This happens because the 'where with the polygon' [1]... >>> Anybody knows the origin of that polygon? >>> >>> >>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>> geom,"n_rua" >>> from ruas >>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>> 122184.53))',27492) >>> >>> >>> >>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>> I think like others that the problem could be in srid definition. >>>> >>>> Remember that you need to define an srid for the mapfile and an srid >>>> for each layer in the mapfile. >>>> When using postgis connectiontype I also put "using >>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>> (mandatory? I don't know, but it works) >>>> >>>> Hope this helps. >>>> Best Regards, Carlo >>>> >>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>> Hi guys, >>>>> >>>>> I have one mapfile with conections to postgis layers and one raster. >>>>> My problem is that the layers from postgis don't show up...If i make >>>>> the request without the raster i got only white images... >>>>> I have the debug level in 5 and I got no erros in all logs (including >>>>> apache)... >>>>> The permissions of the database are correct because I tried accessing >>>>> with qgis and it worked fine. I'm also try specified the projection >>>>> ("using srid = 27493") but without sucess... >>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>> worked fine... >>>>> Furthermore, very strange is that when I try to run mapfile with >>>>> pmapper, I can search for attributes and zoom to the correct areas >>>>> (despite can't see geometries) ... >>>>> >>>>> Anybody have an idea? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> SO: Ubuntu server >>>>> MapServer version 6.0.1 >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pedrocostaarma at sapo.pt Wed Mar 13 10:49:21 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Wed, 13 Mar 2013 17:49:21 +0000 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140B9E4.4080200@swoodbridge.com> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> <5140B5D7.4010508@sapo.pt> <5140B9E4.4080200@swoodbridge.com> Message-ID: <5140BC21.9010107@sapo.pt> Em 13-03-2013 17:39, Stephen Woodbridge escreveu: > So What do you get in pgadmin or psql with: > > select count(*) > from ruas > where the_geom && GeomFromText('POLYGON((88071.2044330519 > 122184.53,88071.2044330519 124022.08,91531.2955669481 > 124022.08,91531.2955669481 122184.53,88071.2044330519 > 122184.53))',27492); nothing...count = 0... > > select st_astext(st_extents(st_collect(the_geom))) from ruas; Previously i have compared the result of 'st_extent' with extent in mapfile and its the same.... Your query with st_collects give me an error (ERROR: aggregate function calls cannot be nested).... > > -Steve > > > > On 3/13/2013 1:22 PM, Pedro Costa wrote: >> Yes, i confirmed that right now, its the bb but i don't understand the >> problem because in other server (with the same coordinates) this works >> fine. >> i'm also confirmed the extent in qgis and its correct... >> >> >> my mapfile top data: >> >> EXTENT 88386.2 122329.41 91216.3 124022.08 >> UNITS meters >> SIZE 500 500 >> SHAPEPATH "shape" >> SYMBOLSET "../common/symbols/symbols-pmapper.sym" >> FONTSET "../common/fonts/msfontset.txt" >> RESOLUTION 96 >> IMAGETYPE png >> INTERLACE OFF >> >> PROJECTION >> "init=epsg:27493" >> >> END >> >> >> >> my layer: >> >> >> LAYER >> NAME "ruas" >> STATUS DEFAULT >> DEBUG 5 >> TYPE LINE >> CONNECTIONTYPE postgis >> PROCESSING "CLOSE_CONNECTION=DEFERl" >> CONNECTION "user=pedro password=****** dbname=norte host=localhost >> options='-c client_encoding=LATIN1'" >> DATA "the_geom from ruas using unique n_rua using srid=27493" >> TOLERANCE 3 >> TOLERANCEUNITS pixels >> TEMPLATE void >> PROJECTION >> "init=epsg:27493" >> END >> METADATA >> "DESCRIPTION" "Ruas" >> "RESULT_FIELDS" "id" >> "RESULT_HEADERS" "id" >> >> "ows_title" "Ruas " >> END # Metadata >> CLASS >> Name 'ruas' >> COLOR 0 0 0 >> END # Class >> >> END >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >>> The polygon is the bounding box of the image that you requested. >>> Mapserver only needs the geometries the cross of the map image and >>> this is what the where clause is doing. >>> >>> Why do you thin this is not correct? What does the top of you mapfile >>> look like and what does this LAYER definition look like? >>> >>> -Steve W >>> >>> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>>> Thanks to all. >>>> The problem is the query.despite don't give me any error returns 0 >>>> features... >>>> This happens because the 'where with the polygon' [1]... >>>> Anybody knows the origin of that polygon? >>>> >>>> >>>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>>> geom,"n_rua" >>>> from ruas >>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>> 122184.53))',27492) >>>> >>>> >>>> >>>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>>> I think like others that the problem could be in srid definition. >>>>> >>>>> Remember that you need to define an srid for the mapfile and an srid >>>>> for each layer in the mapfile. >>>>> When using postgis connectiontype I also put "using >>>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>>> (mandatory? I don't know, but it works) >>>>> >>>>> Hope this helps. >>>>> Best Regards, Carlo >>>>> >>>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>>> Hi guys, >>>>>> >>>>>> I have one mapfile with conections to postgis layers and one raster. >>>>>> My problem is that the layers from postgis don't show up...If i make >>>>>> the request without the raster i got only white images... >>>>>> I have the debug level in 5 and I got no erros in all logs >>>>>> (including >>>>>> apache)... >>>>>> The permissions of the database are correct because I tried >>>>>> accessing >>>>>> with qgis and it worked fine. I'm also try specified the projection >>>>>> ("using srid = 27493") but without sucess... >>>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>>> worked fine... >>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>> pmapper, I can search for attributes and zoom to the correct areas >>>>>> (despite can't see geometries) ... >>>>>> >>>>>> Anybody have an idea? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> SO: Ubuntu server >>>>>> MapServer version 6.0.1 >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Mar 13 11:27:34 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Mar 2013 14:27:34 -0400 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140BC21.9010107@sapo.pt> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> <5140B5D7.4010508@sapo.pt> <5140B9E4.4080200@swoodbridge.com> <5140BC21.9010107@sapo.pt> Message-ID: <5140C516.20001@swoodbridge.com> On 3/13/2013 1:49 PM, Pedro Costa wrote: > Em 13-03-2013 17:39, Stephen Woodbridge escreveu: >> So What do you get in pgadmin or psql with: >> >> select count(*) >> from ruas >> where the_geom && GeomFromText('POLYGON((88071.2044330519 >> 122184.53,88071.2044330519 124022.08,91531.2955669481 >> 124022.08,91531.2955669481 122184.53,88071.2044330519 >> 122184.53))',27492); > > nothing...count = 0... This means there is some kind of disconnect between the data in the database and how you have it defined in the mapfile. >> >> select st_astext(st_extents(st_collect(the_geom))) from ruas; > > Previously i have compared the result of 'st_extent' with extent in > mapfile and its the same.... > Your query with st_collects give me an error (ERROR: aggregate function > calls cannot be nested).... Try: select st_astext(st_extents(the_geom)) from ruas; Once you get this you will have the min and max extents of the data in the database and you can compare that to the polygon above and see if it overlaps. -Steve >> >> -Steve >> >> >> >> On 3/13/2013 1:22 PM, Pedro Costa wrote: >>> Yes, i confirmed that right now, its the bb but i don't understand the >>> problem because in other server (with the same coordinates) this works >>> fine. >>> i'm also confirmed the extent in qgis and its correct... >>> >>> >>> my mapfile top data: >>> >>> EXTENT 88386.2 122329.41 91216.3 124022.08 >>> UNITS meters >>> SIZE 500 500 >>> SHAPEPATH "shape" >>> SYMBOLSET "../common/symbols/symbols-pmapper.sym" >>> FONTSET "../common/fonts/msfontset.txt" >>> RESOLUTION 96 >>> IMAGETYPE png >>> INTERLACE OFF >>> >>> PROJECTION >>> "init=epsg:27493" >>> >>> END >>> >>> >>> >>> my layer: >>> >>> >>> LAYER >>> NAME "ruas" >>> STATUS DEFAULT >>> DEBUG 5 >>> TYPE LINE >>> CONNECTIONTYPE postgis >>> PROCESSING "CLOSE_CONNECTION=DEFERl" >>> CONNECTION "user=pedro password=****** dbname=norte host=localhost >>> options='-c client_encoding=LATIN1'" >>> DATA "the_geom from ruas using unique n_rua using srid=27493" >>> TOLERANCE 3 >>> TOLERANCEUNITS pixels >>> TEMPLATE void >>> PROJECTION >>> "init=epsg:27493" >>> END >>> METADATA >>> "DESCRIPTION" "Ruas" >>> "RESULT_FIELDS" "id" >>> "RESULT_HEADERS" "id" >>> >>> "ows_title" "Ruas " >>> END # Metadata >>> CLASS >>> Name 'ruas' >>> COLOR 0 0 0 >>> END # Class >>> >>> END >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >>>> The polygon is the bounding box of the image that you requested. >>>> Mapserver only needs the geometries the cross of the map image and >>>> this is what the where clause is doing. >>>> >>>> Why do you thin this is not correct? What does the top of you mapfile >>>> look like and what does this LAYER definition look like? >>>> >>>> -Steve W >>>> >>>> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>>>> Thanks to all. >>>>> The problem is the query.despite don't give me any error returns 0 >>>>> features... >>>>> This happens because the 'where with the polygon' [1]... >>>>> Anybody knows the origin of that polygon? >>>>> >>>>> >>>>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>>>> geom,"n_rua" >>>>> from ruas >>>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>>> 122184.53))',27492) >>>>> >>>>> >>>>> >>>>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>>>> I think like others that the problem could be in srid definition. >>>>>> >>>>>> Remember that you need to define an srid for the mapfile and an srid >>>>>> for each layer in the mapfile. >>>>>> When using postgis connectiontype I also put "using >>>>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>>>> (mandatory? I don't know, but it works) >>>>>> >>>>>> Hope this helps. >>>>>> Best Regards, Carlo >>>>>> >>>>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>>>> Hi guys, >>>>>>> >>>>>>> I have one mapfile with conections to postgis layers and one raster. >>>>>>> My problem is that the layers from postgis don't show up...If i make >>>>>>> the request without the raster i got only white images... >>>>>>> I have the debug level in 5 and I got no erros in all logs >>>>>>> (including >>>>>>> apache)... >>>>>>> The permissions of the database are correct because I tried >>>>>>> accessing >>>>>>> with qgis and it worked fine. I'm also try specified the projection >>>>>>> ("using srid = 27493") but without sucess... >>>>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>>>> worked fine... >>>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>>> pmapper, I can search for attributes and zoom to the correct areas >>>>>>> (despite can't see geometries) ... >>>>>>> >>>>>>> Anybody have an idea? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> >>>>>>> SO: Ubuntu server >>>>>>> MapServer version 6.0.1 >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pedrocostaarma at sapo.pt Thu Mar 14 02:56:26 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 14 Mar 2013 09:56:26 +0000 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5140C516.20001@swoodbridge.com> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> <5140B5D7.4010508@sapo.pt> <5140B9E4.4080200@swoodbridge.com> <5140BC21.9010107@sapo.pt> <5140C516.20001@swoodbridge.com> Message-ID: <51419ECA.6090909@sapo.pt> Very strange...I got nothing again: select st_astext(st_extent(the_geom)) from ruas: RESULT: "POLYGON((88386.2413216648 122184.527972102,88386.2413216648 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 122184.527972102,88386.2413216648 122184.527972102))" select count(*) from ruas where the_geom && GeomFromText ('POLYGON((88386.2413216648 122184.527972102,88386.2413216648 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 122184.527972102,88386.2413216648 122184.527972102))',27492); RESULT: 0 Em 13-03-2013 18:27, Stephen Woodbridge escreveu: > On 3/13/2013 1:49 PM, Pedro Costa wrote: >> Em 13-03-2013 17:39, Stephen Woodbridge escreveu: >>> So What do you get in pgadmin or psql with: >>> >>> select count(*) >>> from ruas >>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>> 122184.53))',27492); >> >> nothing...count = 0... > > This means there is some kind of disconnect between the data in the > database and how you have it defined in the mapfile. > >>> >>> select st_astext(st_extents(st_collect(the_geom))) from ruas; >> >> Previously i have compared the result of 'st_extent' with extent in >> mapfile and its the same.... >> Your query with st_collects give me an error (ERROR: aggregate function >> calls cannot be nested).... > > Try: > > select st_astext(st_extents(the_geom)) from ruas; > > Once you get this you will have the min and max extents of the data in > the database and you can compare that to the polygon above and see if > it overlaps. > > -Steve > > >>> >>> -Steve >>> >>> >>> >>> On 3/13/2013 1:22 PM, Pedro Costa wrote: >>>> Yes, i confirmed that right now, its the bb but i don't understand the >>>> problem because in other server (with the same coordinates) this works >>>> fine. >>>> i'm also confirmed the extent in qgis and its correct... >>>> >>>> >>>> my mapfile top data: >>>> >>>> EXTENT 88386.2 122329.41 91216.3 124022.08 >>>> UNITS meters >>>> SIZE 500 500 >>>> SHAPEPATH "shape" >>>> SYMBOLSET "../common/symbols/symbols-pmapper.sym" >>>> FONTSET "../common/fonts/msfontset.txt" >>>> RESOLUTION 96 >>>> IMAGETYPE png >>>> INTERLACE OFF >>>> >>>> PROJECTION >>>> "init=epsg:27493" >>>> >>>> END >>>> >>>> >>>> >>>> my layer: >>>> >>>> >>>> LAYER >>>> NAME "ruas" >>>> STATUS DEFAULT >>>> DEBUG 5 >>>> TYPE LINE >>>> CONNECTIONTYPE postgis >>>> PROCESSING "CLOSE_CONNECTION=DEFERl" >>>> CONNECTION "user=pedro password=****** dbname=norte >>>> host=localhost >>>> options='-c client_encoding=LATIN1'" >>>> DATA "the_geom from ruas using unique n_rua using srid=27493" >>>> TOLERANCE 3 >>>> TOLERANCEUNITS pixels >>>> TEMPLATE void >>>> PROJECTION >>>> "init=epsg:27493" >>>> END >>>> METADATA >>>> "DESCRIPTION" "Ruas" >>>> "RESULT_FIELDS" "id" >>>> "RESULT_HEADERS" "id" >>>> >>>> "ows_title" "Ruas " >>>> END # Metadata >>>> CLASS >>>> Name 'ruas' >>>> COLOR 0 0 0 >>>> END # Class >>>> >>>> END >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >>>>> The polygon is the bounding box of the image that you requested. >>>>> Mapserver only needs the geometries the cross of the map image and >>>>> this is what the where clause is doing. >>>>> >>>>> Why do you thin this is not correct? What does the top of you mapfile >>>>> look like and what does this LAYER definition look like? >>>>> >>>>> -Steve W >>>>> >>>>> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>>>>> Thanks to all. >>>>>> The problem is the query.despite don't give me any error returns 0 >>>>>> features... >>>>>> This happens because the 'where with the polygon' [1]... >>>>>> Anybody knows the origin of that polygon? >>>>>> >>>>>> >>>>>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>>>>> geom,"n_rua" >>>>>> from ruas >>>>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>>>> 122184.53))',27492) >>>>>> >>>>>> >>>>>> >>>>>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>>>>> I think like others that the problem could be in srid definition. >>>>>>> >>>>>>> Remember that you need to define an srid for the mapfile and an >>>>>>> srid >>>>>>> for each layer in the mapfile. >>>>>>> When using postgis connectiontype I also put "using >>>>>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>>>>> (mandatory? I don't know, but it works) >>>>>>> >>>>>>> Hope this helps. >>>>>>> Best Regards, Carlo >>>>>>> >>>>>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>>>>> Hi guys, >>>>>>>> >>>>>>>> I have one mapfile with conections to postgis layers and one >>>>>>>> raster. >>>>>>>> My problem is that the layers from postgis don't show up...If i >>>>>>>> make >>>>>>>> the request without the raster i got only white images... >>>>>>>> I have the debug level in 5 and I got no erros in all logs >>>>>>>> (including >>>>>>>> apache)... >>>>>>>> The permissions of the database are correct because I tried >>>>>>>> accessing >>>>>>>> with qgis and it worked fine. I'm also try specified the >>>>>>>> projection >>>>>>>> ("using srid = 27493") but without sucess... >>>>>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>>>>> worked fine... >>>>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>>>> pmapper, I can search for attributes and zoom to the correct areas >>>>>>>> (despite can't see geometries) ... >>>>>>>> >>>>>>>> Anybody have an idea? >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> SO: Ubuntu server >>>>>>>> MapServer version 6.0.1 >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pedrocostaarma at sapo.pt Thu Mar 14 05:44:22 2013 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 14 Mar 2013 12:44:22 +0000 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <51419ECA.6090909@sapo.pt> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> <5140B5D7.4010508@sapo.pt> <5140B9E4.4080200@swoodbridge.com> <5140BC21.9010107@sapo.pt> <5140C516.20001@swoodbridge.com> <51419ECA.6090909@sapo.pt> Message-ID: <5141C626.3050402@sapo.pt> I found the problem... I don't know why but the problem is bucause i make a dump from database with postgis 1.5 and in new databse i have the postgis 2... so the problem its the dump and restore.... If i make the same query in database with postgis 1.5 i got some records.... Em 14-03-2013 09:56, Pedro Costa escreveu: > Very strange...I got nothing again: > > select st_astext(st_extent(the_geom)) from ruas: > RESULT: > > "POLYGON((88386.2413216648 122184.527972102,88386.2413216648 > 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 > 122184.527972102,88386.2413216648 122184.527972102))" > > > select count(*) > from ruas > where the_geom && GeomFromText > ('POLYGON((88386.2413216648 122184.527972102,88386.2413216648 > 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 > 122184.527972102,88386.2413216648 122184.527972102))',27492); > > > RESULT: 0 > > > > > > > > Em 13-03-2013 18:27, Stephen Woodbridge escreveu: >> On 3/13/2013 1:49 PM, Pedro Costa wrote: >>> Em 13-03-2013 17:39, Stephen Woodbridge escreveu: >>>> So What do you get in pgadmin or psql with: >>>> >>>> select count(*) >>>> from ruas >>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>> 122184.53))',27492); >>> >>> nothing...count = 0... >> >> This means there is some kind of disconnect between the data in the >> database and how you have it defined in the mapfile. >> >>>> >>>> select st_astext(st_extents(st_collect(the_geom))) from ruas; >>> >>> Previously i have compared the result of 'st_extent' with extent in >>> mapfile and its the same.... >>> Your query with st_collects give me an error (ERROR: aggregate function >>> calls cannot be nested).... >> >> Try: >> >> select st_astext(st_extents(the_geom)) from ruas; >> >> Once you get this you will have the min and max extents of the data >> in the database and you can compare that to the polygon above and see >> if it overlaps. >> >> -Steve >> >> >>>> >>>> -Steve >>>> >>>> >>>> >>>> On 3/13/2013 1:22 PM, Pedro Costa wrote: >>>>> Yes, i confirmed that right now, its the bb but i don't understand >>>>> the >>>>> problem because in other server (with the same coordinates) this >>>>> works >>>>> fine. >>>>> i'm also confirmed the extent in qgis and its correct... >>>>> >>>>> >>>>> my mapfile top data: >>>>> >>>>> EXTENT 88386.2 122329.41 91216.3 124022.08 >>>>> UNITS meters >>>>> SIZE 500 500 >>>>> SHAPEPATH "shape" >>>>> SYMBOLSET "../common/symbols/symbols-pmapper.sym" >>>>> FONTSET "../common/fonts/msfontset.txt" >>>>> RESOLUTION 96 >>>>> IMAGETYPE png >>>>> INTERLACE OFF >>>>> >>>>> PROJECTION >>>>> "init=epsg:27493" >>>>> >>>>> END >>>>> >>>>> >>>>> >>>>> my layer: >>>>> >>>>> >>>>> LAYER >>>>> NAME "ruas" >>>>> STATUS DEFAULT >>>>> DEBUG 5 >>>>> TYPE LINE >>>>> CONNECTIONTYPE postgis >>>>> PROCESSING "CLOSE_CONNECTION=DEFERl" >>>>> CONNECTION "user=pedro password=****** dbname=norte >>>>> host=localhost >>>>> options='-c client_encoding=LATIN1'" >>>>> DATA "the_geom from ruas using unique n_rua using srid=27493" >>>>> TOLERANCE 3 >>>>> TOLERANCEUNITS pixels >>>>> TEMPLATE void >>>>> PROJECTION >>>>> "init=epsg:27493" >>>>> END >>>>> METADATA >>>>> "DESCRIPTION" "Ruas" >>>>> "RESULT_FIELDS" "id" >>>>> "RESULT_HEADERS" "id" >>>>> >>>>> "ows_title" "Ruas " >>>>> END # Metadata >>>>> CLASS >>>>> Name 'ruas' >>>>> COLOR 0 0 0 >>>>> END # Class >>>>> >>>>> END >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >>>>>> The polygon is the bounding box of the image that you requested. >>>>>> Mapserver only needs the geometries the cross of the map image and >>>>>> this is what the where clause is doing. >>>>>> >>>>>> Why do you thin this is not correct? What does the top of you >>>>>> mapfile >>>>>> look like and what does this LAYER definition look like? >>>>>> >>>>>> -Steve W >>>>>> >>>>>> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>>>>>> Thanks to all. >>>>>>> The problem is the query.despite don't give me any error returns 0 >>>>>>> features... >>>>>>> This happens because the 'where with the polygon' [1]... >>>>>>> Anybody knows the origin of that polygon? >>>>>>> >>>>>>> >>>>>>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>>>>>> geom,"n_rua" >>>>>>> from ruas >>>>>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>>>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>>>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>>>>> 122184.53))',27492) >>>>>>> >>>>>>> >>>>>>> >>>>>>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>>>>>> I think like others that the problem could be in srid definition. >>>>>>>> >>>>>>>> Remember that you need to define an srid for the mapfile and an >>>>>>>> srid >>>>>>>> for each layer in the mapfile. >>>>>>>> When using postgis connectiontype I also put "using >>>>>>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>>>>>> (mandatory? I don't know, but it works) >>>>>>>> >>>>>>>> Hope this helps. >>>>>>>> Best Regards, Carlo >>>>>>>> >>>>>>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>>>>>> Hi guys, >>>>>>>>> >>>>>>>>> I have one mapfile with conections to postgis layers and one >>>>>>>>> raster. >>>>>>>>> My problem is that the layers from postgis don't show up...If >>>>>>>>> i make >>>>>>>>> the request without the raster i got only white images... >>>>>>>>> I have the debug level in 5 and I got no erros in all logs >>>>>>>>> (including >>>>>>>>> apache)... >>>>>>>>> The permissions of the database are correct because I tried >>>>>>>>> accessing >>>>>>>>> with qgis and it worked fine. I'm also try specified the >>>>>>>>> projection >>>>>>>>> ("using srid = 27493") but without sucess... >>>>>>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>>>>>> worked fine... >>>>>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>>>>> pmapper, I can search for attributes and zoom to the correct >>>>>>>>> areas >>>>>>>>> (despite can't see geometries) ... >>>>>>>>> >>>>>>>>> Anybody have an idea? >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> >>>>>>>>> SO: Ubuntu server >>>>>>>>> MapServer version 6.0.1 >>>>>>>>> _______________________________________________ >>>>>>>>> mapserver-users mailing list >>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Mar 14 06:13:45 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Mar 2013 09:13:45 -0400 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5141C626.3050402@sapo.pt> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it> <5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com> <5140B5D7.4010508@sapo.pt> <5140B9E4.4080200@swoodbridge.com> <5140BC21.9010107@sapo.pt> <5140C516.20001@swoodbridge.com> <51419ECA.6090909@sapo.pt> <5141C626.3050402@sapo.pt> Message-ID: <5141CD09.2040102@swoodbridge.com> You can not do a simple dump and restore. When you upgrade a database with postgis data there is an upgrade procedure that you have to go through. google: postgis upgrade 1.5 to 2.0 Lots of help there. -Steve W On 3/14/2013 8:44 AM, Pedro Costa wrote: > I found the problem... > > I don't know why but the problem is bucause i make a dump from database > with postgis 1.5 and in new databse i have the postgis 2... > so the problem its the dump and restore.... > > If i make the same query in database with postgis 1.5 i got some > records.... > > > > > Em 14-03-2013 09:56, Pedro Costa escreveu: >> Very strange...I got nothing again: >> >> select st_astext(st_extent(the_geom)) from ruas: >> RESULT: >> >> "POLYGON((88386.2413216648 122184.527972102,88386.2413216648 >> 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 >> 122184.527972102,88386.2413216648 122184.527972102))" >> >> >> select count(*) >> from ruas >> where the_geom && GeomFromText >> ('POLYGON((88386.2413216648 122184.527972102,88386.2413216648 >> 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 >> 122184.527972102,88386.2413216648 122184.527972102))',27492); >> >> >> RESULT: 0 >> >> >> >> >> >> >> >> Em 13-03-2013 18:27, Stephen Woodbridge escreveu: >>> On 3/13/2013 1:49 PM, Pedro Costa wrote: >>>> Em 13-03-2013 17:39, Stephen Woodbridge escreveu: >>>>> So What do you get in pgadmin or psql with: >>>>> >>>>> select count(*) >>>>> from ruas >>>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>>> 122184.53))',27492); >>>> >>>> nothing...count = 0... >>> >>> This means there is some kind of disconnect between the data in the >>> database and how you have it defined in the mapfile. >>> >>>>> >>>>> select st_astext(st_extents(st_collect(the_geom))) from ruas; >>>> >>>> Previously i have compared the result of 'st_extent' with extent in >>>> mapfile and its the same.... >>>> Your query with st_collects give me an error (ERROR: aggregate function >>>> calls cannot be nested).... >>> >>> Try: >>> >>> select st_astext(st_extents(the_geom)) from ruas; >>> >>> Once you get this you will have the min and max extents of the data >>> in the database and you can compare that to the polygon above and see >>> if it overlaps. >>> >>> -Steve >>> >>> >>>>> >>>>> -Steve >>>>> >>>>> >>>>> >>>>> On 3/13/2013 1:22 PM, Pedro Costa wrote: >>>>>> Yes, i confirmed that right now, its the bb but i don't understand >>>>>> the >>>>>> problem because in other server (with the same coordinates) this >>>>>> works >>>>>> fine. >>>>>> i'm also confirmed the extent in qgis and its correct... >>>>>> >>>>>> >>>>>> my mapfile top data: >>>>>> >>>>>> EXTENT 88386.2 122329.41 91216.3 124022.08 >>>>>> UNITS meters >>>>>> SIZE 500 500 >>>>>> SHAPEPATH "shape" >>>>>> SYMBOLSET "../common/symbols/symbols-pmapper.sym" >>>>>> FONTSET "../common/fonts/msfontset.txt" >>>>>> RESOLUTION 96 >>>>>> IMAGETYPE png >>>>>> INTERLACE OFF >>>>>> >>>>>> PROJECTION >>>>>> "init=epsg:27493" >>>>>> >>>>>> END >>>>>> >>>>>> >>>>>> >>>>>> my layer: >>>>>> >>>>>> >>>>>> LAYER >>>>>> NAME "ruas" >>>>>> STATUS DEFAULT >>>>>> DEBUG 5 >>>>>> TYPE LINE >>>>>> CONNECTIONTYPE postgis >>>>>> PROCESSING "CLOSE_CONNECTION=DEFERl" >>>>>> CONNECTION "user=pedro password=****** dbname=norte >>>>>> host=localhost >>>>>> options='-c client_encoding=LATIN1'" >>>>>> DATA "the_geom from ruas using unique n_rua using srid=27493" >>>>>> TOLERANCE 3 >>>>>> TOLERANCEUNITS pixels >>>>>> TEMPLATE void >>>>>> PROJECTION >>>>>> "init=epsg:27493" >>>>>> END >>>>>> METADATA >>>>>> "DESCRIPTION" "Ruas" >>>>>> "RESULT_FIELDS" "id" >>>>>> "RESULT_HEADERS" "id" >>>>>> >>>>>> "ows_title" "Ruas " >>>>>> END # Metadata >>>>>> CLASS >>>>>> Name 'ruas' >>>>>> COLOR 0 0 0 >>>>>> END # Class >>>>>> >>>>>> END >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >>>>>>> The polygon is the bounding box of the image that you requested. >>>>>>> Mapserver only needs the geometries the cross of the map image and >>>>>>> this is what the where clause is doing. >>>>>>> >>>>>>> Why do you thin this is not correct? What does the top of you >>>>>>> mapfile >>>>>>> look like and what does this LAYER definition look like? >>>>>>> >>>>>>> -Steve W >>>>>>> >>>>>>> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>>>>>>> Thanks to all. >>>>>>>> The problem is the query.despite don't give me any error returns 0 >>>>>>>> features... >>>>>>>> This happens because the 'where with the polygon' [1]... >>>>>>>> Anybody knows the origin of that polygon? >>>>>>>> >>>>>>>> >>>>>>>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>>>>>>> geom,"n_rua" >>>>>>>> from ruas >>>>>>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>>>>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>>>>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>>>>>> 122184.53))',27492) >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>>>>>>> I think like others that the problem could be in srid definition. >>>>>>>>> >>>>>>>>> Remember that you need to define an srid for the mapfile and an >>>>>>>>> srid >>>>>>>>> for each layer in the mapfile. >>>>>>>>> When using postgis connectiontype I also put "using >>>>>>>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>>>>>>> (mandatory? I don't know, but it works) >>>>>>>>> >>>>>>>>> Hope this helps. >>>>>>>>> Best Regards, Carlo >>>>>>>>> >>>>>>>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>>>>>>> Hi guys, >>>>>>>>>> >>>>>>>>>> I have one mapfile with conections to postgis layers and one >>>>>>>>>> raster. >>>>>>>>>> My problem is that the layers from postgis don't show up...If >>>>>>>>>> i make >>>>>>>>>> the request without the raster i got only white images... >>>>>>>>>> I have the debug level in 5 and I got no erros in all logs >>>>>>>>>> (including >>>>>>>>>> apache)... >>>>>>>>>> The permissions of the database are correct because I tried >>>>>>>>>> accessing >>>>>>>>>> with qgis and it worked fine. I'm also try specified the >>>>>>>>>> projection >>>>>>>>>> ("using srid = 27493") but without sucess... >>>>>>>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>>>>>>> worked fine... >>>>>>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>>>>>> pmapper, I can search for attributes and zoom to the correct >>>>>>>>>> areas >>>>>>>>>> (despite can't see geometries) ... >>>>>>>>>> >>>>>>>>>> Anybody have an idea? >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> SO: Ubuntu server >>>>>>>>>> MapServer version 6.0.1 >>>>>>>>>> _______________________________________________ >>>>>>>>>> mapserver-users mailing list >>>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> mapserver-users mailing list >>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From wal3 at mindspring.com Thu Mar 14 06:24:18 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Thu, 14 Mar 2013 09:24:18 -0400 Subject: [mapserver-users] postgis layers don't show up In-Reply-To: <5141C626.3050402@sapo.pt> References: <514065AD.3020603@sapo.pt> <5140AF4A.6030903@sis-ter.it><5140B36E.7060104@sapo.pt> <5140B3FD.5010002@swoodbridge.com><5140B5D7.4010508@sapo.pt> <5140B9E4.4080200@swoodbridge.com><5140BC21.9010107@sapo.pt> <5140C516.20001@swoodbridge.com><51419ECA.6090909@sapo.pt> <5141C626.3050402@sapo.pt> Message-ID: Here is Paul Ramsey's solution for that type of problem: http://blog.cleverelephant.ca/2010/09/postgis-back-up-restore.html Worth Lutz -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pedro Costa Sent: Thursday, March 14, 2013 8:44 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] postgis layers don't show up I found the problem... I don't know why but the problem is bucause i make a dump from database with postgis 1.5 and in new databse i have the postgis 2... so the problem its the dump and restore.... If i make the same query in database with postgis 1.5 i got some records.... Em 14-03-2013 09:56, Pedro Costa escreveu: > Very strange...I got nothing again: > > select st_astext(st_extent(the_geom)) from ruas: > RESULT: > > "POLYGON((88386.2413216648 122184.527972102,88386.2413216648 > 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 > 122184.527972102,88386.2413216648 122184.527972102))" > > > select count(*) > from ruas > where the_geom && GeomFromText > ('POLYGON((88386.2413216648 122184.527972102,88386.2413216648 > 124022.075913784,91216.2575858403 124022.075913784,91216.2575858403 > 122184.527972102,88386.2413216648 122184.527972102))',27492); > > > RESULT: 0 > > > > > > > > Em 13-03-2013 18:27, Stephen Woodbridge escreveu: >> On 3/13/2013 1:49 PM, Pedro Costa wrote: >>> Em 13-03-2013 17:39, Stephen Woodbridge escreveu: >>>> So What do you get in pgadmin or psql with: >>>> >>>> select count(*) >>>> from ruas >>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>> 122184.53))',27492); >>> >>> nothing...count = 0... >> >> This means there is some kind of disconnect between the data in the >> database and how you have it defined in the mapfile. >> >>>> >>>> select st_astext(st_extents(st_collect(the_geom))) from ruas; >>> >>> Previously i have compared the result of 'st_extent' with extent in >>> mapfile and its the same.... >>> Your query with st_collects give me an error (ERROR: aggregate function >>> calls cannot be nested).... >> >> Try: >> >> select st_astext(st_extents(the_geom)) from ruas; >> >> Once you get this you will have the min and max extents of the data >> in the database and you can compare that to the polygon above and see >> if it overlaps. >> >> -Steve >> >> >>>> >>>> -Steve >>>> >>>> >>>> >>>> On 3/13/2013 1:22 PM, Pedro Costa wrote: >>>>> Yes, i confirmed that right now, its the bb but i don't understand >>>>> the >>>>> problem because in other server (with the same coordinates) this >>>>> works >>>>> fine. >>>>> i'm also confirmed the extent in qgis and its correct... >>>>> >>>>> >>>>> my mapfile top data: >>>>> >>>>> EXTENT 88386.2 122329.41 91216.3 124022.08 >>>>> UNITS meters >>>>> SIZE 500 500 >>>>> SHAPEPATH "shape" >>>>> SYMBOLSET "../common/symbols/symbols-pmapper.sym" >>>>> FONTSET "../common/fonts/msfontset.txt" >>>>> RESOLUTION 96 >>>>> IMAGETYPE png >>>>> INTERLACE OFF >>>>> >>>>> PROJECTION >>>>> "init=epsg:27493" >>>>> >>>>> END >>>>> >>>>> >>>>> >>>>> my layer: >>>>> >>>>> >>>>> LAYER >>>>> NAME "ruas" >>>>> STATUS DEFAULT >>>>> DEBUG 5 >>>>> TYPE LINE >>>>> CONNECTIONTYPE postgis >>>>> PROCESSING "CLOSE_CONNECTION=DEFERl" >>>>> CONNECTION "user=pedro password=****** dbname=norte >>>>> host=localhost >>>>> options='-c client_encoding=LATIN1'" >>>>> DATA "the_geom from ruas using unique n_rua using srid=27493" >>>>> TOLERANCE 3 >>>>> TOLERANCEUNITS pixels >>>>> TEMPLATE void >>>>> PROJECTION >>>>> "init=epsg:27493" >>>>> END >>>>> METADATA >>>>> "DESCRIPTION" "Ruas" >>>>> "RESULT_FIELDS" "id" >>>>> "RESULT_HEADERS" "id" >>>>> >>>>> "ows_title" "Ruas " >>>>> END # Metadata >>>>> CLASS >>>>> Name 'ruas' >>>>> COLOR 0 0 0 >>>>> END # Class >>>>> >>>>> END >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Em 13-03-2013 17:14, Stephen Woodbridge escreveu: >>>>>> The polygon is the bounding box of the image that you requested. >>>>>> Mapserver only needs the geometries the cross of the map image and >>>>>> this is what the where clause is doing. >>>>>> >>>>>> Why do you thin this is not correct? What does the top of you >>>>>> mapfile >>>>>> look like and what does this LAYER definition look like? >>>>>> >>>>>> -Steve W >>>>>> >>>>>> On 3/13/2013 1:12 PM, Pedro Costa wrote: >>>>>>> Thanks to all. >>>>>>> The problem is the query.despite don't give me any error returns 0 >>>>>>> features... >>>>>>> This happens because the 'where with the polygon' [1]... >>>>>>> Anybody knows the origin of that polygon? >>>>>>> >>>>>>> >>>>>>> select encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as >>>>>>> geom,"n_rua" >>>>>>> from ruas >>>>>>> where the_geom && GeomFromText('POLYGON((88071.2044330519 >>>>>>> 122184.53,88071.2044330519 124022.08,91531.2955669481 >>>>>>> 124022.08,91531.2955669481 122184.53,88071.2044330519 >>>>>>> 122184.53))',27492) >>>>>>> >>>>>>> >>>>>>> >>>>>>> Em 13-03-2013 16:54, Carlo Pelliconi escreveu: >>>>>>>> I think like others that the problem could be in srid definition. >>>>>>>> >>>>>>>> Remember that you need to define an srid for the mapfile and an >>>>>>>> srid >>>>>>>> for each layer in the mapfile. >>>>>>>> When using postgis connectiontype I also put "using >>>>>>>> srid=yourPostGisLayerSrid" in the DATA sql statement of the layer >>>>>>>> (mandatory? I don't know, but it works) >>>>>>>> >>>>>>>> Hope this helps. >>>>>>>> Best Regards, Carlo >>>>>>>> >>>>>>>> Il 13/03/2013 12:40, Pedro Costa ha scritto: >>>>>>>>> Hi guys, >>>>>>>>> >>>>>>>>> I have one mapfile with conections to postgis layers and one >>>>>>>>> raster. >>>>>>>>> My problem is that the layers from postgis don't show up...If >>>>>>>>> i make >>>>>>>>> the request without the raster i got only white images... >>>>>>>>> I have the debug level in 5 and I got no erros in all logs >>>>>>>>> (including >>>>>>>>> apache)... >>>>>>>>> The permissions of the database are correct because I tried >>>>>>>>> accessing >>>>>>>>> with qgis and it worked fine. I'm also try specified the >>>>>>>>> projection >>>>>>>>> ("using srid = 27493") but without sucess... >>>>>>>>> I'm also tried add one of the Iayers of db but from a shape and >>>>>>>>> worked fine... >>>>>>>>> Furthermore, very strange is that when I try to run mapfile with >>>>>>>>> pmapper, I can search for attributes and zoom to the correct >>>>>>>>> areas >>>>>>>>> (despite can't see geometries) ... >>>>>>>>> >>>>>>>>> Anybody have an idea? >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> >>>>>>>>> SO: Ubuntu server >>>>>>>>> MapServer version 6.0.1 >>>>>>>>> _______________________________________________ >>>>>>>>> mapserver-users mailing list >>>>>>>>> mapserver-users at lists.osgeo.org >>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6169 - Release Date: 03/13/13 From marcoaraujolsys at hotmail.com Thu Mar 14 06:24:43 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Thu, 14 Mar 2013 13:24:43 +0000 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis Message-ID: Hi everybody, I'm trying to develop an application (ASP.NET C#) that gets the database (postgis) map through conditions "where" and process adjustments by mapscript and provide the map to be viewed by openlayer. Can anyone guide me on how I should proceed? I need a WMS (mapserver) to display dynamic data (from database)? Already have the following: 1. up and running MapServer CGI in my Windows2008 (64bits) under IIS 7.5 (not apache). 2. The database postgis mount but I have no idea how to retrieve the data and presents it in openlayers. 3. Tests (successfully) with openlayers presenting a static map of mapserver as follows: /layer = new OpenLayers.Layer.WMS("WorldMap", "http://localhost/MapServer/mapserv.exe? map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ If you can help me I appreciate it. Sincerely, Marco Araujo Brazil / Sao Paulo -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Mar 14 07:02:16 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Mar 2013 10:02:16 -0400 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: Message-ID: <5141D868.5000707@swoodbridge.com> On 3/14/2013 9:24 AM, Marco Araujo wrote: > Hi everybody, > > I'm trying to develop an application (ASP.NET C#) that gets the database > (postgis) map through conditions "where" and process adjustments by > mapscript and provide the map to be viewed by openlayer. If I understand correctly, you want to use .NET to control what is displayed in the map. First I would make sure that you can not do everything you need using mapserver cgi parameter substitution as this might be much simpler. > Can anyone guide me on how I should proceed? Assuming that the above will not work, then you are going to have to make you mapscript application simulate a WMS service so you can call it from OpenLayers. Now: data ---> mapserver ----> OpenLayers In this you would program in JavaScript and change the url for the map requests to pass parameters and do parameter substitution in the mapfile. This is a standard Web 2.0 approach. With mapscript: data ---> your.net -----> OpenLayers Here you have to simulate a WMS service so you can talk to OpenLayers and then read the parameters from OpenLayers to control your .NET code and how it interacts with mapserver. Since you have to pass parameters to the server anyway, I would start and see if you can do it with the existing mapserver code. -Steve W > I need a WMS (mapserver) to display dynamic data (from database)? > > Already have the following: > 1. up and running MapServer CGI in my Windows2008 (64bits) under IIS 7.5 > (not apache). > > 2. The database postgis mount but I have no idea how to retrieve the data > and presents it in openlayers. > > 3. Tests (successfully) with openlayers presenting a static map of > mapserver as follows: > /layer = new OpenLayers.Layer.WMS("WorldMap", > "http://localhost/MapServer/mapserv.exe? > map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ > > If you can help me I appreciate it. > > Sincerely, > Marco Araujo > Brazil / Sao Paulo > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From marcoaraujolsys at hotmail.com Thu Mar 14 07:47:07 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Thu, 14 Mar 2013 14:47:07 +0000 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: <5141D868.5000707@swoodbridge.com> References: , <5141D868.5000707@swoodbridge.com> Message-ID: Thanks Stephen, I believe that it would not to use CGI for I will apply different filters on the data map. For example, my User can filter the map by rivers, companies, names of residents, etc..In some cases, such as streets, will display the map with the selected street. I believe that it is not possible to do in CGI. So understand that I need to use mapscript. How can I get an example to simulate a WMS service to receive the parameters of openlayers? Well I'll need to get these parameters in the database (using 'select from where params') in order to assemble the map and return to openlayers. Sincerely,Marco > Date: Thu, 14 Mar 2013 10:02:16 -0400 > From: woodbri at swoodbridge.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis > > On 3/14/2013 9:24 AM, Marco Araujo wrote: > > Hi everybody, > > > > I'm trying to develop an application (ASP.NET C#) that gets the database > > (postgis) map through conditions "where" and process adjustments by > > mapscript and provide the map to be viewed by openlayer. > > If I understand correctly, you want to use .NET to control what is > displayed in the map. > > First I would make sure that you can not do everything you need using > mapserver cgi parameter substitution as this might be much simpler. > > > Can anyone guide me on how I should proceed? > > Assuming that the above will not work, then you are going to have to > make you mapscript application simulate a WMS service so you can call it > from OpenLayers. > > Now: > > data ---> mapserver ----> OpenLayers > > In this you would program in JavaScript and change the url for the map > requests to pass parameters and do parameter substitution in the > mapfile. This is a standard Web 2.0 approach. > > With mapscript: > > data ---> your.net -----> OpenLayers > > Here you have to simulate a WMS service so you can talk to OpenLayers > and then read the parameters from OpenLayers to control your .NET code > and how it interacts with mapserver. Since you have to pass parameters > to the server anyway, I would start and see if you can do it with the > existing mapserver code. > > -Steve W > > > I need a WMS (mapserver) to display dynamic data (from database)? > > > > Already have the following: > > 1. up and running MapServer CGI in my Windows2008 (64bits) under IIS 7.5 > > (not apache). > > > > 2. The database postgis mount but I have no idea how to retrieve the data > > and presents it in openlayers. > > > > 3. Tests (successfully) with openlayers presenting a static map of > > mapserver as follows: > > /layer = new OpenLayers.Layer.WMS("WorldMap", > > "http://localhost/MapServer/mapserv.exe? > > map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ > > > > If you can help me I appreciate it. > > > > Sincerely, > > Marco Araujo > > Brazil / Sao Paulo > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcoaraujolsys at hotmail.com Thu Mar 14 07:47:46 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Thu, 14 Mar 2013 14:47:46 +0000 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: <5141D868.5000707@swoodbridge.com> References: , <5141D868.5000707@swoodbridge.com> Message-ID: Thanks Stephen, I believe that it would not to use CGI for I will apply different filters on the data map. For example, my User can filter the map by rivers, companies, names of residents, etc..In some cases, such as streets, will display the map with the selected street. I believe that it is not possible to do in CGI. So understand that I need to use mapscript. How can I get an example to simulate a WMS service to receive the parameters of openlayers? Well I'll need to get these parameters in the database (using 'select from where params') in order to assemble the map and return to openlayers. Sincerely,Marco > Date: Thu, 14 Mar 2013 10:02:16 -0400 > From: > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis > > On 3/14/2013 9:24 AM, Marco Araujo wrote: > > Hi everybody, > > > > I'm trying to develop an application (ASP.NET C#) that gets the database > > (postgis) map through conditions "where" and process adjustments by > > mapscript and provide the map to be viewed by openlayer. > > If I understand correctly, you want to use .NET to control what is > displayed in the map. > > First I would make sure that you can not do everything you need using > mapserver cgi parameter substitution as this might be much simpler. > > > Can anyone guide me on how I should proceed? > > Assuming that the above will not work, then you are going to have to > make you mapscript application simulate a WMS service so you can call it > from OpenLayers. > > Now: > > data ---> mapserver ----> OpenLayers > > In this you would program in JavaScript and change the url for the map > requests to pass parameters and do parameter substitution in the > mapfile. This is a standard Web 2.0 approach. > > With mapscript: > > data ---> your.net -----> OpenLayers > > Here you have to simulate a WMS service so you can talk to OpenLayers > and then read the parameters from OpenLayers to control your .NET code > and how it interacts with mapserver. Since you have to pass parameters > to the server anyway, I would start and see if you can do it with the > existing mapserver code. > > -Steve W > > > I need a WMS (mapserver) to display dynamic data (from database)? > > > > Already have the following: > > 1. up and running MapServer CGI in my Windows2008 (64bits) under IIS 7.5 > > (not apache). > > > > 2. The database postgis mount but I have no idea how to retrieve the data > > and presents it in openlayers. > > > > 3. Tests (successfully) with openlayers presenting a static map of > > mapserver as follows: > > /layer = new OpenLayers.Layer.WMS("WorldMap", > > "http://localhost/MapServer/mapserv.exe? > > map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ > > > > If you can help me I appreciate it. > > > > Sincerely, > > Marco Araujo > > Brazil / Sao Paulo > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Mar 14 08:17:56 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Mar 2013 11:17:56 -0400 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: , <5141D868.5000707@swoodbridge.com> Message-ID: <5141EA24.6010709@swoodbridge.com> On 3/14/2013 10:47 AM, Marco Araujo wrote: > Thanks Stephen, > > I believe that it would not to use CGI for I will apply different > filters on the data map. > For example, my User can filter the map by rivers, companies, names of > residents, etc.. This can all be done in WMS by selecting what layers you want. Create a control on your map based on getting a list of layers via the getCapabilities document and then use the control to select the layers request via WMS. > In some cases, such as streets, will display the map with the selected > street. Create a simple .NET ajax handler where you pass the street name and it returns the extents, then have OpenLayers zoom to that extent. > I believe that it is not possible to do in CGI. So understand that I > need to use mapscript. I assume you are planning to code controls in Javascript to interact with the user. Rather than write a huge complicated application that has to simulate WMS, write small quick ajax handlers to get what you need from the client and have OpenLayers do the work. This is more scalable, more modular, and probably much easier to design, code, and test. > How can I get an example to simulate a WMS service to receive the > parameters of openlayers? I'm not aware of any, maybe other know and have something they can share. > Well I'll need to get these parameters in the database (using 'select > from where params') in order to assemble the map and return to openlayers. Mapserver support WMS requests and you can parameterize the mapfile. In OpenLayers you can make WMS requests which already give you most of the control you mention above, and by knowing that you have additional parameters that you set in the mapfile (you may not even need to do that) you can add them to the url. You need to learn more about OpenLayers and mapserver and WMS. Start there and figure out how to turn on/off layers and how to work with the getCapabilities document. google: openlayers getcapabilities layers and look at some of these. -Steve > > > Sincerely, > Marco > > > > Date: Thu, 14 Mar 2013 10:02:16 -0400 > > From: woodbri at swoodbridge.com > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] How to integrate Openlayers + > MapScript C# + Postgis > > > > On 3/14/2013 9:24 AM, Marco Araujo wrote: > > > Hi everybody, > > > > > > I'm trying to develop an application (ASP.NET C#) that gets the > database > > > (postgis) map through conditions "where" and process adjustments by > > > mapscript and provide the map to be viewed by openlayer. > > > > If I understand correctly, you want to use .NET to control what is > > displayed in the map. > > > > First I would make sure that you can not do everything you need using > > mapserver cgi parameter substitution as this might be much simpler. > > > > > Can anyone guide me on how I should proceed? > > > > Assuming that the above will not work, then you are going to have to > > make you mapscript application simulate a WMS service so you can call it > > from OpenLayers. > > > > Now: > > > > data ---> mapserver ----> OpenLayers > > > > In this you would program in JavaScript and change the url for the map > > requests to pass parameters and do parameter substitution in the > > mapfile. This is a standard Web 2.0 approach. > > > > With mapscript: > > > > data ---> your.net -----> OpenLayers > > > > Here you have to simulate a WMS service so you can talk to OpenLayers > > and then read the parameters from OpenLayers to control your .NET code > > and how it interacts with mapserver. Since you have to pass parameters > > to the server anyway, I would start and see if you can do it with the > > existing mapserver code. > > > > -Steve W > > > > > I need a WMS (mapserver) to display dynamic data (from database)? > > > > > > Already have the following: > > > 1. up and running MapServer CGI in my Windows2008 (64bits) under > IIS 7.5 > > > (not apache). > > > > > > 2. The database postgis mount but I have no idea how to retrieve > the data > > > and presents it in openlayers. > > > > > > 3. Tests (successfully) with openlayers presenting a static map of > > > mapserver as follows: > > > /layer = new OpenLayers.Layer.WMS("WorldMap", > > > "http://localhost/MapServer/mapserv.exe? > > > > map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ > > > > > > If you can help me I appreciate it. > > > > > > Sincerely, > > > Marco Araujo > > > Brazil / Sao Paulo > > > > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Mar 14 08:56:30 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Mar 2013 11:56:30 -0400 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: <5141EA24.6010709@swoodbridge.com> References: , <5141D868.5000707@swoodbridge.com> <5141EA24.6010709@swoodbridge.com> Message-ID: <5141F32E.3050600@swoodbridge.com> You might want to looks at this: http://trac.osgeo.org/openlayers/wiki/Addins/OWSManager -Steve On 3/14/2013 11:17 AM, Stephen Woodbridge wrote: > On 3/14/2013 10:47 AM, Marco Araujo wrote: >> Thanks Stephen, >> >> I believe that it would not to use CGI for I will apply different >> filters on the data map. >> For example, my User can filter the map by rivers, companies, names of >> residents, etc.. > > This can all be done in WMS by selecting what layers you want. > Create a control on your map based on getting a list of layers via the > getCapabilities document and then use the control to select the layers > request via WMS. > >> In some cases, such as streets, will display the map with the selected >> street. > > Create a simple .NET ajax handler where you pass the street name and it > returns the extents, then have OpenLayers zoom to that extent. > >> I believe that it is not possible to do in CGI. So understand that I >> need to use mapscript. > > I assume you are planning to code controls in Javascript to interact > with the user. Rather than write a huge complicated application that has > to simulate WMS, write small quick ajax handlers to get what you need > from the client and have OpenLayers do the work. This is more scalable, > more modular, and probably much easier to design, code, and test. > >> How can I get an example to simulate a WMS service to receive the >> parameters of openlayers? > > I'm not aware of any, maybe other know and have something they can share. > >> Well I'll need to get these parameters in the database (using 'select >> from where params') in order to assemble the map and return to >> openlayers. > > Mapserver support WMS requests and you can parameterize the mapfile. In > OpenLayers you can make WMS requests which already give you most of the > control you mention above, and by knowing that you have additional > parameters that you set in the mapfile (you may not even need to do > that) you can add them to the url. > > You need to learn more about OpenLayers and mapserver and WMS. Start > there and figure out how to turn on/off layers and how to work with the > getCapabilities document. > > google: openlayers getcapabilities layers > > and look at some of these. > > -Steve > >> >> >> Sincerely, >> Marco >> >> >> > Date: Thu, 14 Mar 2013 10:02:16 -0400 >> > From: woodbri at swoodbridge.com >> > To: mapserver-users at lists.osgeo.org >> > Subject: Re: [mapserver-users] How to integrate Openlayers + >> MapScript C# + Postgis >> > >> > On 3/14/2013 9:24 AM, Marco Araujo wrote: >> > > Hi everybody, >> > > >> > > I'm trying to develop an application (ASP.NET C#) that gets the >> database >> > > (postgis) map through conditions "where" and process adjustments by >> > > mapscript and provide the map to be viewed by openlayer. >> > >> > If I understand correctly, you want to use .NET to control what is >> > displayed in the map. >> > >> > First I would make sure that you can not do everything you need using >> > mapserver cgi parameter substitution as this might be much simpler. >> > >> > > Can anyone guide me on how I should proceed? >> > >> > Assuming that the above will not work, then you are going to have to >> > make you mapscript application simulate a WMS service so you can >> call it >> > from OpenLayers. >> > >> > Now: >> > >> > data ---> mapserver ----> OpenLayers >> > >> > In this you would program in JavaScript and change the url for the map >> > requests to pass parameters and do parameter substitution in the >> > mapfile. This is a standard Web 2.0 approach. >> > >> > With mapscript: >> > >> > data ---> your.net -----> OpenLayers >> > >> > Here you have to simulate a WMS service so you can talk to OpenLayers >> > and then read the parameters from OpenLayers to control your .NET code >> > and how it interacts with mapserver. Since you have to pass parameters >> > to the server anyway, I would start and see if you can do it with the >> > existing mapserver code. >> > >> > -Steve W >> > >> > > I need a WMS (mapserver) to display dynamic data (from database)? >> > > >> > > Already have the following: >> > > 1. up and running MapServer CGI in my Windows2008 (64bits) under >> IIS 7.5 >> > > (not apache). >> > > >> > > 2. The database postgis mount but I have no idea how to retrieve >> the data >> > > and presents it in openlayers. >> > > >> > > 3. Tests (successfully) with openlayers presenting a static map of >> > > mapserver as follows: >> > > /layer = new OpenLayers.Layer.WMS("WorldMap", >> > > "http://localhost/MapServer/mapserv.exe? >> > > >> map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ >> >> > > >> > > If you can help me I appreciate it. >> > > >> > > Sincerely, >> > > Marco Araujo >> > > Brazil / Sao Paulo >> > > >> > > >> > > >> > > _______________________________________________ >> > > mapserver-users mailing list >> > > mapserver-users at lists.osgeo.org >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From emperor_stef at yahoo.gr Thu Mar 14 09:32:34 2013 From: emperor_stef at yahoo.gr (Stefanos Anastasiou) Date: Thu, 14 Mar 2013 16:32:34 +0000 (GMT) Subject: [mapserver-users] Mapserver as a profession Message-ID: <1363278754.13190.YahooMailNeo@web171201.mail.ir2.yahoo.com> Hi everyone, A little bit of irrelevant question but I was wondering how many users here are using mapserver or web-GIS as part of their profession and how many users as just a hobby?? I think some users here are way to advanced Regards, Stefanos -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Mar 14 09:41:08 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Mar 2013 13:41:08 -0300 Subject: [mapserver-users] Mapserver as a profession In-Reply-To: <1363278754.13190.YahooMailNeo@web171201.mail.ir2.yahoo.com> References: <1363278754.13190.YahooMailNeo@web171201.mail.ir2.yahoo.com> Message-ID: <5141FDA4.5080209@gatewaygeomatics.com> On 2013-03-14 1:32 PM, Stefanos Anastasiou wrote: > Hi everyone, > > A little bit of irrelevant question but I was wondering how many users > here are using mapserver or web-GIS as part of their profession and how > many users as just a hobby? > I think some users here are way to advanced > Hello, Maybe you can dedicate some of your energy and the passion I read into your email into sharing your lessons learned through writing your thoughts on the MapServer Wiki (https://github.com/mapserver/mapserver/wiki). That way you can help the audience you want to focus on (pick advanced, or beginner, or whatever you want). Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yjacolin at free.fr Thu Mar 14 09:37:30 2013 From: yjacolin at free.fr (Yves Jacolin (Free)) Date: Thu, 14 Mar 2013 17:37:30 +0100 Subject: [mapserver-users] Mapserver as a profession In-Reply-To: <1363278754.13190.YahooMailNeo@web171201.mail.ir2.yahoo.com> References: <1363278754.13190.YahooMailNeo@web171201.mail.ir2.yahoo.com> Message-ID: <11961368.QLy4DzqgXH@tatras> Le jeudi 14 mars 2013 16:32:34 Stefanos Anastasiou a ?crit : > Hi everyone, > > A little bit of irrelevant question but I was wondering how many users here > are using mapserver or web-GIS as part of their profession and how many > users as just a hobby? I think some users here are way to advanced > > Regards, Stefanos, There a lot of professional user all around the world. Here in France and swisstzerland it is difficult to give an estimation but we are using MapServer every day. Regards, Y. From astrid.emde at wheregroup.com Fri Mar 15 01:21:53 2013 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Fri, 15 Mar 2013 09:21:53 +0100 Subject: [mapserver-users] MapServer Support for WFS 2.0.0 In-Reply-To: References: <513DDD1C.8010809@wheregroup.com> Message-ID: <5142DA21.4070302@wheregroup.com> Am 12.03.2013 19:42, schrieb Olivier Courtin: > 2013/3/11 Astrid Emde > > > Hi Astrid, > > are there any plans to implement WFS 2.0.0 in MapServer TinyOWS and if > yes is there a timeline? > > > WFS 2.0.0 and especially the INSPIRE Download service part, > are clearly identified as a need for future. > > Right now, Oslandia is ready to participate to sponsor this feature. > But not ready to sponsor it alone. > > We already launched some discussions with some French agencies. > The aim is to gather 3/5 organisations able to fund it together. > > So right now it's a bit early to talk about timeline. > > Help/contact/partial funding on this subjet is so very welcome. > > Regards, > > -- > Olivier Hello Olivier, thanks for your answer. It would be nice to have WFS 2.0 in MapServer soon. If I can can find funding for the project, I will let you know. -- Best regards Astrid Emde ----------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ----------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernando at globalgeo.com.br Fri Mar 15 05:32:04 2013 From: fernando at globalgeo.com.br (Fernando Norte) Date: Fri, 15 Mar 2013 09:32:04 -0300 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: Message-ID: Ol? Marco, This link bellow helps me a lot to use the WMS MapServer feature. http://augusttown.blogspot.com.br/2010/01/customize-wms-getfeatureinfo-response.html You don't really need the C# or develop any program to bring basic information, all you need is in the MapServer and openLayers. Only if you need some dynamic requests I'll need the MapScript. I don't know if there is any C# MapScript library like had to PHP and Python. BTW there is another information that helps me to control better the layers dynamically with the Run-time CGI in the MapServer. http://mapserver.org/cgi/runsub.html Keep in touch and good luck, *Fernando Norte* Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". 2013/3/14 Marco Araujo > Hi everybody, > > I'm trying to develop an application (ASP.NET C#) that gets the database > > (postgis) map through conditions "where" and process adjustments by > mapscript and provide the map to be viewed by openlayer. > > Can anyone guide me on how I should proceed? > > I need a WMS (mapserver) to display dynamic data (from database)? > > Already have the following: > 1. up and running MapServer CGI in my Windows2008 (64bits) under IIS 7.5 > (not apache). > > 2. The database postgis mount but I have no idea how to retrieve the data > and presents it in openlayers. > > 3. Tests (successfully) with openlayers presenting a static map of > mapserver as follows: > /layer = new OpenLayers.Layer.WMS("WorldMap", > "http://localhost/MapServer/mapserv.exe? > > map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/ > > If you can help me I appreciate it. > > Sincerely, > Marco Araujo > Brazil / Sao Paulo > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Fri Mar 15 05:58:39 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Fri, 15 Mar 2013 13:58:39 +0100 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: Message-ID: 2013/3/14 Marco Araujo > Hi everybody, > > I'm trying to develop an application (ASP.NET C#) that gets the database > (postgis) map through conditions "where" and process adjustments by > mapscript and provide the map to be viewed by openlayer. > > Just setup a WMS server with mapserver and add WMS layers to openlayers. that's all You can serve any mapfile you want, just add your "where conditions" where you want: - PHP code snippet in the openlayers base page - use apache environment variables to serve different mapfile according to url request -- *L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale. (V. Evangelisti) * -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcoaraujolsys at hotmail.com Fri Mar 15 06:16:49 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Fri, 15 Mar 2013 13:16:49 +0000 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: , Message-ID: Hello Raffaeli, Can you guide me on how to configure a WMS server with MapServer?WMS would be to prepare a file. Map with their layers? or not?If yes, I've already configured because I can load a map (shapefile) through the MapServer and visualizes it with openlayers. The problem is how MapServer will read data from the database and not a shapefile. Can you help me? Date: Fri, 15 Mar 2013 13:58:39 +0100 From: raffaele.morelli at gmail.com To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis 2013/3/14 Marco Araujo Hi everybody, I'm trying to develop an application (ASP.NET C#) that gets the database (postgis) map through conditions "where" and process adjustments by mapscript and provide the map to be viewed by openlayer. Just setup a WMS server with mapserver and add WMS layers to openlayers. that's all You can serve any mapfile you want, just add your "where conditions" where you want: - PHP code snippet in the openlayers base page- use apache environment variables to serve different mapfile according to url request -- L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale. (V. Evangelisti) _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Mar 15 06:22:18 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Mar 2013 09:22:18 -0400 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: , Message-ID: <5143208A.1050209@swoodbridge.com> Hi Marco, This links should help: http://mapserver.org/documentation.html -- general docs http://mapserver.org/ogc/index.html#ogc -- WMS docs http://mapserver.org/input/vector/postgis.html -- database access http://mapserver.org/cgi/index.html -- CGI specific feature -Steve On 3/15/2013 9:16 AM, Marco Araujo wrote: > Hello Raffaeli, > > Can you guide me on how to configure a WMS server with MapServer? > WMS would be to prepare a file. Map with their layers? or not? > If yes, I've already configured because I can load a map (shapefile) > through the MapServer and visualizes it with openlayers. > > The problem is how MapServer will read data from the database and not a > shapefile. > > Can you help me? > > ------------------------------------------------------------------------ > Date: Fri, 15 Mar 2013 13:58:39 +0100 > From: raffaele.morelli at gmail.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to integrate Openlayers + MapScript > C# + Postgis > > > 2013/3/14 Marco Araujo > > > Hi everybody, > > I'm trying to develop an application (ASP.NET C#) that gets the database > > (postgis) map through conditions "where" and process adjustments by > mapscript and provide the map to be viewed by openlayer. > > Just setup a WMS server with mapserver and add WMS layers to openlayers. > that's all > > You can serve any mapfile you want, just add your "where conditions" > where you want: > > - PHP code snippet in the openlayers base page > - use apache environment variables to serve different mapfile according > to url request > > > > -- > /L'unica speranza di catarsi, ammesso che ne esista una, resta affidata > all'istinto di ribellione, alla rivolta non isterilita in progetti, alla > protesta violenta e viscerale. (V. Evangelisti) > / > _______________________________________________ mapserver-users mailing > list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From raffaele.morelli at gmail.com Fri Mar 15 06:32:19 2013 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Fri, 15 Mar 2013 14:32:19 +0100 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: Message-ID: 2013/3/15 Marco Araujo > Hello Raffaeli, > > Can you guide me on how to configure a WMS server with MapServer? > WMS would be to prepare a file. Map with their layers? or not? > If yes, I've already configured because I can load a map (shapefile) > through the MapServer and visualizes it with openlayers. > > The problem is how MapServer will read data from the database and not a > shapefile. > > Can you help me? > I believe you should read some fundamental documentation as Stephen suggests... your task is quite straightforward but mapserver & postgis & openlayers are not just toys :-) -r PS as second step, if you have a working mapfile (as you stated) you should load shp file into postgis and add a postgis layer in your mapfile -- *L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale. (V. Evangelisti) * -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcoaraujolsys at hotmail.com Fri Mar 15 06:46:03 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Fri, 15 Mar 2013 13:46:03 +0000 Subject: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis In-Reply-To: References: , , , Message-ID: Hello Raffaeli, Thats right. I have already migrated shapefiles to postgis.I already developed a system for this purpose however for client / server environment. Now I'm migrating to web platform and I'm changing the MapWindows (only client / server) by MapServer (fully web via WMS). Let me ask one more thing:Because in my tests, my map (shapefile) when rendered by MapServer and presented in openlayer, he is shown in different squares? The more I do zoom-out, more pictures of the same map appears. Thanks for the tips. Date: Fri, 15 Mar 2013 14:32:19 +0100 From: raffaele.morelli at gmail.com To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis 2013/3/15 Marco Araujo Hello Raffaeli, Can you guide me on how to configure a WMS server with MapServer?WMS would be to prepare a file. Map with their layers? or not?If yes, I've already configured because I can load a map (shapefile) through the MapServer and visualizes it with openlayers. The problem is how MapServer will read data from the database and not a shapefile. Can you help me? I believe you should read some fundamental documentation as Stephen suggests... your task is quite straightforward but mapserver & postgis & openlayers are not just toys :-) -r PS as second step, if you have a working mapfile (as you stated) you should load shp file into postgis and add a postgis layer in your mapfile -- L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale. (V. Evangelisti) _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Fri Mar 15 07:01:12 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 15 Mar 2013 14:01:12 -0000 Subject: [mapserver-users] Open Street Map - Map Files Message-ID: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> Does anyone maintain complete MapServer Map files for Open Street Map. I'm looking into creating a standalone Open Street Map server using MapServer and wondered if someone has done some work that I can build on. Not sure if using Postgis or Shapefiles yet so any input appreciated. Many thanks. Regards, Donald -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Mar 15 07:04:29 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Mar 2013 10:04:29 -0400 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> References: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> Message-ID: <51432A6D.6080505@swoodbridge.com> On 3/15/2013 10:01 AM, Donald Kerr wrote: > Does anyone maintain complete MapServer Map files for Open Street Map. > I?m looking into creating a standalone Open Street Map server using > MapServer and wondered if someone has done some work that I can build > on. Not sure if using Postgis or Shapefiles yet so any input appreciated. > > Many thanks. > > Regards, > > Donald > Check out: https://github.com/mapserver/mapserver/wiki/RenderingOsmData and specifically look that the section: "Download the osm-mapserver utils" and more generally google for: openstreetmap mapserver openstreetmap mapserver map file openstreetmap mapserver mapfile -Steve W From thomas.bonfort at gmail.com Fri Mar 15 07:11:12 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 15 Mar 2013 15:11:12 +0100 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <51432A6D.6080505@swoodbridge.com> References: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> <51432A6D.6080505@swoodbridge.com> Message-ID: Note that things have moved a bit since then, but the wiki has a couple of other pages detailing the process. You'll find the osm mapfile mapfile generator itself in github/mapserver/basemaps -- thomas On 15 March 2013 15:04, Stephen Woodbridge wrote: > On 3/15/2013 10:01 AM, Donald Kerr wrote: >> >> Does anyone maintain complete MapServer Map files for Open Street Map. >> I?m looking into creating a standalone Open Street Map server using >> MapServer and wondered if someone has done some work that I can build >> on. Not sure if using Postgis or Shapefiles yet so any input appreciated. >> >> Many thanks. >> >> Regards, >> >> Donald >> > > Check out: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmData > > and specifically look that the section: > > "Download the osm-mapserver utils" > > and more generally google for: > > openstreetmap mapserver > openstreetmap mapserver map file > openstreetmap mapserver mapfile > > -Steve W > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Fri Mar 15 07:11:37 2013 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 15 Mar 2013 10:11:37 -0400 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <51432A6D.6080505@swoodbridge.com> References: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> <51432A6D.6080505@swoodbridge.com> Message-ID: <51432C19.2020603@mapgears.com> Actually, the document Steve just pointed to is deprecated as mapserver-utils has been replaced with https://github.com/mapserver/basemaps The most up to date docs would be, For ubuntu: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2 For Windows: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows On 13-03-15 10:04 AM, Stephen Woodbridge wrote: > On 3/15/2013 10:01 AM, Donald Kerr wrote: >> Does anyone maintain complete MapServer Map files for Open Street Map. >> I?m looking into creating a standalone Open Street Map server using >> MapServer and wondered if someone has done some work that I can build >> on. Not sure if using Postgis or Shapefiles yet so any input appreciated. >> >> Many thanks. >> >> Regards, >> >> Donald >> > > Check out: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmData > > and specifically look that the section: > > "Download the osm-mapserver utils" > > and more generally google for: > > openstreetmap mapserver > openstreetmap mapserver map file > openstreetmap mapserver mapfile > > -Steve W > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jukka.rahkonen at mmmtike.fi Fri Mar 15 07:12:34 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 15 Mar 2013 14:12:34 +0000 Subject: [mapserver-users] Open Street Map - Map Files Message-ID: <84446DEF76453C439E9E97E438E13A639F1EA2@suutari.haapa.mmm.fi> Hi, I made once a document and a complete download package. Both of them would need some updates but if you follow the instructions you should have a service running within 10 minutes. Document is here and it contains links for other downloads http://latuviitta.org/documents/Super_easy_WMS_server.pdf -Jukka Rahkonen- Stephen Woodbridge wrote: > L?hetetty: 15. maaliskuuta 2013 16:04 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Open Street Map - Map Files > > On 3/15/2013 10:01 AM, Donald Kerr wrote: > > Does anyone maintain complete MapServer Map files for Open Street > Map. > > I'm looking into creating a standalone Open Street Map server using > > MapServer and wondered if someone has done some work that I can build > > on. Not sure if using Postgis or Shapefiles yet so any input appreciated. > > > > Many thanks. > > > > Regards, > > > > Donald > > > > Check out: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmData > > and specifically look that the section: > > "Download the osm-mapserver utils" > > and more generally google for: > > openstreetmap mapserver > openstreetmap mapserver map file > openstreetmap mapserver mapfile > > -Steve W > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Fri Mar 15 07:21:35 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 15 Mar 2013 14:21:35 -0000 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <51432C19.2020603@mapgears.com> References: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> <51432A6D.6080505@swoodbridge.com> <51432C19.2020603@mapgears.com> Message-ID: <002b01ce2188$69c685d0$3d539170$@dkerr.co.uk> Daniel, I could not find that by Googling so thank you. Looks comprehensive. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 15 March 2013 14:12 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Open Street Map - Map Files Actually, the document Steve just pointed to is deprecated as mapserver-utils has been replaced with https://github.com/mapserver/basemaps The most up to date docs would be, For ubuntu: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2 For Windows: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows On 13-03-15 10:04 AM, Stephen Woodbridge wrote: > On 3/15/2013 10:01 AM, Donald Kerr wrote: >> Does anyone maintain complete MapServer Map files for Open Street Map. >> I'm looking into creating a standalone Open Street Map server using >> MapServer and wondered if someone has done some work that I can build >> on. Not sure if using Postgis or Shapefiles yet so any input appreciated. >> >> Many thanks. >> >> Regards, >> >> Donald >> > > Check out: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmData > > and specifically look that the section: > > "Download the osm-mapserver utils" > > and more generally google for: > > openstreetmap mapserver > openstreetmap mapserver map file > openstreetmap mapserver mapfile > > -Steve W > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6177 - Release Date: 03/15/13 From donald.kerr at dkerr.co.uk Fri Mar 15 07:23:01 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 15 Mar 2013 14:23:01 -0000 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <84446DEF76453C439E9E97E438E13A639F1EA2@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A639F1EA2@suutari.haapa.mmm.fi> Message-ID: <002c01ce2188$9d720fd0$d8562f70$@dkerr.co.uk> Thanks, Jukka. Much appreciated. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: 15 March 2013 14:13 To: 'mapserver-users at lists.osgeo.org' Subject: Re: [mapserver-users] Open Street Map - Map Files Hi, I made once a document and a complete download package. Both of them would need some updates but if you follow the instructions you should have a service running within 10 minutes. Document is here and it contains links for other downloads http://latuviitta.org/documents/Super_easy_WMS_server.pdf -Jukka Rahkonen- Stephen Woodbridge wrote: > L?hetetty: 15. maaliskuuta 2013 16:04 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Open Street Map - Map Files > > On 3/15/2013 10:01 AM, Donald Kerr wrote: > > Does anyone maintain complete MapServer Map files for Open Street > Map. > > I'm looking into creating a standalone Open Street Map server using > > MapServer and wondered if someone has done some work that I can > > build on. Not sure if using Postgis or Shapefiles yet so any input appreciated. > > > > Many thanks. > > > > Regards, > > > > Donald > > > > Check out: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmData > > and specifically look that the section: > > "Download the osm-mapserver utils" > > and more generally google for: > > openstreetmap mapserver > openstreetmap mapserver map file > openstreetmap mapserver mapfile > > -Steve W > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6177 - Release Date: 03/15/13 From MarkVolz at co.lyon.mn.us Fri Mar 15 07:24:01 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 15 Mar 2013 14:24:01 +0000 Subject: [mapserver-users] mobile editing applications? Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31AB3A0@swmail01.r8nssis.local> Hello, I am looking for a mobile web editing application that uses either MapServer or GeoServer. Particularly I am looking for the following: *The application must work on Tablets. If it works on phones that would be good as well. *I would like to avoid an annual subscription fee. If anything it must be significantly cheaper than ArcGIS Online. *The map should be able to work the GPS on the tablet or phone. *The application should be easy to enter data in. *The application should allow password protection. *The application should be relatively easy to set up. If anyone knows of any decent mobile mapping frameworks please let me know. Thank You Mark Volz GIS Specialist From jmckenna at gatewaygeomatics.com Fri Mar 15 08:15:36 2013 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 15 Mar 2013 12:15:36 -0300 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <51432C19.2020603@mapgears.com> References: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> <51432A6D.6080505@swoodbridge.com> <51432C19.2020603@mapgears.com> Message-ID: <51433B18.7060509@gatewaygeomatics.com> On 2013-03-15 11:11 AM, Daniel Morissette wrote: > Actually, the document Steve just pointed to is deprecated as > mapserver-utils has been replaced with > https://github.com/mapserver/basemaps > > The most up to date docs would be, > > For ubuntu: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2 > > For Windows: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows > Thanks for mentioning these Daniel. Donald: I encourage you to edit these directly in the wiki as you travel down this path (I thank you for your edits in advance!). You might also find a new wiki page is needed, please do feel free to add anything you wish to the wiki. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From donald.kerr at dkerr.co.uk Fri Mar 15 08:21:09 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 15 Mar 2013 15:21:09 -0000 Subject: [mapserver-users] Open Street Map - Map Files In-Reply-To: <51433B18.7060509@gatewaygeomatics.com> References: <001d01ce2185$90b570a0$b22051e0$@dkerr.co.uk> <51432A6D.6080505@swoodbridge.com> <51432C19.2020603@mapgears.com> <51433B18.7060509@gatewaygeomatics.com> Message-ID: <002d01ce2190$bbf3d710$33db8530$@dkerr.co.uk> Will do, Jeff. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 15 March 2013 15:16 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Open Street Map - Map Files On 2013-03-15 11:11 AM, Daniel Morissette wrote: > Actually, the document Steve just pointed to is deprecated as > mapserver-utils has been replaced with > https://github.com/mapserver/basemaps > > The most up to date docs would be, > > For ubuntu: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2 > > For Windows: > > https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows > Thanks for mentioning these Daniel. Donald: I encourage you to edit these directly in the wiki as you travel down this path (I thank you for your edits in advance!). You might also find a new wiki page is needed, please do feel free to add anything you wish to the wiki. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6177 - Release Date: 03/15/13 From luis.a.de.sousa at gmail.com Fri Mar 15 09:04:01 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri, 15 Mar 2013 09:04:01 -0700 (PDT) Subject: [mapserver-users] SLD with colour ramp in WMS GetMap In-Reply-To: <1361196029328-5034913.post@n6.nabble.com> References: <1360925706550-5034507.post@n6.nabble.com> <1361196029328-5034913.post@n6.nabble.com> Message-ID: <1363363441595-5040725.post@n6.nabble.com> Any other ideas on this subject? Thanks, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507p5040725.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Fri Mar 15 09:04:54 2013 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri, 15 Mar 2013 09:04:54 -0700 (PDT) Subject: [mapserver-users] Legends with colour ramps. In-Reply-To: <1360167121582-5032514.post@n6.nabble.com> References: <1360167121582-5032514.post@n6.nabble.com> Message-ID: <1363363494988-5040726.post@n6.nabble.com> Any insight on this issue is welcome. Thank you, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Legends-with-colour-ramps-tp5032514p5040726.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mmirrlees at hotmail.com Fri Mar 15 14:58:43 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Fri, 15 Mar 2013 17:58:43 -0400 Subject: [mapserver-users] mapserver issues...(new user) Message-ID: Hi all, I'm a new user to mapserver and having some issues with the mapfile that I have created from QGIS. Basically I am trying to create a map of Canada with major cities, highways, expressways, province names. The map outputs fine but when I change anything in the mapfile it doesnt work. I need to change the projection to a Lambert Conformal Conic, be able to display the highways if the layer is visible, the highways being only visible if zoomed in past 1:2500000, provinces labeled with the calibri font. For the major cities, I want to use a S3 symbol (green star) found in a symbol folder where all of the data is located while using the symbols.sty style sheet while only visible past 1:2500000 and labeled when zoomed in past 1:1000000. When I click any of the checkboxes that I created to help zoom in or out they work fine but when I click any of the checkboxes for the cities, provinces, roads etc it doesnt load. Here is my mapfile in green so I can seperate the text better. # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 0 0 255 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar LAYER NAME 'province_dd' TYPE POLYGON DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/province_dd.shp' METADATA 'ows_title' 'province_dd' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'NAME_ENG' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 30 158 173 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Alberta" EXPRESSION "Alberta" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 103 48 123 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = British Columbia" EXPRESSION "British Columbia" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 157 204 18 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Manitoba" EXPRESSION "Manitoba" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 132 187 236 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = New Brunswick" EXPRESSION "New Brunswick" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 190 235 139 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Newfoundland" EXPRESSION "Newfoundland" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 135 148 47 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Northwest Territories" EXPRESSION "Northwest Territories" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 73 51 112 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Nova Scotia" EXPRESSION "Nova Scotia" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 94 79 203 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Nunavut" EXPRESSION "Nunavut" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 116 114 31 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Ontario" EXPRESSION "Ontario" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 254 137 86 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Prince Edward Island" EXPRESSION "Prince Edward Island" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 117 170 97 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Quebec" EXPRESSION "Quebec" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 150 81 98 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Saskatchewan" EXPRESSION "Saskatchewan" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 6 73 91 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Yukon Territory" EXPRESSION "Yukon Territory" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 223 168 55 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END END LAYER NAME 'mjrroads' TYPE LINE DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjrroads.shp' METADATA 'ows_title' 'mjrroads' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'TYPE' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 COLOR 201 157 32 END END CLASS NAME "TYPE = Expressway" EXPRESSION "Expressway" STYLE WIDTH 7.0 COLOR 255 0 0 END END CLASS NAME "TYPE = Primary Highway" EXPRESSION "Primary Highway" STYLE WIDTH 3.5 COLOR 0 0 0 END END END LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 7.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END END ENDEND As mentioned before I am fairly new at this (but want to learn the process) but not sure what to do as everytime I change something the map doesnt display correctly! Any help would be greatly appreciated. Thanks,Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Mar 15 16:06:09 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Mar 2013 19:06:09 -0400 Subject: [mapserver-users] mapserver issues...(new user) In-Reply-To: References: Message-ID: <5143A961.4020402@swoodbridge.com> If you change the project in the MAP section of the mapfile you also need to change the UNITS and EXTENT to be consistent with the projection units. You current mapfile has proj=longlat which should have UNITS DD (for decimal degrees) and you EXTENT is consistent with that. -Steve W On 3/15/2013 5:58 PM, Mark Mirrlees wrote: > Hi all, > > I'm a new user to mapserver and having some issues with the mapfile that > I have created from QGIS. > > Basically I am trying to create a map of Canada with major cities, > highways, expressways, province names. The map outputs fine but when I > change anything in the mapfile it doesnt work. I need to change the > projection to a Lambert Conformal Conic, be able to display the highways > if the layer is visible, the highways being only visible if zoomed in > past 1:2500000, provinces labeled with the calibri font. For the major > cities, I want to use a S3 symbol (green star) found in a symbol folder > where all of the data is located while using the symbols.sty style sheet > while only visible past 1:2500000 and labeled when zoomed in past > 1:1000000. When I click any of the checkboxes that I created to help > zoom in or out they work fine but when I click any of the checkboxes for > the cities, provinces, roads etc it doesnt load. > > Here is my mapfile in green so I can seperate the text better. > > # Map file created from QGIS project file > C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -143.210462 39.001401 -50.461045 85.911094 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 0 255 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' > 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > LAYER > NAME 'province_dd' > TYPE POLYGON > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/province_dd.shp' > METADATA > 'ows_title' 'province_dd' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > CLASSITEM 'NAME_ENG' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 30 158 173 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Alberta" > EXPRESSION "Alberta" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 103 48 123 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = British Columbia" > EXPRESSION "British Columbia" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 157 204 18 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Manitoba" > EXPRESSION "Manitoba" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 132 187 236 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = New Brunswick" > EXPRESSION "New Brunswick" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 190 235 139 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Newfoundland" > EXPRESSION "Newfoundland" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 135 148 47 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Northwest Territories" > EXPRESSION "Northwest Territories" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 73 51 112 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Nova Scotia" > EXPRESSION "Nova Scotia" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 94 79 203 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Nunavut" > EXPRESSION "Nunavut" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 116 114 31 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Ontario" > EXPRESSION "Ontario" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 254 137 86 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Prince Edward Island" > EXPRESSION "Prince Edward Island" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 117 170 97 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Quebec" > EXPRESSION "Quebec" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 150 81 98 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Saskatchewan" > EXPRESSION "Saskatchewan" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 6 73 91 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > CLASS > NAME "NAME_ENG = Yukon Territory" > EXPRESSION "Yukon Territory" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 223 168 55 > END > LABEL > FONT arial > TYPE truetype > SIZE 8 > COLOR 0 0 0 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > END > END > LAYER > NAME 'mjrroads' > TYPE LINE > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjrroads.shp' > METADATA > 'ows_title' 'mjrroads' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > CLASSITEM 'TYPE' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > COLOR 201 157 32 > END > END > CLASS > NAME "TYPE = Expressway" > EXPRESSION "Expressway" > STYLE > WIDTH 7.0 > COLOR 255 0 0 > END > END > CLASS > NAME "TYPE = Primary Highway" > EXPRESSION "Primary Highway" > STYLE > WIDTH 3.5 > COLOR 0 0 0 > END > END > END > LAYER > NAME 'mjcities' > TYPE POINT > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjcities.shp' > METADATA > 'ows_title' 'mjcities' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > CLASS > NAME 'mjcities' > STYLE > SYMBOL "circle" > SIZE 7.0 > OUTLINECOLOR 0 0 0 > COLOR 182 109 194 > END > END > END > END > > As mentioned before I am fairly new at this (but want to learn the > process) but not sure what to do as everytime I change something the map > doesnt display correctly! Any help would be greatly appreciated. > > Thanks, > Mark > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Fri Mar 15 17:28:06 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Mar 2013 20:28:06 -0400 Subject: [mapserver-users] Fwd: RE: mapserver issues...(new user) In-Reply-To: References: Message-ID: <5143BC96.2010607@swoodbridge.com> Keep posts on the list, there are lots of people the can help. Also have you asked the QGIS list for help? Also since QGIS is generating an OWS compliant mapfile, you might be able to just add the new srs to the list: 'ows_srs' 'EPSG:4326 EPSG:XXXX' where XXXX is for your new projection. -Steve W -------- Original Message -------- Subject: RE: [mapserver-users] mapserver issues...(new user) Date: Fri, 15 Mar 2013 19:41:08 -0400 From: Mark Mirrlees To: Stephen Woodbridge Hi Steve Thanks for the help! can you send me a revised map file to show me what needs to be changed as I'm still a bit confused on where the changes need to be made on the map file! Thanks Mark > Date: Fri, 15 Mar 2013 19:06:09 -0400 > From: woodbri at swoodbridge.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapserver issues...(new user) > > If you change the project in the MAP section of the mapfile you also > need to change the UNITS and EXTENT to be consistent with the projection > units. > > You current mapfile has proj=longlat which should have UNITS DD (for > decimal degrees) and you EXTENT is consistent with that. > > -Steve W > > On 3/15/2013 5:58 PM, Mark Mirrlees wrote: > > Hi all, > > > > I'm a new user to mapserver and having some issues with the mapfile that > > I have created from QGIS. > > > > Basically I am trying to create a map of Canada with major cities, > > highways, expressways, province names. The map outputs fine but when I > > change anything in the mapfile it doesnt work. I need to change the > > projection to a Lambert Conformal Conic, be able to display the highways > > if the layer is visible, the highways being only visible if zoomed in > > past 1:2500000, provinces labeled with the calibri font. For the major > > cities, I want to use a S3 symbol (green star) found in a symbol folder > > where all of the data is located while using the symbols.sty style sheet > > while only visible past 1:2500000 and labeled when zoomed in past > > 1:1000000. When I click any of the checkboxes that I created to help > > zoom in or out they work fine but when I click any of the checkboxes for > > the cities, provinces, roads etc it doesnt load. > > > > Here is my mapfile in green so I can seperate the text better. > > > > # Map file created from QGIS project file > > C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > > # Edit this file to customize for your map interface > > # (Created with PyQgis MapServer Export plugin) > > MAP > > NAME "QGIS-MAP" > > # Map image size > > SIZE 500 500 > > UNITS meters > > EXTENT -143.210462 39.001401 -50.461045 85.911094 > > FONTSET "/wwwroot/fonts/fontset.txt" > > SYMBOLSET "/wwwroot/symbols/symbols.sty" > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > # Background color for the map canvas -- change as desired > > IMAGECOLOR 0 0 255 > > IMAGEQUALITY 95 > > IMAGETYPE agg > > OUTPUTFORMAT > > NAME agg > > DRIVER AGG/PNG > > IMAGEMODE RGB > > END > > # Legend > > LEGEND > > IMAGECOLOR 255 255 255 > > STATUS ON > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > END > > # Web interface definition. Only the template parameter > > # is required to display a map. See MapServer documentation > > WEB > > # Set IMAGEPATH to the path where MapServer should > > # write its output. > > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > # Set IMAGEURL to the url that points to IMAGEPATH > > # as defined in your web server configuration > > IMAGEURL "/ms_tmp/" > > # WMS server settings > > METADATA > > 'ows_title' 'QGIS-MAP' > > 'ows_onlineresource' > > 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > > 'ows_srs' 'EPSG:4326' > > END > > #Scale range at which web interface will operate > > # Template and header/footer settings > > # Only the template parameter is required to display a map. See > > MapServer documentation > > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > > END > > > > SCALEBAR > > STATUS EMBED > > UNITS KILOMETERS > > INTERVALS 3 > > TRANSPARENT TRUE > > OUTLINECOLOR 0 0 0 > > END # End for scalebar > > > > LAYER > > NAME 'province_dd' > > TYPE POLYGON > > DUMP false > > EXTENT -143.210462 39.001401 -50.461045 85.911094 > > DATA '../data/province_dd.shp' > > METADATA > > 'ows_title' 'province_dd' > > END > > STATUS DEFAULT > > TRANSPARENCY 100 > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > CLASSITEM 'NAME_ENG' > > CLASS > > NAME "default" > > EXPRESSION "" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 30 158 173 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Alberta" > > EXPRESSION "Alberta" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 103 48 123 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = British Columbia" > > EXPRESSION "British Columbia" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 157 204 18 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Manitoba" > > EXPRESSION "Manitoba" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 132 187 236 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = New Brunswick" > > EXPRESSION "New Brunswick" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 190 235 139 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Newfoundland" > > EXPRESSION "Newfoundland" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 135 148 47 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Northwest Territories" > > EXPRESSION "Northwest Territories" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 73 51 112 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Nova Scotia" > > EXPRESSION "Nova Scotia" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 94 79 203 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Nunavut" > > EXPRESSION "Nunavut" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 116 114 31 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Ontario" > > EXPRESSION "Ontario" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 254 137 86 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Prince Edward Island" > > EXPRESSION "Prince Edward Island" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 117 170 97 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Quebec" > > EXPRESSION "Quebec" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 150 81 98 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Saskatchewan" > > EXPRESSION "Saskatchewan" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 6 73 91 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > CLASS > > NAME "NAME_ENG = Yukon Territory" > > EXPRESSION "Yukon Territory" > > STYLE > > WIDTH 0.91 > > OUTLINECOLOR 0 0 0 > > COLOR 223 168 55 > > END > > LABEL > > FONT arial > > TYPE truetype > > SIZE 8 > > COLOR 0 0 0 > > ANGLE 0 > > POSITION cc > > FORCE false > > ANTIALIAS false > > PARTIALS false > > END > > END > > END > > LAYER > > NAME 'mjrroads' > > TYPE LINE > > DUMP false > > EXTENT -143.210462 39.001401 -50.461045 85.911094 > > DATA '../data/mjrroads.shp' > > METADATA > > 'ows_title' 'mjrroads' > > END > > STATUS DEFAULT > > TRANSPARENCY 100 > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > CLASSITEM 'TYPE' > > CLASS > > NAME "default" > > EXPRESSION "" > > STYLE > > WIDTH 0.91 > > COLOR 201 157 32 > > END > > END > > CLASS > > NAME "TYPE = Expressway" > > EXPRESSION "Expressway" > > STYLE > > WIDTH 7.0 > > COLOR 255 0 0 > > END > > END > > CLASS > > NAME "TYPE = Primary Highway" > > EXPRESSION "Primary Highway" > > STYLE > > WIDTH 3.5 > > COLOR 0 0 0 > > END > > END > > END > > LAYER > > NAME 'mjcities' > > TYPE POINT > > DUMP false > > EXTENT -143.210462 39.001401 -50.461045 85.911094 > > DATA '../data/mjcities.shp' > > METADATA > > 'ows_title' 'mjcities' > > END > > STATUS OFF > > TRANSPARENCY 100 > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > CLASS > > NAME 'mjcities' > > STYLE > > SYMBOL "circle" > > SIZE 7.0 > > OUTLINECOLOR 0 0 0 > > COLOR 182 109 194 > > END > > END > > END > > END > > > > As mentioned before I am fairly new at this (but want to learn the > > process) but not sure what to do as everytime I change something the map > > doesnt display correctly! Any help would be greatly appreciated. > > > > Thanks, > > Mark > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mmirrlees at hotmail.com Fri Mar 15 17:48:24 2013 From: mmirrlees at hotmail.com (Mark Mirrlees ) Date: Sat, 16 Mar 2013 00:48:24 +0000 Subject: [mapserver-users] mapserver issues...(new user) Message-ID: Thanks for the help but I'm still having difficulty! could someone send me a revised map file to show me what needs to be changed as I'm still a bit confused on where the changes need to be made on the map file! This way it will help me learning the process more! Thanks Mark Sent from my BlackBerry? powered by Virgin Mobile. -----Original Message----- From: Stephen Woodbridge Date: Fri, 15 Mar 2013 23:06:09 To: Subject: Re: [mapserver-users] mapserver issues...(new user) If you change the project in the MAP section of the mapfile you also need to change the UNITS and EXTENT to be consistent with the projection units. You current mapfile has proj=longlat which should have UNITS DD (for decimal degrees) and you EXTENT is consistent with that. -Steve W On 3/15/2013 5:58 PM, Mark Mirrlees wrote: > Hi all, > > I'm a new user to mapserver and having some issues with the mapfile that > I have created from QGIS. > > Basically I am trying to create a map of Canada with major cities, > highways, expressways, province names. The map outputs fine but when I > change anything in the mapfile it doesnt work. I need to change the > projection to a Lambert Conformal Conic, be able to display the highways > if the layer is visible, the highways being only visible if zoomed in > past 1:2500000, provinces labeled with the calibri font. For the major > cities, I want to use a S3 symbol (green star) found in a symbol folder > where all of the data is located while using the symbols.sty style sheet > while only visible past 1:2500000 and labeled when zoomed in past > 1:1000000. When I click any of the checkboxes that I created to help > zoom in or out they work fine but when I click any of the checkboxes for > the cities, provinces, roads etc it doesnt load. > > Here is my mapfile in green so I can seperate the text better. > > # Map file created from QGIS project file > C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP >??? NAME "QGIS-MAP" >??? # Map image size >??? SIZE 500 500 >??? UNITS meters >??? EXTENT -143.210462 39.001401 -50.461045 85.911094 >??? FONTSET "/wwwroot/fonts/fontset.txt" >??? SYMBOLSET "/wwwroot/symbols/symbols.sty" >????? PROJECTION >????? 'proj=longlat' >????? 'datum=WGS84' >????? 'no_defs' >??? END >??? # Background color for the map canvas -- change as desired >??? IMAGECOLOR 0 0 255 >??? IMAGEQUALITY 95 >??? IMAGETYPE agg >??? OUTPUTFORMAT >????? NAME agg >????? DRIVER AGG/PNG >????? IMAGEMODE RGB >??? END >??? # Legend >??? LEGEND >??????? IMAGECOLOR 255 255 255 >????? STATUS ON >????? KEYSIZE 18 12 >????? LABEL >??????? TYPE BITMAP >??????? SIZE MEDIUM >??????? COLOR 0 0 89 >????? END >??? END >??? # Web interface definition. Only the template parameter >??? # is required to display a map. See MapServer documentation >??? WEB >????? # Set IMAGEPATH to the path where MapServer should >????? # write its output. >????? IMAGEPATH "/ms4w/tmp/ms_tmp/" >????? # Set IMAGEURL to the url that points to IMAGEPATH >????? # as defined in your web server configuration >????? IMAGEURL "/ms_tmp/" >????? # WMS server settings >????? METADATA >??????? 'ows_title'?????????? 'QGIS-MAP' >??????? 'ows_onlineresource' > 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' >??????? 'ows_srs'???????????? 'EPSG:4326' >????? END >????? #Scale range at which web interface will operate >????? # Template and header/footer settings >????? # Only the template parameter is required to display a map. See > MapServer documentation >????? TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' >??? END > >?? SCALEBAR >??? STATUS EMBED >??? UNITS KILOMETERS >??? INTERVALS 3 >??? TRANSPARENT TRUE >??? OUTLINECOLOR 0 0 0 >?? END # End for scalebar > >??? LAYER >????? NAME 'province_dd' >????? TYPE POLYGON >????? DUMP false >??? EXTENT -143.210462 39.001401 -50.461045 85.911094 >????? DATA '../data/province_dd.shp' >????? METADATA >??????? 'ows_title' 'province_dd' >????? END >????? STATUS DEFAULT >????? TRANSPARENCY 100 >????? PROJECTION >????? 'proj=longlat' >????? 'datum=WGS84' >????? 'no_defs' >????? END >????? CLASSITEM 'NAME_ENG' >????? CLASS >??????? NAME "default" >??????? EXPRESSION "" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 30 158 173 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Alberta" >??????? EXPRESSION "Alberta" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 103 48 123 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = British Columbia" >??????? EXPRESSION "British Columbia" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 157 204 18 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Manitoba" >??????? EXPRESSION "Manitoba" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 132 187 236 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = New Brunswick" >??????? EXPRESSION "New Brunswick" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 190 235 139 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Newfoundland" >??????? EXPRESSION "Newfoundland" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 135 148 47 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Northwest Territories" >??????? EXPRESSION "Northwest Territories" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 73 51 112 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Nova Scotia" >??????? EXPRESSION "Nova Scotia" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 94 79 203 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Nunavut" >??????? EXPRESSION "Nunavut" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 116 114 31 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Ontario" >??????? EXPRESSION "Ontario" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 254 137 86 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Prince Edward Island" >??????? EXPRESSION "Prince Edward Island" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 117 170 97 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Quebec" >??????? EXPRESSION "Quebec" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 150 81 98 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Saskatchewan" >??????? EXPRESSION "Saskatchewan" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 6 73 91 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >????? CLASS >??????? NAME "NAME_ENG = Yukon Territory" >??????? EXPRESSION "Yukon Territory" >???????? STYLE >?????????? WIDTH 0.91 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 223 168 55 >???????? END >?????? LABEL >??????? FONT arial >??????? TYPE truetype >??????? SIZE 8 >??????? COLOR 0 0 0 >??????? ANGLE 0 >??????? POSITION cc >??????? FORCE false >??????? ANTIALIAS false >??????? PARTIALS false >?????? END >????? END >??? END >??? LAYER >????? NAME 'mjrroads' >????? TYPE LINE >????? DUMP false >??? EXTENT -143.210462 39.001401 -50.461045 85.911094 >????? DATA '../data/mjrroads.shp' >????? METADATA >??????? 'ows_title' 'mjrroads' >????? END >????? STATUS DEFAULT >????? TRANSPARENCY 100 >????? PROJECTION >????? 'proj=longlat' >????? 'datum=WGS84' >????? 'no_defs' >????? END >????? CLASSITEM 'TYPE' >????? CLASS >??????? NAME "default" >??????? EXPRESSION "" >???????? STYLE >?????????? WIDTH 0.91 >?????????? COLOR 201 157 32 >???????? END >????? END >????? CLASS >??????? NAME "TYPE = Expressway" >??????? EXPRESSION "Expressway" >???????? STYLE >?????????? WIDTH 7.0 >?????????? COLOR 255 0 0 >???????? END >????? END >????? CLASS >??????? NAME "TYPE = Primary Highway" >??????? EXPRESSION "Primary Highway" >???????? STYLE >?????????? WIDTH 3.5 >?????????? COLOR 0 0 0 >???????? END >????? END >??? END >??? LAYER >????? NAME 'mjcities' >????? TYPE POINT >????? DUMP false >??? EXTENT -143.210462 39.001401 -50.461045 85.911094 >????? DATA '../data/mjcities.shp' >????? METADATA >??????? 'ows_title' 'mjcities' >????? END >????? STATUS OFF >????? TRANSPARENCY 100 >????? PROJECTION >????? 'proj=longlat' >????? 'datum=WGS84' >????? 'no_defs' >????? END >????? CLASS >???????? NAME 'mjcities' >???????? STYLE >?????????? SYMBOL "circle" >?????????? SIZE 7.0 >?????????? OUTLINECOLOR 0 0 0 >?????????? COLOR 182 109 194 >???????? END >????? END >??? END > END > > As mentioned before I am fairly new at this (but want to learn the > process) but not sure what to do as everytime I change something the map > doesnt display correctly! Any help would be greatly appreciated. > > Thanks, > Mark > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mmirrlees at hotmail.com Sun Mar 17 17:26:55 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Sun, 17 Mar 2013 20:26:55 -0400 Subject: [mapserver-users] lcc projection doesnt output map Message-ID: Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Mar 17 17:39:50 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 17 Mar 2013 20:39:50 -0400 Subject: [mapserver-users] lcc projection doesnt output map In-Reply-To: References: Message-ID: <51466256.4070106@swoodbridge.com> Mark, You need to change UNITS DD to UNITS METERS and you need to change EXTENT -143 39 -50 85 to EXTENT ... where ... is the longlat coordinates above converted to their equivalent values in LCC On linux you might from cs2cs command helpful, you might also find some online projection conversion utilities. -Steve On 3/17/2013 8:26 PM, Mark Mirrlees wrote: > Hi all, > > when I try to edit my projection to a LCC from a UTM in my mapfile my > map fails to show up when I launch my mapserver link. > > Here is the first part of the mapfile... > > BEFORE: > > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -143 39 -50 85 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > > AFTER: > > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS dd > EXTENT -143 39 -50 85 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > > I'm not sure how to fix this...any suggestions? As i'm still fairly new > at this. > Mark > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mmirrlees at hotmail.com Sun Mar 17 17:58:36 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Sun, 17 Mar 2013 20:58:36 -0400 Subject: [mapserver-users] lcc projection doesnt output map In-Reply-To: <51466256.4070106@swoodbridge.com> References: , <51466256.4070106@swoodbridge.com> Message-ID: I dont have linux, im using windows based mapserver...plus I can't figure out how to work the conversion. So i'm not sure what the numbers should be.... and do I have to change anything in what I have bolded? PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=-143" "lon_0=-39" "lat_1=-50" "lat_2=85" "datum=NAD83" "units=m" "no_defs" > Date: Sun, 17 Mar 2013 20:39:50 -0400 > From: woodbri at swoodbridge.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] lcc projection doesnt output map > > Mark, > > You need to change > > UNITS DD > to > UNITS METERS > > and you need to change > > EXTENT -143 39 -50 85 > to > EXTENT ... > > where ... is the longlat coordinates above converted to their equivalent > values in LCC > > On linux you might from cs2cs command helpful, you might also find some > online projection conversion utilities. > > -Steve > > On 3/17/2013 8:26 PM, Mark Mirrlees wrote: > > Hi all, > > > > when I try to edit my projection to a LCC from a UTM in my mapfile my > > map fails to show up when I launch my mapserver link. > > > > Here is the first part of the mapfile... > > > > BEFORE: > > > > MAP > > NAME "QGIS-MAP" > > # Map image size > > SIZE 500 500 > > UNITS meters > > EXTENT -143 39 -50 85 > > FONTSET "/wwwroot/fonts/fontset.txt" > > SYMBOLSET "/wwwroot/symbols/symbols.sty" > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > > > AFTER: > > > > MAP > > NAME "QGIS-MAP" > > # Map image size > > SIZE 500 500 > > UNITS dd > > EXTENT -143 39 -50 85 > > FONTSET "/wwwroot/fonts/fontset.txt" > > SYMBOLSET "/wwwroot/symbols/symbols.sty" > > PROJECTION > > "proj=lcc" > > "ellps=GRS80" > > "lat_0=49" > > "lon_0=-95" > > "lat_1=49" > > "lat_2=77" > > "datum=NAD83" > > "units=m" > > "no_defs" > > END > > > > I'm not sure how to fix this...any suggestions? As i'm still fairly new > > at this. > > Mark > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From icadedt at yahoo.fr Mon Mar 18 09:40:10 2013 From: icadedt at yahoo.fr (Icadedt) Date: Mon, 18 Mar 2013 16:40:10 +0000 (GMT) Subject: [mapserver-users] mapCache and runtime substitution Message-ID: <1363624810.92473.YahooMailNeo@web28901.mail.ir2.yahoo.com> HI, i usually use mapserver with run time substitution, the url params are used for the property "filter" of my mapfiles. im using now mapcache and i would like to know if it is possible to use run time substitution with it ? If yes, how with openlayers? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcoaraujolsys at hotmail.com Mon Mar 18 10:01:50 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Mon, 18 Mar 2013 17:01:50 +0000 Subject: [mapserver-users] mapCache and runtime substitution In-Reply-To: <1363624810.92473.YahooMailNeo@web28901.mail.ir2.yahoo.com> References: <1363624810.92473.YahooMailNeo@web28901.mail.ir2.yahoo.com> Message-ID: Hello, I will start using the runtime substitution, you can send me an example of how you use? Thank you. Date: Mon, 18 Mar 2013 16:40:10 +0000 From: icadedt at yahoo.fr To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapCache and runtime substitution HI, i usually use mapserver with run time substitution, the url params are used for the property "filter" of my mapfiles. im using now mapcache and i would like to know if it is possible to use run time substitution with it ? If yes, how with openlayers? Regards _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Mar 18 10:11:32 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 18 Mar 2013 18:11:32 +0100 Subject: [mapserver-users] mapCache and runtime substitution In-Reply-To: <1363624810.92473.YahooMailNeo@web28901.mail.ir2.yahoo.com> References: <1363624810.92473.YahooMailNeo@web28901.mail.ir2.yahoo.com> Message-ID: Have a look at tileset->dimensions in the sample configuration file. Configured dimensions are forwarded to the source WMS, and can therefore be used to enable runtime substitutions. -- thomas On 18 March 2013 17:40, Icadedt wrote: > HI, > i usually use mapserver with run time substitution, the url params are used > for the property "filter" of my mapfiles. > im using now mapcache and i would like to know if it is possible to use run > time substitution with it ? > If yes, how with openlayers? > Regards > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mmirrlees at hotmail.com Mon Mar 18 10:15:01 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Mon, 18 Mar 2013 13:15:01 -0400 Subject: [mapserver-users] lcc projection doesnt output map In-Reply-To: References: Message-ID: Ok so i managed to get the numbers somewhat converted...but when I click my start mapserver button it doesnt output my map...any suggestions. MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END If anyone needs the rest of the code let me know...thanks. From: mmirrlees at hotmail.com To: mapserver-users at lists.osgeo.org Date: Sun, 17 Mar 2013 20:26:55 -0400 Subject: [mapserver-users] lcc projection doesnt output map Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Mar 18 10:28:36 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 18 Mar 2013 17:28:36 +0000 Subject: [mapserver-users] lcc projection doesnt output map In-Reply-To: References: , Message-ID: Your extents need to be given in the projection you set. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Mark Mirrlees [mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 12:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] lcc projection doesnt output map Ok so i managed to get the numbers somewhat converted...but when I click my start mapserver button it doesnt output my map...any suggestions. MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END If anyone needs the rest of the code let me know...thanks. ________________________________ From: mmirrlees at hotmail.com To: mapserver-users at lists.osgeo.org Date: Sun, 17 Mar 2013 20:26:55 -0400 Subject: [mapserver-users] lcc projection doesnt output map Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Mon Mar 18 10:30:12 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Mon, 18 Mar 2013 13:30:12 -0400 Subject: [mapserver-users] lcc projection doesnt output map In-Reply-To: References: , , Message-ID: How do I get those numbers? Sorry for all of the questions...as i'm still fairly new... From: Steve.Lime at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] lcc projection doesnt output map Date: Mon, 18 Mar 2013 17:28:36 +0000 Your extents need to be given in the projection you set. Steve From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Mark Mirrlees [mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 12:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] lcc projection doesnt output map Ok so i managed to get the numbers somewhat converted...but when I click my start mapserver button it doesnt output my map...any suggestions. MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END If anyone needs the rest of the code let me know...thanks. From: mmirrlees at hotmail.com To: mapserver-users at lists.osgeo.org Date: Sun, 17 Mar 2013 20:26:55 -0400 Subject: [mapserver-users] lcc projection doesnt output map Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at WAPA.GOV Mon Mar 18 12:22:03 2013 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Mon, 18 Mar 2013 19:22:03 +0000 Subject: [mapserver-users] Compile MapServer with ArcServer 10 support Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> Hello, Is there any documentation on how to compile MapServer with ArcServer 10 support? Any help is greatly appreciated. Thanks, Eric Weisbender -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Mon Mar 18 12:29:02 2013 From: pauljame at gmail.com (Paul james) Date: Mon, 18 Mar 2013 16:29:02 -0300 Subject: [mapserver-users] Mapcache FCGI with IIS... In-Reply-To: <513F6305.9010505@swoodbridge.com> References: <513E0428.5090307@gatewaygeomatics.com> <513E1CE5.8060104@gatewaygeomatics.com> <513F6305.9010505@swoodbridge.com> Message-ID: Thanks Steve! I got it! Just had to set IIS FASTCGI settings and add one variable with xml config path! Works like a charm ! On Tue, Mar 12, 2013 at 2:16 PM, Stephen Woodbridge wrote: > Paul, > > I have always use the apache module, so this might be useless info. I > guessing that you would configure it under IIS like any other FCGI module. > The trick is that you need to inform it where its mapcache.xml config file > is located. In apache that is passed as an envronment variable. Then you > should be able to hit the configured url for the service. > > http://sever/mapcache.exe/demo > http://sever/mapcache.exe?demo > > And it should respond with the demo service page if that is configured in > the mapcache.xml. > > This might give you some ideas: > http://lists.osgeo.org/**pipermail/mapserver-dev/2012-** > February/012007.html > > -Steve W > > > On 3/12/2013 12:38 PM, Paul james wrote: > >> Thanks... >> I compiled mapcache with success ... mapcache_seed is working fine... >> But I dont know how use the FastCGI module (mapcache.exe) ... I created >> a FastCGI 'Module Mapping' in IIS pointing to mapcache.exe ... But how >> can I use that in my atual map? I didnt find any tutorial/guide how use >> Mapcache as FastCGI independent module... >> Paul >> >> >> On Mon, Mar 11, 2013 at 3:05 PM, Jeff McKenna >> >> >> >> >> wrote: >> >> >> >> >> On 2013-03-11 2:42 PM, Paul james wrote: >> > Thanks Jeff... >> > >> > I updated my mapache (master) and now I only got 1 unresolved >> symbol : >> > >> > */Creating library cgi\mapcache.lib and object cgi\mapcache.exp >> > mapcache.obj : error LNK2019: unresolved external symbol >> > __imp__apr_date_parse_http4 referenced in function >> _fcgi_write_response >> > cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals >> > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft >> Visual >> > Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' >> > Stop./* >> > *//* >> > Do you have any idea how can I fix that? >> > >> > Thanks >> > >> >> Since that function comes from the APR library (apr-util i think), >> maybe >> make sure you set all the APR declarations in your nmake.opt >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.**com/ >> >> >> >> ______________________________**_________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.**org > mapserver-users at lists.**osgeo.org > >> http://lists.osgeo.org/**mailman/listinfo/mapserver-**users >> >> >> >> >> >> ______________________________**_________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.**org >> http://lists.osgeo.org/**mailman/listinfo/mapserver-**users >> >> > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Mon Mar 18 12:31:40 2013 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 18 Mar 2013 19:31:40 +0000 Subject: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED) In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> Message-ID: Classification: UNCLASSIFIED Caveats: NONE Eric, I assume you mean ArcSDE support? If so, on windows, the ms4w release includes ArcSDE support. Find it at http://www.maptools.org/ms4w/ For linux, you just need to reference the arcsde development headers path in the ./configure path for --with-arcsde. Mike Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Monday, March 18, 2013 3:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Compile MapServer with ArcServer 10 support Hello, Is there any documentation on how to compile MapServer with ArcServer 10 support? Any help is greatly appreciated. Thanks, Eric Weisbender Classification: UNCLASSIFIED Caveats: NONE From pauljame at gmail.com Mon Mar 18 12:32:05 2013 From: pauljame at gmail.com (Paul james) Date: Mon, 18 Mar 2013 16:32:05 -0300 Subject: [mapserver-users] Mapcache GetLegendGraphic request... Message-ID: Hello... How can I configure mapcache to accept GetLegendGraphic request ? Is that possible? Or maybe do I need to add a forwarding_rule to that kind of request? But how? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Weisbend at WAPA.GOV Mon Mar 18 12:44:07 2013 From: Weisbend at WAPA.GOV (Weisbender, Eric) Date: Mon, 18 Mar 2013 19:44:07 +0000 Subject: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED) In-Reply-To: References: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> Message-ID: <9FE7B20682D2EE4CB9F40163E1EB4F08950F6D@afovsml1m.WAPA.INT> Thanks Mike, We are on linux. Can you give me an idea of what the development headers look like and where in the sde file structure I might find them? MapServer Documentation on references arcsde 9.2. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisbend at wapa.gov 39?42'25.06"N 105? 8'13.61"W -----Original Message----- From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] Sent: March 18, 2013 1:32 PM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Compile MapServer with ArcServer 10 support (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Eric, I assume you mean ArcSDE support? If so, on windows, the ms4w release includes ArcSDE support. Find it at http://www.maptools.org/ms4w/ For linux, you just need to reference the arcsde development headers path in the ./configure path for --with-arcsde. Mike Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Monday, March 18, 2013 3:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Compile MapServer with ArcServer 10 support Hello, Is there any documentation on how to compile MapServer with ArcServer 10 support? Any help is greatly appreciated. Thanks, Eric Weisbender Classification: UNCLASSIFIED Caveats: NONE From mmirrlees at hotmail.com Mon Mar 18 12:47:39 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Mon, 18 Mar 2013 15:47:39 -0400 Subject: [mapserver-users] label issues... Message-ID: Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks,Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Mar 18 12:51:42 2013 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Mon, 18 Mar 2013 19:51:42 +0000 Subject: [mapserver-users] label issues... In-Reply-To: References: Message-ID: Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Mon Mar 18 12:59:41 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Mon, 18 Mar 2013 15:59:41 -0400 Subject: [mapserver-users] label issues... In-Reply-To: References: , Message-ID: Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks,MarkFrom: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 +0000 Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at free.fr Mon Mar 18 13:03:39 2013 From: yjacolin at free.fr (Yves Jacolin) Date: Mon, 18 Mar 2013 21:03:39 +0100 Subject: [mapserver-users] label issues... In-Reply-To: References: Message-ID: <6434563.NZJMHKZGTl@helios> Hello, You should use also LABELMAXSCALE instead of MAXSCALE. Y. Le lundi 18 mars 2013 15:59:41 Mark Mirrlees a ?crit : > Ok so I want to stick this code into the .map file... where should it be > placed in the section that i bolded? LABEL COLOR 255 255 255 > FONT "arial" > TYPE "truetype" > SIZE 10 > ANGLE 0 > POSITION cc > FORCE false > ANTIALIAS false > PARTIALS false > END > > Thanks,MarkFrom: David.Fawcett at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] label issues... > Date: Mon, 18 Mar 2013 19:51:42 +0000 > > > > > > > > > > Mark, > > > You will want to add a LABEL block to your mapfile. > http://mapserver.org/mapfile/label.html > > I would also comment out the maxscale until you get the labels working. > > David. > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees > > Sent: Monday, March 18, 2013 2:48 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] label issues... > > > > > Hi all, > > > > Ok so now I have a new problem with the labeling. > > > > I would like to get my labels to start showing up at a scale of 1:1000000 > but nothing is working... > > > > here is a snippet of my mapfile... > > > > LAYER > > NAME 'mjcities' > > TYPE POINT > > DUMP false > > EXTENT -143.210462 39.001401 -50.461045 85.911094 > > DATA '../data/mjcities.shp' > > METADATA > > 'ows_title' 'mjcities' > > END > > STATUS default > > MAXSCALE 1000000 > > TRANSPARENCY 100 > > CLASSITEM 'NAME' > > LABELITEM 'NAME' > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > CLASS > > NAME 'mjcities' > > > STYLE > > SYMBOL "circle" > > > SIZE 15.0 > > > OUTLINECOLOR 0 0 0 > > COLOR 182 109 194 > > END > > > > Thanks, > > Mark -- Yves Jacolin From Steve.Lime at state.mn.us Mon Mar 18 13:03:56 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Mon, 18 Mar 2013 20:03:56 +0000 Subject: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED) In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F08950F6D@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> , <9FE7B20682D2EE4CB9F40163E1EB4F08950F6D@afovsml1m.WAPA.INT> Message-ID: I've successfully compiled against 10.0 on SuSE 11 (64-bit). Files were part of an SDE client DVD I had access to. Looks like: root at maps:/opt/sde/sdeexe100> ls * etc: services.sde include: pe_coordsys_from_prj.h pedef.h pef.h pe_names.h sderaster.h sgerr.h sqlerr.h pe_database.h pe_errno.h pe.h sdeerno.h sdetype.h sg.h sqlerrors.h lib: concurrent.jar libgsrvrora11g100.so libicuuc.so.40.1 libsdedb2srvr100.so libsg.a icu4j_3_2.jar libgsrvrpg100.so libpe.a libsdeinfsrvr100.so libsg.so jpe_sdk.jar libicudata.so libpe.so libsdejavautil.so libxerces-c.so jsde_sdk.jar libicudata.so.40 libpq.so libsdeora10gsrvr100.so libxerces-c.so.27 libgsrvrdb2100.so libicudata.so.40.1 libpq.so.5 libsdeora11gsrvr100.so libxerces-c.so.27.0 libgsrvrinf100.so libicuuc.so libpq.so.5.1 libsdepgsrvr100.so libgsrvrora10g100.so libicuuc.so.40 libsde.a libsde.so Compiling was pretty straight forward. I used the following SDE-related options: ./configure [lots of options removed] --with-sde=/opt/sde/sdeexe100 --with-sde-version=100 CFLAGS=-DSDE64 Took a while to figure out the CFLAGS. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Weisbender, Eric [Weisbend at WAPA.GOV] Sent: Monday, March 18, 2013 2:44 PM To: Smith, Michael ERDC-CRREL-NH; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Compile MapServer with ArcServer 10 support (UNCLASSIFIED) Thanks Mike, We are on linux. Can you give me an idea of what the development headers look like and where in the sde file structure I might find them? MapServer Documentation on references arcsde 9.2. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisbend at wapa.gov 39?42'25.06"N 105? 8'13.61"W -----Original Message----- From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] Sent: March 18, 2013 1:32 PM To: Weisbender, Eric; mapserver-users at lists.osgeo.org Subject: RE: Compile MapServer with ArcServer 10 support (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Eric, I assume you mean ArcSDE support? If so, on windows, the ms4w release includes ArcSDE support. Find it at http://www.maptools.org/ms4w/ For linux, you just need to reference the arcsde development headers path in the ./configure path for --with-arcsde. Mike Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Monday, March 18, 2013 3:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Compile MapServer with ArcServer 10 support Hello, Is there any documentation on how to compile MapServer with ArcServer 10 support? Any help is greatly appreciated. Thanks, Eric Weisbender Classification: UNCLASSIFIED Caveats: NONE _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Mon Mar 18 13:05:55 2013 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Mon, 18 Mar 2013 20:05:55 +0000 Subject: [mapserver-users] label issues... In-Reply-To: References: , Message-ID: You want to create a class in your layer and place it there. http://mapserver.org/mapfile/class.html Like this: MAP LAYER CLASS LABEL END # end of label END # end of class END #end of layer END #end of map From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 3:00 PM To: Fawcett, David (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks, Mark ________________________________ From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 +0000 Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Mon Mar 18 13:20:48 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Mon, 18 Mar 2013 16:20:48 -0400 Subject: [mapserver-users] label issues... In-Reply-To: References: , , , Message-ID: Ok so if I understand this is what it should look like? (stuff thats been added is in red) Please correct this if i'm wrong as I am still having a bit of problems... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100CLASSLABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS falseENDPROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 20:05:55 +0000 You want to create a class in your layer and place it there. http://mapserver.org/mapfile/class.html Like this: MAP LAYER CLASS LABEL END # end of label END # end of class END #end of layer END #end of map From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 3:00 PM To: Fawcett, David (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks, Mark From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 +0000 Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 18 13:19:45 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 18 Mar 2013 16:19:45 -0400 Subject: [mapserver-users] Online coordinate projections Message-ID: <514776E1.6080200@swoodbridge.com> Hi all, We have recently had a few people ask about units and projected EXTENT of BoundBox values. If you are using a project that is not longlat, then you need to specify the coorect UNITS for the projection and things like EXTENTS and BoundingBox need to be specified in the projected coordinate system. Here is an online tool that may help you with projections: http://cs2cs.mygeodata.eu/ HTH, -Steve From wal3 at mindspring.com Mon Mar 18 14:00:34 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 18 Mar 2013 17:00:34 -0400 Subject: [mapserver-users] label issues... In-Reply-To: References: , , , Message-ID: <02222836E1C647B882F2743E364C50C4@worthlaptop> No the label block goes into your original class block. LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false PARTIALS false END END _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 4:21 PM To: david.fawcett at state.mn.us; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] label issues... Ok so if I understand this is what it should look like? (stuff thats been added is in red) Please correct this if i'm wrong as I am still having a bit of problems... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASS LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END _____ From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 20:05:55 +0000 You want to create a class in your layer and place it there. http://mapserver.org/mapfile/class.html Like this: MAP LAYER CLASS LABEL END # end of label END # end of class END #end of layer END #end of map From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 3:00 PM To: Fawcett, David (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks, Mark _____ From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 +0000 Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6184 - Release Date: 03/17/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Mar 18 14:03:58 2013 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Mon, 18 Mar 2013 21:03:58 +0000 Subject: [mapserver-users] label issues... In-Reply-To: References: , , , Message-ID: Mark, I think that you are close. You can likely simplify your layer a little by dropping out the properties that have a default, e.g. angle, position, etc. You also might want to comment out the FORCE and PARTIALS until you see that you are drawing labels. You should also be able to put the combine the two classes and have your label and symbol in the same class. Classes are about 'classifying' your data. In some cases you have multiple classes, one for each data range. E.g. where a column value is less than 10, one where it is more than 10 and less than 100, and one where it is greater than 100. Each class would likely have a different symbolization then. At a minimum, you need one class. This is what you need. David. From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 3:21 PM To: Fawcett, David (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Ok so if I understand this is what it should look like? (stuff thats been added is in red) Please correct this if i'm wrong as I am still having a bit of problems... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASS LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END ________________________________ From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 20:05:55 +0000 You want to create a class in your layer and place it there. http://mapserver.org/mapfile/class.html Like this: MAP LAYER CLASS LABEL END # end of label END # end of class END #end of layer END #end of map From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 3:00 PM To: Fawcett, David (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks, Mark ________________________________ From: David.Fawcett at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 +0000 Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:1000000 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 1000000 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Mon Mar 18 14:30:33 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Mon, 18 Mar 2013 17:30:33 -0400 Subject: [mapserver-users] label issues... In-Reply-To: References: , , , , , <02222836E1C647B882F2743E364C50C4@worthlaptop>, Message-ID: Hi there, Ok so I have revised the mapfile to this... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALEDENOM 1000000 TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END LABEL COLOR 255 255 255 FONT "arial" TYPE truetype SIZE 10 ANGLE 0 POSITION cc FORCE false PARTIALS false END But when I zoom into my layers I see the symbols that were created but the labels still don't show up...any suggestions? Thanks for the help everyone as I do appreciate it!Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 18 15:21:04 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 18 Mar 2013 18:21:04 -0400 Subject: [mapserver-users] label issues... In-Reply-To: References: , , , , , <02222836E1C647B882F2743E364C50C4@worthlaptop>, Message-ID: <51479350.9090901@swoodbridge.com> So you want you labels to be white? What color is your background? Do you have a FONTSET "fonts.txt" that maps arial to a font. I assume you probably do as it is not throwing an error about it. Also you can get some debug info if you add to the MAP section: CONFIG MS_ERRORFILE "stderr" DEBUG 5 Then when you render you map look in the apache error.log file. Or try it with: shp2img -m mymapfile.map -o image.png There are lots of other parameters, but that should be enough to get some output. -Steve On 3/18/2013 5:30 PM, Mark Mirrlees wrote: > Hi there, > > Ok so I have revised the mapfile to this... > > LAYER > NAME 'mjcities' > TYPE POINT > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjcities.shp' > METADATA > 'ows_title' 'mjcities' > END > STATUS default > MAXSCALEDENOM 1000000 > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > CLASS > NAME 'mjcities' > STYLE > SYMBOL "circle" > SIZE 15.0 > OUTLINECOLOR 0 0 0 > COLOR 182 109 194 > END > LABEL > COLOR 255 255 255 > FONT "arial" > TYPE truetype > SIZE 10 > ANGLE 0 > POSITION cc > FORCE false > PARTIALS false > END > > But when I zoom into my layers I see the symbols that were created but > the labels still don't show up...any suggestions? > > Thanks for the help everyone as I do appreciate it! > > Mark > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From wal3 at mindspring.com Tue Mar 19 05:03:55 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 19 Mar 2013 08:03:55 -0400 Subject: [mapserver-users] label issues... In-Reply-To: References: , , , , , <02222836E1C647B882F2743E364C50C4@worthlaptop>, Message-ID: <790081FAF2E449F48FEB2C6C720D7358@worthlaptop> You seem to be missing: LABELITEM This tells what data to use for the label. See below for location. Also see other responses about color. Worth _____ From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Monday, March 18, 2013 5:31 PM To: wal3 at mindspring.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label issues... Hi there, Ok so I have revised the mapfile to this... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALEDENOM 1000000 TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END LABELITEM CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END LABEL COLOR 255 255 255 FONT "arial" TYPE truetype SIZE 10 ANGLE 0 POSITION cc FORCE false PARTIALS false END But when I zoom into my layers I see the symbols that were created but the labels still don't show up...any suggestions? Thanks for the help everyone as I do appreciate it! Mark _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6185 - Release Date: 03/17/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Tue Mar 19 07:52:26 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 19 Mar 2013 10:52:26 -0400 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Message-ID: <48517E79C3634445B7C9D97646E15865@worthlaptop> Hi all, I'm changing my usage of mapserver from a single map image to using OpenLayers and having MapServer work as a WMS server. My problem is labels. There seem to be too many variables (in MapServer and OpenLayers) and I cannot figure out which to set to keep from having partial labels, too many labels or overlapping labels. What is the best way to approach labels in a tiled / overlay environment. I noticed that in MapServer 6.0 the "annotation" layer type is deprecated. What is the method for replacing this? In summary, I'm LOST. Anyone with a map, please point me in the right direction. :-) Thanks, Worth -------------- next part -------------- An HTML attachment was scrubbed... URL: From icadedt at yahoo.fr Tue Mar 19 08:55:48 2013 From: icadedt at yahoo.fr (Icadedt) Date: Tue, 19 Mar 2013 15:55:48 +0000 (GMT) Subject: [mapserver-users] mapcache returns error 400 bad request Message-ID: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> hi , when i test this url: http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 i get the error 400 'bad request' ? my layer called 'test' comes from mapcache tileset. when i test my url without mapcache it works great: http://localhost/cgi-bin/mapserv?map=/var/www/mapfile/dep_point.map&layers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+180+45&imgext=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 Here is my mapcache.xml: ?? ????? /tmp ????? ?? ? ? ????? ???????? http://localhost/cgi-bin/mapserv? ????? ????? ???????? ??????????? image/png ??????????? dep_point_pop ??????????? /var/www/mapfile/dep_point.map ???????? ????? ?? ? ?? ?? ????? monserv ????? disk ????? WGS84 ????? g ????? PNG ????? 5 5 ????? 10 ????? 3600 ?? ?? JPEG ?? ????? assemble ????? bilinear ????? JPEG ????? 4096 ?? ?? ?? ?? ?? ?? ?? ? ?? report ?? /tmp this is my getcapabilities : http://localhost/mapcache?service=wms&request=getcapabilities returns: OGC:WMSno title set, add some in metadataapplication/vnd.ogc.wms_xmlimage/pngimage/jpegtext/plainapplication/vnd.ogc.gmltext/plainEPSG:43260.70312500000000000000 0.35156250000000000000 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 0.00000536441802978516 256256image/pngtestrootlayerno title set, add some in metadataEPSG:900913EPSG:4326EPSG:3857testEPSG:4326EPSG:900913EPSG:3857 Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Mar 19 09:08:02 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Mar 2013 17:08:02 +0100 Subject: [mapserver-users] mapcache returns error 400 bad request In-Reply-To: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> Message-ID: mapcache doesn't understand any "mode=map" mapserver queries, only WMS. - make sure your mapserv+mapfile are configured for WMS access. - test your mapcache service by going to http://server/mapcache/demo -- thomas On 19 March 2013 16:55, Icadedt wrote: > hi , > when i test this url: > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > i get the error 400 'bad request' ? > > > my layer called 'test' comes from mapcache tileset. > > when i test my url without mapcache it works great: > http://localhost/cgi-bin/mapserv?map=/var/www/mapfile/dep_point.map&layers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+180+45&imgext=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > Here is my mapcache.xml: > > > > > > > /tmp > > > > > > > > > http://localhost/cgi-bin/mapserv? > > > > image/png > dep_point_pop > /var/www/mapfile/dep_point.map > > > > > > > monserv > disk > WGS84 > g > PNG > 5 5 > 10 > 3600 > > > > JPEG > > > assemble > bilinear > JPEG > 4096 > > > > > > > > > report > /tmp > > > > > > this is my getcapabilities : > http://localhost/mapcache?service=wms&request=getcapabilities > > returns: > > OGC:WMSno > title set, add some in metadata xlink:href="http://localhost/mapcache?"/>application/vnd.ogc.wms_xml xlink:href="http://localhost/mapcache?"/>image/pngimage/jpeg xlink:href="http://localhost/mapcache?"/>text/plainapplication/vnd.ogc.gml xlink:href="http://localhost/mapcache?"/>text/plainEPSG:4326 SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" maxx="180.000000" > maxy="90.000000"/>0.70312500000000000000 0.35156250000000000000 > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 > 0.00000536441802978516 > 256256image/pngtestrootlayerno > title set, add some in > metadataEPSG:900913EPSG:4326EPSG:3857 cascaded="1" queryable="0">test minx="-180.000000" miny="-90.000000" maxx="180.000000" > maxy="90.000000"/> miny="-90.000000" maxx="180.000000" > maxy="90.000000"/>EPSG:4326 minx="-20037508.342789" miny="-20037508.342789" maxx="20037508.342789" > maxy="20037508.342789"/>EPSG:900913EPSG:3857 > > > > > Thanks in advance > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From icadedt at yahoo.fr Tue Mar 19 10:08:15 2013 From: icadedt at yahoo.fr (Icadedt) Date: Tue, 19 Mar 2013 17:08:15 +0000 (GMT) Subject: [mapserver-users] mapcache returns error 400 bad request In-Reply-To: References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> Message-ID: <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com> HI, http://localhost/mapcache/demo works great, all the links inside work great to. even if i put out "mode=map" , i have the same error 400 'bad request' you said "make sure your mapserv+mapfile are configured for WMS access", how to check this? ________________________________ De?: thomas bonfort ??: Icadedt Cc?: "mapserver-users at lists.osgeo.org" Envoy? le : Mardi 19 mars 2013 17h08 Objet?: Re: [mapserver-users] mapcache returns error 400 bad request mapcache doesn't understand any "mode=map" mapserver queries, only WMS. - make sure your mapserv+mapfile are configured for WMS access. - test your mapcache service by going to http://server/mapcache/demo -- thomas On 19 March 2013 16:55, Icadedt wrote: > hi , > when i test this url: > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > i get the error 400 'bad request' ? > > > my layer called 'test' comes from mapcache tileset. > > when i test my url without mapcache it works great: > http://localhost/cgi-bin/mapserv?map=/var/www/mapfile/dep_point.map&layers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+180+45&imgext=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > Here is my mapcache.xml: > > > > > >? ? >? ? ? /tmp >? ? ? >? ? > > > > > >? ? ? >? ? ? ? ? http://localhost/cgi-bin/mapserv? >? ? ? >? ? ? >? ? ? ? ? >? ? ? ? ? ? image/png >? ? ? ? ? ? dep_point_pop >? ? ? ? ? ? /var/www/mapfile/dep_point.map >? ? ? ? ? >? ? ? >? ? > > >? ? >? ? ? monserv >? ? ? disk >? ? ? WGS84 >? ? ? g >? ? ? PNG >? ? ? 5 5 >? ? ? 10 >? ? ? 3600 >? ? > > >? ? JPEG > >? ? >? ? ? assemble >? ? ? bilinear >? ? ? JPEG >? ? ? 4096 >? ? >? ? >? ? >? ? >? ? >? ? >? ? > >? ? report >? ? /tmp > > > > > > this is my getcapabilities : > http://localhost/mapcache?service=wms&request=getcapabilities > > returns: > > OGC:WMSno > title set, add some in metadata xlink:href="http://localhost/mapcache?"/>application/vnd.ogc.wms_xml xlink:href="http://localhost/mapcache?"/>image/pngimage/jpeg xlink:href="http://localhost/mapcache?"/>text/plainapplication/vnd.ogc.gml xlink:href="http://localhost/mapcache?"/>text/plainEPSG:4326 SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" maxx="180.000000" > maxy="90.000000"/>0.70312500000000000000 0.35156250000000000000 > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 > 0.00000536441802978516 > 256256image/pngtestrootlayerno > title set, add some in > metadataEPSG:900913EPSG:4326EPSG:3857 cascaded="1" queryable="0">test minx="-180.000000" miny="-90.000000" maxx="180.000000" > maxy="90.000000"/> miny="-90.000000" maxx="180.000000" > maxy="90.000000"/>EPSG:4326 minx="-20037508.342789" miny="-20037508.342789" maxx="20037508.342789" > maxy="20037508.342789"/>EPSG:900913EPSG:3857 > > > > > Thanks in advance > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Mar 19 10:34:24 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Mar 2013 13:34:24 -0400 Subject: [mapserver-users] mapcache returns error 400 bad request In-Reply-To: <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com> References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com> Message-ID: <5148A1A0.20406@swoodbridge.com> The point that Thomas is making is that mapcache understands WMS requests NOT mapserver cgi requests http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 This does not work because it is not a valid WMS request. If you go to the demo page for the WMS service, and view source, then you can see how to setup a OpenLayers to talk to mapcache. In FF, if you right click on the map, and select view image, you will see what the url for the image or tile looks like. -Steve W On 3/19/2013 1:08 PM, Icadedt wrote: > HI, > > http://localhost/mapcache/demo works great, all the links inside work > great to. > > even if i put out "mode=map" , i have the same error 400 'bad request' > > you said "make sure your mapserv+mapfile are configured for WMS access", > how to check this? > > > ------------------------------------------------------------------------ > *De :* thomas bonfort > *? :* Icadedt > *Cc :* "mapserver-users at lists.osgeo.org" > *Envoy? le :* Mardi 19 mars 2013 17h08 > *Objet :* Re: [mapserver-users] mapcache returns error 400 bad request > > mapcache doesn't understand any "mode=map" mapserver queries, only WMS. > > - make sure your mapserv+mapfile are configured for WMS access. > - test your mapcache service by going to http://server/mapcache/demo > > -- > thomas > > On 19 March 2013 16:55, Icadedt > wrote: > > hi , > > when i test this url: > > > > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > > > i get the error 400 'bad request' ? > > > > > > my layer called 'test' comes from mapcache tileset. > > > > when i test my url without mapcache it works great: > > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfile/dep_point.map&layers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+180+45&imgext=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > > > > > Here is my mapcache.xml: > > > > > > > > > > > > > > /tmp > > > > > > > > > > > > > > > > > > http://localhost/cgi-bin/mapserv? > > > > > > > > image/png > > dep_point_pop > > /var/www/mapfile/dep_point.map > > > > > > > > > > > > > > monserv > > disk > > WGS84 > > g > > PNG > > 5 5 > > 10 > > 3600 > > > > > > > > JPEG > > > > > > assemble > > bilinear > > JPEG > > 4096 > > > > > > > > > > > > > > > > > > report > > /tmp > > > > > > > > > > > > this is my getcapabilities : > > http://localhost/mapcache?service=wms&request=getcapabilities > > > > returns: > > > > version="1.1.1">OGC:WMSno > > title set, add some in metadata > > xlink:href="http://localhost/mapcache?"/>application/vnd.ogc.wms_xml > > xlink:href="http://localhost/mapcache?"/>image/pngimage/jpeg > > xlink:href="http://localhost/mapcache?"/>text/plainapplication/vnd.ogc.gml > > xlink:href="http://localhost/mapcache?"/>text/plainEPSG:4326 > SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" maxx="180.000000" > > maxy="90.000000"/>0.70312500000000000000 > 0.35156250000000000000 > > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 > > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 > > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 > > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 > > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 > > 0.00000536441802978516 > > > 256256image/pngtestrootlayerno > > title set, add some in > > > metadataEPSG:900913EPSG:4326EPSG:3857 > cascaded="1" queryable="0">test > minx="-180.000000" miny="-90.000000" maxx="180.000000" > > maxy="90.000000"/> > miny="-90.000000" maxx="180.000000" > > maxy="90.000000"/>EPSG:4326 > minx="-20037508.342789" miny="-20037508.342789" maxx="20037508.342789" > > > maxy="20037508.342789"/>EPSG:900913EPSG:3857 > > > > > > > > > > Thanks in advance > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From marcoaraujolsys at hotmail.com Tue Mar 19 10:47:54 2013 From: marcoaraujolsys at hotmail.com (Marco Araujo) Date: Tue, 19 Mar 2013 17:47:54 +0000 Subject: [mapserver-users] How to prepare a MapServer WMS? In-Reply-To: <5148A1A0.20406@swoodbridge.com> References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com>, , <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com>, <5148A1A0.20406@swoodbridge.com> Message-ID: Hello everyone, Can anyone guide me to build a MapServer WMS?As I do, scripts, etc.. Already have successfully running MapServer CGI. Sincerely, -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Tue Mar 19 10:50:27 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Mar 2013 17:50:27 +0000 Subject: [mapserver-users] How to prepare a MapServer WMS? In-Reply-To: References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com>, , <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com>, <5148A1A0.20406@swoodbridge.com>, Message-ID: <84446DEF76453C439E9E97E438E13A639F3E0A@suutari.haapa.mmm.fi> Hi, It is quite well documented here http://mapserver.org/ogc/wms_server.html -Jukka Rahkonen- ________________________________ Marco Araujo wrote: > Hello everyone, > Can anyone guide me to build a MapServer WMS? > As I do, scripts, etc.. > Already have successfully running MapServer CGI. > Sincerely, From MarkVolz at co.lyon.mn.us Tue Mar 19 10:56:29 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 19 Mar 2013 17:56:29 +0000 Subject: [mapserver-users] mapcache returns error 400 bad request (Icadedt) Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31AB8DF@swmail01.r8nssis.local> What client and server are you using? I had trouble with ArcGIS products accessing the Mapcache that is packaged with MS4W Archive v3.0.4-dev, however QGIS, Openlayers, and other software could access Mapcache. Mark Volz GIS Specialist > Message: 1 > Date: Tue, 19 Mar 2013 17:08:02 +0100 > From: thomas bonfort > To: Icadedt > Cc: "mapserver-users at lists.osgeo.org" > > Subject: Re: [mapserver-users] mapcache returns error 400 bad request > Message-ID: > ail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > mapcache doesn't understand any "mode=map" mapserver queries, only > WMS. > > - make sure your mapserv+mapfile are configured for WMS access. > - test your mapcache service by going to http://server/mapcache/demo > > -- > thomas > > On 19 March 2013 16:55, Icadedt wrote: > > hi , > > when i test this url: > > > > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=Get > Map&lay > > ers=test&mode=map&map_imagetype=png&mapext=-135+0+- > 90+45&imgext=-135+0 > > +-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > > > i get the error 400 'bad request' ? > > > > > > my layer called 'test' comes from mapcache tileset. > > > > when i test my url without mapcache it works great: > > http://localhost/cgi- > bin/mapserv?map=/var/www/mapfile/dep_point.map&la > > > yers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+1 > 80+45&imge > > > xt=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+25 > 6 > > > > > > > > Here is my mapcache.xml: > > > > > > > > > > > > > > /tmp > > > > > > > > > > > > > > > > > > http://localhost/cgi-bin/mapserv? > > > > > > > > image/png > > dep_point_pop > > /var/www/mapfile/dep_point.map > > > > > > > > > > > > > > monserv > > disk > > WGS84 > > g > > PNG > > 5 5 > > 10 > > 3600 > > > > > > > > JPEG > > > > > > assemble > > bilinear > > JPEG > > 4096 > > > > > > > > > > > > > > > > > > report > > /tmp > > > > > > > > > > > > this is my getcapabilities : > > http://localhost/mapcache?service=wms&request=getcapabilities > > > > returns: > > > > > version="1.1.1">OGC:WMSno > > title set, add some in metadata > xlink:href="http://localhost/mapcache?"/> > > t>application/vnd.ogc.wms_xml yp > > e> > > xlink:href="http://localhost/mapcache?"/> tC > > > apabilities>image/pngimage/jpeg< > /Form > > at> > > xlink:href="http://localhost/mapcache?"/> tM > > > ap>text/plainapplication/vn > d. > > ogc.gml > > xlink:href="http://localhost/mapcache?"/> tF > > > eatureInfo>text/plain io > > > ns>EPSG:4326 B > > ox SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" > > maxx="180.000000" > > maxy="90.000000"/>0.70312500000000000000 > > 0.35156250000000000000 > > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 > > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 > > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 > > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 > > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 > > 0.00000536441802978516 > > > 256256image/ > png< > > > /Format>test > lities>rootlayerno > > title set, add some in > > > metadataEPSG:900913EPSG:4326EP > SG:38 > > 57 > queryable="0">test > minx="-180.000000" miny="-90.000000" maxx="180.000000" > > maxy="90.000000"/> > miny="-90.000000" maxx="180.000000" > > maxy="90.000000"/>EPSG:4326 SRS="EPSG:900913" > > minx="-20037508.342789" miny="-20037508.342789" > maxx="20037508.342789" > > > maxy="20037508.342789"/>EPSG:900913EPSG:3857 > > yer> > > > > > > > > > > Thanks in advance > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------ > From Tom.Kralidis at ec.gc.ca Tue Mar 19 11:22:49 2013 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 19 Mar 2013 14:22:49 -0400 Subject: [mapserver-users] How to prepare a MapServer WMS? In-Reply-To: <84446DEF76453C439E9E97E438E13A639F3E0A@suutari.haapa.mmm.fi> References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com>, , <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com>, <5148A1A0.20406@swoodbridge.com>, <84446DEF76453C439E9E97E438E13A639F3E0A@suutari.haapa.mmm.fi> Message-ID: Note you can also check out the MapServer OGC Web Services workshop (http://mapserver.github.com/ms-ogc-workshop/). ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Tuesday, March 19, 2013 13:50 > To: OSGeo - EUA > Subject: Re: [mapserver-users] How to prepare a MapServer WMS? > > Hi, > > It is quite well documented here > http://mapserver.org/ogc/wms_server.html > > -Jukka Rahkonen- > ________________________________ > Marco Araujo wrote: > > > Hello everyone, > > > Can anyone guide me to build a MapServer WMS? > > As I do, scripts, etc.. > > > Already have successfully running MapServer CGI. > > > Sincerely, > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Mar 19 11:27:38 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Mar 2013 14:27:38 -0400 Subject: [mapserver-users] How to prepare a MapServer WMS? In-Reply-To: References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com>, , <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com>, <5148A1A0.20406@swoodbridge.com> Message-ID: <5148AE1A.9020904@swoodbridge.com> On 3/19/2013 1:47 PM, Marco Araujo wrote: > Hello everyone, > > Can anyone guide me to build a MapServer WMS? > As I do, scripts, etc.. > > Already have successfully running MapServer CGI. > > Sincerely, http://mapserver.org/ogc/index.html From icadedt at yahoo.fr Tue Mar 19 11:35:49 2013 From: icadedt at yahoo.fr (Icadedt) Date: Tue, 19 Mar 2013 18:35:49 +0000 (GMT) Subject: [mapserver-users] mapcache returns error 400 bad request In-Reply-To: <5148A1A0.20406@swoodbridge.com> References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com> <5148A1A0.20406@swoodbridge.com> Message-ID: <1363718149.16435.YahooMailNeo@web28902.mail.ir2.yahoo.com> Stephen, do you have an explicit example, please? Does it mean i have to do apache url rewriting? my mapcache source tag is it correct? : ?? ? ? ? ? ??? http://localhost/cgi-bin/mapserv? ?? ? ???? ??? ??? ??? ??? ??? image/png ??? ??? ??? ??? dep_point_pop ??? ??? ??? ??? /var/www/mapfile/dep_point.map ??? ??? ??? ________________________________ De?: Stephen Woodbridge ??: mapserver-users at lists.osgeo.org Envoy? le : Mardi 19 mars 2013 18h34 Objet?: Re: [mapserver-users] mapcache returns error 400 bad request The point that Thomas is making is that mapcache understands WMS requests NOT mapserver cgi requests http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 This does not work because it is not a valid WMS request. If you go to the demo page for the WMS service, and view source, then you can see how to setup a OpenLayers to talk to mapcache. In FF, if you right click on the map, and select view image, you will see what the url for the image or tile looks like. -Steve W On 3/19/2013 1:08 PM, Icadedt wrote: > HI, > > http://localhost/mapcache/demo works great, all the links inside work > great to. > > even if i put out "mode=map" , i have the same error 400 'bad request' > > you said "make sure your mapserv+mapfile are configured for WMS access", > how to check this? > > > ------------------------------------------------------------------------ > *De :* thomas bonfort > *? :* Icadedt > *Cc :* "mapserver-users at lists.osgeo.org" > *Envoy? le :* Mardi 19 mars 2013 17h08 > *Objet :* Re: [mapserver-users] mapcache returns error 400 bad request > > mapcache doesn't understand any "mode=map" mapserver queries, only WMS. > > - make sure your mapserv+mapfile are configured for WMS access. > - test your mapcache service by going to http://server/mapcache/demo > > -- > thomas > > On 19 March 2013 16:55, Icadedt > wrote: >? > hi , >? > when i test this url: >? > >? > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 >? > >? > >? > i get the error 400 'bad request' ? >? > >? > >? > my layer called 'test' comes from mapcache tileset. >? > >? > when i test my url without mapcache it works great: >? > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfile/dep_point.map&layers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+180+45&imgext=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 >? > >? > >? > >? > Here is my mapcache.xml: >? > >? > >? > >? > >? > >? >? ? >? >? ? ? /tmp >? >? ? ? >? > >? > >? > >? > >? > >? > >? >? ? ? >? >? ? ? ? ? http://localhost/cgi-bin/mapserv? >? >? ? ? >? >? ? ? >? >? ? ? ? ? >? >? ? ? ? ? ? image/png >? >? ? ? ? ? ? dep_point_pop >? >? ? ? ? ? ? /var/www/mapfile/dep_point.map >? >? ? ? ? ? >? >? ? ? >? >? ? >? > >? > >? >? ? >? > monserv >? >? ? ? disk >? >? ? ? WGS84 >? >? ? ? g >? >? ? ? PNG >? >? ? ? 5 5 >? >? ? ? 10 >? >? ? ? 3600 >? >? ? >? > >? > >? >? ? JPEG >? > >? >? ? >? >? ? ? assemble >? >? ? ? bilinear >? >? ? ? JPEG >? >? ? ? 4096 >? >? >? >? ? >? >? ? >? >? ? >? >? ? >? >? ? >? >? ? >? > >? >? ? report >? >? ? /tmp >? > >? > >? > >? > >? > >? > this is my getcapabilities : >? > http://localhost/mapcache?service=wms&request=getcapabilities >? > >? > returns: >? > >? > version="1.1.1">OGC:WMSno >? > title set, add some in metadata? > > xlink:href="http://localhost/mapcache?"/>application/vnd.ogc.wms_xml? > > xlink:href="http://localhost/mapcache?"/>image/pngimage/jpeg? > > xlink:href="http://localhost/mapcache?"/>text/plainapplication/vnd.ogc.gml? > > xlink:href="http://localhost/mapcache?"/>text/plainEPSG:4326? > SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" maxx="180.000000" >? > maxy="90.000000"/>0.70312500000000000000 > 0.35156250000000000000 >? > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 >? > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 >? > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 >? > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 >? > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 >? > 0.00000536441802978516 >? > > 256256image/pngtestrootlayerno >? > title set, add some in >? > > metadataEPSG:900913EPSG:4326EPSG:3857? > cascaded="1" queryable="0">test? > minx="-180.000000" miny="-90.000000" maxx="180.000000" >? > maxy="90.000000"/>? > miny="-90.000000" maxx="180.000000" >? > maxy="90.000000"/>EPSG:4326? > minx="-20037508.342789" miny="-20037508.342789" maxx="20037508.342789" >? > > maxy="20037508.342789"/>EPSG:900913EPSG:3857 >? > >? > >? > >? > >? > Thanks in advance >? > >? > _______________________________________________ >? > mapserver-users mailing list >? > mapserver-users at lists.osgeo.org >? > http://lists.osgeo.org/mailman/listinfo/mapserver-users >? > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Tue Mar 19 12:29:10 2013 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Tue, 19 Mar 2013 19:29:10 -0000 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? In-Reply-To: <48517E79C3634445B7C9D97646E15865@worthlaptop> References: <48517E79C3634445B7C9D97646E15865@worthlaptop> Message-ID: <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> Worth, I have replaced "TYPE ANNOTATION" with "TYPE POINT" and all is working well. As for tiling and labels, I have not found a satisfactory solution at all and have accepted that I am getting partial labels or no labels it the label starts in another tile - See here: https://github.com/mapserver/mapserver/issues/4284 What I have done is offered an option of "Single Tile" for users so that they can switch between tiled and not. The tiled option gives a better OpenLayers slippy map experience but the single tile option allows for accurate and complete labelling. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: 19 March 2013 14:52 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Hi all, I'm changing my usage of mapserver from a single map image to using OpenLayers and having MapServer work as a WMS server. My problem is labels. There seem to be too many variables (in MapServer and OpenLayers) and I cannot figure out which to set to keep from having partial labels, too many labels or overlapping labels. What is the best way to approach labels in a tiled / overlay environment. I noticed that in MapServer 6.0 the "annotation" layer type is deprecated. What is the method for replacing this? In summary, I'm LOST. Anyone with a map, please point me in the right direction. J Thanks, Worth -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Tue Mar 19 12:38:57 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 19 Mar 2013 15:38:57 -0400 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? In-Reply-To: <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> References: <48517E79C3634445B7C9D97646E15865@worthlaptop> <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> Message-ID: Donald, How does the change to "TYPE POINT" work for polygon shapes or do you just change that to "TYPE POLYGON" and only have a label in the "CLASS" block? I'm still confused on how to manage labels on multiple overlay layers. That may be a long term project for my application. I was hoping for a simple solution. I did figure out that putting PROCESSING "LABEL_NO_CLIP=True" in my layer fixed some of my problems of multiple labels with many clipped. Thanks for your help, Worth _____ From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Tuesday, March 19, 2013 3:29 PM To: 'Worth Lutz'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Worth, I have replaced "TYPE ANNOTATION" with "TYPE POINT" and all is working well. As for tiling and labels, I have not found a satisfactory solution at all and have accepted that I am getting partial labels or no labels it the label starts in another tile - See here: https://github.com/mapserver/mapserver/issues/4284 What I have done is offered an option of "Single Tile" for users so that they can switch between tiled and not. The tiled option gives a better OpenLayers slippy map experience but the single tile option allows for accurate and complete labelling. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: 19 March 2013 14:52 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Hi all, I'm changing my usage of mapserver from a single map image to using OpenLayers and having MapServer work as a WMS server. My problem is labels. There seem to be too many variables (in MapServer and OpenLayers) and I cannot figure out which to set to keep from having partial labels, too many labels or overlapping labels. What is the best way to approach labels in a tiled / overlay environment. I noticed that in MapServer 6.0 the "annotation" layer type is deprecated. What is the method for replacing this? In summary, I'm LOST. Anyone with a map, please point me in the right direction. :-) Thanks, Worth _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Mar 19 12:44:16 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Mar 2013 20:44:16 +0100 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? In-Reply-To: References: <48517E79C3634445B7C9D97646E15865@worthlaptop> <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> Message-ID: Worth, previously: layer type annotation ... class style #markerstyle end label #labelstuff end end end now: layer type point|polygon|whatever .. class #style #any style here applies to the actual geometry, i.e. for polygons this would be a "fill". don't put anything here if you only want markers next to your labels #end label #labelstuff style geomtransform "labelpnt" #markerstyle, the same as the one used previously end end end -- thomas On 19 March 2013 20:38, Worth Lutz wrote: > Donald, > > > > How does the change to ?TYPE POINT? work for polygon shapes or do you just > change that to ?TYPE POLYGON? and only have a label in the ?CLASS? block? > > > > I?m still confused on how to manage labels on multiple overlay layers. That > may be a long term project for my application. I was hoping for a simple > solution. > > > > I did figure out that putting > > PROCESSING ?LABEL_NO_CLIP=True? > > in my layer fixed some of my problems of multiple labels with many clipped. > > > > Thanks for your help, > > Worth > > > > > > ________________________________ > > From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] > Sent: Tuesday, March 19, 2013 3:29 PM > To: 'Worth Lutz'; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] LABELS - changing from single map to tiles > and overlays - HOW? > > > > Worth, > > > > I have replaced ?TYPE ANNOTATION? with ?TYPE POINT? and all is working well. > > > > As for tiling and labels, I have not found a satisfactory solution at all > and have accepted that I am getting partial labels or no labels it the label > starts in another tile - See here: > https://github.com/mapserver/mapserver/issues/4284 > > > > What I have done is offered an option of ?Single Tile? for users so that > they can switch between tiled and not. The tiled option gives a better > OpenLayers slippy map experience but the single tile option allows for > accurate and complete labelling. > > > > Regards, > > > > Donald > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz > Sent: 19 March 2013 14:52 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] LABELS - changing from single map to tiles and > overlays - HOW? > > > > Hi all, > > > > I?m changing my usage of mapserver from a single map image to using > OpenLayers and having MapServer work as a WMS server. > > > > My problem is labels. There seem to be too many variables (in MapServer and > OpenLayers) and I cannot figure out which to set to keep from having partial > labels, too many labels or overlapping labels. > > > > What is the best way to approach labels in a tiled / overlay environment. > > > > I noticed that in MapServer 6.0 the ?annotation? layer type is deprecated. > What is the method for replacing this? > > > > In summary, I?m LOST. Anyone with a map, please point me in the right > direction. J > > > > Thanks, > > Worth > > ________________________________ > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Tue Mar 19 13:21:19 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Mar 2013 16:21:19 -0400 Subject: [mapserver-users] mapcache returns error 400 bad request In-Reply-To: <1363718149.16435.YahooMailNeo@web28902.mail.ir2.yahoo.com> References: <1363708548.25040.YahooMailNeo@web28906.mail.ir2.yahoo.com> <1363712895.78136.YahooMailNeo@web28901.mail.ir2.yahoo.com> <5148A1A0.20406@swoodbridge.com> <1363718149.16435.YahooMailNeo@web28902.mail.ir2.yahoo.com> Message-ID: <5148C8BF.9050605@swoodbridge.com> This is one of mine: image/png agg_qn Tiger_2011 /u/data/tiger2011-maps/tiger2011-mc.map http://localhost/cgi-bin/mapserv-60 Here is an OpenLayers app pulling tiles: http://imaptools.com:8080/demo/tiger-demo2.html This is what a tile request looks like: http://imaptools.com:8080/mapcache/?LAYERS=tiger-base&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A900913&BBOX=-10018754.171394,-2504688.5428484,-7514065.6285457,2.4121254682541e-7&WIDTH=256&HEIGHT=256 Note that this is using the Google Spherical Mercator projection. -Steve On 3/19/2013 2:35 PM, Icadedt wrote: > Stephen, > > do you have an explicit example, please? > Does it mean i have to do apache url rewriting? > > my mapcache source tag is it correct? : > > > > http://localhost/cgi-bin/mapserv? > > > > image/png > dep_point_pop > /var/www/mapfile/dep_point.map > > > > > > > > > ------------------------------------------------------------------------ > *De :* Stephen Woodbridge > *? :* mapserver-users at lists.osgeo.org > *Envoy? le :* Mardi 19 mars 2013 18h34 > *Objet :* Re: [mapserver-users] mapcache returns error 400 bad request > > The point that Thomas is making is that mapcache understands WMS > requests NOT mapserver cgi requests > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > This does not work because it is not a valid WMS request. > > If you go to the demo page for the WMS service, and view source, then > you can see how to setup a OpenLayers to talk to mapcache. > > In FF, if you right click on the map, and select view image, you will > see what the url for the image or tile looks like. > > -Steve W > > On 3/19/2013 1:08 PM, Icadedt wrote: > > HI, > > > > http://localhost/mapcache/demo works great, all the links inside work > > great to. > > > > even if i put out "mode=map" , i have the same error 400 'bad request' > > > > you said "make sure your mapserv+mapfile are configured for WMS access", > > how to check this? > > > > > > ------------------------------------------------------------------------ > > *De :* thomas bonfort > > > *? :* Icadedt > > > *Cc :* "mapserver-users at lists.osgeo.org > " > > > > *Envoy? le :* Mardi 19 mars 2013 17h08 > > *Objet :* Re: [mapserver-users] mapcache returns error 400 bad request > > > > mapcache doesn't understand any "mode=map" mapserver queries, only WMS. > > > > - make sure your mapserv+mapfile are configured for WMS access. > > - test your mapcache service by going to http://server/mapcache/demo > > > > -- > > thomas > > > > On 19 March 2013 16:55, Icadedt > > >> wrote: > > > hi , > > > when i test this url: > > > > > > > > > http://localhost/mapcache?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=test&mode=map&map_imagetype=png&mapext=-135+0+-90+45&imgext=-135+0+-90+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > > > > > > i get the error 400 'bad request' ? > > > > > > > > > my layer called 'test' comes from mapcache tileset. > > > > > > when i test my url without mapcache it works great: > > > > > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfile/dep_point.map&layers=dep_point_pop&mode=map&map_imagetype=png&mapext=135+0+180+45&imgext=135+0+180+45&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 > > > > > > > > > > > > Here is my mapcache.xml: > > > > > > > > > > > > > > > > > > > > > /tmp > > > > > > > > > > > > > > > > > > > > > > > > > > > http://localhost/cgi-bin/mapserv? > > > > > > > > > > > > image/png > > > dep_point_pop > > > /var/www/mapfile/dep_point.map > > > > > > > > > > > > > > > > > > > > > monserv > > > disk > > > WGS84 > > > g > > > PNG > > > 5 5 > > > 10 > > > 3600 > > > > > > > > > > > > JPEG > > > > > > > > > assemble > > > bilinear > > > JPEG > > > 4096 > > > > > > > > > > > > > > > > > > > > > > > > > > > report > > > /tmp > > > > > > > > > > > > > > > > > > this is my getcapabilities : > > > http://localhost/mapcache?service=wms&request=getcapabilities > > > > > > returns: > > > > > > > version="1.1.1">OGC:WMSno > > > title set, add some in metadata > > > > > xlink:href="http://localhost/mapcache?"/>application/vnd.ogc.wms_xml > > > > > xlink:href="http://localhost/mapcache?"/>image/pngimage/jpeg > > > > > xlink:href="http://localhost/mapcache?"/>text/plainapplication/vnd.ogc.gml > > > > > xlink:href="http://localhost/mapcache?"/>text/plainEPSG:4326 > > SRS="EPSG:4326" minx="-180.000000" miny="-90.000000" maxx="180.000000" > > > maxy="90.000000"/>0.70312500000000000000 > > 0.35156250000000000000 > > > 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000 > > > 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000 > > > 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000 > > > 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250 > > > 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030 > > > 0.00000536441802978516 > > > > > > 256256image/pngtestrootlayerno > > > title set, add some in > > > > > > metadataEPSG:900913EPSG:4326EPSG:3857 > > cascaded="1" queryable="0">test > > minx="-180.000000" miny="-90.000000" maxx="180.000000" > > > maxy="90.000000"/> > > miny="-90.000000" maxx="180.000000" > > > maxy="90.000000"/>EPSG:4326 > > minx="-20037508.342789" miny="-20037508.342789" maxx="20037508.342789" > > > > > > maxy="20037508.342789"/>EPSG:900913EPSG:3857 > > > > > > > > > > > > > > > Thanks in advance > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mmirrlees at hotmail.com Tue Mar 19 15:02:18 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Tue, 19 Mar 2013 18:02:18 -0400 Subject: [mapserver-users] label issues... In-Reply-To: <51479350.9090901@swoodbridge.com> References: , , , , , , , , , , <02222836E1C647B882F2743E364C50C4@worthlaptop>, , , , <51479350.9090901@swoodbridge.com> Message-ID: Hi Steve, Thanks for yor help! I managed to figure it out what I needed to do to make changes to the different font etc, and the main thing was I forgot to put "LABELNAME" near the top of the code as now it works! Mark > Date: Mon, 18 Mar 2013 18:21:04 -0400 > From: woodbri at swoodbridge.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] label issues... > > So you want you labels to be white? > > What color is your background? > > Do you have a FONTSET "fonts.txt" that maps arial to a font. I assume > you probably do as it is not throwing an error about it. > > Also you can get some debug info if you add to the MAP section: > > CONFIG MS_ERRORFILE "stderr" > DEBUG 5 > > Then when you render you map look in the apache error.log file. Or try > it with: > > shp2img -m mymapfile.map -o image.png > > There are lots of other parameters, but that should be enough to get > some output. > > -Steve > > On 3/18/2013 5:30 PM, Mark Mirrlees wrote: > > Hi there, > > > > Ok so I have revised the mapfile to this... > > > > LAYER > > NAME 'mjcities' > > TYPE POINT > > DUMP false > > EXTENT -143.210462 39.001401 -50.461045 85.911094 > > DATA '../data/mjcities.shp' > > METADATA > > 'ows_title' 'mjcities' > > END > > STATUS default > > MAXSCALEDENOM 1000000 > > TRANSPARENCY 100 > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > CLASS > > NAME 'mjcities' > > STYLE > > SYMBOL "circle" > > SIZE 15.0 > > OUTLINECOLOR 0 0 0 > > COLOR 182 109 194 > > END > > LABEL > > COLOR 255 255 255 > > FONT "arial" > > TYPE truetype > > SIZE 10 > > ANGLE 0 > > POSITION cc > > FORCE false > > PARTIALS false > > END > > > > But when I zoom into my layers I see the symbols that were created but > > the labels still don't show up...any suggestions? > > > > Thanks for the help everyone as I do appreciate it! > > > > Mark > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Tue Mar 19 15:09:35 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Tue, 19 Mar 2013 18:09:35 -0400 Subject: [mapserver-users] query problems Message-ID: Hey all, One last issue (well for know anyway)... I want to create a basic query so when I open the query I am able to select the major roads and expressways from the mjrroads layer that was created! I have already created the header and footers but not sure where to stick the particular code in the global.map file that contains the headers and footers... Here is my code.# Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -2400000 -900000 3100000 4000000 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END # Background color for the map canvas -- change as desired IMAGECOLOR 0 100 250 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar QUERYMAP STATUS ON # sets the map to be queryable STYLE HILITE # the selected object is highligthed END # End for QueryMap WEB TEMPLATE global.html IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER "/maps/M_Mirrlees_assign3/header.html" FOOTER "maps/M_Mirrlees_assign3/footer.html" EMPTY "/maps/M_Mirrlees_Assign3/blank.html" END #End for WEB LAYER NAME 'mjrroads' TYPE LINE DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjrroads.shp' METADATA 'ows_title' 'mjrroads' END STATUS default TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'TYPE' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 COLOR 201 157 32 END END CLASS NAME "TYPE = Expressway" EXPRESSION "Expressway" STYLE WIDTH 2.0 COLOR 255 0 0 END END CLASS NAME "TYPE = Primary Highway" EXPRESSION "Primary Highway" MAXSCALEDENOM 2500000 STYLE WIDTH 1.0 COLOR 0 0 0 END END END I must apologize for all the questions, as i'm still fairly new at this but everyone who has taken the time to help me is quite appreciated as this is making a lot of sense now. Thanks,Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug_newcomb at fws.gov Tue Mar 19 18:19:23 2013 From: doug_newcomb at fws.gov (Newcomb, Doug) Date: Tue, 19 Mar 2013 21:19:23 -0400 Subject: [mapserver-users] Compile MapServer with ArcServer 10 support In-Reply-To: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> References: <9FE7B20682D2EE4CB9F40163E1EB4F08950F3E@afovsml1m.WAPA.INT> Message-ID: Eric, What do you mean by Arcserver 10 support? Mapserver provides support as a server in OGC protocols that ArcServer should consume, see http://mapserver.org/ogc/index.html Doug On Mon, Mar 18, 2013 at 3:22 PM, Weisbender, Eric wrote: > Hello,**** > > ** ** > > Is there any documentation on how to compile MapServer with ArcServer 10 > support? Any help is greatly appreciated.**** > > ** ** > > Thanks,**** > > ** ** > > Eric Weisbender**** > > ** ** > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior. Life is too short for undocumented, proprietary data formats. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans.wapenaar at gis-innovations.nl Wed Mar 20 02:50:03 2013 From: hans.wapenaar at gis-innovations.nl (Hans Wapenaar (GIS Innovations)) Date: Wed, 20 Mar 2013 10:50:03 +0100 Subject: [mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get' Message-ID: <00a901ce2550$4bb88b80$e329a280$@wapenaar@gis-innovations.nl> Hi, I am upgrading a website with MapServer 5.6 to 6.2. Website was made in Visual Studio using MapScript. After some adjustments I got it running in Visual Studio. But when I publish the website on a server with IIS 7.5 the following error appears: Error in initMapJ: System.TypeInitializationException: The type initializer for 'OSGeo.MapServer.mapscript' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'CSharp_MS_LABEL_ALLOCSIZE_get' in DLL 'mapscript'. at OSGeo.MapServer.mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get() at OSGeo.MapServer.mapscript..cctor() --- End of inner exception stack trace --- In initMapJ the mapObj is created/mapfile opened. The error appears at moment that a layer object is read. I have no idea where to look. I tried removing all label settings from the mapfile. But I thinks it something else. Any suggestions/ideas? Thank, Hans Wapenaar -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 20 04:48:47 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 20 Mar 2013 12:48:47 +0100 Subject: [mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get' In-Reply-To: <5149888c.e8de440a.53b5.5593SMTPIN_ADDED_BROKEN@mx.google.com> References: <5149888c.e8de440a.53b5.5593SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Hans, You probably have an older version on mapscript dll available in the PATH which is loaded at run time instead of the correct version. Make sure mapscript_csharp.dll loads the proper version of mapscript.dll. Best regards, Tamas 2013/3/20 Hans Wapenaar (GIS Innovations) > Hi,**** > > ** ** > > I am upgrading a website with MapServer 5.6 to 6.2.**** > > Website was made in Visual Studio using MapScript. After some adjustments > I got it running in Visual Studio. But when I publish the website on a > server with IIS 7.5 the following error appears:**** > > ** ** > > Error in initMapJ: System.TypeInitializationException: **** > > The type initializer for 'OSGeo.MapServer.mapscript' threw an exception. > ---> **** > > System.EntryPointNotFoundException: Unable to find an entry point named > 'CSharp_MS_LABEL_ALLOCSIZE_get' in DLL 'mapscript'.**** > > at OSGeo.MapServer.mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get()**** > > at OSGeo.MapServer.mapscript..cctor()**** > > --- End of inner exception stack trace ---**** > > ** ** > > In initMapJ the mapObj is created/mapfile opened.**** > > The error appears at moment that a layer object is read.**** > > ** ** > > I have no idea where to look. I tried removing all label settings from the > mapfile. But I thinks it something else.**** > > Any suggestions/ideas?**** > > ** ** > > Thank, Hans Wapenaar**** > > ** ** > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans.wapenaar at gis-innovations.nl Wed Mar 20 07:56:24 2013 From: hans.wapenaar at gis-innovations.nl (Hans Wapenaar (GIS Innovations)) Date: Wed, 20 Mar 2013 15:56:24 +0100 Subject: [mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get' In-Reply-To: References: <5149888c.e8de440a.53b5.5593SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <00cd01ce257b$17b201b0$47160510$@wapenaar@gis-innovations.nl> Hi Tamas, Thanks for your reaction. You were right that there was some kind of conflict in versions. But not with the PATH setting. On my server configuration it is required to use that. Problem was in the temporary files. I used a site that contained the old mapscript version before, The dotNet framework creates temporary files and directories for a website. Probably the mapscript dll?s were not automatically replaced in the temp dirs also not after resetting the website. Removing the temp dirs solved the issue. As simple as that! Thanks, Hans Van: Tamas Szekeres [mailto:szekerest at gmail.com] Verzonden: woensdag 20 maart 2013 12:49 Aan: Hans Wapenaar (GIS Innovations) CC: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get' Hans, You probably have an older version on mapscript dll available in the PATH which is loaded at run time instead of the correct version. Make sure mapscript_csharp.dll loads the proper version of mapscript.dll. Best regards, Tamas 2013/3/20 Hans Wapenaar (GIS Innovations) Hi, I am upgrading a website with MapServer 5.6 to 6.2. Website was made in Visual Studio using MapScript. After some adjustments I got it running in Visual Studio. But when I publish the website on a server with IIS 7.5 the following error appears: Error in initMapJ: System.TypeInitializationException: The type initializer for 'OSGeo.MapServer.mapscript' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'CSharp_MS_LABEL_ALLOCSIZE_get' in DLL 'mapscript'. at OSGeo.MapServer.mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get() at OSGeo.MapServer.mapscript..cctor() --- End of inner exception stack trace --- In initMapJ the mapObj is created/mapfile opened. The error appears at moment that a layer object is read. I have no idea where to look. I tried removing all label settings from the mapfile. But I thinks it something else. Any suggestions/ideas? Thank, Hans Wapenaar _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Wed Mar 20 08:45:27 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Wed, 20 Mar 2013 11:45:27 -0400 Subject: [mapserver-users] query creation issues Message-ID: Hello everyone, I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -2400000 -900000 3100000 4000000 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END # Background color for the map canvas -- change as desired IMAGECOLOR 0 100 250 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar QUERYMAP STATUS ON # sets the map to be queryable STYLE HILITE # the selected object is highligthed END # End for QueryMap WEB TEMPLATE global.html IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER "/maps/M_Mirrlees_assign3/header.html" FOOTER "maps/M_Mirrlees_assign3/footer.html" EMPTY "/maps/M_Mirrlees_Assign3/blank.html" END #End for WEB LAYER NAME 'mjrroads' TYPE LINE DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjrroads.shp' METADATA 'ows_title' 'mjrroads' END STATUS default TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'TYPE' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 COLOR 201 157 32 END END CLASS NAME "TYPE = Expressway" EXPRESSION "Expressway" STYLE WIDTH 2.0 COLOR 255 0 0 END END CLASS NAME "TYPE = Primary Highway" EXPRESSION "Primary Highway" MAXSCALEDENOM 2500000 STYLE WIDTH 1.0 COLOR 0 0 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Wed Mar 20 09:49:41 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Wed, 20 Mar 2013 12:49:41 -0400 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? References: <48517E79C3634445B7C9D97646E15865@worthlaptop> <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> Message-ID: I've now got labels on my maps when zoomed out but my polygons have no labels if I zoom in away from the label location. I'm using: PROCESSING "LABEL_NO_CLIP=True" Is this a fixable problem? Are there any examples of getting labels with mapserver and openlayers using tiles and multiple overlay layers? I'm still experimenting but still confused. Any help would be appreciated. Thanks, Worth _____ From: Worth Lutz [mailto:wal3 at mindspring.com] Sent: Tuesday, March 19, 2013 3:39 PM To: 'Donald Kerr'; 'mapserver-users at lists.osgeo.org' Subject: RE: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Donald, How does the change to "TYPE POINT" work for polygon shapes or do you just change that to "TYPE POLYGON" and only have a label in the "CLASS" block? I'm still confused on how to manage labels on multiple overlay layers. That may be a long term project for my application. I was hoping for a simple solution. I did figure out that putting PROCESSING "LABEL_NO_CLIP=True" in my layer fixed some of my problems of multiple labels with many clipped. Thanks for your help, Worth _____ From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: Tuesday, March 19, 2013 3:29 PM To: 'Worth Lutz'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Worth, I have replaced "TYPE ANNOTATION" with "TYPE POINT" and all is working well. As for tiling and labels, I have not found a satisfactory solution at all and have accepted that I am getting partial labels or no labels it the label starts in another tile - See here: https://github.com/mapserver/mapserver/issues/4284 What I have done is offered an option of "Single Tile" for users so that they can switch between tiled and not. The tiled option gives a better OpenLayers slippy map experience but the single tile option allows for accurate and complete labelling. Regards, Donald From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: 19 March 2013 14:52 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? Hi all, I'm changing my usage of mapserver from a single map image to using OpenLayers and having MapServer work as a WMS server. My problem is labels. There seem to be too many variables (in MapServer and OpenLayers) and I cannot figure out which to set to keep from having partial labels, too many labels or overlapping labels. What is the best way to approach labels in a tiled / overlay environment. I noticed that in MapServer 6.0 the "annotation" layer type is deprecated. What is the method for replacing this? In summary, I'm LOST. Anyone with a map, please point me in the right direction. :-) Thanks, Worth _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 20 09:59:22 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Mar 2013 17:59:22 +0100 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? In-Reply-To: References: <48517E79C3634445B7C9D97646E15865@worthlaptop> <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> Message-ID: On 20 March 2013 17:49, Worth Lutz wrote: > I?ve now got labels on my maps when zoomed out but my polygons have no > labels if I zoom in away from the label location. > > I?m using: > > PROCESSING ?LABEL_NO_CLIP=True? > > Is this a fixable problem? That's the aim of LABEL_NO_CLIP, i.e. only label a polygon at a single geographical location to prevent the label from a single polygon appearing on every tile if that polygon spans multiple tiles. YMMV, but you might want to remove LABEL_NO_CLIP and use metatiles on your tile cache (e,g: with a 2x2 metatile, your label would only be rendered in one of every 4 tiles). If you aren't using a tile cache, then there's no easy solution I know of. > > > > Are there any examples of getting labels with mapserver and openlayers using > tiles and multiple overlay layers? If you're using multiple label overlays, there's no way to control collision between the labels from different layers. > > > > I?m still experimenting but still confused. Any help would be appreciated. > > > > Thanks, > > Worth > > > > ________________________________ > > From: Worth Lutz [mailto:wal3 at mindspring.com] > Sent: Tuesday, March 19, 2013 3:39 PM > To: 'Donald Kerr'; 'mapserver-users at lists.osgeo.org' > Subject: RE: [mapserver-users] LABELS - changing from single map to tiles > and overlays - HOW? > > > > Donald, > > > > How does the change to ?TYPE POINT? work for polygon shapes or do you just > change that to ?TYPE POLYGON? and only have a label in the ?CLASS? block? > > > > I?m still confused on how to manage labels on multiple overlay layers. That > may be a long term project for my application. I was hoping for a simple > solution. > > > > I did figure out that putting > > PROCESSING ?LABEL_NO_CLIP=True? > > in my layer fixed some of my problems of multiple labels with many clipped. > > > > Thanks for your help, > > Worth > > > > > > ________________________________ > > From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] > > Sent: Tuesday, March 19, 2013 3:29 PM > To: 'Worth Lutz'; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] LABELS - changing from single map to tiles > and overlays - HOW? > > > > Worth, > > > > I have replaced ?TYPE ANNOTATION? with ?TYPE POINT? and all is working well. > > > > As for tiling and labels, I have not found a satisfactory solution at all > and have accepted that I am getting partial labels or no labels it the label > starts in another tile - See here: > https://github.com/mapserver/mapserver/issues/4284 > > > > What I have done is offered an option of ?Single Tile? for users so that > they can switch between tiled and not. The tiled option gives a better > OpenLayers slippy map experience but the single tile option allows for > accurate and complete labelling. > > > > Regards, > > > > Donald > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz > Sent: 19 March 2013 14:52 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] LABELS - changing from single map to tiles and > overlays - HOW? > > > > Hi all, > > > > I?m changing my usage of mapserver from a single map image to using > OpenLayers and having MapServer work as a WMS server. > > > > My problem is labels. There seem to be too many variables (in MapServer and > OpenLayers) and I cannot figure out which to set to keep from having partial > labels, too many labels or overlapping labels. > > > > What is the best way to approach labels in a tiled / overlay environment. > > > > I noticed that in MapServer 6.0 the ?annotation? layer type is deprecated. > What is the method for replacing this? > > > > In summary, I?m LOST. Anyone with a map, please point me in the right > direction. J > > > > Thanks, > > Worth > > ________________________________ > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Wed Mar 20 10:00:47 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Mar 2013 17:00:47 +0000 Subject: [mapserver-users] query creation issues In-Reply-To: References: Message-ID: Hi Mark: Personally I'd steer you to the simplified query templates as described here: http://mapserver.org/development/rfc/ms-rfc-36.html This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. If you want to use the new style templating you'd do something like this: 1- Define an output format: OUTPUTFORMAT NAME 'my-template' DRIVER 'TEMPLATE' MIMETYPE 'text/html; subtype=compass' FORMATOPTION "FILE=templates/my-template.html" END 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): WEB QUERYFORMAT 'my-template' ... END 3- Make layers queryable by adding something like: TEMPLATE 'void' 4- Write your template, for example my-template.html might look like: --- snip --- This is my template:
[resultset layer="mjrroads"] [feature]Type: [TYPE][/feature] [/resultset] Done presenting layers. --- snip --- Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Wednesday, March 20, 2013 10:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] query creation issues Hello everyone, ? I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark ? # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -2400000 -900000 3100000 4000000 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END # Background color for the map canvas -- change as desired IMAGECOLOR 0 100 250 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar QUERYMAP STATUS ON # sets the map to be queryable STYLE HILITE # the selected object is highligthed END # End for QueryMap WEB TEMPLATE global.html IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER "/maps/M_Mirrlees_assign3/header.html" FOOTER "maps/M_Mirrlees_assign3/footer.html" EMPTY "/maps/M_Mirrlees_Assign3/blank.html" END #End for WEB LAYER NAME 'mjrroads' TYPE LINE DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjrroads.shp' METADATA 'ows_title' 'mjrroads' END STATUS default TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'TYPE' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 COLOR 201 157 32 END END CLASS NAME "TYPE = Expressway" EXPRESSION "Expressway" STYLE WIDTH 2.0 COLOR 255 0 0 END END CLASS NAME "TYPE = Primary Highway" EXPRESSION "Primary Highway" MAXSCALEDENOM 2500000 STYLE WIDTH 1.0 COLOR 0 0 0 END END END From wal3 at mindspring.com Wed Mar 20 10:10:11 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Wed, 20 Mar 2013 13:10:11 -0400 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? In-Reply-To: References: <48517E79C3634445B7C9D97646E15865@worthlaptop><007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> Message-ID: <0D995CDB60164D8D8162481CBCDD49D8@worthlaptop> Ok, I'm beginning to understand all the many variables. I have a mapcache which is turned off at the moment as I was trying to work on styling. For example, change one thing and redraw. Change it again to figure out what is going on. I plan on using mapcache, so if I use metatiles I then use a "gutter/buffer" around the metatile and that eliminates the clipping on the edges of the metatile? I think I'm putting the pieces together now! Worth -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Wednesday, March 20, 2013 12:59 PM To: Worth Lutz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? On 20 March 2013 17:49, Worth Lutz wrote: > I've now got labels on my maps when zoomed out but my polygons have no > labels if I zoom in away from the label location. > > I'm using: > > PROCESSING "LABEL_NO_CLIP=True" > > Is this a fixable problem? That's the aim of LABEL_NO_CLIP, i.e. only label a polygon at a single geographical location to prevent the label from a single polygon appearing on every tile if that polygon spans multiple tiles. YMMV, but you might want to remove LABEL_NO_CLIP and use metatiles on your tile cache (e,g: with a 2x2 metatile, your label would only be rendered in one of every 4 tiles). If you aren't using a tile cache, then there's no easy solution I know of. > > > > Are there any examples of getting labels with mapserver and openlayers using > tiles and multiple overlay layers? If you're using multiple label overlays, there's no way to control collision between the labels from different layers. > > > > I'm still experimenting but still confused. Any help would be appreciated. > > > > Thanks, > > Worth > > > > ________________________________ > > From: Worth Lutz [mailto:wal3 at mindspring.com] > Sent: Tuesday, March 19, 2013 3:39 PM > To: 'Donald Kerr'; 'mapserver-users at lists.osgeo.org' > Subject: RE: [mapserver-users] LABELS - changing from single map to tiles > and overlays - HOW? > > > > Donald, > > > > How does the change to "TYPE POINT" work for polygon shapes or do you just > change that to "TYPE POLYGON" and only have a label in the "CLASS" block? > > > > I'm still confused on how to manage labels on multiple overlay layers. That > may be a long term project for my application. I was hoping for a simple > solution. > > > > I did figure out that putting > > PROCESSING "LABEL_NO_CLIP=True" > > in my layer fixed some of my problems of multiple labels with many clipped. > > > > Thanks for your help, > > Worth > > > > > > ________________________________ > > From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] > > Sent: Tuesday, March 19, 2013 3:29 PM > To: 'Worth Lutz'; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] LABELS - changing from single map to tiles > and overlays - HOW? > > > > Worth, > > > > I have replaced "TYPE ANNOTATION" with "TYPE POINT" and all is working well. > > > > As for tiling and labels, I have not found a satisfactory solution at all > and have accepted that I am getting partial labels or no labels it the label > starts in another tile - See here: > https://github.com/mapserver/mapserver/issues/4284 > > > > What I have done is offered an option of "Single Tile" for users so that > they can switch between tiled and not. The tiled option gives a better > OpenLayers slippy map experience but the single tile option allows for > accurate and complete labelling. > > > > Regards, > > > > Donald > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz > Sent: 19 March 2013 14:52 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] LABELS - changing from single map to tiles and > overlays - HOW? > > > > Hi all, > > > > I'm changing my usage of mapserver from a single map image to using > OpenLayers and having MapServer work as a WMS server. > > > > My problem is labels. There seem to be too many variables (in MapServer and > OpenLayers) and I cannot figure out which to set to keep from having partial > labels, too many labels or overlapping labels. > > > > What is the best way to approach labels in a tiled / overlay environment. > > > > I noticed that in MapServer 6.0 the "annotation" layer type is deprecated. > What is the method for replacing this? > > > > In summary, I'm LOST. Anyone with a map, please point me in the right > direction. J > > > > Thanks, > > Worth > > ________________________________ > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13 From mmirrlees at hotmail.com Wed Mar 20 10:16:25 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Wed, 20 Mar 2013 13:16:25 -0400 Subject: [mapserver-users] query creation issues In-Reply-To: References: , Message-ID: Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below

Layer: Major Roads


  As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the tags. Thanks,Mark> From: Steve.Lime at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 +0000 > > Hi Mark: Personally I'd steer you to the simplified query templates as described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template:
> > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -2400000 -900000 3100000 4000000 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 100 250 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > QUERYMAP > STATUS ON # sets the map to be queryable > STYLE HILITE # the selected object is highligthed > END # End for QueryMap > > WEB > TEMPLATE global.html > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > HEADER "/maps/M_Mirrlees_assign3/header.html" > FOOTER "maps/M_Mirrlees_assign3/footer.html" > EMPTY "/maps/M_Mirrlees_Assign3/blank.html" > END #End for WEB > > > LAYER > NAME 'mjrroads' > TYPE LINE > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjrroads.shp' > METADATA > 'ows_title' 'mjrroads' > END > STATUS default > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > > CLASSITEM 'TYPE' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > COLOR 201 157 32 > END > END > CLASS > NAME "TYPE = Expressway" > EXPRESSION "Expressway" > STYLE > WIDTH 2.0 > COLOR 255 0 0 > END > END > CLASS > NAME "TYPE = Primary Highway" > EXPRESSION "Primary Highway" > MAXSCALEDENOM 2500000 > STYLE > WIDTH 1.0 > COLOR 0 0 0 > END > END > END > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 20 10:29:08 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Mar 2013 18:29:08 +0100 Subject: [mapserver-users] LABELS - changing from single map to tiles and overlays - HOW? In-Reply-To: <0D995CDB60164D8D8162481CBCDD49D8@worthlaptop> References: <48517E79C3634445B7C9D97646E15865@worthlaptop> <007b01ce24d8$0aef3db0$20cdb910$@dkerr.co.uk> <0D995CDB60164D8D8162481CBCDD49D8@worthlaptop> Message-ID: If you're using mapcache, turn *off* any openlayers gutter. In your mapcache.xml config file, set a tileset->metabuffer to a few pixels, and set your mapfile's labelcache_map_egde_buffer to exactly that same value. Any other configuration may result in labels appearing truncated in the openlayer tile'd map. -- thomas On 20 March 2013 18:10, Worth Lutz wrote: > Ok, I'm beginning to understand all the many variables. I have a mapcache > which is turned off at the moment as I was trying to work on styling. For > example, change one thing and redraw. Change it again to figure out what is > going on. > > I plan on using mapcache, so if I use metatiles I then use a "gutter/buffer" > around the metatile and that eliminates the clipping on the edges of the > metatile? > > I think I'm putting the pieces together now! > > Worth > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Wednesday, March 20, 2013 12:59 PM > To: Worth Lutz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] LABELS - changing from single map to tiles > and overlays - HOW? > > On 20 March 2013 17:49, Worth Lutz wrote: >> I've now got labels on my maps when zoomed out but my polygons have no >> labels if I zoom in away from the label location. >> >> I'm using: >> >> PROCESSING "LABEL_NO_CLIP=True" >> >> Is this a fixable problem? > That's the aim of LABEL_NO_CLIP, i.e. only label a polygon at a single > geographical location to prevent the label from a single polygon > appearing on every tile if that polygon spans multiple tiles. > > YMMV, but you might want to remove LABEL_NO_CLIP and use metatiles on > your tile cache (e,g: with a 2x2 metatile, your label would only be > rendered in one of every 4 tiles). If you aren't using a tile cache, > then there's no easy solution I know of. >> >> >> >> Are there any examples of getting labels with mapserver and openlayers > using >> tiles and multiple overlay layers? > If you're using multiple label overlays, there's no way to control > collision between the labels from different layers. >> >> >> >> I'm still experimenting but still confused. Any help would be > appreciated. >> >> >> >> Thanks, >> >> Worth >> >> >> >> ________________________________ >> >> From: Worth Lutz [mailto:wal3 at mindspring.com] >> Sent: Tuesday, March 19, 2013 3:39 PM >> To: 'Donald Kerr'; 'mapserver-users at lists.osgeo.org' >> Subject: RE: [mapserver-users] LABELS - changing from single map to tiles >> and overlays - HOW? >> >> >> >> Donald, >> >> >> >> How does the change to "TYPE POINT" work for polygon shapes or do you just >> change that to "TYPE POLYGON" and only have a label in the "CLASS" block? >> >> >> >> I'm still confused on how to manage labels on multiple overlay layers. > That >> may be a long term project for my application. I was hoping for a simple >> solution. >> >> >> >> I did figure out that putting >> >> PROCESSING "LABEL_NO_CLIP=True" >> >> in my layer fixed some of my problems of multiple labels with many > clipped. >> >> >> >> Thanks for your help, >> >> Worth >> >> >> >> >> >> ________________________________ >> >> From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] >> >> Sent: Tuesday, March 19, 2013 3:29 PM >> To: 'Worth Lutz'; mapserver-users at lists.osgeo.org >> Subject: RE: [mapserver-users] LABELS - changing from single map to tiles >> and overlays - HOW? >> >> >> >> Worth, >> >> >> >> I have replaced "TYPE ANNOTATION" with "TYPE POINT" and all is working > well. >> >> >> >> As for tiling and labels, I have not found a satisfactory solution at all >> and have accepted that I am getting partial labels or no labels it the > label >> starts in another tile - See here: >> https://github.com/mapserver/mapserver/issues/4284 >> >> >> >> What I have done is offered an option of "Single Tile" for users so that >> they can switch between tiled and not. The tiled option gives a better >> OpenLayers slippy map experience but the single tile option allows for >> accurate and complete labelling. >> >> >> >> Regards, >> >> >> >> Donald >> >> >> >> >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz >> Sent: 19 March 2013 14:52 >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] LABELS - changing from single map to tiles and >> overlays - HOW? >> >> >> >> Hi all, >> >> >> >> I'm changing my usage of mapserver from a single map image to using >> OpenLayers and having MapServer work as a WMS server. >> >> >> >> My problem is labels. There seem to be too many variables (in MapServer > and >> OpenLayers) and I cannot figure out which to set to keep from having > partial >> labels, too many labels or overlapping labels. >> >> >> >> What is the best way to approach labels in a tiled / overlay environment. >> >> >> >> I noticed that in MapServer 6.0 the "annotation" layer type is deprecated. >> What is the method for replacing this? >> >> >> >> In summary, I'm LOST. Anyone with a map, please point me in the right >> direction. J >> >> >> >> Thanks, >> >> Worth >> >> ________________________________ >> >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2013.0.2904 / Virus Database: 2641/6188 - Release Date: 03/19/13 >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13 > From Steve.Lime at state.mn.us Wed Mar 20 11:22:29 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Mar 2013 18:22:29 +0000 Subject: [mapserver-users] query creation issues In-Reply-To: References: , Message-ID: You need to refer to the attributes next... Steve From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below

Layer: Major Roads


Name Type
and
[NAME][TYPE]
  As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the tags. Thanks, Mark > From: Steve.Lime at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 +0000 > > Hi Mark: Personally I'd steer you to the simplified query templates as described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template:
> > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -2400000 -900000 3100000 4000000 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 100 250 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > QUERYMAP > STATUS ON # sets the map to be queryable > STYLE HILITE # the selected object is highligthed > END # End for QueryMap > > WEB > TEMPLATE global.html > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > HEADER "/maps/M_Mirrlees_assign3/header.html" > FOOTER "maps/M_Mirrlees_assign3/footer.html" > EMPTY "/maps/M_Mirrlees_Assign3/blank.html" > END #End for WEB > > > LAYER > NAME 'mjrroads' > TYPE LINE > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjrroads.shp' > METADATA > 'ows_title' 'mjrroads' > END > STATUS default > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > > CLASSITEM 'TYPE' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > COLOR 201 157 32 > END > END > CLASS > NAME "TYPE = Expressway" > EXPRESSION "Expressway" > STYLE > WIDTH 2.0 > COLOR 255 0 0 > END > END > CLASS > NAME "TYPE = Primary Highway" > EXPRESSION "Primary Highway" > MAXSCALEDENOM 2500000 > STYLE > WIDTH 1.0 > COLOR 0 0 0 > END > END > END > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Wed Mar 20 11:32:46 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Wed, 20 Mar 2013 14:32:46 -0400 Subject: [mapserver-users] query creation issues In-Reply-To: References: , , , Message-ID: Hi Steve, Unfortunately that didn't work! But I did manage to get the ID chracteristic outputted as I forgot to include that previously. As when I went to edit the query.html page it shows this ID Name Type 1275 [name] [type] Here is the code that is causing issues for me...
While this is the code for the header...

Layer: Major Roads


Name Type
and
[shpidx]
[name]
[type]
  As what i'm trying to do is get the name (name of road outputted) and the type (either expressway or major road) Thanks,MarkFrom: Steve.Lime at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:22:29 +0000 You need to refer to the attributes next? Steve From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below

Layer: Major Roads


ID Name Type
[NAME][TYPE]
  As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the tags. Thanks, Mark > From: Steve.Lime at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 +0000 > > Hi Mark: Personally I'd steer you to the simplified query templates as described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template:
> > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -2400000 -900000 3100000 4000000 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 100 250 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > QUERYMAP > STATUS ON # sets the map to be queryable > STYLE HILITE # the selected object is highligthed > END # End for QueryMap > > WEB > TEMPLATE global.html > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > HEADER "/maps/M_Mirrlees_assign3/header.html" > FOOTER "maps/M_Mirrlees_assign3/footer.html" > EMPTY "/maps/M_Mirrlees_Assign3/blank.html" > END #End for WEB > > > LAYER > NAME 'mjrroads' > TYPE LINE > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjrroads.shp' > METADATA > 'ows_title' 'mjrroads' > END > STATUS default > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > > CLASSITEM 'TYPE' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > COLOR 201 157 32 > END > END > CLASS > NAME "TYPE = Expressway" > EXPRESSION "Expressway" > STYLE > WIDTH 2.0 > COLOR 255 0 0 > END > END > CLASS > NAME "TYPE = Primary Highway" > EXPRESSION "Primary Highway" > MAXSCALEDENOM 2500000 > STYLE > WIDTH 1.0 > COLOR 0 0 0 > END > END > END > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Mar 20 11:41:52 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 20 Mar 2013 18:41:52 +0000 Subject: [mapserver-users] query creation issues In-Reply-To: References: , , , Message-ID: Straight item tags like that ARE case sensitive. Try [item name="name"] and [item name="type"] instead. From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Wednesday, March 20, 2013 1:33 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Unfortunately that didn't work! But I did manage to get the ID chracteristic outputted as I forgot to include that previously. As when I went to edit the query.html page it shows this ID Name Type 1275 [name] [type] Here is the code that is causing issues for me... While this is the code for the header...

Layer: Major Roads


Name Type
and
[shpidx]
[name]
[type]
  As what i'm trying to do is get the name (name of road outputted) and the type (either expressway or major road) Thanks, Mark ________________________________ From: Steve.Lime at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:22:29 +0000 You need to refer to the attributes next... Steve From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below

Layer: Major Roads


ID Name Type
[NAME][TYPE]
  As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the tags. Thanks, Mark > From: Steve.Lime at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 +0000 > > Hi Mark: Personally I'd steer you to the simplified query templates as described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template:
> > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -2400000 -900000 3100000 4000000 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 100 250 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > QUERYMAP > STATUS ON # sets the map to be queryable > STYLE HILITE # the selected object is highligthed > END # End for QueryMap > > WEB > TEMPLATE global.html > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > HEADER "/maps/M_Mirrlees_assign3/header.html" > FOOTER "maps/M_Mirrlees_assign3/footer.html" > EMPTY "/maps/M_Mirrlees_Assign3/blank.html" > END #End for WEB > > > LAYER > NAME 'mjrroads' > TYPE LINE > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjrroads.shp' > METADATA > 'ows_title' 'mjrroads' > END > STATUS default > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > > CLASSITEM 'TYPE' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > COLOR 201 157 32 > END > END > CLASS > NAME "TYPE = Expressway" > EXPRESSION "Expressway" > STYLE > WIDTH 2.0 > COLOR 255 0 0 > END > END > CLASS > NAME "TYPE = Primary Highway" > EXPRESSION "Primary Highway" > MAXSCALEDENOM 2500000 > STYLE > WIDTH 1.0 > COLOR 0 0 0 > END > END > END > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Mar 20 11:45:44 2013 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 20 Mar 2013 14:45:44 -0400 Subject: [mapserver-users] query creation issues In-Reply-To: References: , , , Message-ID: <514A03D8.4010502@swoodbridge.com> On 3/20/2013 2:32 PM, Mark Mirrlees wrote: > Hi Steve, > > Unfortunately that didn't work! But I did manage to get the ID > chracteristic outputted as I forgot to include that previously. > As when I went to edit the query.html page it shows this > > ID Name Type > 1275 > [name] > [type] > > > Here is the code that is causing issues for me... > > > >
> > > > Attribute binding is case sensitive. For shapefiles it should be UPPERCASE and for postgis it should be lowercase. Also, you tags are not nested correctly, you have a tr nested inside a tr. :-O -Steve W > While this is the code for the header... > > >

Layer: Major Roads

>
> ALT="Map Image"> >
Name Type
and
[shpidx]
[name]
[type]
>   > > > > > > As what i'm trying to do is get the name (name of road outputted) and > the type (either expressway or major road) > > Thanks, > Mark > > > ------------------------------------------------------------------------ > From: Steve.Lime at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 18:22:29 +0000 > > You need to refer to the attributes next? > > > > Steve > > *From:*Mark Mirrlees [mailto:mmirrlees at hotmail.com] > *Sent:* Wednesday, March 20, 2013 12:16 PM > *To:* Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] query creation issues > > > Hi Steve, > > Thanks for your help. I've managed to get the query outputted. I have a > couple of additional questions...after creating my query I need the > footer to show the "name" and the "type" (based on the shapefile > information), as based on the footer.html below > > >

Layer: Major Roads

>
> ALT="Map Image"> >
IDNameType
[NAME][TYPE]
>   > > > > > As when I launch my query it only shows... > > *Name* > > > > *Type* > > > > > > Based on readings from the mapserver website, it looks like I have to > edit the query.html to make this populated...but not sure where > (global.map file?) I can get this information that is supposed to go > between the tags. > > > > > > > > > Thanks, > Mark > >> From: Steve.Lime at state.mn.us >> To:mmirrlees at hotmail.com ; > mapserver-users at lists.osgeo.org >> Subject: RE: [mapserver-users] query creation issues >> Date: Wed, 20 Mar 2013 17:00:47 +0000 >> >> Hi Mark: Personally I'd steer you to the simplified query templates as described here: >> >>http://mapserver.org/development/rfc/ms-rfc-36.html >> >> This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. >> >> That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. >> >> If you want to use the new style templating you'd do something like this: >> >> 1- Define an output format: >> >> OUTPUTFORMAT >> NAME 'my-template' >> DRIVER 'TEMPLATE' >> MIMETYPE 'text/html; subtype=compass' >> FORMATOPTION "FILE=templates/my-template.html" >> END >> >> 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): >> >> WEB >> QUERYFORMAT 'my-template' >> ... >> END >> >> 3- Make layers queryable by adding something like: >> >> TEMPLATE 'void' >> >> 4- Write your template, for example my-template.html might look like: >> >> --- snip --- >> >> This is my template:
>> >> [resultset layer="mjrroads"] >> [feature]Type: [TYPE][/feature] >> [/resultset] >> >> Done presenting layers. >> --- snip --- >> >> Steve >> >> From:mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees >> Sent: Wednesday, March 20, 2013 10:45 AM >> To:mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] query creation issues >> >> Hello everyone, >> >> I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the > .map file but not sure why it's not working. Thanks Mark >> >> # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs >> # Edit this file to customize for your map interface >> # (Created with PyQgis MapServer Export plugin) >> MAP >> NAME "QGIS-MAP" >> # Map image size >> SIZE 500 500 >> UNITS meters >> EXTENT -2400000 -900000 3100000 4000000 >> FONTSET "/wwwroot/fonts/fontset.txt" >> SYMBOLSET "/wwwroot/symbols/symbols.sty" >> PROJECTION >> "proj=lcc" >> "ellps=GRS80" >> "lat_0=49" >> "lon_0=-95" >> "lat_1=49" >> "lat_2=77" >> "datum=NAD83" >> "units=m" >> "no_defs" >> END >> # Background color for the map canvas -- change as desired >> IMAGECOLOR 0 100 250 >> IMAGEQUALITY 95 >> IMAGETYPE agg >> OUTPUTFORMAT >> NAME agg >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> # Legend >> LEGEND >> IMAGECOLOR 255 255 255 >> STATUS ON >> KEYSIZE 18 12 >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> END >> # Web interface definition. Only the template parameter >> # is required to display a map. See MapServer documentation >> WEB >> # Set IMAGEPATH to the path where MapServer should >> # write its output. >> IMAGEPATH "/ms4w/tmp/ms_tmp/" >> # Set IMAGEURL to the url that points to IMAGEPATH >> # as defined in your web server configuration >> IMAGEURL "/ms_tmp/" >> # WMS server settings >> METADATA >> 'ows_title' 'QGIS-MAP' >> 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' >> 'ows_srs' 'EPSG:4326' >> END >> #Scale range at which web interface will operate >> # Template and header/footer settings >> # Only the template parameter is required to display a map. See MapServer documentation >> TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' >> END >> >> SCALEBAR >> STATUS EMBED >> UNITS KILOMETERS >> INTERVALS 3 >> TRANSPARENT TRUE >> OUTLINECOLOR 0 0 0 >> END # End for scalebar >> >> QUERYMAP >> STATUS ON # sets the map to be queryable >> STYLE HILITE # the selected object is highligthed >> END # End for QueryMap >> >> WEB >> TEMPLATE global.html >> IMAGEPATH "/ms4w/tmp/ms_tmp/" >> IMAGEURL "/ms_tmp/" >> HEADER "/maps/M_Mirrlees_assign3/header.html" >> FOOTER "maps/M_Mirrlees_assign3/footer.html" >> EMPTY "/maps/M_Mirrlees_Assign3/blank.html" >> END #End for WEB >> >> >> LAYER >> NAME 'mjrroads' >> TYPE LINE >> DUMP false >> EXTENT -143.210462 39.001401 -50.461045 85.911094 >> DATA '../data/mjrroads.shp' >> METADATA >> 'ows_title' 'mjrroads' >> END >> STATUS default >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'datum=WGS84' >> 'no_defs' >> END >> >> CLASSITEM 'TYPE' >> CLASS >> NAME "default" >> EXPRESSION "" >> STYLE >> WIDTH 0.91 >> COLOR 201 157 32 >> END >> END >> CLASS >> NAME "TYPE = Expressway" >> EXPRESSION "Expressway" >> STYLE >> WIDTH 2.0 >> COLOR 255 0 0 >> END >> END >> CLASS >> NAME "TYPE = Primary Highway" >> EXPRESSION "Primary Highway" >> MAXSCALEDENOM 2500000 >> STYLE >> WIDTH 1.0 >> COLOR 0 0 0 >> END >> END >> END >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pyz at brama.com Wed Mar 20 11:03:53 2013 From: pyz at brama.com (Max Pyziur) Date: Wed, 20 Mar 2013 14:03:53 -0400 (EDT) Subject: [mapserver-users] Noob questions: configuring mapserver rpms on Fedora/CentOS machines Message-ID: Greetings, I've become somewhat deft in using Q-GIS, PostGIS, along w/ PostgreSQL. I'm now set on moving into the Mapserver realm. At the risk of alienating the mature constituency of this list, I have some basic configuration questions. I have mapserver rpms installed on a Fedora 18 system. Mapserver binaries are placed in /usr/bin and /usr/sbin directories. What is the preferred (and more elegant) way of putting relevant binaries into the referenced Apache cgi-bin directory: symbolic links? or copying the binaries into the /var/www/cgi-bin directory? Or is there yet another alternative? One foreseeable issue is the maintenance/updating of binaries via RPM. Much thanks, Max Pyziur pyz at brama.com From mmirrlees at hotmail.com Wed Mar 20 11:53:57 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Wed, 20 Mar 2013 14:53:57 -0400 Subject: [mapserver-users] query creation issues In-Reply-To: References: , , , , , Message-ID: Hi there, Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... IDNameType1164[name][type] Code from mjrroadsquery.html
Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] Code from mjrroads.html

Layer: Major Roads


NameType
and
[shpidx] [name] [type]
  All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. Thanks,Mark From: Steve.Lime at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:41:52 +0000 Straight item tags like that ARE case sensitive. Try [item name=?name?] and [item name=?type?] instead. From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Wednesday, March 20, 2013 1:33 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Unfortunately that didn't work! But I did manage to get the ID chracteristic outputted as I forgot to include that previously. As when I went to edit the query.html page it shows this ID Name Type 1275 [name] [type] Here is the code that is causing issues for me... While this is the code for the header...

Layer: Major Roads


ID Name Type
[shpidx]
[name]
[type]
  As what i'm trying to do is get the name (name of road outputted) and the type (either expressway or major road) Thanks, Mark From: Steve.Lime at state.mn.us To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:22:29 +0000 You need to refer to the attributes next? Steve From: Mark Mirrlees [mailto:mmirrlees at hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below

Layer: Major Roads


ID Name Type
[NAME][TYPE]
  As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the tags. Thanks, Mark > From: Steve.Lime at state.mn.us > To: mmirrlees at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 +0000 > > Hi Mark: Personally I'd steer you to the simplified query templates as described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from presentation. No more header/footer's. Plus you can have multiple presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template:
> > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -2400000 -900000 3100000 4000000 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 100 250 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > QUERYMAP > STATUS ON # sets the map to be queryable > STYLE HILITE # the selected object is highligthed > END # End for QueryMap > > WEB > TEMPLATE global.html > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > HEADER "/maps/M_Mirrlees_assign3/header.html" > FOOTER "maps/M_Mirrlees_assign3/footer.html" > EMPTY "/maps/M_Mirrlees_Assign3/blank.html" > END #End for WEB > > > LAYER > NAME 'mjrroads' > TYPE LINE > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/mjrroads.shp' > METADATA > 'ows_title' 'mjrroads' > END > STATUS default > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > > CLASSITEM 'TYPE' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > COLOR 201 157 32 > END > END > CLASS > NAME "TYPE = Expressway" > EXPRESSION "Expressway" > STYLE > WIDTH 2.0 > COLOR 255 0 0 > END > END > CLASS > NAME "TYPE = Primary Highway" > EXPRESSION "Primary Highway" > MAXSCALEDENOM 2500000 > STYLE > WIDTH 1.0 > COLOR 0 0 0 > END > END > END > -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Wed Mar 20 12:01:26 2013 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 20 Mar 2013 15:01:26 -0400 Subject: [mapserver-users] Noob questions: configuring mapserver rpms on Fedora/CentOS machines In-Reply-To: References: Message-ID: Max, See: http://mapserver.org/cgi/wrapper.html On 20 March 2013 14:03, Max Pyziur wrote: > > Greetings, > > I've become somewhat deft in using Q-GIS, PostGIS, along w/ PostgreSQL. > > I'm now set on moving into the Mapserver realm. > > At the risk of alienating the mature constituency of this list, I have > some basic configuration questions. > > I have mapserver rpms installed on a Fedora 18 system. Mapserver binaries > are placed in /usr/bin and /usr/sbin directories. > > What is the preferred (and more elegant) way of putting relevant binaries > into the referenced Apache cgi-bin directory: symbolic links? or copying > the binaries into the /var/www/cgi-bin directory? > > Or is there yet another alternative? > > One foreseeable issue is the maintenance/updating of binaries via RPM. > > Much thanks, > > Max Pyziur > pyz at brama.com > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Wed Mar 20 12:46:31 2013 From: mmirrlees at hotmail.com (Mark Mirrlees) Date: Wed, 20 Mar 2013 15:46:31 -0400 Subject: [mapserver-users] query creation issues In-Reply-To: References: , , , , , , , , , , , Message-ID: Does anyone have any updates on how to fix this? As I mentioned before I managed to get the ID field populated whenever I query the map but I need to get the same thing for the name of the road and the type of road... If there is anything else that you require please let me know as this is causing a great deal of confusion why it won't work! Thanks,Mark From: mmirrlees at hotmail.com To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Date: Wed, 20 Mar 2013 14:53:57 -0400 Subject: Re: [mapserver-users] query creation issues Hi there, Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... IDNameType1164[name][type] Code from mjrroadsquery.html Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] Code from mjrroads.html

Layer: Major Roads


Name Type
and
[shpidx] [name] [type]
  All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. Thanks,Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From geomartino at gmail.com Wed Mar 20 12:50:37 2013 From: geomartino at gmail.com (Martin Ouellet) Date: Wed, 20 Mar 2013 15:50:37 -0400 Subject: [mapserver-users] Limit caching for some zoom level only Message-ID: Hi all, I would like to limit the caching for some levels (ex: 10 to 15) and fallback with the WMS request (without caching the tiles) for the other zoom level (ex: 0 to 9 and 16 to 19) I've try this in the config (using minzoom and maxzoom): Ortho1948 disk google PNG 5 5 10 3600 The tiles are generated for level 10 to 15 but for the other zoom level, the WMS is not called. Is it possible to configure mapcache to do that? regards, MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Wed Mar 20 13:13:52 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Wed, 20 Mar 2013 16:13:52 -0400 Subject: [mapserver-users] query creation issues In-Reply-To: References: , , , , , , , , , , , Message-ID: <7397F5AEFA914005846AB10EF473676D@worthlaptop> Did you see this in Steve's email: > layer=mjrroads&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&ma > p=[map]">--> > > > > > Attribute binding is case sensitive. For shapefiles it should be UPPERCASE and for postgis it should be lowercase. Also, you tags are not nested correctly, you have a tr nested inside a tr. :-O -Steve W Your data comes from shapefiles. You need to put "name" and "type" in upper case. [NAME] [TYPE] Worth _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Wednesday, March 20, 2013 3:47 PM To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] query creation issues Does anyone have any updates on how to fix this? As I mentioned before I managed to get the ID field populated whenever I query the map but I need to get the same thing for the name of the road and the type of road... If there is anything else that you require please let me know as this is causing a great deal of confusion why it won't work! Thanks, Mark _____ From: mmirrlees at hotmail.com To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Date: Wed, 20 Mar 2013 14:53:57 -0400 Subject: Re: [mapserver-users] query creation issues Hi there, Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... ID Name Type 1164 [name] [type] Code from mjrroadsquery.html Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] Code from mjrroads.html

Layer: Major Roads


ID Name Type
[shpidx]
[name]
[type]
[shpidx] [name] [type]
  All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. Thanks, Mark _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.bitner at gmail.com Wed Mar 20 13:24:20 2013 From: david.bitner at gmail.com (David William Bitner) Date: Wed, 20 Mar 2013 15:24:20 -0500 Subject: [mapserver-users] FOSS4G NA Program Announced, Early Bird Deadline April 1 Message-ID: Preliminary Program Announced! The Program Committee has announced the preliminary program. We received a lot of great abstracts and are excited about the quality and diversity of the program. Early Bird Deadline Just a reminder, the Early Bird deadline for registration is sneaking up on us very soon. Please make sure to register by April 1st to get the discount rate! Sponsors We've got a great list of sponsors lined up for the conference, but are certainly looking for more. Don't be left out in the cold on this opportunity! Many thanks to all those who have committed to sponsoring to date, this conference would not be possible without your support. Student/Mentor Opportunities If you are a student or a seasoned professional willing to act as a mentor, please check out our Student Opportunities page . Workshops The Minnesota GIS/LIS Consortium in collaboration with the FOSS4G North American Conference is pleased to present a diverse list of workshop offerings on Tuesday, May 21st, at the University of Minnesota Minneapolis (the day before the FOSS4G NA conference!). These workshops will encompass both open source and proprietary solutions. Registration for this event is handled by the Minnesota GIS/LIS Consortium. Visualizing Neighborhoods Hackathon The University of Minnesota Center for Urban and Regional Affairs and Open Twin Cities is scheduling a hackathon to coincide with FOSS4G NA and the Neighborhoods, USA conference that will also be in Minneapolis. *Visualizing Neighborhoods* is a day-long event to bring together neighborhood leaders, technologists, data visualizers, designers, artists, scientists, civil servants, and anyone else interested to explore how data can be used for research, analyzing, mapping, outreach, engagement, and communication in our neighborhoods. The goals are to start conversations, build community, experiment, and prototype projects for neighborhoods. -- ************************************ David William Bitner FOSS4G North America 2013 Conference Chair dbSpatial LLC bitner at dbspatial.com 612-424-9932 -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmirrlees at hotmail.com Wed Mar 20 13:39:45 2013 From: mmirrlees at hotmail.com (Mark Mirrlees ) Date: Wed, 20 Mar 2013 20:39:45 +0000 Subject: [mapserver-users] query creation issues Message-ID: Hi there I guess I misread that! Thanks for everyone's help! As everything is working the way is needed! Mark Sent from my BlackBerry? powered by Virgin Mobile. -----Original Message----- From: Worth Lutz Date: Wed, 20 Mar 2013 20:13:52 To: ; Subject: RE: [mapserver-users] query creation issues Did you see this in Steve's email: ? > layer=mjrroads&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&ma > p=[map]">--> > >?? >????? >?? > ? Attribute binding is case sensitive. For shapefiles it should be UPPERCASE and for postgis it should be lowercase. ? Also, you tags are not nested correctly, you have a tr nested inside a tr. :-O ? -Steve W ? ? Your data comes from shapefiles.? You need to put "name" and "type" in upper case. ? ?[NAME]? [TYPE] ? ? Worth ? ---------------- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Wednesday, March 20, 2013 3:47 PM To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] query creation issues ? Does anyone have any updates on how to fix this? As I mentioned before I managed to get the ID field populated whenever I query the map but I need to get the same thing for the name of the road and the type of road... ? If there is anything else that you require please let me know as this is causing a great deal of confusion why it won't work! ? Thanks, Mark ---------------- From: mmirrlees at hotmail.com To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org Date: Wed, 20 Mar 2013 14:53:57 -0400 Subject: Re: [mapserver-users] query creation issues Hi there,?Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... ? ID Name Type 1164 [name] [type] ? Code from mjrroadsquery.html ? ??? ? ? Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] ? Code from mjrroads.html ?

Layer: Major Roads


ID Name Type
[shpidx]
[name]
[type]
[shpidx][name][type]
  ? ? ? ? All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. ? Thanks, Mark ---------------- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13 From icadedt at yahoo.fr Thu Mar 21 01:35:05 2013 From: icadedt at yahoo.fr (Icadedt) Date: Thu, 21 Mar 2013 08:35:05 +0000 (GMT) Subject: [mapserver-users] mapcache wms error 502 bad gateway Message-ID: <1363854905.27754.YahooMailNeo@web28904.mail.ir2.yahoo.com> Hi, with my url resource below i have the error 502 'bad gateway' http://localhost/mapcache/?LAYERS=test&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=0,-45,45,0&WIDTH=256&HEIGHT=256 Is it possible to have more information on this error ? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From gavlig at gmail.com Thu Mar 21 13:42:58 2013 From: gavlig at gmail.com (Vlad Gapchich) Date: Thu, 21 Mar 2013 22:42:58 +0200 Subject: [mapserver-users] [tinyOWS]Trouble with feature insertion Message-ID: Hello guys! I was very glad to find that tinyows supports wfs-t and tried it out with a simple example. However, it didn't work and i can't find a particular reason for that. I dug deep into code and found out that error happens on xmlSchemaValidateDoc, error code 1843 - Element '{ http://www.opengis.net/wfs}Transaction': Character content other than whitespace is not allowed because the content type is 'element-only'. I understand that it's not directly tinyows' issue, but i doubt that it's libxml2 either. The request i send looks like this: 30.454343,50.447954 Any help would be much appreciated, thanks in advance Best regards, Vlad -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdikiy at volz.ua Fri Mar 22 00:28:24 2013 From: sdikiy at volz.ua (Serge Dikiy) Date: Fri, 22 Mar 2013 09:28:24 +0200 Subject: [mapserver-users] [tinyOWS]Trouble with feature insertion In-Reply-To: References: Message-ID: Hi, Vlad Please show your configuration file (config.xml). BR On Thu, Mar 21, 2013 at 10:42 PM, Vlad Gapchich wrote: > Hello guys! > I was very glad to find that tinyows supports wfs-t and tried it out with a > simple example. However, it didn't work and i can't find a particular reason > for that. I dug deep into code and found out that error happens on > xmlSchemaValidateDoc, error code 1843 - Element > '{http://www.opengis.net/wfs}Transaction': Character content other than > whitespace is not allowed because the content type is 'element-only'. I > understand that it's not directly tinyows' issue, but i doubt that it's > libxml2 either. > > The request i send looks like this: > > service='WFS' > version='1.1.0' > xmlns:wfs='http://www.opengis.net/wfs' > xmlns:gml='http://www.opengis.net/gml' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xmlns:map='http://www.tinyows.org/map' > xsi:schemaLocation='http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd > > http://127.0.0.1/cgi-bin/tinyows?service=WFS&request=DescribeFeatureType&version=1.1.0'/> > > > > > 30.454343,50.447954 > > > > > > > Any help would be much appreciated, thanks in advance > > Best regards, > Vlad > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Andreas.Eichner at sid.sachsen.de Fri Mar 22 00:26:04 2013 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 22 Mar 2013 08:26:04 +0100 Subject: [mapserver-users] [tinyOWS]Trouble with feature insertion References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D05F30C76@KS-EVS1.smi.sachsen.de> Try escaping the '&' in the schema location URL as '&' as otherwise it would be interpreted as an enity. And schemaLocation should be a list of pairs of namespace name and location. It's probably a good idea to validate the request document before posting it to TinyOWS... > The request i send looks like this: > > service='WFS' > version='1.1.0' > xmlns:wfs='http://www.opengis.net/wfs' > xmlns:gml='http://www.opengis.net/gml' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xmlns:map='http://www.tinyows.org/map' > xsi:schemaLocation='http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd > > http://127.0.0.1/cgi-bin/tinyows?service=WFS&request=DescribeF eatureType&version=1.1.0'/> > > > > srsName='urn:x-ogc:def:crs:EPSG:4326'> > 30.454343,50.447954 > > > > > From jukka.rahkonen at mmmtike.fi Fri Mar 22 01:05:34 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 22 Mar 2013 08:05:34 +0000 Subject: [mapserver-users] [tinyOWS]Trouble with feature insertion Message-ID: <84446DEF76453C439E9E97E438E13A639F6DB0@suutari.haapa.mmm.fi> Hi, If you are on Windows you may not success. At least the version which is available for MS4W has a bug and it does not do inserts. One error I can see in your request is that it is using geometry in GML2 style with WFS 1.1.0. I would be at least a good habit to use gml:pos there. This insert works for me on Linux. -160567.85652445967 5936050.398293516 -Jukka Rahkonen Eichner, Andreas wrote: > > > Try escaping the '&' in the schema location URL as '&' as otherwise it > would be interpreted as an enity. And schemaLocation should be a list of > pairs of namespace name and location. It's probably a good idea to validate > the request document before posting it to TinyOWS... > > > The request i send looks like this: > > > > > service='WFS' > > version='1.1.0' > > xmlns:wfs='http://www.opengis.net/wfs' > > xmlns:gml='http://www.opengis.net/gml' > > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > > xmlns:map='http://www.tinyows.org/map' > > xsi:schemaLocation='http://www.opengis.net/wfs > > > > http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd > > > > http://127.0.0.1/cgi-bin/tinyows?service=WFS&request=DescribeF > eatureType&version=1.1.0'/> > > > > > > > > > srsName='urn:x-ogc:def:crs:EPSG:4326'> > > 30.454343,50.447954 > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gavlig at gmail.com Fri Mar 22 03:09:32 2013 From: gavlig at gmail.com (Vlad Gapchich) Date: Fri, 22 Mar 2013 12:09:32 +0200 Subject: [mapserver-users] [tinyOWS]Trouble with feature insertion In-Reply-To: <84446DEF76453C439E9E97E438E13A639F6DB0@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A639F6DB0@suutari.haapa.mmm.fi> Message-ID: Thank you all guys for your support! :) I've found the answer - it was a slash at the end of wfs:Transaction openning tag(i have no idea how it got there). Anyways, i'll leave here a working example of insert request just in case: 30.454343 50.447954 P.S. Changes i made: Thanks to Andreas Eichner - escaping character in map:schemaLocation, to Rahkonen Juka - gml2 -> gml3 in gml:Point - separate schemaLocation for map(don't even know what i was thinking before) And for Serge Dikiy my config.xml: And i forgot to mention before that i use ubuntu 12.10 as an os 2013/3/22 Rahkonen Jukka > Hi, > > If you are on Windows you may not success. At least the version which is > available for MS4W has a bug and it does not do inserts. > One error I can see in your request is that it is using geometry in GML2 > style with WFS 1.1.0. I would be at least a good habit to use gml:pos > there. This insert works for me on Linux. > > > xmlns:gml='http://www.opengis.net/gml' > xmlns:ogc='http://www.opengis.net/ogc' > xmlns:wfs='http://www.opengis.net/wfs' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xsi:schemaLocation='http://www.opengis.net/wfs/1.1.0/WFS-transaction.xsd' > xmlns:lv='http://latuviitta.fi/' > > > > > srsName="urn:ogc:def:crs:EPSG::3067" srsDimension="2"> > -160567.85652445967 5936050.398293516 > > > > > > > > > -Jukka Rahkonen > > > Eichner, Andreas wrote: > > > > > > Try escaping the '&' in the schema location URL as '&' as otherwise > it > > would be interpreted as an enity. And schemaLocation should be a list of > > pairs of namespace name and location. It's probably a good idea to > validate > > the request document before posting it to TinyOWS... > > > > > The request i send looks like this: > > > > > > > > service='WFS' > > > version='1.1.0' > > > xmlns:wfs='http://www.opengis.net/wfs' > > > xmlns:gml='http://www.opengis.net/gml' > > > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > > > xmlns:map='http://www.tinyows.org/map' > > > xsi:schemaLocation='http://www.opengis.net/wfs > > > > > > http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd > > > > > > http://127.0.0.1/cgi-bin/tinyows?service=WFS&request=DescribeF > > eatureType&version=1.1.0'/> > > > > > > > > > > > > > > srsName='urn:x-ogc:def:crs:EPSG:4326'> > > > 30.454343,50.447954 > > > > > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at 4each.co.uk Fri Mar 22 05:29:00 2013 From: mark at 4each.co.uk (Mark Davidson) Date: Fri, 22 Mar 2013 12:29:00 +0000 Subject: [mapserver-users] CLUSTER - Average Value Message-ID: Hi All, I'm new to using mapserver and have been implementing a WMS overlay using the CLUSTER funcionality got pretty much everything I need working, but I can't seem to get an average value of a cluster to use as part of the styling and labelling. I've tried everything I can think of to try and get it working but am having no luck. I thought that since you can do [Max:itemname] and [Count:itemname] I would be able to do an equation to work out the average, but I just get syntax errors with everything I try and haven't been able to find any examples of doing this. Could anyone tell me if its possible to do this? And if so provide an example? Any input would be very much appreciated, Thanks, Mark Davidson -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Mar 22 06:15:29 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Mar 2013 14:15:29 +0100 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: Mark, I think LABEL level expressions would work in this case. Something like: LABEL TEXT ([Sum:itemname]/[Count:itemname]) TYPE TRUETYPE ... END Best regards, Tamas 2013/3/22 Mark Davidson > Hi All, > > I'm new to using mapserver and have been implementing a WMS overlay using > the CLUSTER funcionality got pretty much everything I need working, but I > can't seem to get an average value of a cluster to use as part of the > styling and labelling. > I've tried everything I can think of to try and get it working but am > having no luck. I thought that since you can do [Max:itemname] and > [Count:itemname] I would be able to do an equation to work out the average, > but I just get syntax errors with everything I try and haven't been able to > find any examples of doing this. > > Could anyone tell me if its possible to do this? And if so provide an > example? > > Any input would be very much appreciated, > > Thanks, > > Mark Davidson > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at 4each.co.uk Fri Mar 22 06:49:46 2013 From: mark at 4each.co.uk (Mark Davidson) Date: Fri, 22 Mar 2013 13:49:46 +0000 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: That works great thanks Tamas. I'm now trying to use that expression as a condition on a class. I'm trying to style the clusters a different colour depending on the calculation of that expression. Can multiple styles be applied to a single cluster point? CLASS NAME "Clustered Point" EXPRESSION ("[Cluster:FeatureCount]" != "1") STYLE SIZE 22 SYMBOL "circle" COLOR 255 0 0 END LABEL TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature]) FONT "arial" TYPE truetype SIZE 8 COLOR 255 255 255 END END CLASS EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) > 1) STYLE SYMBOL "circle" COLOR 0 255 0 END END On 22 March 2013 13:15, Tamas Szekeres wrote: > Mark, > > I think LABEL level expressions would work in this case. Something like: > > LABEL > TEXT ([Sum:itemname]/[Count:itemname]) > TYPE TRUETYPE > ... > END > > Best regards, > > Tamas > > > > 2013/3/22 Mark Davidson > >> Hi All, >> >> I'm new to using mapserver and have been implementing a WMS overlay using >> the CLUSTER funcionality got pretty much everything I need working, but I >> can't seem to get an average value of a cluster to use as part of the >> styling and labelling. >> I've tried everything I can think of to try and get it working but am >> having no luck. I thought that since you can do [Max:itemname] and >> [Count:itemname] I would be able to do an equation to work out the average, >> but I just get syntax errors with everything I try and haven't been able to >> find any examples of doing this. >> >> Could anyone tell me if its possible to do this? And if so provide an >> example? >> >> Any input would be very much appreciated, >> >> Thanks, >> >> Mark Davidson >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Mar 22 06:59:47 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Mar 2013 14:59:47 +0100 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: I think adding multiple classes to the clustered layer (with multiple expressions regarding to the intervals) should do the job. Best regards, Tamas 2013/3/22 Mark Davidson > That works great thanks Tamas. I'm now trying to use that expression as a > condition on a class. > > I'm trying to style the clusters a different colour depending on the > calculation of that expression. Can multiple styles be applied to a single > cluster point? > > CLASS > NAME "Clustered Point" > EXPRESSION ("[Cluster:FeatureCount]" != "1") > STYLE > SIZE 22 > SYMBOL "circle" > COLOR 255 0 0 > END > LABEL > TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature]) > FONT "arial" > TYPE truetype > SIZE 8 > COLOR 255 255 255 > END > END > > CLASS > EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) > 1) > STYLE > SYMBOL "circle" > COLOR 0 255 0 > END > END > > > > On 22 March 2013 13:15, Tamas Szekeres wrote: > >> Mark, >> >> I think LABEL level expressions would work in this case. Something like: >> >> LABEL >> TEXT ([Sum:itemname]/[Count:itemname]) >> TYPE TRUETYPE >> ... >> END >> >> Best regards, >> >> Tamas >> >> >> >> 2013/3/22 Mark Davidson >> >>> Hi All, >>> >>> I'm new to using mapserver and have been implementing a WMS overlay >>> using the CLUSTER funcionality got pretty much everything I need working, >>> but I can't seem to get an average value of a cluster to use as part of the >>> styling and labelling. >>> I've tried everything I can think of to try and get it working but am >>> having no luck. I thought that since you can do [Max:itemname] and >>> [Count:itemname] I would be able to do an equation to work out the average, >>> but I just get syntax errors with everything I try and haven't been able to >>> find any examples of doing this. >>> >>> Could anyone tell me if its possible to do this? And if so provide an >>> example? >>> >>> Any input would be very much appreciated, >>> >>> Thanks, >>> >>> Mark Davidson >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Mar 22 07:10:43 2013 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 22 Mar 2013 15:10:43 +0100 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: Unless the cluster introduced some new codepaths in the rendering chain, I do not think this is the case. Only a *single* class gets used per rendered feature (the first one matching all expression and min/maxscale constraints) -- thomas On 22 March 2013 14:59, Tamas Szekeres wrote: > I think adding multiple classes to the clustered layer (with multiple > expressions regarding to the intervals) should do the job. > > Best regards, > > Tamas > > > > 2013/3/22 Mark Davidson >> >> That works great thanks Tamas. I'm now trying to use that expression as a >> condition on a class. >> >> I'm trying to style the clusters a different colour depending on the >> calculation of that expression. Can multiple styles be applied to a single >> cluster point? >> >> CLASS >> NAME "Clustered Point" >> EXPRESSION ("[Cluster:FeatureCount]" != "1") >> STYLE >> SIZE 22 >> SYMBOL "circle" >> COLOR 255 0 0 >> END >> LABEL >> TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature]) >> FONT "arial" >> TYPE truetype >> SIZE 8 >> COLOR 255 255 255 >> END >> END >> >> CLASS >> EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) > 1) >> STYLE >> SYMBOL "circle" >> COLOR 0 255 0 >> END >> END >> >> >> >> On 22 March 2013 13:15, Tamas Szekeres wrote: >>> >>> Mark, >>> >>> I think LABEL level expressions would work in this case. Something like: >>> >>> LABEL >>> TEXT ([Sum:itemname]/[Count:itemname]) >>> TYPE TRUETYPE >>> ... >>> END >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2013/3/22 Mark Davidson >>>> >>>> Hi All, >>>> >>>> I'm new to using mapserver and have been implementing a WMS overlay >>>> using the CLUSTER funcionality got pretty much everything I need working, >>>> but I can't seem to get an average value of a cluster to use as part of the >>>> styling and labelling. >>>> I've tried everything I can think of to try and get it working but am >>>> having no luck. I thought that since you can do [Max:itemname] and >>>> [Count:itemname] I would be able to do an equation to work out the average, >>>> but I just get syntax errors with everything I try and haven't been able to >>>> find any examples of doing this. >>>> >>>> Could anyone tell me if its possible to do this? And if so provide an >>>> example? >>>> >>>> Any input would be very much appreciated, >>>> >>>> Thanks, >>>> >>>> Mark Davidson >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Fri Mar 22 08:21:22 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Mar 2013 16:21:22 +0100 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: May be I misunderstood something, but the requirement of "style the clusters a different colour depending on the calculation of that expression" requires only one class per expression condition. Tamas 2013/3/22 thomas bonfort > Unless the cluster introduced some new codepaths in the rendering > chain, I do not think this is the case. Only a *single* class gets > used per rendered feature (the first one matching all expression and > min/maxscale constraints) > > -- > thomas > > On 22 March 2013 14:59, Tamas Szekeres wrote: > > I think adding multiple classes to the clustered layer (with multiple > > expressions regarding to the intervals) should do the job. > > > > Best regards, > > > > Tamas > > > > > > > > 2013/3/22 Mark Davidson > >> > >> That works great thanks Tamas. I'm now trying to use that expression as > a > >> condition on a class. > >> > >> I'm trying to style the clusters a different colour depending on the > >> calculation of that expression. Can multiple styles be applied to a > single > >> cluster point? > >> > >> CLASS > >> NAME "Clustered Point" > >> EXPRESSION ("[Cluster:FeatureCount]" != "1") > >> STYLE > >> SIZE 22 > >> SYMBOL "circle" > >> COLOR 255 0 0 > >> END > >> LABEL > >> TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature]) > >> FONT "arial" > >> TYPE truetype > >> SIZE 8 > >> COLOR 255 255 255 > >> END > >> END > >> > >> CLASS > >> EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) > > 1) > >> STYLE > >> SYMBOL "circle" > >> COLOR 0 255 0 > >> END > >> END > >> > >> > >> > >> On 22 March 2013 13:15, Tamas Szekeres wrote: > >>> > >>> Mark, > >>> > >>> I think LABEL level expressions would work in this case. Something > like: > >>> > >>> LABEL > >>> TEXT ([Sum:itemname]/[Count:itemname]) > >>> TYPE TRUETYPE > >>> ... > >>> END > >>> > >>> Best regards, > >>> > >>> Tamas > >>> > >>> > >>> > >>> 2013/3/22 Mark Davidson > >>>> > >>>> Hi All, > >>>> > >>>> I'm new to using mapserver and have been implementing a WMS overlay > >>>> using the CLUSTER funcionality got pretty much everything I need > working, > >>>> but I can't seem to get an average value of a cluster to use as part > of the > >>>> styling and labelling. > >>>> I've tried everything I can think of to try and get it working but am > >>>> having no luck. I thought that since you can do [Max:itemname] and > >>>> [Count:itemname] I would be able to do an equation to work out the > average, > >>>> but I just get syntax errors with everything I try and haven't been > able to > >>>> find any examples of doing this. > >>>> > >>>> Could anyone tell me if its possible to do this? And if so provide an > >>>> example? > >>>> > >>>> Any input would be very much appreciated, > >>>> > >>>> Thanks, > >>>> > >>>> Mark Davidson > >>>> > >>>> _______________________________________________ > >>>> mapserver-users mailing list > >>>> mapserver-users at lists.osgeo.org > >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>> > >>> > >> > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at 4each.co.uk Fri Mar 22 08:27:27 2013 From: mark at 4each.co.uk (Mark Davidson) Date: Fri, 22 Mar 2013 15:27:27 +0000 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: What in essence I would like to be able to do is set one CLASS with a style to make the clusters circles with labels. Then have additional classes that have expressions to set the colouring of the circles dependant on the average value. Does that make it clearer? On 22 March 2013 15:21, Tamas Szekeres wrote: > May be I misunderstood something, but the requirement of "style the > clusters a different colour depending on the calculation of that > expression" requires only one class per expression condition. > > Tamas > > > > 2013/3/22 thomas bonfort > >> Unless the cluster introduced some new codepaths in the rendering >> chain, I do not think this is the case. Only a *single* class gets >> used per rendered feature (the first one matching all expression and >> min/maxscale constraints) >> >> -- >> thomas >> >> On 22 March 2013 14:59, Tamas Szekeres wrote: >> > I think adding multiple classes to the clustered layer (with multiple >> > expressions regarding to the intervals) should do the job. >> > >> > Best regards, >> > >> > Tamas >> > >> > >> > >> > 2013/3/22 Mark Davidson >> >> >> >> That works great thanks Tamas. I'm now trying to use that expression >> as a >> >> condition on a class. >> >> >> >> I'm trying to style the clusters a different colour depending on the >> >> calculation of that expression. Can multiple styles be applied to a >> single >> >> cluster point? >> >> >> >> CLASS >> >> NAME "Clustered Point" >> >> EXPRESSION ("[Cluster:FeatureCount]" != "1") >> >> STYLE >> >> SIZE 22 >> >> SYMBOL "circle" >> >> COLOR 255 0 0 >> >> END >> >> LABEL >> >> TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature]) >> >> FONT "arial" >> >> TYPE truetype >> >> SIZE 8 >> >> COLOR 255 255 255 >> >> END >> >> END >> >> >> >> CLASS >> >> EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) >> > 1) >> >> STYLE >> >> SYMBOL "circle" >> >> COLOR 0 255 0 >> >> END >> >> END >> >> >> >> >> >> >> >> On 22 March 2013 13:15, Tamas Szekeres wrote: >> >>> >> >>> Mark, >> >>> >> >>> I think LABEL level expressions would work in this case. Something >> like: >> >>> >> >>> LABEL >> >>> TEXT ([Sum:itemname]/[Count:itemname]) >> >>> TYPE TRUETYPE >> >>> ... >> >>> END >> >>> >> >>> Best regards, >> >>> >> >>> Tamas >> >>> >> >>> >> >>> >> >>> 2013/3/22 Mark Davidson >> >>>> >> >>>> Hi All, >> >>>> >> >>>> I'm new to using mapserver and have been implementing a WMS overlay >> >>>> using the CLUSTER funcionality got pretty much everything I need >> working, >> >>>> but I can't seem to get an average value of a cluster to use as part >> of the >> >>>> styling and labelling. >> >>>> I've tried everything I can think of to try and get it working but am >> >>>> having no luck. I thought that since you can do [Max:itemname] and >> >>>> [Count:itemname] I would be able to do an equation to work out the >> average, >> >>>> but I just get syntax errors with everything I try and haven't been >> able to >> >>>> find any examples of doing this. >> >>>> >> >>>> Could anyone tell me if its possible to do this? And if so provide an >> >>>> example? >> >>>> >> >>>> Any input would be very much appreciated, >> >>>> >> >>>> Thanks, >> >>>> >> >>>> Mark Davidson >> >>>> >> >>>> _______________________________________________ >> >>>> mapserver-users mailing list >> >>>> mapserver-users at lists.osgeo.org >> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >>>> >> >>> >> >> >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Mar 22 13:25:12 2013 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Mar 2013 21:25:12 +0100 Subject: [mapserver-users] CLUSTER - Average Value In-Reply-To: References: Message-ID: For each feature only one class is selected at rendering time. For this reason you should define the multiple classes for the circles of different colours (and expressions) and then copy (duplicate) the label setting in each class. Best regards, Tamas 2013/3/22 Mark Davidson > What in essence I would like to be able to do is set one CLASS with a > style to make the clusters circles with labels. Then have additional > classes that have expressions to set the colouring of the circles dependant > on the average value. Does that make it clearer? > > On 22 March 2013 15:21, Tamas Szekeres wrote: > >> May be I misunderstood something, but the requirement of "style the >> clusters a different colour depending on the calculation of that >> expression" requires only one class per expression condition. >> >> Tamas >> >> >> >> 2013/3/22 thomas bonfort >> >>> Unless the cluster introduced some new codepaths in the rendering >>> chain, I do not think this is the case. Only a *single* class gets >>> used per rendered feature (the first one matching all expression and >>> min/maxscale constraints) >>> >>> -- >>> thomas >>> >>> On 22 March 2013 14:59, Tamas Szekeres wrote: >>> > I think adding multiple classes to the clustered layer (with multiple >>> > expressions regarding to the intervals) should do the job. >>> > >>> > Best regards, >>> > >>> > Tamas >>> > >>> > >>> > >>> > 2013/3/22 Mark Davidson >>> >> >>> >> That works great thanks Tamas. I'm now trying to use that expression >>> as a >>> >> condition on a class. >>> >> >>> >> I'm trying to style the clusters a different colour depending on the >>> >> calculation of that expression. Can multiple styles be applied to a >>> single >>> >> cluster point? >>> >> >>> >> CLASS >>> >> NAME "Clustered Point" >>> >> EXPRESSION ("[Cluster:FeatureCount]" != "1") >>> >> STYLE >>> >> SIZE 22 >>> >> SYMBOL "circle" >>> >> COLOR 255 0 0 >>> >> END >>> >> LABEL >>> >> TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature]) >>> >> FONT "arial" >>> >> TYPE truetype >>> >> SIZE 8 >>> >> COLOR 255 255 255 >>> >> END >>> >> END >>> >> >>> >> CLASS >>> >> EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) >>> > 1) >>> >> STYLE >>> >> SYMBOL "circle" >>> >> COLOR 0 255 0 >>> >> END >>> >> END >>> >> >>> >> >>> >> >>> >> On 22 March 2013 13:15, Tamas Szekeres wrote: >>> >>> >>> >>> Mark, >>> >>> >>> >>> I think LABEL level expressions would work in this case. Something >>> like: >>> >>> >>> >>> LABEL >>> >>> TEXT ([Sum:itemname]/[Count:itemname]) >>> >>> TYPE TRUETYPE >>> >>> ... >>> >>> END >>> >>> >>> >>> Best regards, >>> >>> >>> >>> Tamas >>> >>> >>> >>> >>> >>> >>> >>> 2013/3/22 Mark Davidson >>> >>>> >>> >>>> Hi All, >>> >>>> >>> >>>> I'm new to using mapserver and have been implementing a WMS overlay >>> >>>> using the CLUSTER funcionality got pretty much everything I need >>> working, >>> >>>> but I can't seem to get an average value of a cluster to use as >>> part of the >>> >>>> styling and labelling. >>> >>>> I've tried everything I can think of to try and get it working but >>> am >>> >>>> having no luck. I thought that since you can do [Max:itemname] and >>> >>>> [Count:itemname] I would be able to do an equation to work out the >>> average, >>> >>>> but I just get syntax errors with everything I try and haven't been >>> able to >>> >>>> find any examples of doing this. >>> >>>> >>> >>>> Could anyone tell me if its possible to do this? And if so provide >>> an >>> >>>> example? >>> >>>> >>> >>>> Any input would be very much appreciated, >>> >>>> >>> >>>> Thanks, >>> >>>> >>> >>>> Mark Davidson >>> >>>> >>> >>>> _______________________________________________ >>> >>>> mapserver-users mailing list >>> >>>> mapserver-users at lists.osgeo.org >>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>>> >>> >>> >>> >> >>> > >>> > >>> > _______________________________________________ >>> > mapserver-users mailing list >>> > mapserver-users at lists.osgeo.org >>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Sun Mar 24 13:33:40 2013 From: wal3 at mindspring.com (Worth Lutz) Date: Sun, 24 Mar 2013 16:33:40 -0400 Subject: [mapserver-users] MapCache - Best Practice for tag Message-ID: <5E7A1FF680C04F07A9785D01E9D31CAB@worthlaptop> Hi, I'm trying to set up a mapcache and have it working fine. My question is how to set the tag. I have data which is static and data which could change daily. I've been using a sqlite database in my testing. I can picture putting the static data into one sqlite database and maybe putting the at some large value. I would then put the variable data into separate sqlite databases and delete them when the data changes. How would you set the tag for this data? Some client side caching is desirable but I do not see how to set a value which will allow data requested in the late afternoon or evening to be refreshed after an overnight update if the value is set to 12 hrs or so. I'd like to here how others are setting up their caches and the reasons behind the settings. Thanks, Worth Lutz -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at 4each.co.uk Mon Mar 25 03:44:42 2013 From: mark at 4each.co.uk (Mark Davidson) Date: Mon, 25 Mar 2013 10:44:42 +0000 Subject: [mapserver-users] GetFeatureInfo GML Message-ID: Hi All, I'm trying to do a GetFeaureInfo on my layer and return it in GML format. The request works fine but I can't seem to get any data to come back apart from the point bounds. Test Points -269220.293738,6545357.533946 -269220.293738,6545357.533946 -253276.741855,6554416.311795 -253276.741855,6554416.311795 What I would like to be able to do is get the feature id as what happends with the plain output GetFeatureInfo results: Layer 'test' Feature 326: Feature 327: I've set `gml_include_items` to * and `wms_include_item` to * as well but still not having any luck. Could someone point me in the direction of doing this? Many thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Mon Mar 25 04:41:23 2013 From: SSchantz at BfS.de (Stefan Schantz) Date: Mon, 25 Mar 2013 12:41:23 +0100 Subject: [mapserver-users] GetFeatureInfo GML In-Reply-To: References: Message-ID: <515037E3.5070503@BfS.de> Hi Mark, I use gml_include_items 'all' Best regards Stefan Am 25.03.2013 11:44, schrieb Mark Davidson: > Hi All, > > I'm trying to do a GetFeaureInfo on my layer and return it in GML > format. The request works fine but I can't seem to get any data to > come back apart from the point bounds. > > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > Test Points > > > > -269220.293738,6545357.533946 > -269220.293738,6545357.533946 > > > > > > > -253276.741855,6554416.311795 > -253276.741855,6554416.311795 > > > > > What I would like to be able to do is get the feature id as what > happends with the plain output > > GetFeatureInfo results: > > Layer 'test' > Feature 326: > Feature 327: > > I've set `gml_include_items` to * and `wms_include_item` to * as well > but still not having any luck. > > Could someone point me in the direction of doing this? > > Many thanks, > > Mark > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at 4each.co.uk Mon Mar 25 06:30:13 2013 From: mark at 4each.co.uk (Mark Davidson) Date: Mon, 25 Mar 2013 13:30:13 +0000 Subject: [mapserver-users] GetFeatureInfo GML In-Reply-To: <515037E3.5070503@BfS.de> References: <515037E3.5070503@BfS.de> Message-ID: Hi Stefan, Thanks for the suggestion, I've tried that but still getting the same output as before. Any other suggestions? Thanks again, Mark On 25 March 2013 11:41, Stefan Schantz wrote: > Hi Mark, > I use gml_include_items 'all' > > Best regards > Stefan > > Am 25.03.2013 11:44, schrieb Mark Davidson: > > Hi All, > > I'm trying to do a GetFeaureInfo on my layer and return it in GML format. > The request works fine but I can't seem to get any data to come back apart > from the point bounds. > > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > Test Points > > > > -269220.293738,6545357.533946 > -269220.293738,6545357.533946 > > > > > > > -253276.741855,6554416.311795 > -253276.741855,6554416.311795 > > > > > What I would like to be able to do is get the feature id as what happends > with the plain output > > GetFeatureInfo results: > > Layer 'test' > Feature 326: > Feature 327: > > I've set `gml_include_items` to * and `wms_include_item` to * as well but > still not having any luck. > > Could someone point me in the direction of doing this? > > Many thanks, > > Mark > > > > > > _______________________________________________ > mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Mon Mar 25 06:42:34 2013 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Mon, 25 Mar 2013 09:42:34 -0400 Subject: [mapserver-users] GetFeatureInfo GML In-Reply-To: References: <515037E3.5070503@BfS.de> Message-ID: Mark: try (in LAYER) DUMP TRUE? Can you post the layer definition snippet from your mapfile? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Davidson Sent: Monday, March 25, 2013 09:30 To: Stefan Schantz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GetFeatureInfo GML Hi Stefan, Thanks for the suggestion, I've tried that but still getting the same output as before. Any other suggestions? Thanks again, Mark On 25 March 2013 11:41, Stefan Schantz wrote: Hi Mark, I use gml_include_items 'all' Best regards Stefan Am 25.03.2013 11:44, schrieb Mark Davidson: ?Hi All, I'm trying to do a GetFeaureInfo on my layer and return it in GML format. The request works fine but I can't seem to get any data to come back apart from the point bounds. Test Points -269220.293738,6545357.533946 -269220.293738,6545357.533946 -253276.741855,6554416.311795 -253276.741855,6554416.311795 What I would like to be able to do is get the feature id as what happends with the plain output GetFeatureInfo results: Layer 'test' Feature 326: Feature 327: I've set `gml_include_items` to * and `wms_include_item` to * as well but still not having any luck. Could someone point me in the direction of doing this? Many thanks, Mark ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mark at 4each.co.uk Mon Mar 25 06:50:07 2013 From: mark at 4each.co.uk (Mark Davidson) Date: Mon, 25 Mar 2013 13:50:07 +0000 Subject: [mapserver-users] GetFeatureInfo GML In-Reply-To: References: <515037E3.5070503@BfS.de> Message-ID: Here is my entire map file just in-case I?ve done something stupid. MAP PROJECTION "init=epsg:4326" END FONTSET "fonts.list" NAME TEST STATUS ON SIZE 1000 1000 MAXSIZE 3000 EXTENT -180 -90 180 90 UNITS DD WEB METADATA "ows_enable_request" "*" "wms_title" "Testing" "wms_onlineresource" " http://localhost/cgi-bin/mapserv?map=test2.map&" "wms_srs" "EPSG:900913" END END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "test" METADATA "wms_title" "Test Points" ##required END TEMPLATE "blank.html" TOLERANCE 10 TYPE POINT CONNECTIONTYPE postgis CONNECTION "" DATA "position from datatable" DEBUG TRUE CLASS STYLE SIZE 10 SYMBOL "circle" COLOR 255 0 0 END END END END On 25 March 2013 13:42, Kralidis,Tom [Ontario] wrote: > Mark: try (in LAYER) DUMP TRUE? Can you post the layer definition snippet > from your mapfile? > > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Davidson > Sent: Monday, March 25, 2013 09:30 > To: Stefan Schantz > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GetFeatureInfo GML > > Hi Stefan, > > Thanks for the suggestion, I've tried that but still getting the same > output as before. > Any other suggestions? > > Thanks again, > > Mark > On 25 March 2013 11:41, Stefan Schantz wrote: > Hi Mark, > I use gml_include_items 'all' > > Best regards > Stefan > > Am 25.03.2013 11:44, schrieb Mark Davidson: > Hi All, > > I'm trying to do a GetFeaureInfo on my layer and return it in GML format. > The request works fine but I can't seem to get any data to come back apart > from the point bounds. > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > Test Points > > > > -269220.293738,6545357.533946 > -269220.293738,6545357.533946 > > > > > > > -253276.741855,6554416.311795 > -253276.741855,6554416.311795 > > > > > What I would like to be able to do is get the feature id as what happends > with the plain output > GetFeatureInfo results: > > Layer 'test' > Feature 326: > Feature 327: > > I've set `gml_include_items` to * and `wms_include_item` to * as well but > still not having any luck. > > Could someone point me in the direction of doing this? > > Many thanks, > > Mark > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Mon Mar 25 07:07:26 2013 From: SSchantz at BfS.de (Stefan Schantz) Date: Mon, 25 Mar 2013 15:07:26 +0100 Subject: [mapserver-users] GetFeatureInfo GML In-Reply-To: References: <515037E3.5070503@BfS.de> Message-ID: <51505A1E.4010203@BfS.de> Hi Mark, I show you my layer definition, which works. As I understand, the bold parameters in the metadata section are missing in your mapfile... (...) LAYER NAME "odl_einstundenmittel" TYPE POINT STATUS ON MINSCALEDENOM 100001 METADATA WMS_TITLE "blabla" WMS_ABSTRACT "blabla" WMS_ENABLE_REQUEST "*" INCLUDE "../../include/general/standard_extent_germany_4326.map" *GML_INCLUDE_ITEMS "name,datum,WERT" GML_name_ALIAS "Station" GML_datum_ALIAS "Messende" GML_WERT_ALIAS "Messwert"* END TEMPLATE "blank.gml" INCLUDE "../../include/general/db_mysql_connect_odl_result.map" DATA "bl?bla" TOLERANCE 6 TOLERANCEUNITS pixels INCLUDE "../../include/classes/class_odl_rb_nolabel.map" END Regards, Stefan Am 25.03.2013 14:50, schrieb Mark Davidson: > Here is my entire map file just in-case I?ve done something stupid. > > MAP > PROJECTION > "init=epsg:4326" > END > > FONTSET "fonts.list" > NAME TEST > STATUS ON > SIZE 1000 1000 > MAXSIZE 3000 > EXTENT -180 -90 180 90 > UNITS DD > > WEB > METADATA > "ows_enable_request" "*" > "wms_title" "Testing" > "wms_onlineresource" > "http://localhost/cgi-bin/mapserv?map=test2.map& > " > "wms_srs" "EPSG:900913" > END > END > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > LAYER > NAME "test" > METADATA > "wms_title" "Test Points" ##required > END > TEMPLATE "blank.html" > TOLERANCE 10 > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "" > DATA "position from datatable" > DEBUG TRUE > > CLASS > STYLE > SIZE 10 > SYMBOL "circle" > COLOR 255 0 0 > END > END > END > END > > On 25 March 2013 13:42, Kralidis,Tom [Ontario] > wrote: > > Mark: try (in LAYER) DUMP TRUE? Can you post the layer definition > snippet from your mapfile? > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org > ] On Behalf Of > Mark Davidson > Sent: Monday, March 25, 2013 09:30 > To: Stefan Schantz > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] GetFeatureInfo GML > > Hi Stefan, > > Thanks for the suggestion, I've tried that but still getting the > same output as before. > Any other suggestions? > > Thanks again, > > Mark > On 25 March 2013 11:41, Stefan Schantz > wrote: > Hi Mark, > I use gml_include_items 'all' > > Best regards > Stefan > > Am 25.03.2013 11 :44, schrieb Mark Davidson: > Hi All, > > I'm trying to do a GetFeaureInfo on my layer and return it in GML > format. The request works fine but I can't seem to get any data to > come back apart from the point bounds. > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > Test Points > > > > -269220.293738,6545357.533946 > -269220.293738,6545357.533946 > > > > > > > -253276.741855,6554416.311795 > -253276.741855,6554416.311795 > > > > > What I would like to be able to do is get the feature id as what > happends with the plain output > GetFeatureInfo results: > > Layer 'test' > Feature 326: > Feature 327: > > I've set `gml_include_items` to * and `wms_include_item` to * as > well but still not having any luck. > > Could someone point me in the direction of doing this? > > Many thanks, > > Mark > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From muradj at omnilink.com.au Tue Mar 26 20:58:09 2013 From: muradj at omnilink.com.au (Murad Jamal) Date: Wed, 27 Mar 2013 14:58:09 +1100 Subject: [mapserver-users] WFS Server Layer styles not displaying Message-ID: <000301ce2a9f$4d9acb80$e8d06280$@com.au> Hello, I have been recently testing mapserver with WFS layer. The wfs layer appears - however it completely ignores my CLASS Styles. I used WMS before - it worked without any issue. Anything I am doing wrong here? Or Does mapserver doesn't support styling for WFS layers through CLASS definitions? Here is my Layer Definition in map file . Using mapserver ver 6.0.2 LAYER NAME "bldg" METADATA "wfs_title" "Building Footprints" ##REQUIRED "wfs_srs" "EPSG:28356" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "gml_featureid" "ID" ## REQUIRED "wfs_enable_request" "*" END TYPE polygon STATUS OFF #DATA "site/bldg_region" CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "server=abc;uid= abc;pwd= abc;database= abc;Integrated Security=false" DATA "geom from bldg USING SRID=28356" TRANSPARENCY 100 PROJECTION "init=epsg:28356" END CLASS NAME 'Building Footprints' STYLE COLOR 255 128 000 OUTLINECOLOR 255 255 255 WIDTH 2 END END #class END #layer Regards Murad -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.rahkonen at mmmtike.fi Tue Mar 26 22:24:34 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Mar 2013 05:24:34 +0000 Subject: [mapserver-users] WFS Server Layer styles not displaying In-Reply-To: <000301ce2a9f$4d9acb80$e8d06280$@com.au> References: <000301ce2a9f$4d9acb80$e8d06280$@com.au> Message-ID: <84446DEF76453C439E9E97E438E13A639F7FC5@suutari.haapa.mmm.fi> Hi, If I understood right you are using Mapserver as a WFS server and and you await that your WFS client, for example QGis, shows the layer with similar styles than it shows the same Mapserver layer through WMS. WMS and WFS are very different things. WFS sends pure data in XML format and there are attributes and coordinates but no colors nor line widths. Something like this http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.1.0&request=GetFeature&typeName=lv:mml_paikannimet20&maxFeatures=20 For the client WFS is a vector layer and you must define the styles on the client side. However, automatic styling of WFS layers might be possible by utilising the OGR feature style system http://fi.search.yahoo.com/search?p=ogr+feature+style+support&ei=UTF-8&fr=moz35 Currently Mapserver can convert OGR styles from the source data into Mapserver classes. http://www.mapserver.org/input/vector/ogr.html#styleitem-auto-rendering-layers-using-style-information-from-the-ogr-file If Mapserver could do it in an opposite way and populate an additional OGR_STYLES field of WFS Feature Type from layer styles and if the WFS client could utilize OGR_STYLES automatically for rendering it might work. Perhaps an idea for the Google Summer of Code? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Murad Jamal [muradj at omnilink.com.au] puolesta L?hetetty: 27. maaliskuuta 2013 5:58 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS Server Layer styles not displaying Hello, I have been recently testing mapserver with WFS layer. The wfs layer appears ? however it completely ignores my CLASS Styles. I used WMS before ? it worked without any issue. Anything I am doing wrong here? Or Does mapserver doesn?t support styling for WFS layers through CLASS definitions? Here is my Layer Definition in map file . Using mapserver ver 6.0.2 LAYER NAME "bldg" METADATA "wfs_title" "Building Footprints" ##REQUIRED "wfs_srs" "EPSG:28356" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "gml_featureid" "ID" ## REQUIRED "wfs_enable_request" "*" END TYPE polygon STATUS OFF #DATA "site/bldg_region" CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "server=abc;uid= abc;pwd= abc;database= abc;Integrated Security=false" DATA "geom from bldg USING SRID=28356" TRANSPARENCY 100 PROJECTION "init=epsg:28356" END CLASS NAME 'Building Footprints' STYLE COLOR 255 128 000 OUTLINECOLOR 255 255 255 WIDTH 2 END END #class END #layer Regards Murad From asmaraev at gmail.com Wed Mar 27 07:14:25 2013 From: asmaraev at gmail.com (Andrey Maraev) Date: Wed, 27 Mar 2013 18:14:25 +0400 Subject: [mapserver-users] [MS4W] Errors in log when the map was generated Message-ID: Hello guys! I got the errors when I was trying to generate a map in Mapserver 5.6.7(ms4w) like: msProjectRect(): some points failed to reproject, doing internal sampling msTileCacheLoadConfig(): no configuration file found.[Wed Mar 27 17:55:13 2013].708000 msTileCacheDispatchRequest(): failed to load tilecache configuration file.[Wed Mar 27 17:55:13 2013].708000 CGI Request 2 on process 2980 But I saw the picture which generated about 5 sec. My map file is here: http://pastebin.com/haQSUTsK Any ideas? -- lernen,lernen und lernen -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernando at globalgeo.com.br Wed Mar 27 07:48:00 2013 From: fernando at globalgeo.com.br (Fernando Norte) Date: Wed, 27 Mar 2013 11:48:00 -0300 Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers Message-ID: Hello, I have a problem using the MAXSCALEDENOM when transfer to a differnet server. I developed localy, testing etc, and then send to another remote server. The problem is: In my local machine I use, for example, a value to MAXSCALEDENOM 6500000 (1:6.5M) This was not working in my remote server, then I found that if this scale is divided by 100000 works fine: MAXSCALEDENOM 65 Since the both using MapServer version 6, booth are Linux, what should happen to this scale change? Thanks, *Fernando Norte* Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Mar 27 12:51:10 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Wed, 27 Mar 2013 19:51:10 +0000 Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers In-Reply-To: References: Message-ID: Exact same mapfile? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Fernando Norte [fernando at globalgeo.com.br] Sent: Wednesday, March 27, 2013 9:48 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers Hello, I have a problem using the MAXSCALEDENOM when transfer to a differnet server. I developed localy, testing etc, and then send to another remote server. The problem is: In my local machine I use, for example, a value to MAXSCALEDENOM 6500000 (1:6.5M) This was not working in my remote server, then I found that if this scale is divided by 100000 works fine: MAXSCALEDENOM 65 Since the both using MapServer version 6, booth are Linux, what should happen to this scale change? Thanks, Fernando Norte Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo [http://globalgeo.com.br/assinaturas/logo.png] Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". -------------- next part -------------- An HTML attachment was scrubbed... URL: From muradj at omnilink.com.au Wed Mar 27 21:30:03 2013 From: muradj at omnilink.com.au (Murad Jamal) Date: Thu, 28 Mar 2013 15:30:03 +1100 Subject: [mapserver-users] WFS Server Layer styles not displaying In-Reply-To: <84446DEF76453C439E9E97E438E13A639F7FC5@suutari.haapa.mmm.fi> References: <000301ce2a9f$4d9acb80$e8d06280$@com.au> <84446DEF76453C439E9E97E438E13A639F7FC5@suutari.haapa.mmm.fi> Message-ID: <001201ce2b6c$ed096000$c71c2000$@com.au> Thanks Jukka, So It seems like, MAPSERVER CLASS styling can be used for WMS server but not WFS. For WFS you have to do client side styling - something like SLD, So I found a php mapscript here http://mapserver.org/ogc/sld.html#php-mapscript-example-that-generates-an-sl d-from-a-mapfile which can create sld based on mapfile class styles. I think I would I use this to create SLD's for all my layers and then apply it on client side. Murad -----Original Message----- From: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sent: Wednesday, 27 March 2013 4:25 PM To: Murad Jamal; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Server Layer styles not displaying Hi, If I understood right you are using Mapserver as a WFS server and and you await that your WFS client, for example QGis, shows the layer with similar styles than it shows the same Mapserver layer through WMS. WMS and WFS are very different things. WFS sends pure data in XML format and there are attributes and coordinates but no colors nor line widths. Something like this http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.1.0&request=GetFeat ure&typeName=lv:mml_paikannimet20&maxFeatures=20 For the client WFS is a vector layer and you must define the styles on the client side. However, automatic styling of WFS layers might be possible by utilising the OGR feature style system http://fi.search.yahoo.com/search?p=ogr+feature+style+support&ei=UTF-8&fr=mo z35 Currently Mapserver can convert OGR styles from the source data into Mapserver classes. http://www.mapserver.org/input/vector/ogr.html#styleitem-auto-rendering-laye rs-using-style-information-from-the-ogr-file If Mapserver could do it in an opposite way and populate an additional OGR_STYLES field of WFS Feature Type from layer styles and if the WFS client could utilize OGR_STYLES automatically for rendering it might work. Perhaps an idea for the Google Summer of Code? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Murad Jamal [muradj at omnilink.com.au] puolesta L?hetetty: 27. maaliskuuta 2013 5:58 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS Server Layer styles not displaying Hello, I have been recently testing mapserver with WFS layer. The wfs layer appears ? however it completely ignores my CLASS Styles. I used WMS before ? it worked without any issue. Anything I am doing wrong here? Or Does mapserver doesn?t support styling for WFS layers through CLASS definitions? Here is my Layer Definition in map file . Using mapserver ver 6.0.2 LAYER NAME "bldg" METADATA "wfs_title" "Building Footprints" ##REQUIRED "wfs_srs" "EPSG:28356" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "gml_featureid" "ID" ## REQUIRED "wfs_enable_request" "*" END TYPE polygon STATUS OFF #DATA "site/bldg_region" CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "server=abc;uid= abc;pwd= abc;database= abc;Integrated Security=false" DATA "geom from bldg USING SRID=28356" TRANSPARENCY 100 PROJECTION "init=epsg:28356" END CLASS NAME 'Building Footprints' STYLE COLOR 255 128 000 OUTLINECOLOR 255 255 255 WIDTH 2 END END #class END #layer Regards Murad ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5706 - Release Date: 03/26/13 From jukka.rahkonen at mmmtike.fi Wed Mar 27 22:29:47 2013 From: jukka.rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Mar 2013 05:29:47 +0000 Subject: [mapserver-users] WFS Server Layer styles not displaying In-Reply-To: <001201ce2b6c$ed096000$c71c2000$@com.au> References: <000301ce2a9f$4d9acb80$e8d06280$@com.au> <84446DEF76453C439E9E97E438E13A639F7FC5@suutari.haapa.mmm.fi>, <001201ce2b6c$ed096000$c71c2000$@com.au> Message-ID: <84446DEF76453C439E9E97E438E13A639F84EE@suutari.haapa.mmm.fi> Hi, Mapserver can also create SLD file without additional scripts by implementing GetStyles request which is a part of WMS standard. You can try how it works http://188.64.1.61/cgi-bin/ms_ows?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetStyles&LAYERS=sea The SLD files generated by GetStyles are very basic and do not make the same result as advanded Mapserver styles but try if the result with doing both WFS GetFeature and WMS GetStyles happens to be good enough for you. Regards, -Jukka Rahkonen- Murad Jamal wrote: > Thanks Jukka, > So It seems like, MAPSERVER CLASS styling can be used for WMS server but not WFS. > For WFS you have to do client side styling - something like SLD, > So I found a php mapscript here > http://mapserver.org/ogc/sld.html#php-mapscript-example-that-generates-an-sl d-from-a-mapfile > which can create sld based on mapfile class styles. > I think I would I use this to create SLD's for all my layers and then apply it on client side. Murad -----Original Message----- From: Rahkonen Jukka [mailto:jukka.rahkonen at mmmtike.fi] Sent: Wednesday, 27 March 2013 4:25 PM To: Murad Jamal; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Server Layer styles not displaying Hi, If I understood right you are using Mapserver as a WFS server and and you await that your WFS client, for example QGis, shows the layer with similar styles than it shows the same Mapserver layer through WMS. WMS and WFS are very different things. WFS sends pure data in XML format and there are attributes and coordinates but no colors nor line widths. Something like this http://188.64.1.61/cgi-bin/tinyows?service=WFS&version=1.1.0&request=GetFeat ure&typeName=lv:mml_paikannimet20&maxFeatures=20 For the client WFS is a vector layer and you must define the styles on the client side. However, automatic styling of WFS layers might be possible by utilising the OGR feature style system http://fi.search.yahoo.com/search?p=ogr+feature+style+support&ei=UTF-8&fr=mo z35 Currently Mapserver can convert OGR styles from the source data into Mapserver classes. http://www.mapserver.org/input/vector/ogr.html#styleitem-auto-rendering-laye rs-using-style-information-from-the-ogr-file If Mapserver could do it in an opposite way and populate an additional OGR_STYLES field of WFS Feature Type from layer styles and if the WFS client could utilize OGR_STYLES automatically for rendering it might work. Perhaps an idea for the Google Summer of Code? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Murad Jamal [muradj at omnilink.com.au] puolesta L?hetetty: 27. maaliskuuta 2013 5:58 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS Server Layer styles not displaying Hello, I have been recently testing mapserver with WFS layer. The wfs layer appears ? however it completely ignores my CLASS Styles. I used WMS before ? it worked without any issue. Anything I am doing wrong here? Or Does mapserver doesn?t support styling for WFS layers through CLASS definitions? Here is my Layer Definition in map file . Using mapserver ver 6.0.2 LAYER NAME "bldg" METADATA "wfs_title" "Building Footprints" ##REQUIRED "wfs_srs" "EPSG:28356" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "gml_featureid" "ID" ## REQUIRED "wfs_enable_request" "*" END TYPE polygon STATUS OFF #DATA "site/bldg_region" CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "server=abc;uid= abc;pwd= abc;database= abc;Integrated Security=false" DATA "geom from bldg USING SRID=28356" TRANSPARENCY 100 PROJECTION "init=epsg:28356" END CLASS NAME 'Building Footprints' STYLE COLOR 255 128 000 OUTLINECOLOR 255 255 255 WIDTH 2 END END #class END #layer Regards Murad ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5706 - Release Date: 03/26/13 From fernando at globalgeo.com.br Thu Mar 28 06:17:00 2013 From: fernando at globalgeo.com.br (Fernando Norte) Date: Thu, 28 Mar 2013 10:17:00 -0300 Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers In-Reply-To: References: Message-ID: yeap... same mapfile, just a copy. I guess it might be about some pre-defined value envolved in scale resolution calc, but don't make any idea what it is or/and how to set. thanks, *Fernando Norte* Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". 2013/3/27 Lime, Steve D (MNIT) > Exact same mapfile? > > ------------------------------ > *From:* mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] on behalf of Fernando Norte [ > fernando at globalgeo.com.br] > *Sent:* Wednesday, March 27, 2013 9:48 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] MAXSCALEDENOM : different values between two > servers > > Hello, > > I have a problem using the MAXSCALEDENOM when transfer to a differnet > server. > I developed localy, testing etc, and then send to another remote server. > The problem is: > In my local machine I use, for example, a value to MAXSCALEDENOM 6500000 > (1:6.5M) > This was not working in my remote server, then I found that if this scale > is divided by 100000 works fine: MAXSCALEDENOM 65 > > Since the both using MapServer version 6, booth are Linux, what should > happen to this scale change? > > Thanks, > > *Fernando Norte* > > Desenvolvedor SIGWeb > > tel.(31) 2533.9900 > > cel.(31) 9119.8814 > > skype: fernandoglobalgeo > > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno > > Nova Lima/MG - CEP: 34.000-000 > > www.globalgeo.com.br > > "O presente documento pode conter material confidencial ou seu sigilo ? > protegido por lei. > Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) > seu(s) destinat?rio(s) > n?o devendo em nenhuma hip?tese ser repassado a terceiros". > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Mar 28 06:24:25 2013 From: David.Fawcett at state.mn.us (Fawcett, David (MNIT)) Date: Thu, 28 Mar 2013 13:24:25 +0000 Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers In-Reply-To: References: Message-ID: You could try to explicitly set the RESOLUTION to see if that makes a difference. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fernando Norte Sent: Thursday, March 28, 2013 8:17 AM To: Lime, Steve D (MNIT) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MAXSCALEDENOM : different values between two servers yeap... same mapfile, just a copy. I guess it might be about some pre-defined value envolved in scale resolution calc, but don't make any idea what it is or/and how to set. thanks, Fernando Norte Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo [http://globalgeo.com.br/assinaturas/logo.png] Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". 2013/3/27 Lime, Steve D (MNIT) > Exact same mapfile? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Fernando Norte [fernando at globalgeo.com.br] Sent: Wednesday, March 27, 2013 9:48 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers Hello, I have a problem using the MAXSCALEDENOM when transfer to a differnet server. I developed localy, testing etc, and then send to another remote server. The problem is: In my local machine I use, for example, a value to MAXSCALEDENOM 6500000 (1:6.5M) This was not working in my remote server, then I found that if this scale is divided by 100000 works fine: MAXSCALEDENOM 65 Since the both using MapServer version 6, booth are Linux, what should happen to this scale change? Thanks, Fernando Norte Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernando at globalgeo.com.br Thu Mar 28 07:26:11 2013 From: fernando at globalgeo.com.br (Fernando Norte) Date: Thu, 28 Mar 2013 11:26:11 -0300 Subject: [mapserver-users] MAXSCALEDENOM : different values between two servers In-Reply-To: References: Message-ID: I'd tryed... There is no change. If I change the value of RESOLUTION from 72 to other like 96 (or even trying another crazy numbers like 0.0072 or 7200) the only thing that change is the size of lines, labels, and make a worse mess. But the layers is still showing in all scales. Can the WMS influence on this? Because I'm working with a WMS to be showed with OpenLayers (same files and versions too). *Fernando Norte* Desenvolvedor SIGWeb tel.(31) 2533.9900 cel.(31) 9119.8814 skype: fernandoglobalgeo Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno Nova Lima/MG - CEP: 34.000-000 www.globalgeo.com.br "O presente documento pode conter material confidencial ou seu sigilo ? protegido por lei. Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) seu(s) destinat?rio(s) n?o devendo em nenhuma hip?tese ser repassado a terceiros". 2013/3/28 Fawcett, David (MNIT) > You could try to explicitly set the RESOLUTION to see if that makes a > difference.**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Fernando Norte > *Sent:* Thursday, March 28, 2013 8:17 AM > *To:* Lime, Steve D (MNIT) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] MAXSCALEDENOM : different values between > two servers**** > > ** ** > > yeap... same mapfile, just a copy. > I guess it might be about some pre-defined value envolved in scale > resolution calc, but don't make any idea what it is or/and how to set. *** > * > > ** ** > > thanks,**** > > > **** > > *Fernando Norte***** > > Desenvolvedor SIGWeb**** > > tel.(31) 2533.9900**** > > cel.(31) 9119.8814**** > > skype: fernandoglobalgeo**** > > **** > > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno**** > > Nova Lima/MG - CEP: 34.000-000**** > > *www.globalgeo.com.br* **** > > "O presente documento pode conter material confidencial ou seu sigilo ? > protegido por lei. > Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) > seu(s) destinat?rio(s) > n?o devendo em nenhuma hip?tese ser repassado a terceiros".**** > > ** ** > > 2013/3/27 Lime, Steve D (MNIT) **** > > Exact same mapfile? **** > > ** ** > ------------------------------ > > *From:* mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] on behalf of Fernando Norte [ > fernando at globalgeo.com.br] > *Sent:* Wednesday, March 27, 2013 9:48 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] MAXSCALEDENOM : different values between two > servers**** > > Hello, **** > > ** ** > > I have a problem using the MAXSCALEDENOM when transfer to a differnet > server.**** > > I developed localy, testing etc, and then send to another remote server.** > ** > > The problem is: **** > > In my local machine I use, for example, a value to MAXSCALEDENOM 6500000 > (1:6.5M)**** > > This was not working in my remote server, then I found that if this scale > is divided by 100000 works fine: MAXSCALEDENOM 65**** > > ** ** > > Since the both using MapServer version 6, booth are Linux, what should > happen to this scale change?**** > > ** ** > > Thanks,**** > > > **** > > *Fernando Norte***** > > Desenvolvedor SIGWeb**** > > tel.(31) 2533.9900**** > > cel.(31) 9119.8814**** > > skype: fernandoglobalgeo**** > > **** > > Endere?o: Alameda do Ing?, 88, 6? andar, Vale do Sereno**** > > Nova Lima/MG - CEP: 34.000-000**** > > *www.globalgeo.com.br* **** > > "O presente documento pode conter material confidencial ou seu sigilo ? > protegido por lei. > Quaisquer informa??es nele contida s?o destinadas exclusivamente ao(s) > seu(s) destinat?rio(s) > n?o devendo em nenhuma hip?tese ser repassado a terceiros".**** > > ** ** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fruitwerks at gmail.com Thu Mar 28 19:57:40 2013 From: fruitwerks at gmail.com (Corey Carpenter) Date: Thu, 28 Mar 2013 21:57:40 -0500 Subject: [mapserver-users] mapscript6 demo Message-ID: Hi List! Where might I find some modern drop-in demos for mapscript v6, the old ka-map and gmap demos are what I would like to see working. Or something more modern would be great as well. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Mar 29 09:02:53 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 29 Mar 2013 16:02:53 +0000 Subject: [mapserver-users] Duplicate results with processquerytemplate Message-ID: I have a strange problem which sometimes occurs when I query multiple layers. I have an application where a user may click checkboxes to select layers to query. I found that if they select all layers, the query results will appear twice for the first layer. I checked several times, and as far as I can see, that first layer is only queried once. It seems that the duplicate processing occurs when $map->processQueryTemplate is called. Has anyone ever seen a problem like that, and what might anyone suggest as a fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Mar 29 09:46:07 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 29 Mar 2013 16:46:07 +0000 Subject: [mapserver-users] Duplicate results with processquerytemplate In-Reply-To: References: Message-ID: It's a queryByShape, using a selection from another layer, such as a town polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, March 29, 2013 12:36 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate What type of query are you triggering? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Duplicate results with processquerytemplate I have a strange problem which sometimes occurs when I query multiple layers. I have an application where a user may click checkboxes to select layers to query. I found that if they select all layers, the query results will appear twice for the first layer. I checked several times, and as far as I can see, that first layer is only queried once. It seems that the duplicate processing occurs when $map->processQueryTemplate is called. Has anyone ever seen a problem like that, and what might anyone suggest as a fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Mar 29 09:36:19 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 29 Mar 2013 16:36:19 +0000 Subject: [mapserver-users] Duplicate results with processquerytemplate In-Reply-To: References: Message-ID: What type of query are you triggering? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Duplicate results with processquerytemplate I have a strange problem which sometimes occurs when I query multiple layers. I have an application where a user may click checkboxes to select layers to query. I found that if they select all layers, the query results will appear twice for the first layer. I checked several times, and as far as I can see, that first layer is only queried once. It seems that the duplicate processing occurs when $map->processQueryTemplate is called. Has anyone ever seen a problem like that, and what might anyone suggest as a fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Mar 29 09:51:57 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 29 Mar 2013 16:51:57 +0000 Subject: [mapserver-users] Duplicate results with processquerytemplate In-Reply-To: References: , Message-ID: Is it the selection layer that is duplicated? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:46 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate It?s a queryByShape, using a selection from another layer, such as a town polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, March 29, 2013 12:36 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate What type of query are you triggering? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Duplicate results with processquerytemplate I have a strange problem which sometimes occurs when I query multiple layers. I have an application where a user may click checkboxes to select layers to query. I found that if they select all layers, the query results will appear twice for the first layer. I checked several times, and as far as I can see, that first layer is only queried once. It seems that the duplicate processing occurs when $map->processQueryTemplate is called. Has anyone ever seen a problem like that, and what might anyone suggest as a fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Mar 29 09:55:07 2013 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 29 Mar 2013 16:55:07 +0000 Subject: [mapserver-users] Duplicate results with processquerytemplate In-Reply-To: References: , Message-ID: Yes. This only happens to the first selection layer if more than one selection layer is processed. For example, I have check boxes for the selection layers. Assume you have already established a query layer. Then check selection layer 1, selection layer 2, etc. Duplicate results will appear for selection layer 1. But, if you only choose one selection layer, you don't get duplicate results. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, March 29, 2013 12:52 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate Is it the selection layer that is duplicated? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:46 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate It's a queryByShape, using a selection from another layer, such as a town polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, March 29, 2013 12:36 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate What type of query are you triggering? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Duplicate results with processquerytemplate I have a strange problem which sometimes occurs when I query multiple layers. I have an application where a user may click checkboxes to select layers to query. I found that if they select all layers, the query results will appear twice for the first layer. I checked several times, and as far as I can see, that first layer is only queried once. It seems that the duplicate processing occurs when $map->processQueryTemplate is called. Has anyone ever seen a problem like that, and what might anyone suggest as a fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Mar 29 10:38:44 2013 From: Steve.Lime at state.mn.us (Lime, Steve D (MNIT)) Date: Fri, 29 Mar 2013 17:38:44 +0000 Subject: [mapserver-users] Duplicate results with processquerytemplate In-Reply-To: References: , , Message-ID: Hard to know without seeing code and how you're triggering the searches. You should probably tweak things so that you don't do queryByShape() against the layers you pulled the shapes from in the first place. My guess is that the search results are still cached with those layers... Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:55 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate Yes. This only happens to the first selection layer if more than one selection layer is processed. For example, I have check boxes for the selection layers. Assume you have already established a query layer. Then check selection layer 1, selection layer 2, etc. Duplicate results will appear for selection layer 1. But, if you only choose one selection layer, you don?t get duplicate results. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, March 29, 2013 12:52 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate Is it the selection layer that is duplicated? Steve ________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:46 AM To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate It?s a queryByShape, using a selection from another layer, such as a town polygon. From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us] Sent: Friday, March 29, 2013 12:36 PM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Duplicate results with processquerytemplate What type of query are you triggering? ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Friday, March 29, 2013 11:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Duplicate results with processquerytemplate I have a strange problem which sometimes occurs when I query multiple layers. I have an application where a user may click checkboxes to select layers to query. I found that if they select all layers, the query results will appear twice for the first layer. I checked several times, and as far as I can see, that first layer is only queried once. It seems that the duplicate processing occurs when $map->processQueryTemplate is called. Has anyone ever seen a problem like that, and what might anyone suggest as a fix? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at worldonline.fr Fri Mar 29 11:23:03 2013 From: bpicinbono at worldonline.fr (Blaise) Date: Fri, 29 Mar 2013 19:23:03 +0100 Subject: [mapserver-users] mapscript6 demo In-Reply-To: References: Message-ID: <5155DC07.9050708@worldonline.fr> On 03/29/2013 03:57 AM, Corey Carpenter wrote: > Hi List! > > Where might I find some modern drop-in demos for mapscript v6, the old > ka-map and gmap demos are what I would like to see working. Or > something more modern would be great as well. > > Thanks > hi, according to: http://mapserver.org/mapscript/php/by_example.html?highlight=gmap stuff you'ld like could be there: http://www.maptools.org/ms4w/index.phtml?page=downloads.html regards, Blaise From MarkVolz at co.lyon.mn.us Fri Mar 29 13:31:35 2013 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 29 Mar 2013 20:31:35 +0000 Subject: [mapserver-users] mapscript6 demo (Corey Carpenter) Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31AC992@swmail01.r8nssis.local> >Hi List! > >Where might I find some modern drop-in demos for mapscript v6, the old ka-map and gmap demos are what I would like to see working. Or something more modern would be great as well. > >Thanks I think GeoMOOSE is the only "drop in demo" on the ms4w list that is up date that I know. It requires MapsServer 6. Mark Volz GIS Specialist From info at kentrichards.net Sat Mar 30 23:12:53 2013 From: info at kentrichards.net (Kent Richards) Date: Sat, 30 Mar 2013 23:12:53 -0700 Subject: [mapserver-users] Need help with shpxy centriod in template file Message-ID: <6207EFAF-CA15-4DF5-9EAA-701DF43330BC@kentrichards.net> When using the imagemap output in mapscript, I'm trying to get the center of the shapes using [shpxy precision=0 proj=image centroid=true]. Perhaps the first most obvious question is: am I misunderstanding what "centroid" means in this case? I thought it meant the geometric center of the shape (of each shape, in this case). I have an imagemap TEMPLATE file with this declaration: > > [state] The [shpxy centroid-true?] part returns "center-x367-y128" *for each shape* (the raw coords are 367, 128). 367, 128 is not in the center of the image, nor in the center of most of the shapes. The other shpxy declaration in the template -- for the coords attribute -- seems to behave as expected. Any ideas what I'm doing wrong, or is this a bug? I know I can rig a convoluted means to return just the polygon points and calculate a center of sorts myself, but I'd like to just use the mapserver feature if it works. Thanks, Kent
IDNameType