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: