From jmckenna at gatewaygeomatics.com Sun Jun 1 17:35:57 2008
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Sun, 1 Jun 2008 20:35:57 -0400
Subject: [mapserver-users] Fatal error: Call to undefined function
ms_newMapObj() in.........
In-Reply-To: <483EB76D.2010402@gmail.com>
References: <483EB76D.2010402@gmail.com>
Message-ID: <271D758C-5D17-4D96-9DDC-B99BA207999C@gatewaygeomatics.com>
For the record, a nice little starter php script is included in ms4w
at: /Apache/htdocs/quickmap.php
--jeff
On 29-May-08, at 10:02 AM, ????? ????????? wrote:
> Hello.
> I try to use pamscript with php by running the following file but i
> receive the following error message:
> Fatal error: Call to undefined function ms_newMapObj() in C:\ms4w
> \Apache\htdocs\phpms_hello.php on line 5.
>
>
> File name : phpms_hello.php in C:\ms4w\Apache\htdocs
>
> // Create a unique image name every time through
> $image_name = sprintf("phpms-hello%0.6d",rand(0,999999)).".png";
> // Create a new instance of a map object
> $map=ms_newMapObj("/ms4w/Apache/htdocs/hello.map");
> // Create an image of the map and save it to disk
> $image=$map->draw();
> $image->saveImage("/ms4w/Apache/htdocs/tmp/".$image_name);
> ?>
>
>
PHP MapScript Hello World
>
>
>
>
>
>
> I run mapserver version 2.2.7 on Windows xp and when i call http://localhost
> i can verify that mapscript is installed correctly.
> I suppose i have done something wrong with my configuration..
---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jmckenna at gatewaygeomatics.com Sun Jun 1 17:32:46 2008
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Sun, 1 Jun 2008 20:32:46 -0400
Subject: [MAPSERVER-USERS] Accessing GDAL raster in MapServer
In-Reply-To: <17532414.post@talk.nabble.com>
References: <17532414.post@talk.nabble.com>
Message-ID: <0CFDA97F-618E-40EC-8AC3-021951CE9D6C@gatewaygeomatics.com>
hmm. I would do the following for testing:
- remove all projection objects
- remove MAXSIZE and RESOLUTION (in case they are causing trouble)
- use gdalinfo commandline utility to get the exact extents of the
image (and to make sure your image can be read by your GDAL version)
- make sure the UNITS value is set to the correct value
- use the shp2img commandline utility for testing
--jeff
On 29-May-08, at 6:33 AM, P?l Kristensen wrote:
>
> Hi!
>
> I'm trying to serve some CADRG (A.toc) data through MapServer, but I'm
> obviously doing something wrong because all I get is some error
> messages in
> the logfile. I'm currently using the latest MS4W release.
>
> This is how the mapfile looks like:
> MAP
> NAME "Rendertest"
> STATUS ON
> SIZE 800 500
> DEBUG 4
> #IMAGETYPE PNG
> #IMAGECOLOR 255 255 255
> #SYMBOLSET "c:/ms4w/sym/symbols/SKsym.sym"
> #FONTSET "c:/ms4w/sym/skfonts/font.list"
> EXTENT -1 53 53 68
> SHAPEPATH "E:/RPF_test/"
> UNITS dd
> MAXSIZE 2048
> RESOLUTION 96
>
> PROJECTION
> "init=epsg:4326"
> END
> WEB
> IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
> METADATA
> "ows_schemas_location" "http://schemas.opengeospatial.net"
> "ows_accessconstraints" "Copyright Statens kartverk 2007"
> "wms_srs" "EPSG:4326 EPSG:27391 EPSG:27392 EPSG:27393
> EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:3034
> EPSG:32635
> EPSG:32633 EPSG:32634 EPSG:32631 EPSG:32636 EPSG:32632"
> "ows_exceptions_format" "application/vnd.ogc.se_xml"
> END
> END
> LAYER
> NAME "Test"
> DEBUG 4
> STATUS ON
> DATA "rpf/a.toc"
> TYPE RASTER
> #MINSCALE 3000000
> #PROCESSING "RESAMPLE=AVERAGE"
> #PROCESSING "RESAMPLE=BILINEAR"
> #PROCESSING "RPFTOC_FORCE_RGBA=TRUE"
> METADATA
> "wms_title" "Test"
> END
> PROJECTION
> "init=epsg:4326"
> END
> END
> END
>
> And this is the error message:
> [Thu May 29 12:11:41 2008].641000 CGI Request 1 on process 1516
> [Thu May 29 12:11:41 2008].688000 msDrawRasterLayerLow(Test):
> entering.
> [Thu May 29 12:11:42 2008].125000 msResampleGDALToMap in effect:
> cellsize =
> 0.053997
> [Thu May 29 12:11:42 2008].125000 msDrawGDAL(Test): using
> RAW_WINDOW=805 0
> 95841 47616
> [Thu May 29 12:11:42 2008].125000 msDrawGDAL(): red,green,blue,alpha
> bands =
> 1,0,0,0
> [Thu May 29 12:11:42 2008].125000 msDrawMap(): Image handling error.
> Failed
> to draw layer named 'Test'.
> [Thu May 29 12:11:42 2008].125000 msFreeMap(): freeing map at 01535F40
>
> I would really appreciate any help on this issue?
>
> Regards,
> P?l Kristensen
> --
> View this message in context: http://www.nabble.com/Accessing-GDAL-raster-in-MapServer-tp17532414p17532414.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
From pal.kristensen at statkart.no Sun Jun 1 22:54:06 2008
From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=)
Date: Sun, 1 Jun 2008 22:54:06 -0700 (PDT)
Subject: [MAPSERVER-USERS] Accessing GDAL raster in MapServer
In-Reply-To: <0CFDA97F-618E-40EC-8AC3-021951CE9D6C@gatewaygeomatics.com>
References: <17532414.post@talk.nabble.com>
<0CFDA97F-618E-40EC-8AC3-021951CE9D6C@gatewaygeomatics.com>
Message-ID: <17594424.post@talk.nabble.com>
Hi Jeff!
Thanks for helping out on issue!
I did what you suggested, but without success. Bellow you will see the
mapfile, output from gedalinfo and the shp2img command and the error
message. Too me it looks like gdal actually is capable of reading the
raster, but for some reason mapserver fails to draw the map.
Mapfile:
MAP
NAME "Rendertest"
STATUS ON
SIZE 800 500
DEBUG 4
#IMAGETYPE PNG
#IMAGECOLOR 255 255 255
#SYMBOLSET "c:/ms4w/sym/symbols/SKsym.sym"
#FONTSET "c:/ms4w/sym/skfonts/font.list"
EXTENT -0.9542169 52.2914669 52.1350165 68.3413231
SHAPEPATH "E:/RPF_test/"
UNITS dd
#MAXSIZE 2048
#RESOLUTION 96
#PROJECTION
# "init=epsg:4326"
#END
WEB
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
LAYER
NAME "Test"
DEBUG 4
STATUS ON
DATA "rpf/a.toc"
TYPE RASTER
#MINSCALE 3000000
#PROCESSING "RESAMPLE=AVERAGE"
#PROCESSING "RESAMPLE=BILINEAR"
PROCESSING "RPFTOC_FORCE_RGBA=TRUE"
METADATA
"wms_title" "Test"
"wms_style" "Default"
END
# PROJECTION
# "init=epsg:4326"
# END
END
END
Output from gdalinfo:
Driver: RPFTOC/Raster Product Format TOC format
Files: E:\RPF_test\RPF\A.TOC
Size is 96646, 47616
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4326"]]
Origin = (-0.954216867469881,68.341323106423786)
Pixel Size = (0.000549316406250,-0.000337068552253)
Metadata:
NITF_FHDR=NITF02.00
NITF_CLEVEL=03
NITF_STYPE=
NITF_OSTAID=DMAAC
NITF_FDT=18090333ZMAR98
NITF_FTITLE= A.TOC
NITF_FSCLAS=U
NITF_FSCODE=
NITF_FSCTLH=
NITF_FSREL=
NITF_FSCAUT=
NITF_FSCTLN=
NITF_FSDWNG=
NITF_FSCOP=00000
NITF_FSCPYS=00000
NITF_ENCRYP=0
NITF_ONAME=DMA Aerospace Center
NITF_OPHONE=
Subdatasets:
SUBDATASET_1_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_6_0:E:\RPF_test\RPF\A.TOC
SUBDATASET_1_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:6:0
SUBDATASET_2_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_5_1:E:\RPF_test\RPF\A.TOC
SUBDATASET_2_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:5:1
SUBDATASET_3_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_4_2:E:\RPF_test\RPF\A.TOC
SUBDATASET_3_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:4:2
SUBDATASET_4_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_4_3:E:\RPF_test\RPF\A.TOC
SUBDATASET_4_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:4:3
SUBDATASET_5_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_4_4:E:\RPF_test\RPF\A.TOC
SUBDATASET_5_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:4:4
SUBDATASET_6_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_4_5:E:\RPF_test\RPF\A.TOC
SUBDATASET_6_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:4:5
SUBDATASET_7_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_3_6:E:\RPF_test\RPF\A.TOC
SUBDATASET_7_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:3:6
SUBDATASET_8_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_3_7:E:\RPF_test\RPF\A.TOC
SUBDATASET_8_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:3:7
SUBDATASET_9_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_3_8:E:\RPF_test\RPF\A.TOC
SUBDATASET_9_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:3:8
SUBDATASET_10_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_3_9:E:\RPF_test\RPF\A.TOC
SUBDATASET_10_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:3:9
SUBDATASET_11_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_3_10:E:\RPF_test\RPF\A.TOC
SUBDATASET_11_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:3:10
SUBDATASET_12_NAME=NITF_TOC_ENTRY:CADRG_JOG-A_250K_3_11:E:\RPF_test\RPF\A.TOC
SUBDATASET_12_DESC=CADRG:JOG-A:Joint Operation Graphic - Air:250K:3:11
Corner Coordinates:
Upper Left ( -0.9542169, 68.3413231) ( 0d57'15.18"W, 68d20'28.76"N)
Lower Left ( -0.9542169, 52.2914669) ( 0d57'15.18"W, 52d17'29.28"N)
Upper Right ( 52.1350165, 68.3413231) ( 52d 8'6.06"E, 68d20'28.76"N)
Lower Right ( 52.1350165, 52.2914669) ( 52d 8'6.06"E, 52d17'29.28"N)
Center ( 25.5903998, 60.3163950) ( 25d35'25.44"E, 60d18'59.02"N)
shp2img command:
shp2img -m C:\ms4w\apps\rendertest\mapfiles\rendertest.map -o test.png -i
png -all_debug 5
shp2img error:
msDrawRasterLayerLow(Test): entering.
msDrawGDAL(): src=0,0,96646,47616, dst=0,129,800,242
msDrawGDAL(): red,green,blue,alpha bands = 1,0,0,0
msDrawMap(): Image handling error. Failed to draw layer named 'Test'.
msDrawMap(): Image handling error. Failed to draw layer named 'Test'.
msFreeMap(): freeing map at 0164B3E0.
Regards,
P?l Kristensen
Jeff McKenna-3 wrote:
>
> hmm. I would do the following for testing:
>
> - remove all projection objects
> - remove MAXSIZE and RESOLUTION (in case they are causing trouble)
> - use gdalinfo commandline utility to get the exact extents of the
> image (and to make sure your image can be read by your GDAL version)
> - make sure the UNITS value is set to the correct value
> - use the shp2img commandline utility for testing
>
>
> --jeff
>
>
>
>
> On 29-May-08, at 6:33 AM, P?l Kristensen wrote:
>
>>
>> Hi!
>>
>> I'm trying to serve some CADRG (A.toc) data through MapServer, but I'm
>> obviously doing something wrong because all I get is some error
>> messages in
>> the logfile. I'm currently using the latest MS4W release.
>>
>> This is how the mapfile looks like:
>> MAP
>> NAME "Rendertest"
>> STATUS ON
>> SIZE 800 500
>> DEBUG 4
>> #IMAGETYPE PNG
>> #IMAGECOLOR 255 255 255
>> #SYMBOLSET "c:/ms4w/sym/symbols/SKsym.sym"
>> #FONTSET "c:/ms4w/sym/skfonts/font.list"
>> EXTENT -1 53 53 68
>> SHAPEPATH "E:/RPF_test/"
>> UNITS dd
>> MAXSIZE 2048
>> RESOLUTION 96
>>
>> PROJECTION
>> "init=epsg:4326"
>> END
>> WEB
>> IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
>> IMAGEURL "/ms_tmp/"
>> METADATA
>> "ows_schemas_location" "http://schemas.opengeospatial.net"
>> "ows_accessconstraints" "Copyright Statens kartverk 2007"
>> "wms_srs" "EPSG:4326 EPSG:27391 EPSG:27392 EPSG:27393
>> EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:3034
>> EPSG:32635
>> EPSG:32633 EPSG:32634 EPSG:32631 EPSG:32636 EPSG:32632"
>> "ows_exceptions_format" "application/vnd.ogc.se_xml"
>> END
>> END
>> LAYER
>> NAME "Test"
>> DEBUG 4
>> STATUS ON
>> DATA "rpf/a.toc"
>> TYPE RASTER
>> #MINSCALE 3000000
>> #PROCESSING "RESAMPLE=AVERAGE"
>> #PROCESSING "RESAMPLE=BILINEAR"
>> #PROCESSING "RPFTOC_FORCE_RGBA=TRUE"
>> METADATA
>> "wms_title" "Test"
>> END
>> PROJECTION
>> "init=epsg:4326"
>> END
>> END
>> END
>>
>> And this is the error message:
>> [Thu May 29 12:11:41 2008].641000 CGI Request 1 on process 1516
>> [Thu May 29 12:11:41 2008].688000 msDrawRasterLayerLow(Test):
>> entering.
>> [Thu May 29 12:11:42 2008].125000 msResampleGDALToMap in effect:
>> cellsize =
>> 0.053997
>> [Thu May 29 12:11:42 2008].125000 msDrawGDAL(Test): using
>> RAW_WINDOW=805 0
>> 95841 47616
>> [Thu May 29 12:11:42 2008].125000 msDrawGDAL(): red,green,blue,alpha
>> bands =
>> 1,0,0,0
>> [Thu May 29 12:11:42 2008].125000 msDrawMap(): Image handling error.
>> Failed
>> to draw layer named 'Test'.
>> [Thu May 29 12:11:42 2008].125000 msFreeMap(): freeing map at 01535F40
>>
>> I would really appreciate any help on this issue?
>>
>> Regards,
>> P?l Kristensen
>> --
>> View this message in context:
>> http://www.nabble.com/Accessing-GDAL-raster-in-MapServer-tp17532414p17532414.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> ---
> Jeff McKenna
> FOSS4G 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
>
>
--
View this message in context: http://www.nabble.com/Accessing-GDAL-raster-in-MapServer-tp17532414p17594424.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From valerio.vianello at yahoo.it Mon Jun 2 00:37:43 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Mon, 2 Jun 2008 07:37:43 +0000 (GMT)
Subject: [mapserver-users] svg format
Message-ID: <610168.43992.qm@web27302.mail.ukl.yahoo.com>
Hi,
I'm new in this community and I'm starting to learn something about mapserver. In my application I need to work with svg file. If I try to do a raster layer with a svg file I have the following error:
"msDrawMap(): Image handling error. Failed to draw layer named 'modis'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image format
drawEPP(): Image handling error. /var/www/ms4w/apps/tutorial/data/ssap/maps/b1_f2_no_details.svg is not an EPPL file.
"
While if I start from a raster file in png format and in the map file I put the following code:
OUTPUTFORMAT
NAME svg
DRIVER "svg"
MIMETYPE "image/svg+xml"
IMAGEMODE PC256
EXTENSION "svg"
END
in output I have 2 file, one with raster layer in png format and another with POLYGON layer in svg format.
The question is: Can MapServer process input/output svg file ? and if it can How I have to set mapserver ?
Thanks
Valerio
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From guillaume.sueur at neogeo-online.net Mon Jun 2 01:01:06 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Mon, 02 Jun 2008 10:01:06 +0200
Subject: [mapserver-users] svg format
In-Reply-To: <610168.43992.qm@web27302.mail.ukl.yahoo.com>
References: <610168.43992.qm@web27302.mail.ukl.yahoo.com>
Message-ID: <4843A8C2.6080403@neogeo-online.net>
Hi Valerio,
MapServer can use SVG as an output format (see
http://mapserver.gis.umn.edu/docs/howto/svg-howto), but not as an input
format for which it needs standard GIS formats like shapefile, MapInfo
files, PostGIS database, TIF...
for vector formats see :
http://mapserver.gis.umn.edu/docs/reference/vector_data/
for raster formats, you have gdal page here :
http://www.gdal.org/formats_list.html
Guillaume
valerio vianello a ?crit :
> Hi,
>
> I'm new in this community and I'm starting to learn something about
> mapserver. In my application I need to work with svg file. If I try to
> do a raster layer with a svg file I have the following error:
>
> "msDrawMap(): Image handling error. Failed to draw layer named 'modis'.
> msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format drawEPP(): Image handling error.
> /var/www/ms4w/apps/tutorial/data/ssap/maps/b1_f2_no_details.svg is not
> an EPPL file. "
> While if I start from a raster file in png format and in the map file I
> put the following code:
>
> OUTPUTFORMAT
> NAME svg
> DRIVER "svg"
> MIMETYPE "image/svg+xml"
> IMAGEMODE PC256
> EXTENSION "svg"
> END
>
> in output I have 2 file, one with raster layer in png format and another
> with POLYGON layer in svg format.
>
> The question is: Can MapServer process input/output svg file ? and if it
> can How I have to set mapserver ?
>
> Thanks
> Valerio
>
>
> ------------------------------------------------------------------------
> Scopri il Blog di Yahoo! Mail
> :
> trucchi, novit?, consigli... e la tua opinione!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
From valerio.vianello at yahoo.it Mon Jun 2 02:22:41 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Mon, 2 Jun 2008 09:22:41 +0000 (GMT)
Subject: [mapserver-users] svg format
In-Reply-To: <4843A8C2.6080403@neogeo-online.net>
Message-ID: <181245.55850.qm@web27301.mail.ukl.yahoo.com>
Hi Guillaume,
Thanks for the reply.
I followed the procedure described in
http://mapserver.gis.umn.edu/docs/howto/svg-howto
but my example don't work. In the tmp directory I see 3 files, two in svg format with "floors" layer (type polygon) and one file with the "background" layer (type raster) and in the browser there is no image....
what's wrong?
in attach there is the map and the template file.
thanks
Valerio
--- Lun 2/6/08, Guillaume Sueur <guillaume.sueur at neogeo-online.net> ha scritto:
Hi Valerio,
MapServer can use SVG as an output format (see
http://mapserver.gis.umn.edu/docs/howto/svg-howto), but not as an input
format for which it needs standard GIS formats like shapefile, MapInfo
files, PostGIS database, TIF...
for vector formats see :
http://mapserver.gis.umn.edu/docs/reference/vector_data/
for raster formats, you have gdal page here :
http://www.gdal.org/formats_list.html
Guillaume
valerio vianello a ?crit :
> Hi,
>
> I'm new in this community and I'm starting to learn something
about
> mapserver. In my application I need to work with svg file. If I try to
> do a raster layer with a svg file I have the following error:
>
> "msDrawMap(): Image handling error. Failed to draw layer named
'modis'.
> msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format drawEPP(): Image handling error.
> /var/www/ms4w/apps/tutorial/data/ssap/maps/b1_f2_no_details.svg is not
> an EPPL file. "
> While if I start from a raster file in png format and in the map file I
> put the following code:
>
> OUTPUTFORMAT
> NAME svg
> DRIVER "svg"
> MIMETYPE "image/svg+xml"
> IMAGEMODE PC256
> EXTENSION "svg"
> END
>
> in output I have 2 file, one with raster layer in png format and another
> with POLYGON layer in svg format.
>
> The question is: Can MapServer process input/output svg file ? and if it
> can How I have to set mapserver ?
>
> Thanks
> Valerio
>
>
> ------------------------------------------------------------------------
> Scopri il Blog di Yahoo! Mail
>
<http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F>:
> trucchi, novit?, consigli... e la tua opinione!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valerio.map
Type: application/octet-stream
Size: 5121 bytes
Desc: not available
URL:
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From valerio.vianello at yahoo.it Mon Jun 2 04:02:36 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Mon, 2 Jun 2008 11:02:36 +0000 (GMT)
Subject: [mapserver-users] insert png image in svg output
Message-ID: <656661.38357.qm@web27303.mail.ukl.yahoo.com>
Hi,
I need that Mapserver give me an image in svg format. I tried to follow the instruction in "http://mapserver.gis.umn.edu/docs/howto/svg-howto" but I still have some problems. My map file is composed by two layers: a raster layer (a png file) a polygon layer. I set in the map the output format as svg and I have put in the file this code :
OUTPUTFORMAT
NAME svg
DRIVER "svg"
MIMETYPE "image/svg+xml"
IMAGEMODE PC256
EXTENSION "svg"
END
In the Mapserver tmp directory there is two file. One file in png format with the raster layer and one file in svg format with the polygon layer and a link to the png file.
There is a way to insert a real picture in the svg file in place of the link ?
The following is the code in the svg file.
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" width="600" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- START LAYER background -->
<image xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png" x="0" y="0" width="600" height="400"/>
<!-- START LAYER floors -->
<path stroke="#202020" stroke-width="1" style="fill:none" d="M 8 28 L 485 35 L 591 129 L 592
161 L 283 162 L 287 364 L 2 364 L 5 29 L 8 28 z"/>
<path
stroke="#202020" stroke-width="1" style="fill:none" d="M 240 241 L 285
241 L 285 364 L 146 363 L 149 322 L 240 241 z"/>
<path
stroke="#202020" stroke-width="1" style="fill:none" d="M 3 242 L 56 242
L 130 323 L 130 363 L 5 365 L 4 246 L 3 242 z"/>
<path
stroke="#202020" stroke-width="1" style="fill:none" d="M 5 30 L 173 31
L 197 40 L 279 126 L 280 137 L 7 138 L 5 30 z"/>
<path stroke="#202020" stroke-width="1" style="fill:none" d="M 293 38 L 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/>
<path stroke="#202020" stroke-width="1" style="fill:none" d="M 436 41 L 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/>
<path
stroke="#ffff00" stroke-width="1" style="fill:none" d="M 11 138 L 281
136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244 L 8 223 L
11 138 z"/>
<text x="115" y="234" font-family="arial-bold" font-size="12pt"
fill="#841f1f" text-anchor="end">s.X</text>
<text x="466" y="106" font-family="arial-bold" font-size="12pt" fill="#841f1f" text-anchor="end">s.F</text>
<text x="323" y="106" font-family="arial-bold" font-size="12pt" fill="#841f1f" text-anchor="end">s.E</text>
<text x="50" y="90" font-family="arial-bold" font-size="12pt" fill="#841f1f" text-anchor="end">s.canteen</text>
<text x="35" y="310" font-family="arial-bold" font-size="12pt" fill="#841f1f" text-anchor="end">s.B</text>
<text x="185" y="308" font-family="arial-bold" font-size="12pt" fill="#841f1f" text-anchor="end">s.A</text>
</svg>
Any suggestion
thanks valerio
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From guillaume.sueur at neogeo-online.net Mon Jun 2 04:04:51 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Mon, 02 Jun 2008 13:04:51 +0200
Subject: [mapserver-users] insert png image in svg output
In-Reply-To: <656661.38357.qm@web27303.mail.ukl.yahoo.com>
References: <656661.38357.qm@web27303.mail.ukl.yahoo.com>
Message-ID: <4843D3D3.9040105@neogeo-online.net>
actually, it's getting a bit clearer now.
what happens when you try to open the svg file in your web browser ?
Guillaume
valerio vianello a ?crit :
> Hi,
>
> I need that Mapserver give me an image in svg format. I tried to follow
> the instruction in "http://mapserver.gis.umn.edu/docs/howto/svg-howto"
> but I still have some problems. My map file is composed by two layers: a
> raster layer (a png file) a polygon layer. I set in the map the output
> format as svg and I have put in the file this code :
> OUTPUTFORMAT
> NAME svg
> DRIVER "svg"
> MIMETYPE "image/svg+xml"
> IMAGEMODE PC256
> EXTENSION "svg"
> END
>
> In the Mapserver tmp directory there is two file. One file in png format
> with the raster layer and one file in svg format with the polygon layer
> and a link to the png file.
>
> There is a way to insert a real picture in the svg file in place of the
> link ?
>
> The following is the code in the svg file.
>
>
>
>
> Any suggestion
>
> thanks valerio
>
>
> ------------------------------------------------------------------------
> Scopri il Blog di Yahoo! Mail
> :
> trucchi, novit?, consigli... e la tua opinione!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
From geotech.sarel at gmail.com Mon Jun 2 05:09:18 2008
From: geotech.sarel at gmail.com (Sarel Coetzer)
Date: Mon, 2 Jun 2008 14:09:18 +0200
Subject: [mapserver-users] KML thematics from MS Layers
Message-ID: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
Hi
Need some advice on how to create thematic looking KML layers from MapServer
layers that is classified in 5 thematic classes.
This is a long shot and might be the wrong forum but I haven't had success
in the GDAL or OGR forums
Sarel
--
"http://sarelgis.blogspot.com/"
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From yatendra.jaiswal at gmail.com Mon Jun 2 06:01:03 2008
From: yatendra.jaiswal at gmail.com (yatendra)
Date: Mon, 2 Jun 2008 06:01:03 -0700 (PDT)
Subject: [MAPSERVER-USERS] How to save query layer in asp.net and reload it
again?
Message-ID: <17600714.post@talk.nabble.com>
Hi friends,
I am using asp.net and mapserver.
I have a base layer(County Polygon). a Intersecting layer of roads(Highways
line).
I selected 1 county using (Querybyattribute) attribute query and displayed
in yellow color on map.
I am able to get all line(Highways) shapes intersecting with selected base
(County ) Layer.
I am trying to zoom in each intersected line shape(highway) and trying to
highlight it in different color not same like yellow color as selected
(county).
I am able to zoom to intersected line shape(highway). but not able to change
layer color of it.
I think it can be done by saving querylayer and agaion reloading it. i am
not sure about this solution.
If any one have any idea or solution on this problem please help me out.
Thanks in advance
--
View this message in context: http://www.nabble.com/How-to-save-query-layer-in-asp.net-and-reload-it-again--tp17600714p17600714.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From valerio.vianello at yahoo.it Mon Jun 2 06:34:33 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Mon, 2 Jun 2008 13:34:33 +0000 (GMT)
Subject: [mapserver-users] insert png image in svg output
In-Reply-To: <4843D3D3.9040105@neogeo-online.net>
Message-ID: <942269.96902.qm@web27305.mail.ukl.yahoo.com>
If I open directly the svg file from the tmp directory it's work...while when I open the map file there is some problme with the templete, maybe as you said before in the IMG tag.
But the problem is that I would in output only the svg file and not a svg file with a link to a png image.
any suggestion ?
thanks Valerio
--- Lun 2/6/08, Guillaume Sueur <guillaume.sueur at neogeo-online.net> ha scritto:
Da: Guillaume Sueur <guillaume.sueur at neogeo-online.net>
Oggetto: Re: [mapserver-users] insert png image in svg output
A: valerio.vianello at yahoo.it
Cc: mapserver-users at lists.osgeo.org
Data: Luned? 2 giugno 2008, 13:04
actually, it's getting a bit clearer now.
what happens when you try to open the svg file in your web browser ?
Guillaume
valerio vianello a ?crit :
> Hi,
>
> I need that Mapserver give me an image in svg format. I tried to follow
> the instruction in
"http://mapserver.gis.umn.edu/docs/howto/svg-howto"
> but I still have some problems. My map file is composed by two layers: a
> raster layer (a png file) a polygon layer. I set in the map the output
> format as svg and I have put in the file this code :
> OUTPUTFORMAT
> NAME svg
> DRIVER "svg"
> MIMETYPE "image/svg+xml"
> IMAGEMODE PC256
> EXTENSION "svg"
> END
>
> In the Mapserver tmp directory there is two file. One file in png format
> with the raster layer and one file in svg format with the polygon layer
> and a link to the png file.
>
> There is a way to insert a real picture in the svg file in place of the
> link ?
>
> The following is the code in the svg file.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <svg version="1.1" width="600"
height="400"
> xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>
> <!-- START LAYER background -->
>
> <image xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png"
x="0" y="0"
> width="600" height="400"/>
>
> <!-- START LAYER floors -->
> <path stroke="#202020" stroke-width="1"
style="fill:none" d="M 8 28 L
> 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8 28
z"/>
> <path stroke="#202020" stroke-width="1"
style="fill:none" d="M 240 241 L
> 285 241 L 285 364 L 146 363 L 149 322 L 240 241 z"/>
> <path stroke="#202020" stroke-width="1"
style="fill:none" d="M 3 242 L
> 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242 z"/>
> <path stroke="#202020" stroke-width="1"
style="fill:none" d="M 5 30 L
> 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30 z"/>
> <path stroke="#202020" stroke-width="1"
style="fill:none" d="M 293 38 L
> 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/>
> <path stroke="#202020" stroke-width="1"
style="fill:none" d="M 436 41 L
> 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/>
> <path stroke="#ffff00" stroke-width="1"
style="fill:none" d="M 11 138 L
> 281 136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244 L 8 223
> L 11 138 z"/>
> <text x="115" y="234"
font-family="arial-bold" font-size="12pt"
> fill="#841f1f" text-anchor="end">s.X</text>
> <text x="466" y="106"
font-family="arial-bold" font-size="12pt"
> fill="#841f1f" text-anchor="end">s.F</text>
> <text x="323" y="106"
font-family="arial-bold" font-size="12pt"
> fill="#841f1f" text-anchor="end">s.E</text>
> <text x="50" y="90"
font-family="arial-bold" font-size="12pt"
> fill="#841f1f"
text-anchor="end">s.canteen</text>
> <text x="35" y="310"
font-family="arial-bold" font-size="12pt"
> fill="#841f1f" text-anchor="end">s.B</text>
> <text x="185" y="308"
font-family="arial-bold" font-size="12pt"
> fill="#841f1f" text-anchor="end">s.A</text>
> </svg>
>
> Any suggestion
>
> thanks valerio
>
>
> ------------------------------------------------------------------------
> Scopri il Blog di Yahoo! Mail
>
<http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F>:
> trucchi, novit?, consigli... e la tua opinione!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kobben at itc.nl Mon Jun 2 07:28:40 2008
From: kobben at itc.nl (Barend Kobben)
Date: Mon, 02 Jun 2008 16:28:40 +0200
Subject: [mapserver-users] insert png image in svg output
In-Reply-To: <942269.96902.qm@web27305.mail.ukl.yahoo.com>
Message-ID:
HI,
Putting a png raster as a xlink inside svg is the correct way according to
the SVG spec.
If I understand correctly, the SVG opens fine from the tmp dir when opened
locally, but not when pointing a browser there using http://...? Could it be
a permissions problem on the file (or more likely the tmp dir) in other
words, is the Web server allowed to serve the path mentioned in your href
(/ms4w/tmp/ms_tmp/4843c233_6948_1.png), and does it have anonymous read
rights, so the browser can pickj it up and show it..?
Also, what SVG user agent do you use: FireFox, Opera, IE with a plugin,
or...?
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
On 02-06-08 15:34, "valerio vianello" wrote:
> If I open directly the svg file from the tmp directory it's work...while when
> I open the map file there is some problme with the templete, maybe as you said
> before in the IMG tag.
>
> But the problem is that I would in output only the svg file and not a svg file
> with a link to a png image.
>
> any suggestion ?
>
> thanks Valerio
>
> --- Lun 2/6/08, Guillaume Sueur <guillaume.sueur at neogeo-online.net> ha
> scritto:
> Da: Guillaume Sueur <guillaume.sueur at neogeo-online.net>
> Oggetto: Re: [mapserver-users] insert png image in svg output
> A: valerio.vianello at yahoo.it
> Cc: mapserver-users at lists.osgeo.org
> Data: Luned? 2 giugno 2008, 13:04
>
> actually, it's getting a bit clearer now.
> what happens when you try to open the svg file in your web browser ?
>
> Guillaume
>
> valerio vianello a ?crit :
> > Hi,
> >
> > I need that Mapserver give me an image in svg format. I tried to follow
> > the instruction in
> "http://mapserver.gis.umn.edu/docs/howto/svg-howto"
> > but I still have some problems. My map file is composed by two layers: a
> > raster layer (a png file) a polygon layer. I set in the map the output
> > format as svg and I have put in the file this code :
> > OUTPUTFORMAT
> > NAME svg
> > DRIVER "svg"
> > MIMETYPE "image/svg+xml"
> > IMAGEMODE PC256
> > EXTENSION "svg"
> > END
> >
> > In the Mapserver tmp directory there is two file. One file in png format
> > with the raster layer and one file in svg format with the polygon layer
> > and a link to the png file.
> >
> > There is a way to insert a real picture in the svg file in place of the
> > link ?
> >
> > The following is the code in the svg file.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <svg version="1.1" width="600"
> height="400"
> > xmlns="http://www.w3.org/2000/svg"
> > xmlns:xlink="http://www.w3.org/1999/xlink">
> >
> > <!-- START LAYER background -->
> >
> > <image xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png"
> x="0" y="0"
> > width="600" height="400"/>
> >
> > <!-- START LAYER floors -->
> > <path stroke="#202020" stroke-width="1"
> style="fill:none" d="M 8 28 L
> > 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8 28
> z"/>
> > <path stroke="#202020" stroke-width="1"
> style="fill:none" d="M 240 241 L
> > 285 241 L 285 364 L 146 363 L 149 322 L 240 241 z"/>
> > <path stroke="#202020" stroke-width="1"
> style="fill:none" d="M 3 242 L
> > 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242 z"/>
> > <path stroke="#202020" stroke-width="1"
> style="fill:none" d="M 5 30 L
> > 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30 z"/>
> > <path stroke="#202020" stroke-width="1"
> style="fill:none" d="M 293 38 L
> > 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/>
> > <path stroke="#202020" stroke-width="1"
> style="fill:none" d="M 436 41 L
> > 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/>
> > <path stroke="#ffff00" stroke-width="1"
> style="fill:none" d="M 11 138 L
> > 281 136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244 L 8 223
> > L 11 138 z"/>
> > <text x="115" y="234"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f" text-anchor="end">s.X</text>
> > <text x="466" y="106"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f" text-anchor="end">s.F</text>
> > <text x="323" y="106"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f" text-anchor="end">s.E</text>
> > <text x="50" y="90"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
> text-anchor="end">s.canteen</text>
> > <text x="35" y="310"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f" text-anchor="end">s.B</text>
> > <text x="185" y="308"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f" text-anchor="end">s.A</text>
> > </svg>
> >
> > Any suggestion
> >
> > thanks valerio
> >
> >
> > ------------------------------------------------------------------------
> > Scopri il Blog di Yahoo! Mail
> >
> <http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3
> A%2F%2Fwww.ymailblogit.com%2Fblog%2F>:
>
> > trucchi, novit?, consigli... e la tua opinione!
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
>
>
> ___________________________________
> Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
> http://www.ymailblogit.com/blog/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
From guillaume.sueur at neogeo-online.net Mon Jun 2 09:15:29 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Mon, 02 Jun 2008 18:15:29 +0200
Subject: [mapserver-users] shape, SLD and Latin-1
Message-ID: <48441CA1.60701@neogeo-online.net>
Hi list,
I'm facing a character set problem.
People are uploading shapefiles onto a web platform. The shapefiles are
then displayed via mapserver, using SLD for styling. On some shapes,
there is a specific pattern to follow, and I use Rules in my SLD for
this. Until here, everything is fine.
But if the field on which I build the rule on contains specific
characters (??...), even if the same is written into the SLD file, it
doesn't match.
Where should I start my investigation from, knowing I don't control the
upcoming shapefiles, but I can transform them ? Is there a common
character set I could apply to both DBF and SLD for mapserver to match
the values ?
Thanks !
--
Guillaume
From woodbri at swoodbridge.com Mon Jun 2 11:31:29 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 02 Jun 2008 13:31:29 -0500
Subject: [mapserver-users] How to avoid point from overlaying one another
Message-ID: <48443C81.70101@swoodbridge.com>
Hi all,
I have a point layer that is displaying points of interest (POI). Each
POI has a classification that I use with a class expression to display a
different icon image for the POI. I some cities there are so many POIs
in a small spatial area that they all pile on top of one another and
make a mess.
Is there anyway to do collision avoidance with the points?
I can change the layer TYPE to ANNOTATION which will thin them based on
the ability to label them but it does not control whether they will be
overlapped anyway, just assures that the symbol will only get drawn IF
the label will fit.
Thoughts?
-Steve W
From jeshua at OpenOSX.com Mon Jun 2 12:06:23 2008
From: jeshua at OpenOSX.com (Jeshua Lacock)
Date: Mon, 2 Jun 2008 13:06:23 -0600
Subject: [mapserver-users] Label Line Layers Question
Message-ID:
Greetings,
I am working on a tutorial for MapServer using a Postgis backend, and
I just want to check if I am setting a correct example. This is my
first .map file so please forgive me for my noob question.
Is there a way to have text labels and lines on the same layer?
Instead of two Postgis queries, I was wondering if it is possible to
do with a single query.
Here is the pertinent portion of my .map files:
LAYER
CONNECTIONTYPE postgis
NAME "roads"
CONNECTION "user=postgres dbname=ca_hwy host=localhost"
DATA "the_geom FROM (SELECT roads.oid AS oid, roads.the_geom AS
the_geom, roads.fename AS fename FROM roads) AS named_roads USING
UNIQUE oid USING SRID=-1"
STATUS ON
TYPE ANNOTATION
LABELITEM fename
CLASS
LABEL
POSITION auto
ANGLE follow
SHADOWCOLOR 120 255 120
SHADOWSIZE 1 1
SIZE 8
COLOR 0 192 0
FONT sans-bold
TYPE truetype
BUFFER 4
MINDISTANCE 200
ANTIALIAS TRUE
END
END
END
LAYER
CONNECTIONTYPE postgis
NAME "roads"
CONNECTION "user=postgres dbname=ca_hwy host=localhost"
DATA "the_geom FROM roads USING UNIQUE oid USING SRID=-1"
STATUS ON
TYPE LINE
CLASS
SIZE 2
COLOR 0 0 0
END
END
Thanks,
Jeshua Lacock, Owner
phone: 877.240.1364
From James.Leveille at mtq.gouv.qc.ca Mon Jun 2 11:49:15 2008
From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=)
Date: Mon, 2 Jun 2008 14:49:15 -0400
Subject: [mapserver-users] mode=legend
Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E04996446@SINFRA0-EXC003.MTQ.MIN.INTRA>
Hi,
I'm trying to use MapServer in CGI mode to get a Legend in HTML format using
a TEMPLATE. My call :
http://localhost/mapserver5/mapserv.exe?map=d:\mymapfile.map&mode=legend&lay
er=mylayer
Starting from the example shown on
http://mapserver.gis.umn.edu/docs/howto/html_legend, here is my TEMPLATE
[leg_header_html]
[/leg_header_html]
[leg_class_html]
[leg_class_name]
[/leg_class_html]
[leg_footer_html]
[/leg_footer_html]
And the LEGEND declaration in my MapFile :
LEGEND
IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 20 10
LABEL
COLOR 200 0 0
TYPE TRUETYPE
FONT "arial"
SIZE 9
END
TEMPLATE "D:\legend.html"
END
The problem is that the (temporary) images (icons) produced by MapServer for
the legend are slightly cut at the top and bottom.
For example, the result of a GetLegendGraphic call returned the following :
While images obtained in CGI mode (mode=legend) are :
QUESTION 1 : What explains this difference ?
QUESTION 2 : How can I specify the AGG image format in CGI mode ?
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook.bmp
Type: image/bmp
Size: 9730 bytes
Desc: Outlook.bmp
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook.bmp
Type: image/bmp
Size: 8870 bytes
Desc: Outlook.bmp
URL:
From James.Leveille at mtq.gouv.qc.ca Mon Jun 2 12:09:03 2008
From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=)
Date: Mon, 2 Jun 2008 15:09:03 -0400
Subject: [mapserver-users] Label Line Layers Question
In-Reply-To:
Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E04996448@SINFRA0-EXC003.MTQ.MIN.INTRA>
Here is an example
# ========== Hydrographie lin?aire avec toponymes ==========
LAYER
NAME "hyd_lin_topnm"
PROJECTION
"init=epsg:42105"
END
METADATA
"wms_name" "Hydrographie lin?aire avec toponymes"
"wms_title" "Hydrographie lin?aire avec toponymes"
"wms_abstract" "Hydrographie lin?aire avec toponymes"
"wms_srs" "EPSG:4326 EPSG:4269 EPSG:42105 EPSG:32198"
END
STATUS ON
DUMP TRUE
EXTENT 30000 75000 1709360 2120440
MAXSCALE 150000
MINSCALE 1
TYPE LINE
DATA "hydro/hyd_lin_topnm/hydrg_bdat_l100k_20080130"
LABELITEM "TOPONYME"
CLASS
STYLE
COLOR 213 210 240
END
LABEL
TYPE TRUETYPE
FONT "verdana"
SIZE 8
ANGLE FOLLOW
COLOR 25 25 175
OUTLINECOLOR 255 255 255
MINDISTANCE 600
PARTIALS FALSE
END
END
END
______________________________________________________
JAMES L?VEILL?
Service des syst?mes de Mission
Direction des technologies de l'information
Minist?re des Transports du Qu?bec
5833, boul. Pierre-Bertrand, 2i?me ?tage
Qu?bec (Qu?bec) G2K 1K7
T?l?phone: (418) 380-2005 poste 227
T?l?copieur: (418) 644-6653
james.leveille at mtq.gouv.qc.ca
-----Message d'origine-----
De : mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Jeshua Lacock
Envoy? : 2 juin 2008 15:06
? : mapserver-users at lists.osgeo.org
Objet : [mapserver-users] Label Line Layers Question
Greetings,
I am working on a tutorial for MapServer using a Postgis backend, and
I just want to check if I am setting a correct example. This is my
first .map file so please forgive me for my noob question.
Is there a way to have text labels and lines on the same layer?
Instead of two Postgis queries, I was wondering if it is possible to
do with a single query.
Here is the pertinent portion of my .map files:
LAYER
CONNECTIONTYPE postgis
NAME "roads"
CONNECTION "user=postgres dbname=ca_hwy host=localhost"
DATA "the_geom FROM (SELECT roads.oid AS oid, roads.the_geom AS
the_geom, roads.fename AS fename FROM roads) AS named_roads USING
UNIQUE oid USING SRID=-1"
STATUS ON
TYPE ANNOTATION
LABELITEM fename
CLASS
LABEL
POSITION auto
ANGLE follow
SHADOWCOLOR 120 255 120
SHADOWSIZE 1 1
SIZE 8
COLOR 0 192 0
FONT sans-bold
TYPE truetype
BUFFER 4
MINDISTANCE 200
ANTIALIAS TRUE
END
END
END
LAYER
CONNECTIONTYPE postgis
NAME "roads"
CONNECTION "user=postgres dbname=ca_hwy host=localhost"
DATA "the_geom FROM roads USING UNIQUE oid USING SRID=-1"
STATUS ON
TYPE LINE
CLASS
SIZE 2
COLOR 0 0 0
END
END
Thanks,
Jeshua Lacock, Owner
phone: 877.240.1364
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From p.willis at telus.net Mon Jun 2 11:17:45 2008
From: p.willis at telus.net (pw)
Date: Mon, 02 Jun 2008 11:17:45 -0700
Subject: [mapserver-users] Problem Plotting a Symbol
Message-ID: <48443949.8050000@telus.net>
Hello,
1.)
I am plotting some points using mapserver however the CIRCLE symbol
appears to be plotting 4 times for each geographic point.
The four plotted points are located top,bottom,right, and left of the
geographic center of the point.
Each point looks like a little 4 petal daisy rather than a circle.
I have tried altering the symbol file to see if it is a definition
problem. As far as I can see the 'circle' symbol definition is
the same as the default.
Is there a solution for this problem?
2.)
Second to this, mapserver appears to be plotting the geographic
points and then warping to the output map projection. As a result
of this vector point icons appear to be distorted due to warping.
Is there any way to force mapserver to plot vectors with respect to
the output projection on the final map rather than plotting them
on the input map before warping?
Below is the information from mapserver related to
this problem.
Mapserver version:
MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
/*......LAYER FROM MAP FILE.................*/
LAYER
NAME "My_points"
GROUP "vectors"
METADATA
"wfs_title" "Some Points"
"DESCRIPTION" "Various Points"
END
PROJECTION
"proj=latlong"
END
TYPE POINT
CLASS
NAME "my_points"
TITLE "My Points"
COLOR 255 255 255
SYMBOL 'circle'
SIZE 5
END
STATUS OFF
OFFSITE 0 0 0
DATA "mypoints"
END
/*.......CIRCLE SYMBOL FROM SYMBOL FILE......*/
Symbol
Name 'circle'
Type ELLIPSE
Filled TRUE
Points
1 1
END
END
From rwburgholzer at deq.virginia.gov Mon Jun 2 12:16:40 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Mon, 2 Jun 2008 15:16:40 -0400
Subject: [mapserver-users] How to avoid point from overlaying one another
References: <48443C81.70101@swoodbridge.com>
Message-ID: <6C097DA58429B743A67070F98BE73A37025DD7AE@deqex01.deq.local>
Steve,
My $0.02 on this isn't really a mapserver specific solution, so it may be of limited interest to you. I played around with a little PostGIS view/query to dynamically cluster points of multiple individuals representing residents of a household. What I came up with was a formula that essentially built them in a spiral around the centroid of the point. Perhaps you might use a similar approach for a certain maxextent/minextent before you could be certain that a user was zoomed in enough to view all points successfully.
The description and a sample dataset is here:
http://soulswimmer.dynalias.net/gis/psql/visualize_demo.sql.txt
Good luck,
r.b.
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org on behalf of Stephen Woodbridge
Sent: Mon 6/2/2008 2:31 PM
To: mapserver-users
Cc:
Subject: [mapserver-users] How to avoid point from overlaying one another
Hi all,
I have a point layer that is displaying points of interest (POI). Each
POI has a classification that I use with a class expression to display a
different icon image for the POI. I some cities there are so many POIs
in a small spatial area that they all pile on top of one another and
make a mess.
Is there anyway to do collision avoidance with the points?
I can change the layer TYPE to ANNOTATION which will thin them based on
the ability to label them but it does not control whether they will be
overlapped anyway, just assures that the symbol will only get drawn IF
the label will fit.
Thoughts?
-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 jeshua at openosx.com Mon Jun 2 13:22:54 2008
From: jeshua at openosx.com (Jeshua Lacock)
Date: Mon, 2 Jun 2008 14:22:54 -0600
Subject: [mapserver-users] Anit-alias Lines?
Message-ID:
Greetings,
(thanks James L?veill? - your advice worked perfectly!)
I was wondering how to produce anti-aliased lines. I tried using the
'ANTIALIAS true' statement with the style for the line, and I also
tried using the AGG renderer (mapserver was compiled with AGG), but my
lines still do not appear anti-aliased.
Here is an example of my output:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line-example.png
Type: image/png
Size: 25267 bytes
Desc: not available
URL:
-------------- next part --------------
And the corresponding sections of my .map file:
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END
LAYER
CONNECTIONTYPE postgis
NAME "roads"
CONNECTION "user=postgres dbname=ca_hwy host=localhost"
DATA "the_geom FROM (SELECT roads.oid AS oid, roads.the_geom AS
the_geom, roads.fename AS fename FROM roads) AS named_roads USING
UNIQUE oid USING SRID=-1"
STATUS ON
TYPE LINE
LABELITEM fename
CLASS
STYLE
COLOR 100 100 100
WIDTH 4
ANTIALIAS TRUE
END
END
END
(I removed the label section to abbreviate)
Can anyone tell me what I am doing wrong or if that is the best I can
make it look?
Jeshua Lacock, Owner
phone: 877.240.1364
From James.Leveille at mtq.gouv.qc.ca Mon Jun 2 13:32:52 2008
From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=)
Date: Mon, 2 Jun 2008 16:32:52 -0400
Subject: [mapserver-users] Anit-alias Lines?
In-Reply-To:
Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E0499644D@SINFRA0-EXC003.MTQ.MIN.INTRA>
In your MapFile, add the following
OUTPUTFORMAT
NAME "AGG"
DRIVER AGG/PNG
IMAGEMODE RGB
END
In the getMap statement, add FORMAT=agg, as in
http://localhost/MapServer5/mapserv.exe?map=D:\mymapfile.map&VERSION=1.1.1&R
EQUEST=GetMap&LAYERS=allmylayers&STYLES=,,,,,,,,,,,,&SRS=EPSG:42105&BBOX=678
715.039028806,298202.419835631,721017.45078271,325126.670952306&WIDTH=850&HE
IGHT=541&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&TRANSPARENT=
FALSE&FORMAT=agg
... And no need to specify the ANTIALIAS tag in your MapFile
______________________________________________________
JAMES L?VEILL?
Service des syst?mes de Mission
Direction des technologies de l'information
Minist?re des Transports du Qu?bec
5833, boul. Pierre-Bertrand, 2i?me ?tage
Qu?bec (Qu?bec) G2K 1K7
T?l?phone: (418) 380-2005 poste 227
T?l?copieur: (418) 644-6653
james.leveille at mtq.gouv.qc.ca
-----Message d'origine-----
De : mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Jeshua Lacock
Envoy? : 2 juin 2008 16:23
? : mapserver-users at lists.osgeo.org
Objet : [mapserver-users] Anit-alias Lines?
Greetings,
(thanks James L?veill? - your advice worked perfectly!)
I was wondering how to produce anti-aliased lines. I tried using the
'ANTIALIAS true' statement with the style for the line, and I also
tried using the AGG renderer (mapserver was compiled with AGG), but my
lines still do not appear anti-aliased.
Here is an example of my output:
From woodbri at swoodbridge.com Mon Jun 2 14:33:44 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Mon, 02 Jun 2008 16:33:44 -0500
Subject: [mapserver-users] Label Line Layers Question
In-Reply-To:
References:
Message-ID: <48446738.7040707@swoodbridge.com>
Yup,
> LAYER
> CONNECTIONTYPE postgis
> NAME "roads"
> CONNECTION "user=postgres dbname=ca_hwy host=localhost"
> DATA "the_geom FROM (SELECT roads.oid AS oid, roads.the_geom AS
> the_geom, roads.fename AS fename FROM roads) AS named_roads USING UNIQUE
> oid USING SRID=-1"
> STATUS ON
> TYPE LINE
> LABELITEM fename
> CLASS
> SIZE 2
> COLOR 0 0 0
> LABEL
> POSITION auto
> ANGLE follow
> SHADOWCOLOR 120 255 120
> SHADOWSIZE 1 1
> SIZE 8
> COLOR 0 192 0
> FONT sans-bold
> TYPE truetype
> BUFFER 4
> MINDISTANCE 200
> ANTIALIAS TRUE
> END
> END
> END
-Steve W
Jeshua Lacock wrote:
>
> Greetings,
>
> I am working on a tutorial for MapServer using a Postgis backend, and I
> just want to check if I am setting a correct example. This is my first
> .map file so please forgive me for my noob question.
>
> Is there a way to have text labels and lines on the same layer? Instead
> of two Postgis queries, I was wondering if it is possible to do with a
> single query.
>
> Here is the pertinent portion of my .map files:
>
> LAYER
> CONNECTIONTYPE postgis
> NAME "roads"
> CONNECTION "user=postgres dbname=ca_hwy host=localhost"
> DATA "the_geom FROM (SELECT roads.oid AS oid, roads.the_geom AS
> the_geom, roads.fename AS fename FROM roads) AS named_roads USING UNIQUE
> oid USING SRID=-1"
> STATUS ON
> TYPE ANNOTATION
> LABELITEM fename
> CLASS
> LABEL
> POSITION auto
> ANGLE follow
> SHADOWCOLOR 120 255 120
> SHADOWSIZE 1 1
> SIZE 8
> COLOR 0 192 0
> FONT sans-bold
> TYPE truetype
> BUFFER 4
> MINDISTANCE 200
> ANTIALIAS TRUE
> END
> END
> END
>
> LAYER
> CONNECTIONTYPE postgis
> NAME "roads"
> CONNECTION "user=postgres dbname=ca_hwy host=localhost"
> DATA "the_geom FROM roads USING UNIQUE oid USING SRID=-1"
> STATUS ON
> TYPE LINE
> CLASS
> SIZE 2
> COLOR 0 0 0
> END
> END
>
>
> Thanks,
>
> Jeshua Lacock, Owner
>
> phone: 877.240.1364
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From jeshua at openosx.com Mon Jun 2 14:11:51 2008
From: jeshua at openosx.com (Jeshua Lacock)
Date: Mon, 2 Jun 2008 15:11:51 -0600
Subject: [mapserver-users] Anit-alias Lines?
In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E0499644D@SINFRA0-EXC003.MTQ.MIN.INTRA>
References: <2F86ED212F3E164EB9FBB2E68C67858E0499644D@SINFRA0-EXC003.MTQ.MIN.INTRA>
Message-ID:
On Jun 2, 2008, at 2:32 PM, L?veill?, James wrote:
> In the getMap statement, add FORMAT=agg, as in
>
> http://localhost/MapServer5/mapserv.exe?map=D:
> \mymapfile.map&VERSION=1.1.1&R
> EQUEST=GetMap&LAYERS=allmylayers&STYLES=,,,,,,,,,,,,&SRS=EPSG:
> 42105&BBOX=678
> 715.039028806,298202.419835631,721017.45078271,325126.670952306
> &WIDTH=850&HE
> IGHT=541&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/
> vnd.ogc.se_xml&TRANSPARENT=
> FALSE&FORMAT=agg
Thanks for the tip. I am using ka-map, so it renders beautifully now
after following these brief instructions:
Thanks again,
Jeshua Lacock, Owner
phone: 877.240.1364
From rodrigomlg at gmail.com Mon Jun 2 19:14:03 2008
From: rodrigomlg at gmail.com (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=)
Date: Mon, 2 Jun 2008 23:14:03 -0300
Subject: [mapserver-users] ms4w 2.1 and Apache mod_rewrite
Message-ID: <10cf58b30806021914j26d6478etdd2a94c009ffbca5@mail.gmail.com>
Hi list.
I'm trying to use mod_rewrite in my ms4w 2.1 package. I tried almost
everything I have found on Internet (uncommenting the Loadmodule line in
httpd.conf, check for ClearModuleList directive, modify the
Options, etc.) but still can't get it working. I'm starting to think that
there may be another problem with that module in ms4w 2.1 package but I
can't find any solution at all. Does anyone get this module working in
Apache of ms4w 2.1 package? I know there is a newer version of ms4w package
but I was trying to keep the older version of ms4w.
Any help would be appreciated. Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From valerio.vianello at yahoo.it Mon Jun 2 22:53:15 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Tue, 3 Jun 2008 05:53:15 +0000 (GMT)
Subject: [mapserver-users] insert png image in svg output
In-Reply-To:
Message-ID: <311387.61514.qm@web27304.mail.ukl.yahoo.com>
Hi,
so there is no way to have in output an svg file with all the layer ? because if I understood Mapserver don't support svg file in input and according to the svg spec a png file is only linked by a svg file.
Regard to the map rendering I use Firefox and if I open the svg file with firefox it works fine. The problem is the html template linked to the map. probably the issue is in the code that I use to visualize the tmp image.
<td>
<!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
<input type="image" name="img" src="[img]"
width="600" height="400">
</td>
Do you know what is the correct code that I have to insert in the template to visualize the svg file ?
thanks
Valerio.
--- Lun 2/6/08, Barend Kobben <kobben at itc.nl> ha scritto:
Da: Barend Kobben <kobben at itc.nl>
Oggetto: Re: [mapserver-users] insert png image in svg output
A: valerio.vianello at yahoo.it, guillaume.sueur at neogeo-online.net
Cc: mapserver-users at lists.osgeo.org
Data: Luned? 2 giugno 2008, 16:28
HI,
Putting a png raster as a xlink inside svg is the correct way according to
the SVG spec.
If I understand correctly, the SVG opens fine from the tmp dir when opened
locally, but not when pointing a browser there using http://...? Could it be
a permissions problem on the file (or more likely the tmp dir) in other
words, is the Web server allowed to serve the path mentioned in your href
(/ms4w/tmp/ms_tmp/4843c233_6948_1.png), and does it have anonymous read
rights, so the browser can pickj it up and show it..?
Also, what SVG user agent do you use: FireFox, Opera, IE with a plugin,
or...?
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
On 02-06-08 15:34, "valerio vianello"
<valerio.vianello at yahoo.it> wrote:
> If I open directly the svg file from the tmp directory it's
work...while when
> I open the map file there is some problme with the templete, maybe as you
said
> before in the IMG tag.
>
> But the problem is that I would in output only the svg file and not a svg
file
> with a link to a png image.
>
> any suggestion ?
>
> thanks Valerio
>
> --- Lun 2/6/08, Guillaume Sueur
<guillaume.sueur at neogeo-online.net> ha
> scritto:
> Da: Guillaume Sueur <guillaume.sueur at neogeo-online.net>
> Oggetto: Re: [mapserver-users] insert png image in svg output
> A: valerio.vianello at yahoo.it
> Cc: mapserver-users at lists.osgeo.org
> Data: Luned? 2 giugno 2008, 13:04
>
> actually, it's getting a bit clearer now.
> what happens when you try to open the svg file in your web browser ?
>
> Guillaume
>
> valerio vianello a ?crit :
> > Hi,
> >
> > I need that Mapserver give me an image in svg format. I tried to
follow
> > the instruction in
> "http://mapserver.gis.umn.edu/docs/howto/svg-howto"
> > but I still have some problems. My map file is composed by two
layers: a
> > raster layer (a png file) a polygon layer. I set in the map the
output
> > format as svg and I have put in the file this code :
> > OUTPUTFORMAT
> > NAME svg
> > DRIVER "svg"
> > MIMETYPE "image/svg+xml"
> > IMAGEMODE PC256
> > EXTENSION "svg"
> > END
> >
> > In the Mapserver tmp directory there is two file. One file in png
format
> > with the raster layer and one file in svg format with the polygon
layer
> > and a link to the png file.
> >
> > There is a way to insert a real picture in the svg file in place
of the
> > link ?
> >
> > The following is the code in the svg file.
> >
> > <?xml version="1.0"
encoding="UTF-8"?>
> > <svg version="1.1" width="600"
> height="400"
> > xmlns="http://www.w3.org/2000/svg"
> > xmlns:xlink="http://www.w3.org/1999/xlink">
> >
> > <!-- START LAYER background -->
> >
> > <image
xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png"
> x="0" y="0"
> > width="600" height="400"/>
> >
> > <!-- START LAYER floors -->
> > <path stroke="#202020"
stroke-width="1"
> style="fill:none" d="M 8 28 L
> > 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8
28
> z"/>
> > <path stroke="#202020"
stroke-width="1"
> style="fill:none" d="M 240 241 L
> > 285 241 L 285 364 L 146 363 L 149 322 L 240 241 z"/>
> > <path stroke="#202020"
stroke-width="1"
> style="fill:none" d="M 3 242 L
> > 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242
z"/>
> > <path stroke="#202020"
stroke-width="1"
> style="fill:none" d="M 5 30 L
> > 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30
z"/>
> > <path stroke="#202020"
stroke-width="1"
> style="fill:none" d="M 293 38 L
> > 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/>
> > <path stroke="#202020"
stroke-width="1"
> style="fill:none" d="M 436 41 L
> > 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/>
> > <path stroke="#ffff00"
stroke-width="1"
> style="fill:none" d="M 11 138 L
> > 281 136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244
L 8 223
> > L 11 138 z"/>
> > <text x="115" y="234"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
text-anchor="end">s.X</text>
> > <text x="466" y="106"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
text-anchor="end">s.F</text>
> > <text x="323" y="106"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
text-anchor="end">s.E</text>
> > <text x="50" y="90"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
> text-anchor="end">s.canteen</text>
> > <text x="35" y="310"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
text-anchor="end">s.B</text>
> > <text x="185" y="308"
> font-family="arial-bold" font-size="12pt"
> > fill="#841f1f"
text-anchor="end">s.A</text>
> > </svg>
> >
> > Any suggestion
> >
> > thanks valerio
> >
> >
> >
------------------------------------------------------------------------
> > Scopri il Blog di Yahoo! Mail
> >
>
<http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3
> A%2F%2Fwww.ymailblogit.com%2Fblog%2F>:
>
> > trucchi, novit?, consigli... e la tua opinione!
> >
> >
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
>
>
> ___________________________________
> Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua
opinione!
> http://www.ymailblogit.com/blog/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the
addressee only. If you are not the intended recipient, you are hereby notified
that any disclosure, copying, distribution or action in relation to the content
of this information is strictly prohibited. If you have received this e-mail by
mistake, please delete the message and any attachment and inform the sender by
return e-mail. ITC accepts no liability for any error or omission in the
message content or for damage of any kind that may arise as a result of e-mail
transmission.
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kobben at itc.nl Mon Jun 2 23:37:45 2008
From: kobben at itc.nl (Barend Kobben)
Date: Tue, 03 Jun 2008 08:37:45 +0200
Subject: [mapserver-users] insert png image in svg output
In-Reply-To: <311387.61514.qm@web27304.mail.ukl.yahoo.com>
Message-ID:
> so there is no way to have in output an svg file with all the layer ? because
> if I understood Mapserver don't support svg file in input and according to the
> svg spec a png file is only linked by a svg file.
You can put a PNG inline inside SVG, but I do not see how that would help
you. I think the problem is that you use a Template, where the SVG gets
inserted into the HTML as an IMG object. Although I think it works sometimes
in some User Agents, that is not the correct way. Remember that an SVG
'picture' is a piece of XML to be interpreted, not a ratser image you can
just render directly to screen. So, if used inside (X)HTML it should be
embedded properly, eg. like:
See http://wiki.svg.org/SVG_and_HTML for more possibilities and explanation.
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
From yatendra.jaiswal at gmail.com Mon Jun 2 23:52:43 2008
From: yatendra.jaiswal at gmail.com (yatendra)
Date: Mon, 2 Jun 2008 23:52:43 -0700 (PDT)
Subject: [MAPSERVER-USERS] GD Library Error???? Please help....
Message-ID: <17617109.post@talk.nabble.com>
Hi Friends,
I am changing querymap layer color by using
map.querymap.color.setRGB(0,0,255) in asp.net.
I am getting error
"msDrawMap(): Image handling error. Unable to initialize
image.;msPrepareImage(): GD library error. Unable to initialize
image.;msImageCreateGD(): Image handling error. Cannot create GD"
Can any one explain why i am getting this error and what can be its
solution.
Thanks in advance...
--
View this message in context: http://www.nabble.com/GD-Library-Error-----Please-help....-tp17617109p17617109.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From valerio.vianello at yahoo.it Tue Jun 3 00:45:37 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Tue, 3 Jun 2008 07:45:37 +0000 (GMT)
Subject: [mapserver-users] insert png image in svg output
In-Reply-To:
Message-ID: <319651.21324.qm@web27306.mail.ukl.yahoo.com>
Ok thanks now it works but......
little background....To do my example I started from Mapserver tutorial
(example 2.1: http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-1.html)
With png output it works fine. When I changed the output format to svg the zoom setting is changed.
Before I could click on the image to zoom in and zoom out now with svg output format to zoom in and zoom out I have to click on refresh button because the image is no longer possible click on the image.
The same thing happen when I try to execute a query on a layer.
thanks for your help.
Valerio
--- Mar 3/6/08, Barend Kobben <kobben at itc.nl> ha scritto:
Da: Barend Kobben <kobben at itc.nl>
Oggetto: Re: [mapserver-users] insert png image in svg output
A: valerio.vianello at yahoo.it, guillaume.sueur at neogeo-online.net
Cc: mapserver-users at lists.osgeo.org
Data: Marted? 3 giugno 2008, 08:37
> so there is no way to have in output an svg file with all the layer ?
because
> if I understood Mapserver don't support svg file in input and
according to the
> svg spec a png file is only linked by a svg file.
You can put a PNG inline inside SVG, but I do not see how that would help
you. I think the problem is that you use a Template, where the SVG gets
inserted into the HTML as an IMG object. Although I think it works sometimes
in some User Agents, that is not the correct way. Remember that an SVG
'picture' is a piece of XML to be interpreted, not a ratser image you
can
just render directly to screen. So, if used inside (X)HTML it should be
embedded properly, eg. like:
<object data="sample.svgz" type="image/svg+xml"
width="400" height="300">
<embed src="sample.svgz" type="image/svg+xml"
width="400" height="300" />
</object>
See http://wiki.svg.org/SVG_and_HTML for more possibilities and explanation.
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the
addressee only. If you are not the intended recipient, you are hereby notified
that any disclosure, copying, distribution or action in relation to the content
of this information is strictly prohibited. If you have received this e-mail by
mistake, please delete the message and any attachment and inform the sender by
return e-mail. ITC accepts no liability for any error or omission in the
message content or for damage of any kind that may arise as a result of e-mail
transmission.
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From damarmo at gmail.com Tue Jun 3 01:48:08 2008
From: damarmo at gmail.com (David Martinez Morata)
Date: Tue, 3 Jun 2008 10:48:08 +0200
Subject: [mapserver-users] Output Raster format
Message-ID: <9771eb540806030148l397d2311t91953e669ed7a708@mail.gmail.com>
Hello!
I have a question about customizing output format for a WMS server.
I have a Raster collection in .tiff format, I make a wms server with this
raster files. The output in mapfile its not specified in map file.
My question its:
Can we change the contrast, saturation and other values for output image?
How? With GDAL functions?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kobben at itc.nl Tue Jun 3 02:15:24 2008
From: kobben at itc.nl (Barend Kobben)
Date: Tue, 03 Jun 2008 11:15:24 +0200
Subject: [mapserver-users] insert png image in svg output
In-Reply-To: <319651.21324.qm@web27306.mail.ukl.yahoo.com>
Message-ID:
Hi,
I do not use the mapserver SVG output much myself, mostly because last time
I tried (over a year ago), the SVG output was not very good. It lacks
graphic quality in that it does not really use the possibilties of SVG like
I'd wish. But I am quite a bit biassed, firstly because I'm the WMS
interface and secondly because we have our own RIMapperWMS that is a WMS
exlusively for SVG output (kartoweb.itc.nl/RIMapper/)...
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
On 03-06-08 09:45, "valerio vianello" wrote:
> Ok thanks now it works but......
>
> little background....To do my example I started from Mapserver tutorial
>
> (example 2.1:
> http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs
> /example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&a
> mp;program=/cgi-bin/mapserv.exe&map_web=template+example2-1.html)
>
> With png output it works fine. When I changed the output format to svg the
> zoom setting is changed.
>
> Before I could click on the image to zoom in and zoom out now with svg output
> format to zoom in and zoom out I have to click on refresh button because the
> image is no longer possible click on the image.
> The same thing happen when I try to execute a query on a layer.
>
> thanks for your help.
> Valerio
>
>
>
> --- Mar 3/6/08, Barend Kobben <kobben at itc.nl> ha scritto:
> Da: Barend Kobben <kobben at itc.nl>
> Oggetto: Re: [mapserver-users] insert png image in svg output
> A: valerio.vianello at yahoo.it, guillaume.sueur at neogeo-online.net
> Cc: mapserver-users at lists.osgeo.org
> Data: Marted? 3 giugno 2008, 08:37
>
> > so there is no way to have in output an svg file with all the layer ?
> because
> > if I understood Mapserver don't support svg file in input and
> according to the
> > svg spec a png file is only linked by a svg file.
>
> You can put a PNG inline inside SVG, but I do not see how that would help
> you. I think the problem is that you use a Template, where the SVG gets
> inserted into the HTML as an IMG object. Although I think it works sometimes
> in some User Agents, that is not the correct way. Remember that an SVG
> 'picture' is a piece of XML to be interpreted, not a ratser image you
> can
> just render directly to screen. So, if used inside (X)HTML it should be
> embedded properly, eg. like:
>
> <object data="sample.svgz" type="image/svg+xml"
> width="400" height="300">
> <embed src="sample.svgz" type="image/svg+xml"
> width="400" height="300" />
> </object>
>
> See http://wiki.svg.org/SVG_and_HTML for more possibilities and explanation.
>
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
From Jukka.Rahkonen at mmmtike.fi Tue Jun 3 03:25:42 2008
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Tue, 3 Jun 2008 13:25:42 +0300
Subject: [mapserver-users] Output Raster format
In-Reply-To: <9771eb540806030148l397d2311t91953e669ed7a708@mail.gmail.com>
Message-ID:
Hi
Mapserver is not much like web processing service. However, something can be done with layer PROCESSING directives SCALE and LUT. There may be other options for customizing which I am not aware.
http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives
Sometimes I have been thinking that it would be nice to have an option to push aerial photos out through some sort of sharpening filter.
-Jukka Rahkonen-
________________________________
L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta David Martinez Morata
L?hetetty: 3. kes?kuuta 2008 11:48
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Output Raster format
Hello!
I have a question about customizing output format for a WMS server.
I have a Raster collection in .tiff format, I make a wms server with this raster files. The output in mapfile its not specified in map file.
My question its:
Can we change the contrast, saturation and other values for output image? How? With GDAL functions?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From rwburgholzer at deq.virginia.gov Tue Jun 3 05:31:00 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Tue, 3 Jun 2008 08:31:00 -0400
Subject: [mapserver-users] PHP: Segmentation fault when draw()
orsaveWebImage()
References: <6C097DA58429B743A67070F98BE73A3702B13D80@deqex01.deq.local>
Message-ID: <6C097DA58429B743A67070F98BE73A37025DD7B3@deqex01.deq.local>
Pavel,
So... the trouble is actually with the rasters, not with the Mapserver version? As evidenced by the fact that now neither the previous nor the current version of mapserver work for you? Couple of questions:
1. Can you render this map from the mapserver CGI?
2. Did you recompile PHP, mapserver, and the PHPMapscript with the same options? Perhaps there is a missing option pertaining to the raster graphic format?
HTH,
r.b.
-----Original Message-----
From: Pavel Dobe? [mailto:dobes at lnx.cz]
Sent: Tue 6/3/2008 2:27 AM
To: Burgholzer,Robert
Cc:
Subject: Re: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage()
On 27.5.2008, at 14:50, Burgholzer,Robert wrote:
> Pavel,
> Sounds like you might have some other problem in your mapfile.
> Perhaps some syntax was allowable in the previous version of
> mapserver that is no longer OK. Might want to check the changelog
> of your new version, and go from there. Also, since the legend
> works, you might want to sequentially comment out your layers to
> determine if you have a specific layer with a problem.
>
Hi Robert,
Thanks for advice. But downgrade to the same version of PHP &
Mapserver (ie 5.0.0) as before don't solve my problem. (the version of
apache was chenged because of security issues).
So now is working one collection of 3 maps in one mapfile and not
working collection of 3 maps in one mapfile too... (but 90 % of load
is targetting not working maps).
When I comment out all raster layers it's working. (reference map,
scale bar, grid and drawned points on the map).
When I commnet out only some of raster layers, it works on 33% (once
yes, 2 times not). I increase amount of allowed memory in php.ini file
(to 1024M) but without any visible effect.
Bye
Pavel
>
> Robert W. Burgholzer
> Surface Water Modeler
> Office of Water Supply and Planning
> Virginia Department of Environmental Quality
> rwburgholzer at deq.virginia.gov
> 804-698-4405
> Open Source Modeling Tools:
> http://sourceforge.net/projects/npsource/
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org
> ] On Behalf Of Pavel Dobe?
> Sent: Saturday, May 24, 2008 3:41 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] PHP: Segmentation fault when draw()
> orsaveWebImage()
>
> Hi to all,
>
> I run mapserver on my gentoo server now with php-5.2.6_rc4.
>
> After upgrade the apache is falling down with message:
>
> [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal
> Segmentation fault (11)
>
> With mapserver 5.0.0-r1 the last line is
>
> $url = $image->saveWebImage();
>
> When I upgrade to 5.0.2 the last lins was
> $image=$map->draw();
>
> $image is from $image=$map->prepareImage(); in both cases...
>
> Any hint, whitch mix of versions (PHP & mapserver) is OK or how to
> pretend this segfault?
>
> Tahnks
> Pavel
> PS: this simple script works
> header("Content-type: image/jpeg");
>
> $map = ms_newMapObj("file.map");
> $img = $map->drawScaleBar();
> $img->saveImage('');
>
> ?>
> _______________________________________________
> 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 ogomez2 at gmail.com Tue Jun 3 08:07:17 2008
From: ogomez2 at gmail.com (Oscar Gomez)
Date: Tue, 3 Jun 2008 17:07:17 +0200
Subject: [mapserver-users] MapServer + SLD + transparency
Message-ID: <6f2569d80806030807n65181cc5p6ee9069d64701fb9@mail.gmail.com>
Hi all!
I'm having some trouble trying to use SLDs with MapServer.
I'm requesting maps from GoogleEarth using a NetworkLink object and a custom
KML-WMS-KML parser.
If I apply "simple" symbology through a custom SLD, it works, and the
background of the map created by MapServer is transparent, so only the
"vectors" are shown in GoogleEarth.
But if I use an SLD symbology using an external picture (
tag in SLD), then the background of the map created by MapServer is not
transparent anymore. Then Google Earth shows a map with white background.
Has anyone experienced the same? Can this be solved?
Thanks in advance,
Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kreshna_iceheart at yahoo.com Tue Jun 3 08:15:48 2008
From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com)
Date: Tue, 3 Jun 2008 08:15:48 -0700 (PDT)
Subject: [mapserver-users] Dinamically changing HTML Template using CGI
parameter? (instead of hardcoded)
Message-ID: <338084.40198.qm@web56104.mail.re3.yahoo.com>
I have one mapfile, let say, PACITAN.MAP, with two template files: PACITAN-TMPL.HTML and PACITAN-PRINT-TMPL.HTML. The former is the "primary" template for the normal web map display, while the latter has "cleaner look" for printing purpose (print page).
The print page (PACITAN-PRINT-TMPL.HTML) is called from the "primary" template page using JavaScript window.open() function.
When calling the print page, I can easily pass (and manipulate, if necessary) map-related information using CGI parameters. For example, layer information (ie which layers are selected) is passed with layers=[layers] CGI parameter, while extent information is passed with mapext=[minx], [miny], [maxx], [maxy] parameter.
The problem is: since the name of HTML template is hard-coded in the *.map file, I have to create another map file named PACITAN-PRINT.MAP, which is basically an exact copy of PACITAN.MAP, but using PACITAN-PRINT-TMPL.HTML as template (hard-coded in the mapfile, of course).
If I can dynamically change the name of the HTML template using CGI parameters, I don't have to use two versions of mapfile; I can just use one mapfile with two HTML templates and be done with it.
The problem is; is it possible to pass the name of the HTML template using CGI parameters? And if it is, then how? I have browsed MapServer documentations and this is all I found:
TEMPLATE has been removed, since the map_web_template syntax can be
used to alter a template file. Simplifies security maintenance by only
having to deal with this option in a single place. Note that the
TEMPLATEPATTERN of the mapfile has to be used to enable this feature.
However, save the vague reference above, I just could not find any other explanation about the map_web_template syntax above. Is it a CGI parameter? Can I just use the map_web_template parameter in my url, to specify which template to use?
Many thanks,
-Kresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From w.blanken at geon.nl Tue Jun 3 09:02:08 2008
From: w.blanken at geon.nl (Wim Blanken)
Date: Tue, 3 Jun 2008 18:02:08 +0200
Subject: [mapserver-users] Dinamically changing HTML Template using
CGIparameter? (instead of hardcoded)
In-Reply-To: <338084.40198.qm@web56104.mail.re3.yahoo.com>
Message-ID:
Hello Kresh,
In Mapserver version 5 you can change the HTML template as follows.
At first you will have to set the templatepattern in the root part of the
mapfile (below MAP).
TEMPLATEPATTERN ".*"
Then you can change the template in the cgi with:
...&map_layer[Wegen]=TEMPLATE+othertemplate.html
'Wegen' is the name of the layer.
You may have to put the name of the template between single quotes...
It is also propably needed that you specify the full path to the template
file.
Regards,
Wim Blanken
The Netherlands
_____
Van: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Namens
kreshna_iceheart at yahoo.com
Verzonden: Tuesday, June 03, 2008 5:16 PM
Aan: mapserver-users at lists.osgeo.org
Onderwerp: [mapserver-users] Dinamically changing HTML Template using
CGIparameter? (instead of hardcoded)
I have one mapfile, let say, PACITAN.MAP, with two template files:
PACITAN-TMPL.HTML and PACITAN-PRINT-TMPL.HTML. The former is the "primary"
template for the normal web map display, while the latter has "cleaner look"
for printing purpose (print page).
The print page (PACITAN-PRINT-TMPL.HTML) is called from the "primary"
template page using JavaScript window.open() function.
When calling the print page, I can easily pass (and manipulate, if
necessary) map-related information using CGI parameters. For example, layer
information (ie which layers are selected) is passed with layers=[layers]
CGI parameter, while extent information is passed with mapext=[minx],
[miny], [maxx], [maxy] parameter.
The problem is: since the name of HTML template is hard-coded in the *.map
file, I have to create another map file named PACITAN-PRINT.MAP, which is
basically an exact copy of PACITAN.MAP, but using PACITAN-PRINT-TMPL.HTML as
template (hard-coded in the mapfile, of course).
If I can dynamically change the name of the HTML template using CGI
parameters, I don't have to use two versions of mapfile; I can just use one
mapfile with two HTML templates and be done with it.
The problem is; is it possible to pass the name of the HTML template using
CGI parameters? And if it is, then how? I have browsed MapServer
documentations and this is all I found:
TEMPLATE has been removed, since the map_web_template syntax can be used to
alter a template file. Simplifies security maintenance by only having to
deal with this option in a single place. Note that the TEMPLATEPATTERN of
the mapfile has to be used to enable this feature.
However, save the vague reference above, I just could not find any other
explanation about the map_web_template syntax above. Is it a CGI parameter?
Can I just use the map_web_template parameter in my url, to specify which
template to use?
Many thanks,
-Kresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From w.blanken at geon.nl Tue Jun 3 09:13:26 2008
From: w.blanken at geon.nl (Wim Blanken)
Date: Tue, 3 Jun 2008 18:13:26 +0200
Subject: [mapserver-users] Dinamically changing HTML Template using
CGIparameter? (instead of hardcoded)
In-Reply-To: <338084.40198.qm@web56104.mail.re3.yahoo.com>
Message-ID:
Hello Kresh,
Sorry, I did not read you question carefull enough..the answer is about
changing the template of a single layer and not the main template.
Changing the main map template goes with cgi (mapserver 5) i believe as
follows:
.......&map_web=TEMPLATE+othertemplate.html
Sorry for the inconvenience..
Wim Blanken
The Netherlands
_____
Van: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Namens
kreshna_iceheart at yahoo.com
Verzonden: Tuesday, June 03, 2008 5:16 PM
Aan: mapserver-users at lists.osgeo.org
Onderwerp: [mapserver-users] Dinamically changing HTML Template using
CGIparameter? (instead of hardcoded)
I have one mapfile, let say, PACITAN.MAP, with two template files:
PACITAN-TMPL.HTML and PACITAN-PRINT-TMPL.HTML. The former is the "primary"
template for the normal web map display, while the latter has "cleaner look"
for printing purpose (print page).
The print page (PACITAN-PRINT-TMPL.HTML) is called from the "primary"
template page using JavaScript window.open() function.
When calling the print page, I can easily pass (and manipulate, if
necessary) map-related information using CGI parameters. For example, layer
information (ie which layers are selected) is passed with layers=[layers]
CGI parameter, while extent information is passed with mapext=[minx],
[miny], [maxx], [maxy] parameter.
The problem is: since the name of HTML template is hard-coded in the *.map
file, I have to create another map file named PACITAN-PRINT.MAP, which is
basically an exact copy of PACITAN.MAP, but using PACITAN-PRINT-TMPL.HTML as
template (hard-coded in the mapfile, of course).
If I can dynamically change the name of the HTML template using CGI
parameters, I don't have to use two versions of mapfile; I can just use one
mapfile with two HTML templates and be done with it.
The problem is; is it possible to pass the name of the HTML template using
CGI parameters? And if it is, then how? I have browsed MapServer
documentations and this is all I found:
TEMPLATE has been removed, since the map_web_template syntax can be used to
alter a template file. Simplifies security maintenance by only having to
deal with this option in a single place. Note that the TEMPLATEPATTERN of
the mapfile has to be used to enable this feature.
However, save the vague reference above, I just could not find any other
explanation about the map_web_template syntax above. Is it a CGI parameter?
Can I just use the map_web_template parameter in my url, to specify which
template to use?
Many thanks,
-Kresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From yassefa at dmsolutions.ca Tue Jun 3 12:47:04 2008
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Tue, 03 Jun 2008 15:47:04 -0400
Subject: [mapserver-users] MapServer + SLD + transparency
In-Reply-To: <6f2569d80806030807n65181cc5p6ee9069d64701fb9@mail.gmail.com>
References: <6f2569d80806030807n65181cc5p6ee9069d64701fb9@mail.gmail.com>
Message-ID: <48459FB8.2090102@dmsolutions.ca>
Hi There,
Oscar Gomez wrote:
> Hi all!
>
> I'm having some trouble trying to use SLDs with MapServer.
>
> I'm requesting maps from GoogleEarth using a NetworkLink object and a
> custom KML-WMS-KML parser.
>
> If I apply "simple" symbology through a custom SLD, it works, and the
> background of the map created by MapServer is transparent, so only the
> "vectors" are shown in GoogleEarth.
>
> But if I use an SLD symbology using an external picture
> ( tag in SLD), then the background of the map created
> by MapServer is not transparent anymore. Then Google Earth shows a map
> with white background.
>
ExternalGrapphic ends up being transformed into something like this in
the map file:
- inline symbol:
SYMBOL
NAME
"http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"
TYPE PIXMAP
IMAGE "f:/msapps/world_testdata/map/484599a6_1a28_1.gif"
GAP -20
TRANSPARENT 0
END
and a class
CLASS
NAME "Unknown"
STYLE
ANGLE 360
COLOR 255 0 0
OPACITY 100
SIZE 10
SYMBOL
"http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"
END
I am not sure I see the reason why this would affect the background
transparency.
If possible can you add the symbol manually in the mapfile and see if
you get the same transparency problem.
Do we have access to the external symbol you are using?
I am using the following external symbol in my test
(http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif)
and I have tried used both agg and gd as a rendering settings and I did
not see any effects on the background transparency. Note that I am
using Mapserver from svn.
Best Regards,
> Has anyone experienced the same? Can this be solved?
>
> Thanks in advance,
>
> Oscar
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From condit at sdsc.edu Tue Jun 3 15:04:25 2008
From: condit at sdsc.edu (Christopher Condit)
Date: Tue, 3 Jun 2008 15:04:25 -0700
Subject: [mapserver-users] KML thematics from MS Layers
In-Reply-To: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
References: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
Message-ID: <845AADAC1106E44996327D62097E4C6B0105707A@et.ad.sdsc.edu>
Hi Sarel-
I?m not sure why I didn?t see your GDAL-dev post?
I don?t know of any way to do this with MapServer, but you can come close with a combination of OGR and XSL. I wrote a post on this a while ago on the gdal wiki here: http://trac.osgeo.org/gdal/wiki/KML
So essentially you?d export to KML using ogr2ogr and then customize the styling based on your needs. You could even generate the XSL file dynamically if you needed to?
-Chris
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sarel Coetzer
Sent: Monday, June 02, 2008 5:09 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] KML thematics from MS Layers
Hi
Need some advice on how to create thematic looking KML layers from MapServer layers that is classified in 5 thematic classes.
This is a long shot and might be the wrong forum but I haven't had success in the GDAL or OGR forums
Sarel
--
"http://sarelgis.blogspot.com/"
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jshort at lodgingcompany.com Tue Jun 3 17:18:21 2008
From: jshort at lodgingcompany.com (Jeremy Short)
Date: Tue, 03 Jun 2008 17:18:21 -0700
Subject: [mapserver-users] Using gdaltindex yields "no georeferencing is
available"
Message-ID: <4845DF4D.7040105@lodgingcompany.com>
I have used gdal2tiles.py to convert a simple very large png file to
many small tiled images. The command I used is ?gdal2tiles.py
BigWhite_600.png tiledmaps/
?. This created 6 directories named 0 to 5, each a directory of tiled
pngs 0 to x.
The 0 directory has only one 0.png file in the structure
../tiledmaps/0/0/0.png. This is the original picture shrunken down to a
256K X 256K image. The 1 directory has 2 subdirectories 0 and 1, each
representing a column with two tiles in each directory. The four 256K X
256K tiled images make up the whole image.
eg.
jshort at ws79:~/svn/mapserver/map/tiledmaps/1\ 05:07 PM$ ls -lR
.:
total 8
drwxr-xr-x 2 jshort jshort 4096 2008-06-03 11:53 0
drwxr-xr-x 2 jshort jshort 4096 2008-06-03 11:53 1
./0:
total 16
-rw-r--r-- 1 jshort jshort 9458 2008-06-03 11:53 0.png
-rw-r--r-- 1 jshort jshort 1694 2008-06-03 11:53 1.png
./1:
total 20
-rw-r--r-- 1 jshort jshort 13702 2008-06-03 11:53 0.png
-rw-r--r-- 1 jshort jshort 1280 2008-06-03 11:53 1.png
jshort at ws79:~/svn/mapserver/map/tiledmaps/1\ 05:07 PM$
The higher the directory number the greater number of tiled images. So
the original image is tiled in 6 different ways, in 6 directories.
It's my understanding I could create a tileindex from one of these sets
of tiled images using
?gdaltindex test.shp tiledmaps/0/0/0.png? and the shape file test.shp
would be created and I could use this in the map file. However, when I
run the above command I get the messages
?
ERROR 4: Unable to open test.shp or test.SHP.
Creating new index file...
It appears no georeferencing is available for
`tiledmaps/0/0/0.png', skipping.
?
As mentioned above I do have a world file BigWhite_600.pnw. Do I somehow
have to include the tiled directory structure into the world file? I
thought gdaltindex would create a world file for me? Any ideas as I
don't know what to do now? Thank you for reading this.
My environment is as follows:
Debian 4.1.2-22
Linux version 2.6.25-2-amd64
Here is my worldfile BigWhite_600.pgw
60.0000000000
0.0000000000
0.0000000000
-60.0000000000
440750.0000000000
3751290.0000000000
--
Jeremy Short
IT Programmer
The Lodging Company
http://www.skihills.com/
From IANT at napier.govt.nz Tue Jun 3 19:03:54 2008
From: IANT at napier.govt.nz (Ian Tidy)
Date: Wed, 4 Jun 2008 14:03:54 +1200
Subject: [mapserver-users] queryByAttribute Expression Matching
Message-ID:
Hi All,
I am struggling to get my expression match to work properly.
I need to match a string with any part of the attribute value. So if in
may SRCH field I have 'NAPIER BOYS HIGH SCHOOL', if I search for BOYS or
SCHOOL (any combination of letters / part of the word that matches), I
will get this object.
Can anyone help.
Cheers Ian
______________________
Ian Tidy
GIS Analyst / Developer
Works Asset Department
Napier City Council
Hastings St, Private Bag 6010, Napier, New Zealand
Phone +64-6-835-7579 Ext. 8115
Fax +64-6-834-4195
mailto:iant at napier.govt.nz
http://www.napier.govt.nz | http://maps.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:
From ogomez2 at gmail.com Tue Jun 3 23:43:04 2008
From: ogomez2 at gmail.com (Oscar Gomez)
Date: Wed, 4 Jun 2008 08:43:04 +0200
Subject: [mapserver-users] MapServer + SLD + transparency
In-Reply-To: <48459FB8.2090102@dmsolutions.ca>
References: <6f2569d80806030807n65181cc5p6ee9069d64701fb9@mail.gmail.com>
<48459FB8.2090102@dmsolutions.ca>
Message-ID: <6f2569d80806032343p38ffb5car7413b2265c7df344@mail.gmail.com>
Hi Assefa,
I have tried with a .map file, and the same symbol, and it works. But it
doesn't work with the SLD. My goal is trying to make it work with the SLD.
The picture is:
http://www.mirame.chduero.es/DMADuero_09_Viewer/img/sld/dam.gif
I'm also using pictures for filling polygons, for example:
http://www.mirame.chduero.es/DMADuero_09_Viewer/img/sld/hatch45_palegreen.gif
The SLD is:
http://www.mirame.chduero.es/DMADuero_09_Viewer/wise.xml
The URL to the capabilities is:
http://www.mirame.chduero.es/duerowfd?SERVICE=WFS&request=GetCapabilities&version=1.1.1
Only the layers that are not using ExternalGraphic in the SLD will show
transparent background. What is more, layers like "Regadios", that do
not use pictures, but have a complex symbology, also don't show a
transparent background.
Please find attached some KMLs that show this behaviour:
rios.kml : simple symbology, lines, no problem with transparency
mapa_lito.kml : complex polygon valuemaprenderer, homogeneous
representation, no problem with transparency
regadios.kml : polygon valuemparenderer, heterogeneous symbols, problems
with transparency
lics.kml : simple polygon symbol, fill based on a external image, problems
with transparency
presas.kml : scale dependent renderer:
- small scale: triangles, no problems with transparency
- big scale: picture based symbol, problems with transparency
Any idea on how to solve this?
Best Regards,
Oscar
On 6/3/08, Yewondwossen Assefa wrote:
>
> Hi There,
>
> Oscar Gomez wrote:
>
>> Hi all!
>> I'm having some trouble trying to use SLDs with MapServer.
>> I'm requesting maps from GoogleEarth using a NetworkLink object and a
>> custom KML-WMS-KML parser.
>> If I apply "simple" symbology through a custom SLD, it works, and the
>> background of the map created by MapServer is transparent, so only the
>> "vectors" are shown in GoogleEarth.
>> But if I use an SLD symbology using an external picture
>> ( tag in SLD), then the background of the map created by
>> MapServer is not transparent anymore. Then Google Earth shows a map with
>> white background.
>>
>>
>
> ExternalGrapphic ends up being transformed into something like this in the
> map file:
>
> - inline symbol:
>
> SYMBOL
> NAME "
> http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"
> TYPE PIXMAP
> IMAGE "f:/msapps/world_testdata/map/484599a6_1a28_1.gif"
> GAP -20
> TRANSPARENT 0
> END
>
> and a class
>
> CLASS
> NAME "Unknown"
> STYLE
> ANGLE 360
> COLOR 255 0 0
> OPACITY 100
> SIZE 10
> SYMBOL "
> http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"
> END
>
>
> I am not sure I see the reason why this would affect the background
> transparency.
>
> If possible can you add the symbol manually in the mapfile and see if you
> get the same transparency problem.
>
> Do we have access to the external symbol you are using?
>
> I am using the following external symbol in my test (
> http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif) and
> I have tried used both agg and gd as a rendering settings and I did not see
> any effects on the background transparency. Note that I am using Mapserver
> from svn.
>
>
> Best Regards,
>
> Has anyone experienced the same? Can this be solved?
>> Thanks in advance,
>> Oscar
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> --
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
>
> Email: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax: (613) 565-0925
> ----------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regadios.kml
Type: application/vnd.google-earth.kml+xml
Size: 1729 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapa_lito.kml
Type: application/vnd.google-earth.kml+xml
Size: 1744 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lics.kml
Type: application/vnd.google-earth.kml+xml
Size: 1725 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rios.kml
Type: application/vnd.google-earth.kml+xml
Size: 1783 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: presas.kml
Type: application/vnd.google-earth.kml+xml
Size: 1646 bytes
Desc: not available
URL:
From bea at ixsea.com Wed Jun 4 01:42:50 2008
From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=)
Date: Wed, 4 Jun 2008 10:42:50 +0200
Subject: [mapserver-users] Multiple map files - common GetCapabilities
Message-ID: <902D1048E47444E0851079FE85900AA7@ixsea.local>
Hi All,
We have multiple map files (undefined number, could be thousands) and we would like to be compliant with OpenGIS standards.
Actually, we are not because a global GetCapabilities request can not work because of our mutiple map files.
So we would like to have global GetCapabilities requests working.
Multiple GetCapabilities on each of our map files is not what we want because those map files are dynamically generated.
So client softwares should have to know every of our map files in order to be able to request the whole data.
Is this possible to have a single map file referencing multiple map files ?
There is the cascading wms possibility but, from what I have seen on the web, it doesn't fetch the GetCapbilities of the underlying map server map files' so it doesn't work for us.
The only way I see is catching GetCapabilities requests, then foreach of the map files, submit a single a GetCapabilities, and then, merge all the xml responses in a single xml response.
Is there something else ??
Beno?t Andrieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Ying.Zhao1 at cn.flextronics.com Wed Jun 4 02:12:30 2008
From: Ying.Zhao1 at cn.flextronics.com (Zhao Ying (CDU))
Date: Wed, 4 Jun 2008 17:12:30 +0800
Subject: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead of
apache
Message-ID: <3E5D24E6E4144A4590AC2B152F72F05003F8A2C6@ASHKGEX2.asia.ad.flextronics.com>
Hello,
I'm Jeff from Sichuan, China. I have a question about how to configure
MapServer so that it could be
able to work with apache-tomcat-5.5.26 instead of apache by default.
Since I've already had tomcat 5.5.26
installed on my computer and tomcat is well known as both Web server and
application server,
it seems there's no need to install one more web server - apache.
Furthermore, more web servers, more
possibilities to conflict, such as listing ports ..., right?
Could somebody provide a solution in details on how to achieve this?
Thanks!! ~~
Btw, my computer environment:
Windows XP;
JDK 1.4;
apache-tomcat-5.5.26; installed on c:\ apache-tomcat-5.5.26
ms4w_2.2.7.zip downloaded from http://maptools.org/ms4w/ and unzipped to
c:\ms4w
Regards,
Jeff.
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gabmessner at gmail.com Wed Jun 4 04:45:42 2008
From: gabmessner at gmail.com (Gabriel Messner)
Date: Wed, 4 Jun 2008 13:45:42 +0200
Subject: [mapserver-users] How to select layers in Getmap
Message-ID: <1708890c0806040445n74c2a4d3tfda3a76d973186f6@mail.gmail.com>
Hi all,
I?ve running a WMS server with Mapserver. When I execute GetMap selecting
just one or two layers (&LAYERS=layer1,layer2) my WMS servers retreives all
layers of the GetCapabilities document.
What i?m doing wrong?.
Thanks in advance.
Gabriel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From crschmidt at metacarta.com Wed Jun 4 04:48:03 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed, 4 Jun 2008 07:48:03 -0400
Subject: [mapserver-users] How to select layers in Getmap
In-Reply-To: <1708890c0806040445n74c2a4d3tfda3a76d973186f6@mail.gmail.com>
References: <1708890c0806040445n74c2a4d3tfda3a76d973186f6@mail.gmail.com>
Message-ID: <20080604114803.GC7209@metacarta.com>
On Wed, Jun 04, 2008 at 01:45:42PM +0200, Gabriel Messner wrote:
> Hi all,
>
> I?ve running a WMS server with Mapserver. When I execute GetMap selecting
> just one or two layers (&LAYERS=layer1,layer2) my WMS servers retreives all
> layers of the GetCapabilities document.
>
> What i?m doing wrong?.
What is the "STATUS" of the layers in your mapfile? "ON" will let them
be requested -- "DEFAULT" will deliver them always, whether they are
requested or not.
REgards,
--
Christopher Schmidt
MetaCarta
From sunita at unistal.com Tue Jun 3 22:07:16 2008
From: sunita at unistal.com (Sunita Kumari)
Date: Wed, 4 Jun 2008 10:37:16 +0530
Subject: [mapserver-users] help
Message-ID: <004e01c8c600$dce3dec0$1200a8c0@gis>
Hi ,
I am working on Map server with map lab. In mapsever any application ia available for georefrencing and image processing ? If yes then please send me a link for the same.
Thanks & Regards
Sunita
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From matthew.pettis at gmail.com Wed Jun 4 05:55:39 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Wed, 4 Jun 2008 07:55:39 -0500
Subject: [mapserver-users] Making mapserver into a WMS
Message-ID: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
Hi,
I'm trying to test ms4w as a WMS for use with OpenLayers. Went
through the tutorial at:
http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
I created a simple mapfile according to the specs (I think). It is
after the '===========' delimiter. I called it with the following
url:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
and it asked me to download the mapserv.exe application. Not what i
expect. I'm pretty sure everything else is in order, because when I
call:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&mode=map
I get the expected map in my browser.
Any ideas what is wrong or how I am screwing up the incantation?
Thanks,
Matt
===========
MAP
################
# Map attributes
################
IMAGETYPE PNG
EXTENT 184056.505 4809728.25 767381.245 5478975.75
SIZE 660 495
IMAGECOLOR 255 255 255
FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
PROJECTION
"init=epsg:26915"
END
####################
# Web settings
####################
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
END
END
####################
# State
# Background shows through missing precincts to show where no
votes will be coming from
####################
LAYER
NAME "state"
METADATA
"wms_title" "state"
END
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=gisvote password=postgres"
DATA "the_geom from shp_state"
STATUS default
TYPE polygon
CLASS
NAME "state"
COLOR 200 200 200
END
END # Layer state
END
From rwburgholzer at deq.virginia.gov Wed Jun 4 05:59:51 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Wed, 4 Jun 2008 08:59:51 -0400
Subject: [mapserver-users] Making mapserver into a WMS
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DA1@deqex01.deq.local>
Sounds like your web server is not set up to execute CGI files in the
cgi-bin directory. Thus, it is interpreting the request to mapserv.exe
as a download request. Without knowing your web server (and possibly if
I did), I am unable to make suggestions as to how to alter the
configuration.
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matthew
Pettis
Sent: Wednesday, June 04, 2008 8:56 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Making mapserver into a WMS
Hi,
I'm trying to test ms4w as a WMS for use with OpenLayers. Went
through the tutorial at:
http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-
your-wms
I created a simple mapfile according to the specs (I think). It is
after the '===========' delimiter. I called it with the following
url:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.m
ap&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
and it asked me to download the mapserv.exe application. Not what i
expect. I'm pretty sure everything else is in order, because when I
call:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.m
ap&mode=map
I get the expected map in my browser.
Any ideas what is wrong or how I am screwing up the incantation?
Thanks,
Matt
===========
MAP
################
# Map attributes
################
IMAGETYPE PNG
EXTENT 184056.505 4809728.25 767381.245 5478975.75
SIZE 660 495
IMAGECOLOR 255 255 255
FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
PROJECTION
"init=epsg:26915"
END
####################
# Web settings
####################
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
END
END
####################
# State
# Background shows through missing precincts to show where no
votes will be coming from
####################
LAYER
NAME "state"
METADATA
"wms_title" "state"
END
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=gisvote password=postgres"
DATA "the_geom from shp_state"
STATUS default
TYPE polygon
CLASS
NAME "state"
COLOR 200 200 200
END
END # Layer state
END
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From rwburgholzer at deq.virginia.gov Wed Jun 4 06:01:29 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Wed, 4 Jun 2008 09:01:29 -0400
Subject: [mapserver-users] Making mapserver into a WMS
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DA2@deqex01.deq.local>
Scratch that. I don't know what I'm talking about! (failed to read the
rest of the email).
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matthew
Pettis
Sent: Wednesday, June 04, 2008 8:56 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Making mapserver into a WMS
Hi,
I'm trying to test ms4w as a WMS for use with OpenLayers. Went
through the tutorial at:
http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-
your-wms
I created a simple mapfile according to the specs (I think). It is
after the '===========' delimiter. I called it with the following
url:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.m
ap&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
and it asked me to download the mapserv.exe application. Not what i
expect. I'm pretty sure everything else is in order, because when I
call:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.m
ap&mode=map
I get the expected map in my browser.
Any ideas what is wrong or how I am screwing up the incantation?
Thanks,
Matt
===========
MAP
################
# Map attributes
################
IMAGETYPE PNG
EXTENT 184056.505 4809728.25 767381.245 5478975.75
SIZE 660 495
IMAGECOLOR 255 255 255
FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
PROJECTION
"init=epsg:26915"
END
####################
# Web settings
####################
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
END
END
####################
# State
# Background shows through missing precincts to show where no
votes will be coming from
####################
LAYER
NAME "state"
METADATA
"wms_title" "state"
END
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=gisvote password=postgres"
DATA "the_geom from shp_state"
STATUS default
TYPE polygon
CLASS
NAME "state"
COLOR 200 200 200
END
END # Layer state
END
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From Jukka.Rahkonen at mmmtike.fi Wed Jun 4 06:01:55 2008
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Wed, 4 Jun 2008 16:01:55 +0300
Subject: [mapserver-users] Making mapserver into a WMS
In-Reply-To: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
Message-ID:
Hi,
I believe everything is OK. Try saving the file mapserv.exe on your disk and open it with text editor. It is just that WMS standard gives such a MIME type for GetCapabilities response that it is not often recognised as XML.
-Jukka Rahkonen-
> -----Alkuper?inen viesti-----
> L?hett?j?: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta
> Matthew Pettis
> L?hetetty: 4. kes?kuuta 2008 15:56
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Making mapserver into a WMS
>
> Hi,
>
> I'm trying to test ms4w as a WMS for use with OpenLayers.
> Went through the tutorial at:
>
> http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-ma
> pfile-for-your-wms
>
> I created a simple mapfile according to the specs (I think).
> It is after the '===========' delimiter. I called it with
> the following
> url:
>
> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs
> \tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
>
> and it asked me to download the mapserv.exe application. Not
> what i expect. I'm pretty sure everything else is in order,
> because when I
> call:
>
> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs
> \tmp\map.map&mode=map
>
> I get the expected map in my browser.
>
> Any ideas what is wrong or how I am screwing up the incantation?
>
> Thanks,
> Matt
>
> ===========
> MAP
>
> ################
> # Map attributes
> ################
> IMAGETYPE PNG
> EXTENT 184056.505 4809728.25 767381.245 5478975.75
> SIZE 660 495
> IMAGECOLOR 255 255 255
> FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
>
> PROJECTION
> "init=epsg:26915"
> END
>
> ####################
> # Web settings
> ####################
> WEB
> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
> IMAGEURL "/tmp/"
> METADATA
> "wms_title" "WMS Demo Server"
> "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
> END
> END
>
> ####################
> # State
> # Background shows through missing precincts to show
> where no votes will be coming from
> ####################
> LAYER
> NAME "state"
> METADATA
> "wms_title" "state"
> END
> CONNECTIONTYPE postgis
> CONNECTION "user=postgres dbname=gisvote password=postgres"
> DATA "the_geom from shp_state"
> STATUS default
> TYPE polygon
>
> CLASS
> NAME "state"
> COLOR 200 200 200
> END
>
> END # Layer state
>
> END
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From matthew.pettis at gmail.com Wed Jun 4 06:27:03 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Wed, 4 Jun 2008 08:27:03 -0500
Subject: [mapserver-users] Making mapserver into a WMS
In-Reply-To:
References: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
Message-ID: <82ba77b80806040627r91fd6bfsbae94b8003fae75b@mail.gmail.com>
Thanks Jukka, Robert,
Jukka was right... it was saved as mapserv.exe, but when I opened it with an
editor, it was the appropriate XML... I just assumed that it was
downloading the binary itself and didn't bother downloading it.
Thanks!
Matt
On Wed, Jun 4, 2008 at 8:01 AM, Rahkonen Jukka
wrote:
> Hi,
>
> I believe everything is OK. Try saving the file mapserv.exe on your disk
> and open it with text editor. It is just that WMS standard gives such a
> MIME type for GetCapabilities response that it is not often recognised as
> XML.
>
> -Jukka Rahkonen-
>
> > -----Alkuper?inen viesti-----
> > L?hett?j?: mapserver-users-bounces at lists.osgeo.org
> > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta
> > Matthew Pettis
> > L?hetetty: 4. kes?kuuta 2008 15:56
> > Vastaanottaja: mapserver-users at lists.osgeo.org
> > Aihe: [mapserver-users] Making mapserver into a WMS
> >
> > Hi,
> >
> > I'm trying to test ms4w as a WMS for use with OpenLayers.
> > Went through the tutorial at:
> >
> > http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-ma
> > pfile-for-your-wms
> >
> > I created a simple mapfile according to the specs (I think).
> > It is after the '===========' delimiter. I called it with
> > the following
> > url:
> >
> > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs
> > \tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
> >
> > and it asked me to download the mapserv.exe application. Not
> > what i expect. I'm pretty sure everything else is in order,
> > because when I
> > call:
> >
> > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs
> > \tmp\map.map&mode=map
> >
> > I get the expected map in my browser.
> >
> > Any ideas what is wrong or how I am screwing up the incantation?
> >
> > Thanks,
> > Matt
> >
> > ===========
> > MAP
> >
> > ################
> > # Map attributes
> > ################
> > IMAGETYPE PNG
> > EXTENT 184056.505 4809728.25 767381.245 5478975.75
> > SIZE 660 495
> > IMAGECOLOR 255 255 255
> > FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
> >
> > PROJECTION
> > "init=epsg:26915"
> > END
> >
> > ####################
> > # Web settings
> > ####################
> > WEB
> > IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
> > IMAGEURL "/tmp/"
> > METADATA
> > "wms_title" "WMS Demo Server"
> > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
> > END
> > END
> >
> > ####################
> > # State
> > # Background shows through missing precincts to show
> > where no votes will be coming from
> > ####################
> > LAYER
> > NAME "state"
> > METADATA
> > "wms_title" "state"
> > END
> > CONNECTIONTYPE postgis
> > CONNECTION "user=postgres dbname=gisvote password=postgres"
> > DATA "the_geom from shp_state"
> > STATUS default
> > TYPE polygon
> >
> > CLASS
> > NAME "state"
> > COLOR 200 200 200
> > END
> >
> > END # Layer state
> >
> > END
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
--
It is from the wellspring of our despair and the places that we are broken
that we come to repair the world.
-- Murray Waas
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dmorissette at mapgears.com Wed Jun 4 06:51:07 2008
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Wed, 04 Jun 2008 09:51:07 -0400
Subject: [mapserver-users] Multiple map files - common GetCapabilities
In-Reply-To: <902D1048E47444E0851079FE85900AA7@ixsea.local>
References: <902D1048E47444E0851079FE85900AA7@ixsea.local>
Message-ID: <48469DCB.7010100@mapgears.com>
Beno?t Andrieu wrote:
>
> Is this possible to have a single map file referencing multiple map files ?
You could probably achieve what you want by splitting all your mapfiles
in two parts and using the include directive.
For each mapfile you'd have a "mymap_main.map" that would contain
everything except the layer definitions, and a "mymap_layers.include"
that contains all layer definitions for that map. The mymap_main.map
would be the main entry point for that specific map and would use
"include 'mymap_layers.include'" to refer to the layer definitions.
Then for your WMS service, you'd create a "my_wms.map" that contains the
general mapfile info (map name, extents, web object, etc.) and then
includes all the "*_layers.include" files.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
From warmerdam at pobox.com Wed Jun 4 08:10:46 2008
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Wed, 04 Jun 2008 11:10:46 -0400
Subject: [mapserver-users] Using gdaltindex yields "no georeferencing is
available"
In-Reply-To: <4845DF4D.7040105@lodgingcompany.com>
References: <4845DF4D.7040105@lodgingcompany.com>
Message-ID: <4846B076.5090203@pobox.com>
Jeremy Short wrote:
>
> I have used gdal2tiles.py to convert a simple very large png file to
> many small tiled images. The command I used is ?gdal2tiles.py
> BigWhite_600.png tiledmaps/
...
> It's my understanding I could create a tileindex from one of these sets
> of tiled images using
> ?gdaltindex test.shp tiledmaps/0/0/0.png? and the shape file test.shp
> would be created and I could use this in the map file. However, when I
> run the above command I get the messages
> ?
> ERROR 4: Unable to open test.shp or test.SHP.
> Creating new index file...
> It appears no georeferencing is available for
> `tiledmaps/0/0/0.png', skipping.
> ?
> As mentioned above I do have a world file BigWhite_600.pnw. Do I somehow
> have to include the tiled directory structure into the world file? I
> thought gdaltindex would create a world file for me? Any ideas as I
> don't know what to do now? Thank you for reading this.
Jeremy,
The gdal2tiles script produces tiles suitable for use with various web
mapping environments and I believe the georefernecing of each individual
tile is implicit in it's name, and relationship to the whole tree. So
I don't think it is suitable for what you want to do.
I think the gdal_retile.py script might be more suitable for your use.
http://www.gdal.org/gdal_retile.html
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
From andrew at environ-it.co.uk Wed Jun 4 08:11:57 2008
From: andrew at environ-it.co.uk (Andrew Mason)
Date: Wed, 4 Jun 2008 16:11:57 +0100
Subject: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead of
apache
In-Reply-To: <3E5D24E6E4144A4590AC2B152F72F05003F8A2C6@ASHKGEX2.asia.ad.flextronics.com>
References: <3E5D24E6E4144A4590AC2B152F72F05003F8A2C6@ASHKGEX2.asia.ad.flextronics.com>
Message-ID: <5AB740EA-437E-4A70-B41C-956ECD766886@environ-it.co.uk>
Hello,
Tomcat and Apache are very different things, and while there is
certainly a degree of overlap in what Apache Httpd and Apache Tomcat
can be used for, the way the two applications actually operate is
very different.
Without going in to too much detail here, Tomcat is essentially a
J2EE application container, not a webserver and applications are
written using the Java programming language. You'd normally never
use Tomcat to serve files in the way you'd use Apache httpd. You'd
normally delegate such a task to a webserver. And there really isn't
much of an issue about having the two servers installed, we sorted
out the port conflict issues a while back.
Excuse any slight errors here, I've only been using Mapserver a few
weeks myself, but my understanding is that Mapserver essentially a
set of C libraries that are accessible via CGI. You can also access
these via PHP, Python and others even Java it seems, using
mapscript. But being able to script in Java is still a long way from
being able to deploy to a servlet container like Tomcat.
If you really want to avoid installing Apache httpd, then you might
find Geoserver useful, as it is a Java web application, and deploying
it to Tomcat is really easy.
But I would recommend trying Apache Httpd, as it's not particularly
difficult to get to grips with.
Hope this helps,
regards
Andrew Mason
On 4 Jun 2008, at 10:12, Zhao Ying (CDU) wrote:
> Hello,
>
>
>
> I?m Jeff from Sichuan, China. I have a question about how to
> configure MapServer so that it could be
>
> able to work with apache-tomcat-5.5.26 instead of apache by
> default. Since I?ve already had tomcat 5.5.26
>
> installed on my computer and tomcat is well known as both Web
> server and application server,
>
> it seems there?s no need to install one more web server ? apache.
> Furthermore, more web servers, more
>
> possibilities to conflict, such as listing ports ?, right?
>
>
>
> Could somebody provide a solution in details on how to achieve
> this? Thanks!! ~~
>
>
>
>
>
> Btw, my computer environment:
>
> Windows XP;
>
> JDK 1.4;
>
> apache-tomcat-5.5.26; installed on c:\ apache-tomcat-5.5.26
>
> ms4w_2.2.7.zip downloaded from http://maptools.org/ms4w/ and
> unzipped to c:\ms4w
>
>
>
>
>
> Regards,
>
> Jeff.
>
>
>
> Legal Disclaimer: The information contained in this message may be
> privileged and confidential. It is intended to be read only by the
> individual or entity to whom it is addressed or by their designee.
> If the reader of this message is not the intended recipient, you
> are on notice that any distribution of this message, in any form,
> is strictly prohibited. If you have received this message in error,
> please immediately notify the sender and delete or destroy any copy
> of this message
>
> _______________________________________________
> 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 rwburgholzer at deq.virginia.gov Wed Jun 4 11:18:38 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Wed, 4 Jun 2008 14:18:38 -0400
Subject: [mapserver-users] Problem with Mapserver WFS-client generated syntax
Message-ID: <6C097DA58429B743A67070F98BE73A37025DD7BD@deqex01.deq.local>
Hey folks,
I am trying to hit NOAA's experimental point based weather forecast
product WFS server. I am using mapserver as a client, and I seem to be
getting a strange incompatibility, that appears to be in a subtle
feature of the WFS query that Mapserver is putting together. The
difference between the query that NOAA wants, and the one that mapserver
produces is in the BBOX parameter. NOAA wants a space between the two
corners, and mapserver puts a comma, a la:
NOAA Wants:
BBOX=-79.6222567785354,37.8816528320313
-77.4274563562303,39.3436317443848
Mapserver Sends:
BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.34363174438
48
Doesn't Work (mapserver):
http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQ
UEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-7
9.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848
Works (NOAA):
http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQ
UEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-7
9.6222567785354,37.8816528320313%20-77.4274563562303,39.3436317443848
Maybe I am missing some crucial configuration param?
Thanks in advance,
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From yassefa at dmsolutions.ca Wed Jun 4 11:35:24 2008
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Wed, 04 Jun 2008 14:35:24 -0400
Subject: [mapserver-users] Problem with Mapserver WFS-client generated
syntax
In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD7BD@deqex01.deq.local>
References: <6C097DA58429B743A67070F98BE73A37025DD7BD@deqex01.deq.local>
Message-ID: <4846E06C.9050202@dmsolutions.ca>
Robert,
The wfs specs indicates that values for the BBOX parameter should be
separated by commas which is what Mapserver is doing. There is no other
setting in mapserver that would allow you to change the format of BBOX
easily. I think the best would be for the server to respect the syntax
described in the specs.
Best Regards,
Burgholzer,Robert wrote:
> Hey folks,
>
> I am trying to hit NOAA?s experimental point based weather forecast
> product WFS server. I am using mapserver as a client, and I seem to be
> getting a strange incompatibility, that appears to be in a subtle
> feature of the WFS query that Mapserver is putting together. The
> difference between the query that NOAA wants, and the one that mapserver
> produces is in the BBOX parameter. NOAA wants a space between the two
> corners, and mapserver puts a comma, a la:
>
>
>
> NOAA Wants:
>
> BBOX=-79.6222567785354,37.8816528320313 -77.4274563562303,39.3436317443848
>
>
>
> Mapserver Sends:
>
> BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848
>
>
>
> Doesn?t Work (mapserver):
>
> http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848
>
>
>
>
> Works (NOAA):
>
> http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-79.6222567785354,37.8816528320313%20-77.4274563562303,39.3436317443848
>
>
>
>
> Maybe I am missing some crucial configuration param?
>
>
>
> Thanks in advance,
>
>
>
>
>
> Robert W. Burgholzer
>
> Surface Water Modeler
>
> Office of Water Supply and Planning
>
> Virginia Department of Environmental Quality
>
> rwburgholzer at deq.virginia.gov
>
> 804-698-4405
>
> Open Source Modeling Tools:
>
> http://sourceforge.net/projects/npsource/
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From rwburgholzer at deq.virginia.gov Wed Jun 4 12:03:00 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Wed, 4 Jun 2008 15:03:00 -0400
Subject: [mapserver-users] Problem with Mapserver WFS-client generated
syntax
Message-ID: <6C097DA58429B743A67070F98BE73A37025DD7BE@deqex01.deq.local>
Thanks for letting me know that it is their problem, not mapserver.
Hopefully, they can fix it...
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca]
Sent: Wednesday, June 04, 2008 2:35 PM
To: Burgholzer,Robert
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Problem with Mapserver WFS-client
generated syntax
Robert,
The wfs specs indicates that values for the BBOX parameter should be
separated by commas which is what Mapserver is doing. There is no other
setting in mapserver that would allow you to change the format of BBOX
easily. I think the best would be for the server to respect the syntax
described in the specs.
Best Regards,
Burgholzer,Robert wrote:
> Hey folks,
>
> I am trying to hit NOAA's experimental point based weather forecast
> product WFS server. I am using mapserver as a client, and I seem to
be
> getting a strange incompatibility, that appears to be in a subtle
> feature of the WFS query that Mapserver is putting together. The
> difference between the query that NOAA wants, and the one that
mapserver
> produces is in the BBOX parameter. NOAA wants a space between the two
> corners, and mapserver puts a comma, a la:
>
>
>
> NOAA Wants:
>
> BBOX=-79.6222567785354,37.8816528320313
-77.4274563562303,39.3436317443848
>
>
>
> Mapserver Sends:
>
>
BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.34363174438
48
>
>
>
> Doesn't Work (mapserver):
>
>
http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQ
UEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-7
9.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848
>
>
>
>
> Works (NOAA):
>
>
http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQ
UEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-7
9.6222567785354,37.8816528320313%20-77.4274563562303,39.3436317443848
>
>
>
>
> Maybe I am missing some crucial configuration param?
>
>
>
> Thanks in advance,
>
>
>
>
>
> Robert W. Burgholzer
>
> Surface Water Modeler
>
> Office of Water Supply and Planning
>
> Virginia Department of Environmental Quality
>
> rwburgholzer at deq.virginia.gov
>
> 804-698-4405
>
> Open Source Modeling Tools:
>
> http://sourceforge.net/projects/npsource/
>
>
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From dmorissette at mapgears.com Wed Jun 4 12:08:09 2008
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Wed, 04 Jun 2008 15:08:09 -0400
Subject: [mapserver-users] mode=legend
In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E04996446@SINFRA0-EXC003.MTQ.MIN.INTRA>
References: <2F86ED212F3E164EB9FBB2E68C67858E04996446@SINFRA0-EXC003.MTQ.MIN.INTRA>
Message-ID: <4846E819.5070008@mapgears.com>
L?veill? wrote:
> The problem is that the (temporary) images (icons) produced by MapServer
> for the legend are slightly cut at the top and bottom.
> For example, the result of a GetLegendGraphic call returned the following :
[...]
> While images obtained in CGI mode (_mode=legend_) are :
[...]
> QUESTION 1 : What explains this difference ?
The code that generates the image samples doesn't seem to take the line
tickness into account, resulting in the samples being cut a little bit.
I have filed a ticket and will try to get to it for the next releass:
http://trac.osgeo.org/mapserver/ticket/2636
> QUESTION 2 : How can I specify the AGG image format in CGI mode ?
>
Just setting 'IMAGETYPE AGGPNG24' in the mapfile does the trick for me.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
From dmorissette at mapgears.com Wed Jun 4 12:27:52 2008
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Wed, 04 Jun 2008 15:27:52 -0400
Subject: [mapserver-users] mode=legend
In-Reply-To: <4846E819.5070008@mapgears.com>
References: <2F86ED212F3E164EB9FBB2E68C67858E04996446@SINFRA0-EXC003.MTQ.MIN.INTRA>
<4846E819.5070008@mapgears.com>
Message-ID: <4846ECB8.6090200@mapgears.com>
Daniel Morissette wrote:
> L?veill? wrote:
>> QUESTION 2 : How can I specify the AGG image format in CGI mode ?
>>
>
> Just setting 'IMAGETYPE AGGPNG24' in the mapfile does the trick for me.
>
After checking further it turns out that this works only with the dev
version (future 5.2). AGG legend images were not supported in 5.0 so
you'd get regular GD (unaliased) legend images with MapServer 5.0.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
From James.Leveille at mtq.gouv.qc.ca Wed Jun 4 12:29:42 2008
From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=)
Date: Wed, 4 Jun 2008 15:29:42 -0400
Subject: [mapserver-users] mode=legend
In-Reply-To: <4846ECB8.6090200@mapgears.com>
Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E04996463@SINFRA0-EXC003.MTQ.MIN.INTRA>
Ok - thanks a lot Daniel
______________________________________________________
JAMES L?VEILL?
Service des syst?mes de Mission
Direction des technologies de l'information
Minist?re des Transports du Qu?bec
5833, boul. Pierre-Bertrand, 2i?me ?tage
Qu?bec (Qu?bec) G2K 1K7
T?l?phone: (418) 380-2005 poste 227
T?l?copieur: (418) 644-6653
james.leveille at mtq.gouv.qc.ca
-----Message d'origine-----
De : mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Daniel
Morissette
Envoy? : 4 juin 2008 15:28
? : mapserver-users at lists.osgeo.org
Objet : Re: [mapserver-users] mode=legend
Daniel Morissette wrote:
> L?veill? wrote:
>> QUESTION 2 : How can I specify the AGG image format in CGI mode ?
>>
>
> Just setting 'IMAGETYPE AGGPNG24' in the mapfile does the trick for
> me.
>
After checking further it turns out that this works only with the dev
version (future 5.2). AGG legend images were not supported in 5.0 so
you'd get regular GD (unaliased) legend images with MapServer 5.0.
Daniel
--
Daniel Morissette
http://www.mapgears.com/ _______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From dmorissette at mapgears.com Wed Jun 4 13:17:39 2008
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Wed, 04 Jun 2008 16:17:39 -0400
Subject: [mapserver-users] MapServer 5.0.3 released
Message-ID: <4846F863.5050204@mapgears.com>
MapServer 5.0.3 has just been released. This new release addresses a few
issues that were fixed since version 5.0.2 and contains no new
functionality. The list of fixes since 5.0.2 is included at the end of
this message, the full change log can also be browsed online at
http://mapserver.gis.umn.edu/download/current/HISTORY.TXT
The source package is available in the MapServer downloads page:
http://mapserver.gis.umn.edu/download/current/
Precompiled binaries should be available shortly at the usual locations
(also linked from the download page above).
Daniel
Version 5.0.3 (2008-06-04)
--------------------------
- Exposed ERROR and EMPTY webObj properties to URL-based configuration.
(#2634)
- Avoid displaying OGR connection strings in error messages (#2629)
- mappostgis.c: fix postgis idle-in-transaction problem (#2626)
- mapogcsld.c: fetch TextSymbolizer/Label/ogc:PropertyName correctly
(#2611)
- Don't ignore .qix file when DATA reference includes .shp extension (#590)
- CGI able to alter layers with space and underscores (#2516)
- WFS Multipoint query with PostGIS bug fixed (#2443)
- mappostgis.c: Fixed overlapping transactions causing core
dump in fcgi (#2497, #2613)
- mapagg.cpp: Fixed rendering of non filled vector symbols (#2585)
- Fixed handling of encrypted connection strings in postgis driver (#2563)
- Fixed problem with large imagemaps generating no output (#2526)
- Fixed problem with two division signs in an expression being treated
as a regex (#2527)
- Fixed gdImagePtr gdPImg memory leak in msSaveImageBufferGD() (#2525)
- mapwms.c: relax FORMAT parameter restrictions for GetFeatureInfo (#2517)
- mapwms.c: make GetLegendGraphic listen to TRANSPARENT in OUTPUTFORMAT
(#2494)
- fix offsets on pixmap marker symbols (#2493)
- fix segfault in mapserv if STYLE is not defined (#2347)
From SansonR at asurequality.com Wed Jun 4 13:49:36 2008
From: SansonR at asurequality.com (Robert Sanson)
Date: Thu, 05 Jun 2008 08:49:36 +1200
Subject: [mapserver-users] Making mapserver into a WMS
In-Reply-To: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
References: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
Message-ID: <4847A8A00200003700003D37@gate1.agriquality.com>
Hi Matthew
Just save the "mapserv.exe" file and give it an .xml extension, then opne it with a text editor. It will be XML!
Cheers,
Robert Sanson
>>> "Matthew Pettis" 5/06/2008 12:55 a.m. >>>
Hi,
I'm trying to test ms4w as a WMS for use with OpenLayers. Went
through the tutorial at:
http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
I created a simple mapfile according to the specs (I think). It is
after the '===========' delimiter. I called it with the following
url:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
and it asked me to download the mapserv.exe application. Not what i
expect. I'm pretty sure everything else is in order, because when I
call:
http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&mode=map
I get the expected map in my browser.
Any ideas what is wrong or how I am screwing up the incantation?
Thanks,
Matt
===========
MAP
################
# Map attributes
################
IMAGETYPE PNG
EXTENT 184056.505 4809728.25 767381.245 5478975.75
SIZE 660 495
IMAGECOLOR 255 255 255
FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
PROJECTION
"init=epsg:26915"
END
####################
# Web settings
####################
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
END
END
####################
# State
# Background shows through missing precincts to show where no
votes will be coming from
####################
LAYER
NAME "state"
METADATA
"wms_title" "state"
END
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=gisvote password=postgres"
DATA "the_geom from shp_state"
STATUS default
TYPE polygon
CLASS
NAME "state"
COLOR 200 200 200
END
END # Layer state
END
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
------------------------------------------------------------------
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.
------------------------------------------------------------------
This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From michael.ostling at metagis.se Wed Jun 4 13:59:56 2008
From: michael.ostling at metagis.se (=?iso-8859-1?Q?Michael_=D6stling?=)
Date: Wed, 4 Jun 2008 22:59:56 +0200
Subject: [mapserver-users] GetfeatureInfo params in Map-File
Message-ID: <000001c8c685$f338b8f0$bd01a8c0@metaport3>
> Hi,
> I have been struggling a couple of hours trying to understand the correct
> configuration of
> a WMS-service with Mapserver (5.0) where I would like to use
> GetFeatureInfo.
>
> I want to make a call to getFeatureInfo and have the result in GML
> I use Openlayers to view and query the service
>
> Any way I do I get a INFO_FORMAT=text/html in the request which returns an
> error from MapServer (unsupported INFO_FORMAT (text/html)
> If I change it manually to INFO_FORMAT=application/vnd.ogc.gml (or
> INFO_FORMAT=gml)
> and type in the URL directly in Internet Explorer then it works.
>
>
> I have set the following
>
> For the MAP/WEB tag I have set
> QUERYFORMAT application/vnd.ogc.gml
>
> For the LAYER tag should the following TAGS be set
> DUMP TRUE
> TEMPLATE foo
>
> I can't se the logic in using the TEMPLATE here, I just want plain
> XML/GML, anyhow I set it to foo as I seen someone else has done.
> But if I understand it correctly so by using the TEMPLATE-tag then the
> layer is queryable.
>
> For the LAYER/METADATA tag I have tested
> "gml_include_items" "all"
> "wms_include_items" "all"
> with no change.
>
>
With the above setting all calls to GetFeatureInfo is using
INFO_FORMAT=text/HTML
> I have tried it in ArcMap and Openlayers (where I also tried to set
> INFO_FORMAT=gml) as an optional argument.
>
> Anyone who can se what wrong I'm doing? I can't find any more
> documentation on the issue.
>
>
> regards
> Michael
>
> ------------------------------------------------------------------
> MetaGIS AB
> Michael ?stling
> Mob: 070-279 19 76
> Tel: 023 - 702 20 10
> ePost: michael.ostling at metagis.se
> Adress: Britsarvsv?gen 28a, 791 36 FALUN, Sweden
> Org Nr: 556638-7170
> ------------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jmckenna at gatewaygeomatics.com Wed Jun 4 14:24:18 2008
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Wed, 4 Jun 2008 17:24:18 -0400
Subject: [mapserver-users] Making mapserver into a WMS
In-Reply-To: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
References: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
Message-ID:
Matt,
Since you are using MS4W you might also want to check out the
following ms4w add-on packages:
1) MapServer OGC Web Services Workshop
2) GMap75 PHP/MapScript Sample Application (the localhost page shows
locally served WMS URLs)
--jeff
---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
On 4-Jun-08, at 8:55 AM, Matthew Pettis wrote:
> Hi,
>
> I'm trying to test ms4w as a WMS for use with OpenLayers. Went
> through the tutorial at:
>
> http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
>
> I created a simple mapfile according to the specs (I think). It is
> after the '===========' delimiter. I called it with the following
> url:
>
> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp
> \map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
>
> and it asked me to download the mapserv.exe application. Not what i
> expect. I'm pretty sure everything else is in order, because when I
> call:
>
> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp
> \map.map&mode=map
>
> I get the expected map in my browser.
>
> Any ideas what is wrong or how I am screwing up the incantation?
>
> Thanks,
> Matt
>
> ===========
> MAP
>
> ################
> # Map attributes
> ################
> IMAGETYPE PNG
> EXTENT 184056.505 4809728.25 767381.245 5478975.75
> SIZE 660 495
> IMAGECOLOR 255 255 255
> FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
>
> PROJECTION
> "init=epsg:26915"
> END
>
> ####################
> # Web settings
> ####################
> WEB
> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
> IMAGEURL "/tmp/"
> METADATA
> "wms_title" "WMS Demo Server"
> "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
> END
> END
>
> ####################
> # State
> # Background shows through missing precincts to show where no
> votes will be coming from
> ####################
> LAYER
> NAME "state"
> METADATA
> "wms_title" "state"
> END
> CONNECTIONTYPE postgis
> CONNECTION "user=postgres dbname=gisvote password=postgres"
> DATA "the_geom from shp_state"
> STATUS default
> TYPE polygon
>
> CLASS
> NAME "state"
> COLOR 200 200 200
> END
>
> END # Layer state
>
> END
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From Steve.Lime at dnr.state.mn.us Wed Jun 4 15:24:39 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Wed, 04 Jun 2008 17:24:39 -0500
Subject: [mapserver-users] KML thematics from MS Layers
In-Reply-To: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
References: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
Message-ID: <4846CFD7.5157.008F.0@dnr.state.mn.us>
MapServer does not have a KML writer that exploits layer styles and such (yet). You do have a couple
of options. One would be to use straight mapscript and your favorite scripting language to build the XML
by hand. Another would be to use query templates...
The key is the [item ...] tag which allows conditional display of text depending on the value of a column. It's
only a single column test at the moment. (Note to self, expose a shapes class via templates...) So, you
could something like:
[item name="foo" pattern="1" format="#FFFFFF"][item name="foo" pattern="2" format="#FF0000"]
and then depending on the value of item foo you'd get either a while hex color string or a red hex color string.
Put that in a template that generates KML and you could change appearance on a feature by feature basis. The
development version (the upcoming 5.2) makes this easier by simplifying template generation. See RFC 36
(http://mapserver.gis.umn.edu/development/rfc/ms-rfc-36/) for details. There's an example there for GML that
could be extended to generate KML.
Then, to generate the KML you'd simply use on of the query modes for the MapServer CGI so you could limit the
result set anyway you'd want. Of course you have to know a bit of KML to use this approach.
An idea anyway...
Steve
>>> On 6/2/2008 at 7:09 AM, in message
<89f54d350806020509o7cdfc251i1a2e35aeb87fa29f at mail.gmail.com>, "Sarel Coetzer"
wrote:
> Hi
>
> Need some advice on how to create thematic looking KML layers from MapServer
> layers that is classified in 5 thematic classes.
> This is a long shot and might be the wrong forum but I haven't had success
> in the GDAL or OGR forums
>
> Sarel
>
>
>
>
>
> --
> "http://sarelgis.blogspot.com/"
From Steve.Lime at dnr.state.mn.us Wed Jun 4 15:10:10 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Wed, 04 Jun 2008 17:10:10 -0500
Subject: [mapserver-users] queryByAttribute Expression Matching
In-Reply-To:
References:
Message-ID: <4846CC72.5157.008F.0@dnr.state.mn.us>
Hi Ian: A straight regex should work. That is, your query string should be something like /BOYS/ assuming you're
using shapefiles.
Steve
>>> On 6/3/2008 at 9:03 PM, in message
, "Ian Tidy"
wrote:
> Hi All,
>
> I am struggling to get my expression match to work properly.
>
> I need to match a string with any part of the attribute value. So if in
> may SRCH field I have 'NAPIER BOYS HIGH SCHOOL', if I search for BOYS or
> SCHOOL (any combination of letters / part of the word that matches), I
> will get this object.
>
> Can anyone help.
> Cheers Ian
> ______________________
> Ian Tidy
> GIS Analyst / Developer
> Works Asset Department
> Napier City Council
> Hastings St, Private Bag 6010, Napier, New Zealand
> Phone +64-6-835-7579 Ext. 8115
> Fax +64-6-834-4195
> mailto:iant at napier.govt.nz
> http://www.napier.govt.nz | http://maps.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.
From lehrs at erau.edu Wed Jun 4 15:58:33 2008
From: lehrs at erau.edu (Steven Lehr)
Date: Wed, 4 Jun 2008 18:58:33 -0400
Subject: [mapserver-users] queryByAttribute Expression Matching
In-Reply-To: <4846CC72.5157.008F.0@dnr.state.mn.us>
References:
<4846CC72.5157.008F.0@dnr.state.mn.us>
Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3135ED6@DBEXVS02.erau.edu>
Ian:
Here's a sample from a text attribute in a shape file, so if you have
multiple schools, then just add multiple classes.
LAYER
NAME "soils"
DATA soils
STATUS OFF
TYPE polygon
MAXSCALE 50000
LABELITEM "MUSYM"
CLASS
EXPRESSION('[MUSYM]' eq 'AkA')
STYLE
COLOR 166 206 227
END
LABEL
TYPE TRUETYPE
FONT arial
SIZE 10
COLOR 0 0 0
POSITION CC
END
END
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve Lime
Sent: Wednesday, June 04, 2008 6:10 PM
To: mapserver-users at lists.osgeo.org; Ian Tidy
Subject: Re: [mapserver-users] queryByAttribute Expression Matching
Hi Ian: A straight regex should work. That is, your query string should
be something like /BOYS/ assuming you're using shapefiles.
Steve
>>> On 6/3/2008 at 9:03 PM, in message
, "Ian Tidy"
wrote:
> Hi All,
>
> I am struggling to get my expression match to work properly.
>
> I need to match a string with any part of the attribute value. So if
> in may SRCH field I have 'NAPIER BOYS HIGH SCHOOL', if I search for
> BOYS or SCHOOL (any combination of letters / part of the word that
> matches), I will get this object.
>
> Can anyone help.
> Cheers Ian
> ______________________
> Ian Tidy
> GIS Analyst / Developer
> Works Asset Department
> Napier City Council
> Hastings St, Private Bag 6010, Napier, New Zealand Phone
> +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz
> http://www.napier.govt.nz | http://maps.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.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From matthew.pettis at gmail.com Wed Jun 4 16:11:33 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Wed, 4 Jun 2008 18:11:33 -0500
Subject: [mapserver-users] Making mapserver into a WMS
In-Reply-To:
References: <82ba77b80806040555p72e8603ap27822a972b03989f@mail.gmail.com>
Message-ID: <82ba77b80806041611r53c2e7d0q52f711f1671ff74b@mail.gmail.com>
Thanks Jeff and Robert,
I'll check on those add-ons. My driving reason in turning this into a
WMS is so I can test out OpenLayers.
Thanks again for the responses,
Matt
On Wed, Jun 4, 2008 at 4:24 PM, Jeff McKenna
wrote:
> Matt,
>
> Since you are using MS4W you might also want to check out the following ms4w
> add-on packages:
>
> 1) MapServer OGC Web Services Workshop
> 2) GMap75 PHP/MapScript Sample Application (the localhost page shows locally
> served WMS URLs)
>
> --jeff
>
>
>
> ---
> Jeff McKenna
> FOSS4G Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
> On 4-Jun-08, at 8:55 AM, Matthew Pettis wrote:
>
>> Hi,
>>
>> I'm trying to test ms4w as a WMS for use with OpenLayers. Went
>> through the tutorial at:
>>
>>
>> http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
>>
>> I created a simple mapfile according to the specs (I think). It is
>> after the '===========' delimiter. I called it with the following
>> url:
>>
>>
>> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
>>
>> and it asked me to download the mapserv.exe application. Not what i
>> expect. I'm pretty sure everything else is in order, because when I
>> call:
>>
>>
>> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tmp\map.map&mode=map
>>
>> I get the expected map in my browser.
>>
>> Any ideas what is wrong or how I am screwing up the incantation?
>>
>> Thanks,
>> Matt
>>
>> ===========
>> MAP
>>
>> ################
>> # Map attributes
>> ################
>> IMAGETYPE PNG
>> EXTENT 184056.505 4809728.25 767381.245 5478975.75
>> SIZE 660 495
>> IMAGECOLOR 255 255 255
>> FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
>>
>> PROJECTION
>> "init=epsg:26915"
>> END
>>
>> ####################
>> # Web settings
>> ####################
>> WEB
>> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
>> IMAGEURL "/tmp/"
>> METADATA
>> "wms_title" "WMS Demo Server"
>> "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
>> END
>> END
>>
>> ####################
>> # State
>> # Background shows through missing precincts to show where no
>> votes will be coming from
>> ####################
>> LAYER
>> NAME "state"
>> METADATA
>> "wms_title" "state"
>> END
>> CONNECTIONTYPE postgis
>> CONNECTION "user=postgres dbname=gisvote password=postgres"
>> DATA "the_geom from shp_state"
>> STATUS default
>> TYPE polygon
>>
>> CLASS
>> NAME "state"
>> COLOR 200 200 200
>> END
>>
>> END # Layer state
>>
>> 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
>
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
From yassefa at dmsolutions.ca Wed Jun 4 17:53:30 2008
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Wed, 04 Jun 2008 20:53:30 -0400
Subject: [mapserver-users] KML thematics from MS Layers
In-Reply-To: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
References: <89f54d350806020509o7cdfc251i1a2e35aeb87fa29f@mail.gmail.com>
Message-ID: <4847390A.90208@dmsolutions.ca>
Hi There,
If you are setup to use php, you can look at this project :
http://www.itopen.it/soluzioni/kml-map-server/
Although, It has some limitations, It works out of the box and
generates kml files from your map fie.
Best Regards,
Sarel Coetzer wrote:
>
> Hi
>
> Need some advice on how to create thematic looking KML layers from
> MapServer layers that is classified in 5 thematic classes.
> This is a long shot and might be the wrong forum but I haven't had
> success in the GDAL or OGR forums
>
> Sarel
>
>
>
>
>
> --
> "http://sarelgis.blogspot.com/"
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From enri at 163.com Wed Jun 4 17:53:38 2008
From: enri at 163.com (enri)
Date: Thu, 5 Jun 2008 08:53:38 +0800
Subject: [mapserver-users] How can I rasterize the symbols in a symbol file?
Message-ID: <200806050853375858091@163.com>
Hi guys,
I want to preview the symbols in a symbol file by drawing them without drawing the whole mapfile, is that possible and how can I do that? Is there a utility like shp2img available?
Thanks a lot.
Enri Zhou
From Ying.Zhao1 at cn.flextronics.com Wed Jun 4 19:09:42 2008
From: Ying.Zhao1 at cn.flextronics.com (Zhao Ying (CDU))
Date: Thu, 5 Jun 2008 10:09:42 +0800
Subject: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead of
apache
In-Reply-To: <5AB740EA-437E-4A70-B41C-956ECD766886@environ-it.co.uk>
References: <3E5D24E6E4144A4590AC2B152F72F05003F8A2C6@ASHKGEX2.asia.ad.flextronics.com>
<5AB740EA-437E-4A70-B41C-956ECD766886@environ-it.co.uk>
Message-ID: <3E5D24E6E4144A4590AC2B152F72F05003FB43FD@ASHKGEX2.asia.ad.flextronics.com>
Hi Mr. Mason,
I really appreciate for your reply, now I get to understand about the relationship between Tomcat and Apache.
Well~, frankly, I??ve already had a J2EE web application in progress. The general concept should be like this:
-------------------------------------------------------------- --------------
Web client (user web brower such as IE??) | -------> (Request to tomcat) ----------> | tomcat | (Get and process resources
| port :8661 | | according to URL requested
--------------------------------------------------------------- -------------- and return result HTML to client)
But if I want to add some map features or just a single static web page to show a map within my website, then
There should be one more architecture:
-------------------------------------------------------------- -------------- Request -----------------
Web client (user web brower such as IE??) | -------> (Request to apache) ---------> | apache | ---------------> | MapServer |
| port :8000 | | | |
--------------------------------------------------------------- -------------- ------------------
In another word, our users have to change requesting port number again and again though accessing a same website, for
They actually send requests to a server (software server) ?C tomcat when requesting dynamic content processed by servlet,
Jsp, whatever, and send requests to another one ?C apache when requesting map.
Sir, according to your email, ??But being able to script in Java is still a long way from being able to deploy
to a servlet container like Tomcat.?? My personal understanding is there??s no way for tomcat to replace apache totally
as a middle man role in terms of cooperating with MapServer.
Does that mean we have to keep two web architectures and have
two software servers installed if we want to provide both dynamic content and map feature?
Or there may be a solution to solve this two-architecture problem?
Thanks for your great help again!!!
Jeff.
>From Chengdu, China
________________________________
From: Andrew Mason [mailto:andrew at environ-it.co.uk]
Sent: 2008??6??4?? 23:12
To: Zhao Ying (CDU)
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead of apache
Hello,
Tomcat and Apache are very different things, and while there is certainly a degree of overlap in what Apache Httpd and Apache Tomcat can be used for, the way the two applications actually operate is very different.
Without going in to too much detail here, Tomcat is essentially a J2EE application container, not a webserver and applications are written using the Java programming language. You'd normally never use Tomcat to serve files in the way you'd use Apache httpd. You'd normally delegate such a task to a webserver. And there really isn't much of an issue about having the two servers installed, we sorted out the port conflict issues a while back.
Excuse any slight errors here, I've only been using Mapserver a few weeks myself, but my understanding is that Mapserver essentially a set of C libraries that are accessible via CGI. You can also access these via PHP, Python and others even Java it seems, using mapscript. But being able to script in Java is still a long way from being able to deploy to a servlet container like Tomcat.
If you really want to avoid installing Apache httpd, then you might find Geoserver useful, as it is a Java web application, and deploying it to Tomcat is really easy.
But I would recommend trying Apache Httpd, as it's not particularly difficult to get to grips with.
Hope this helps,
regards
Andrew Mason
On 4 Jun 2008, at 10:12, Zhao Ying (CDU) wrote:
Hello,
I??m Jeff from Sichuan, China. I have a question about how to configure MapServer so that it could be
able to work with apache-tomcat-5.5.26 instead of apache by default. Since I??ve already had tomcat 5.5.26
installed on my computer and tomcat is well known as both Web server and application server,
it seems there??s no need to install one more web server ?C apache. Furthermore, more web servers, more
possibilities to conflict, such as listing ports ??, right?
Could somebody provide a solution in details on how to achieve this? Thanks!! ~~
Btw, my computer environment:
Windows XP;
JDK 1.4;
apache-tomcat-5.5.26; installed on c:\ apache-tomcat-5.5.26
ms4w_2.2.7.zip downloaded from http://maptools.org/ms4w/ and unzipped to c:\ms4w
Regards,
Jeff.
Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Steve.Lime at dnr.state.mn.us Wed Jun 4 19:16:44 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Wed, 04 Jun 2008 21:16:44 -0500
Subject: [mapserver-users] queryByAttribute Expression Matching
Message-ID: <4847063C0200008F0001866D@co5.dnr.state.mn.us>
One thing to note is that Steve's example uses an exact match. A regex is necessary to
do a substring match.
Steve
>>> Steven Lehr 06/04/08 5:59 PM >>>
Ian:
Here's a sample from a text attribute in a shape file, so if you have
multiple schools, then just add multiple classes.
LAYER
NAME "soils"
DATA soils
STATUS OFF
TYPE polygon
MAXSCALE 50000
LABELITEM "MUSYM"
CLASS
EXPRESSION('[MUSYM]' eq 'AkA')
STYLE
COLOR 166 206 227
END
LABEL
TYPE TRUETYPE
FONT arial
SIZE 10
COLOR 0 0 0
POSITION CC
END
END
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve Lime
Sent: Wednesday, June 04, 2008 6:10 PM
To: mapserver-users at lists.osgeo.org; Ian Tidy
Subject: Re: [mapserver-users] queryByAttribute Expression Matching
Hi Ian: A straight regex should work. That is, your query string should
be something like /BOYS/ assuming you're using shapefiles.
Steve
>>> On 6/3/2008 at 9:03 PM, in message
, "Ian Tidy"
wrote:
> Hi All,
>
> I am struggling to get my expression match to work properly.
>
> I need to match a string with any part of the attribute value. So if
> in may SRCH field I have 'NAPIER BOYS HIGH SCHOOL', if I search for
> BOYS or SCHOOL (any combination of letters / part of the word that
> matches), I will get this object.
>
> Can anyone help.
> Cheers Ian
> ______________________
> Ian Tidy
> GIS Analyst / Developer
> Works Asset Department
> Napier City Council
> Hastings St, Private Bag 6010, Napier, New Zealand Phone
> +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz
> http://www.napier.govt.nz | http://maps.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.
_______________________________________________
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 Steve.Lime at dnr.state.mn.us Wed Jun 4 19:15:24 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Wed, 04 Jun 2008 21:15:24 -0500
Subject: [mapserver-users] How can I rasterize the symbols in a
symbol file?
Message-ID: <484705EC0200008F00018668@co5.dnr.state.mn.us>
There used to be a sym2img utility but it's been busted awhile. If you have class names defined you could simply request a legend from the CGI and look at things that way (e.g. mapserv?mode=legend&map=foo.map).
There's another option too. I added a legendicon mode to the dev (5.2) version of the MapServer CGI. The mode is "legendicon" and there's a new "icon" parameter that takes a value like [layer]{:class} where layer is a layer name and (optionally) class number (starting with 0 I think). Here's an example:
http://maps.dnr.state.mn.us/cgi-bin/mapserv50?map=COMPASS_MAPFILE&mode=legendicon&icon=lake_dnrpy2
You could probably easily create an HTML page full of these links and preview things that way. The legendicon is not dependent on the presence of a class name so it can be used on any layer/class combination.
Steve
>>> "enri" 06/04/08 8:09 PM >>>
Hi guys,
I want to preview the symbols in a symbol file by drawing them without drawing the whole mapfile, is that possible and how can I do that? Is there a utility like shp2img available?
Thanks a lot.
Enri Zhou
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From enri at 163.com Wed Jun 4 20:09:06 2008
From: enri at 163.com (enri)
Date: Thu, 5 Jun 2008 11:09:06 +0800
Subject: [mapserver-users] Re: [mapserver-dev] How can I rasterize
thesymbols in a symbol file?
References: <484705EC0200008F00018668@co5.dnr.state.mn.us>
Message-ID: <200806051108386196732@163.com>
Thank you Steve,
I remember there was a sym2img utility, actually that's what I am looking for, because I want to develop an off-line tool for symbol authoring, I am wondering if sym2img could be available once again?
enri
======= 2008-06-05 10:16:07 you wrote?=======
>There used to be a sym2img utility but it's been busted awhile. If you have class names defined you could simply request a legend from the CGI and look at things that way (e.g. mapserv?mode=legend&map=foo.map).
>
>There's another option too. I added a legendicon mode to the dev (5.2) version of the MapServer CGI. The mode is "legendicon" and there's a new "icon" parameter that takes a value like [layer]{:class} where layer is a layer name and (optionally) class number (starting with 0 I think). Here's an example:
>
> http://maps.dnr.state.mn.us/cgi-bin/mapserv50?map=COMPASS_MAPFILE&mode=legendicon&icon=lake_dnrpy2
>
>You could probably easily create an HTML page full of these links and preview things that way. The legendicon is not dependent on the presence of a class name so it can be used on any layer/class combination.
>
>Steve
>
>>>> "enri" 06/04/08 8:09 PM >>>
>Hi guys,
>
>I want to preview the symbols in a symbol file by drawing them without drawing the whole mapfile, is that possible and how can I do that? Is there a utility like shp2img available?
>
>Thanks a lot.
>
>Enri Zhou
>
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>_______________________________________________
>mapserver-dev mailing list
>mapserver-dev at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-dev
= = = = = = = = = = = = = = = = = = = =
From Steve.Lime at dnr.state.mn.us Wed Jun 4 21:05:13 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Wed, 04 Jun 2008 23:05:13 -0500
Subject: [mapserver-users] How can I rasterize thesymbols in a
symbol file?
Message-ID: <48471FAA0200008F00018678@co5.dnr.state.mn.us>
I think that mode=legendicon is still the way to go. The CGI program can
be run at the command line just as sym2img or shp2img. There's a new
switch in 5.2 (-nh) to surpress headers mime-headers so that image
output can be redirected to an image file safely. In short, the CGI can
be run offline. There are all sorts of options then depending on what
your limitations are for such a tool (e.g. mapscript or no mapscript).
If I were to resurrect sym2img I think I would just use is as a wrapper
to the legend icon type functionality. That is, the utility would kick
out a bunch of images, 1 for each layer/class combo and perhaps an HTML
file to organize the display.
Steve
>>> "enri" 06/04/08 10:10 PM >>>
Thank you Steve,
I remember there was a sym2img utility, actually that's what I am
looking for, because I want to develop an off-line tool for symbol
authoring, I am wondering if sym2img could be available once again?
enri
======= 2008-06-05 10:16:07 you wrote?=======
>There used to be a sym2img utility but it's been busted awhile. If you
have class names defined you could simply request a legend from the CGI
and look at things that way (e.g. mapserv?mode=legend&map=foo.map).
>
>There's another option too. I added a legendicon mode to the dev (5.2)
version of the MapServer CGI. The mode is "legendicon" and there's a new
"icon" parameter that takes a value like [layer]{:class} where layer is
a layer name and (optionally) class number (starting with 0 I think).
Here's an example:
>
>
http://maps.dnr.state.mn.us/cgi-bin/mapserv50?map=COMPASS_MAPFILE&mode=legendicon&icon=lake_dnrpy2
>
>You could probably easily create an HTML page full of these links and
preview things that way. The legendicon is not dependent on the presence
of a class name so it can be used on any layer/class combination.
>
>Steve
>
>>>> "enri" 06/04/08 8:09 PM >>>
>Hi guys,
>
>I want to preview the symbols in a symbol file by drawing them without
drawing the whole mapfile, is that possible and how can I do that? Is
there a utility like shp2img available?
>
>Thanks a lot.
>
>Enri Zhou
>
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>_______________________________________________
>mapserver-dev mailing list
>mapserver-dev at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-dev
= = = = = = = = = = = = = = = = = = = =
From ila.engg at gmail.com Wed Jun 4 21:53:10 2008
From: ila.engg at gmail.com (ila pathak)
Date: Thu, 5 Jun 2008 10:23:10 +0530
Subject: [mapserver-users] About Arrowhead problem
Message-ID: <97b30a4a0806042153s5d514a1cn1f70eca73d19320d@mail.gmail.com>
*About Arrowhead problem:*
* *
*I am working on a GIS project & need to show directions(one way direction)
along a section of a road or highway. I need to show regularly spaced arrows
along the line segment.*
* *
*Problem: Creation of arrowhead*
*I am creating arrowhead symbol to be derived from a TrueType font. So my
symbol file looks like:*
* *
*SYMBOL*
*NAME "one_way_from"*
*TYPE truetype*
*FONT arial-bold*
*CHARACTER ">"*
*#FONT "Wingdings"*
*#CHARACTER "?"*
*GAP -40*
*END *
* *
* *
*SYMBOL*
*NAME "one_way_to"*
*TYPE truetype*
*FONT arial-bold*
*CHARACTER "<"*
*#FONT "Wingdings"*
*#CHARACTER "???;"*
*GAP -40*
*END *
* *
*And I have created a separate Layer just to display the arrowhead on the
road, which looks like this: *
*LAYER*
* GROUP "Basemap"*
* NAME "major road direction"*
* CONNECTIONTYPE databasetype*
* CONNECTION connection_string*
* DATA "query_to_be_executed"*
* *
* CLASSITEM "ONEWAYDIRECTION"*
* TYPE Line*
* STATUS ON*
* *
* CLASS*
* NAME "From"*
* EXPRESSION *([ONEWAYDIRECTION] = 1) **
* STYLE*
* SYMBOL "one_way_from"*
* COLOR 0 0 0*
* SIZE 6*
* END *
* END*
* *
* CLASS*
* NAME "To"*
* EXPRESSION *([ONEWAYDIRECTION] = 0) **
* STYLE*
* SYMBOL "one_way_to"*
* COLOR 0 0 0*
* SIZE 6*
* END*
* END *
* *
* END # Layer*
*Where ONEWAYDIRECTION is a column in my road named table, having 0 or 1
value.*
* And the Road layer looks like this:*
*LAYER*
* NAME "major road"*
* CONNECTIONTYPE database_type*
* CONNECTION "username/password"*
* DATA "query_to_be_executed"*
* CLASSITEM "ROADCLASS"*
* LABELITEM "STREETNAME"*
* TYPE Line*
* STATUS ON*
* CLASS*
* NAME "MAJOR-ROADS"*
* MAXSCALE 30000*
* MINSCALE 7000*
* EXPRESSION ([ROADCLASS] <= 5 )*
* *
* *
* style *
* *
* color 255 192 203*
* #color 246 191 0*
* width 9 *
* antialias true*
* end*
* *
* style*
* *
* color 255 192 203*
* #color 255 222 0*
* width 8*
* antialias true*
* end*
* *
*END # Layer*
* *
*Now on executing this, I am only getting road on my screen. I am not
getting the arrows along with road. Please see where I am doing mistake &
let me know about it.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ila.engg at gmail.com Wed Jun 4 22:47:27 2008
From: ila.engg at gmail.com (Ila)
Date: Wed, 4 Jun 2008 22:47:27 -0700 (PDT)
Subject: [MAPSERVER-USERS] Arrowhead on Road to show direction
Message-ID: <17648540.post@talk.nabble.com>
About Arrowhead problem:
I am working on a GIS project & need to show directions(one way direction)
along a section of a road or highway. I need to show regularly spaced arrows
along the line segment.
Problem: Creation of arrowhead
I am creating arrowhead symbol to be derived from a TrueType font. So my
symbol file looks like:
SYMBOL
NAME "one_way_from"
TYPE truetype
FONT arial-bold
CHARACTER ">"
#FONT "Wingdings"
#CHARACTER "?"
GAP -40
END
SYMBOL
NAME "one_way_to"
TYPE truetype
FONT arial-bold
CHARACTER "<"
#FONT "Wingdings"
#CHARACTER "???;"
GAP -40
END
And I have created a separate Layer just to display the arrowhead on the
road, which looks like this:
LAYER
GROUP "Basemap"
NAME "major road direction"
CONNECTIONTYPE databasetype
CONNECTION connection_string
DATA "query_to_be_executed"
CLASSITEM "ONEWAYDIRECTION"
TYPE Line
STATUS ON
CLASS
NAME "From"
EXPRESSION ([ONEWAYDIRECTION] = 1)
STYLE
SYMBOL "one_way_from"
COLOR 0 0 0
SIZE 6
END
END
CLASS
NAME "To"
EXPRESSION ([ONEWAYDIRECTION] = 0)
STYLE
SYMBOL "one_way_to"
COLOR 0 0 0
SIZE 6
END
END
END # Layer
Where ONEWAYDIRECTION is a column in my road named table, having 0 or 1
value.
And the Road layer looks like this:
LAYER
NAME "major road"
CONNECTIONTYPE database_type
CONNECTION "username/password"
DATA "query_to_be_executed"
CLASSITEM "ROADCLASS"
LABELITEM "STREETNAME"
TYPE Line
STATUS ON
CLASS
NAME "MAJOR-ROADS"
MAXSCALE 30000
MINSCALE 7000
EXPRESSION ([ROADCLASS] <= 5 )
style
color 255 192 203
#color 246 191 0
width 9
antialias true
end
style
color 255 192 203
#color 255 222 0
width 8
antialias true
end
END # Layer
Now on executing this, I am only getting road on my screen. I am not getting
the arrows along with road. Please see where I am doing mistake & let me
know about it.
--
View this message in context: http://www.nabble.com/Arrowhead-on-Road-to-show-direction-tp17648540p17648540.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From mlinden at zeelandnet.nl Wed Jun 4 23:16:22 2008
From: mlinden at zeelandnet.nl (Milo van der Linden)
Date: Thu, 05 Jun 2008 08:16:22 +0200
Subject: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead
of apache
In-Reply-To: <3E5D24E6E4144A4590AC2B152F72F05003FB43FD@ASHKGEX2.asia.ad.flextronics.com>
References: <3E5D24E6E4144A4590AC2B152F72F05003F8A2C6@ASHKGEX2.asia.ad.flextronics.com> <5AB740EA-437E-4A70-B41C-956ECD766886@environ-it.co.uk>
<3E5D24E6E4144A4590AC2B152F72F05003FB43FD@ASHKGEX2.asia.ad.flextronics.com>
Message-ID: <484784B6.2080706@zeelandnet.nl>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In this "switching port" issue; you should use mod_proxy and/or
mod_rewrite to tell apache when a user is requesting tomcat and when
standard webpages. This is beyond a mapserver topic and should be
addressed to communities involved with Apache.
Zhao Ying (CDU) wrote:
>
>
> Hi Mr. Mason,
>
>
>
> I really appreciate for your reply, now I get to understand about the relationship between Tomcat and Apache.
>
> Well~, frankly, I??ve already had a J2EE web application in progress. The general concept should be like this:
>
>
>
> -------------------------------------------------------------- --------------
>
> Web client (user web brower such as IE??) | -------> (Request to tomcat) ----------> | tomcat | (Get and process resources
>
> | port :8661 | | according to URL requested
>
> --------------------------------------------------------------- -------------- and return result HTML to client)
>
>
>
>
>
> But if I want to add some map features or just a single static web page to show a map within my website, then
>
> There should be one more architecture:
>
>
>
>
>
> -------------------------------------------------------------- -------------- Request -----------------
>
> Web client (user web brower such as IE??) | -------> (Request to apache) ---------> | apache | ---------------> | MapServer |
>
> | port :8000 | | | |
>
> --------------------------------------------------------------- -------------- ------------------
>
>
>
>
>
> In another word, our users have to change requesting port number again and again though accessing a same website, for
>
> They actually send requests to a server (software server) ?C tomcat when requesting dynamic content processed by servlet,
>
> Jsp, whatever, and send requests to another one ?C apache when requesting map.
>
>
>
> Sir, according to your email, ??But being able to script in Java is still a long way from being able to deploy
>
> to a servlet container like Tomcat.?? My personal understanding is there??s no way for tomcat to replace apache totally
>
> as a middle man role in terms of cooperating with MapServer.
>
>
>
> Does that mean we have to keep two web architectures and have
>
> two software servers installed if we want to provide both dynamic content and map feature?
>
>
>
> Or there may be a solution to solve this two-architecture problem?
>
>
>
>
>
> Thanks for your great help again!!!
>
>
>
> Jeff.
>
>>From Chengdu, China
>
>
>
> ________________________________
>
> From: Andrew Mason [mailto:andrew at environ-it.co.uk]
> Sent: 2008??6??4?? 23:12
> To: Zhao Ying (CDU)
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Q: MapServer(ms4w) works with tomcat instead of apache
>
>
>
> Hello,
>
>
>
> Tomcat and Apache are very different things, and while there is certainly a degree of overlap in what Apache Httpd and Apache Tomcat can be used for, the way the two applications actually operate is very different.
>
> Without going in to too much detail here, Tomcat is essentially a J2EE application container, not a webserver and applications are written using the Java programming language. You'd normally never use Tomcat to serve files in the way you'd use Apache httpd. You'd normally delegate such a task to a webserver. And there really isn't much of an issue about having the two servers installed, we sorted out the port conflict issues a while back.
>
> Excuse any slight errors here, I've only been using Mapserver a few weeks myself, but my understanding is that Mapserver essentially a set of C libraries that are accessible via CGI. You can also access these via PHP, Python and others even Java it seems, using mapscript. But being able to script in Java is still a long way from being able to deploy to a servlet container like Tomcat.
>
>
>
> If you really want to avoid installing Apache httpd, then you might find Geoserver useful, as it is a Java web application, and deploying it to Tomcat is really easy.
>
> But I would recommend trying Apache Httpd, as it's not particularly difficult to get to grips with.
>
>
>
> Hope this helps,
>
>
>
> regards
>
>
>
> Andrew Mason
>
>
>
>
>
> On 4 Jun 2008, at 10:12, Zhao Ying (CDU) wrote:
>
>
>
>
>
> Hello,
>
>
>
> I??m Jeff from Sichuan, China. I have a question about how to configure MapServer so that it could be
>
> able to work with apache-tomcat-5.5.26 instead of apache by default. Since I??ve already had tomcat 5.5.26
>
> installed on my computer and tomcat is well known as both Web server and application server,
>
> it seems there??s no need to install one more web server ?C apache. Furthermore, more web servers, more
>
> possibilities to conflict, such as listing ports ??, right?
>
>
>
> Could somebody provide a solution in details on how to achieve this? Thanks!! ~~
>
>
>
>
>
> Btw, my computer environment:
>
> Windows XP;
>
> JDK 1.4;
>
> apache-tomcat-5.5.26; installed on c:\ apache-tomcat-5.5.26
>
> ms4w_2.2.7.zip downloaded from http://maptools.org/ms4w/ and unzipped to c:\ms4w
>
>
>
>
>
> Regards,
>
> Jeff.
>
>
>
> Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
>
> _______________________________________________
>
> mapserver-users mailing list
>
> mapserver-users at lists.osgeo.org
>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> Legal Disclaimer:
> The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIR4S2FHMFRcTlnzoRAo+AAJ41uNwVg3+mM0Ra5I27y2DgC6/2RQCcC0CE
UsjHsC9QSi0Y3GwMBcR+WDk=
=8CGX
-----END PGP SIGNATURE-----
From ila.engg at gmail.com Wed Jun 4 23:36:03 2008
From: ila.engg at gmail.com (Ila)
Date: Wed, 4 Jun 2008 23:36:03 -0700 (PDT)
Subject: [MAPSERVER-USERS] Show direction on Road
Message-ID: <17663155.post@talk.nabble.com>
Hello List,
I am working on GIS project. This is my first step in GIS towards
creating mapfile & symbol file, so please forgive me my noob questions. I
have successfully generated Map, but now I want to show directions on road
(with the help of arrows). Is there any way to show directions on road?
Please show me the way to proceed. I would appreciate your suggestions.
Thanks in advance.
--
View this message in context: http://www.nabble.com/Show-direction-on-Road-tp17663155p17663155.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From besse.pb at gmail.com Thu Jun 5 03:00:11 2008
From: besse.pb at gmail.com (Faldor)
Date: Thu, 5 Jun 2008 03:00:11 -0700 (PDT)
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
Message-ID: <17666380.post@talk.nabble.com>
Hi all,
I have to ensure that Mapserver can be built and run on Solaris 2.10 and 2.8
Do you know of any issues concerning those versions ?
Regards,
Faldor
--
View this message in context: http://www.nabble.com/Mapserver-on-Solaris-2.10-tp17666380p17666380.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From t.urwin at ed.ac.uk Thu Jun 5 04:25:51 2008
From: t.urwin at ed.ac.uk (Tim Urwin)
Date: Thu, 05 Jun 2008 12:25:51 +0100
Subject: [mapserver-users] Label attribute bindings
Message-ID: <4847CD3F.1040902@ed.ac.uk>
Hi all,
This is a questuion about label attribute bindings.
We are about to migrate some of our Ordnance Survey MasterMap data from
a propriety system to using mapserver serving the data from a PostGIS
database for screen maps. We are currently using Mapserver 5.02 and are
very happy with the results we have achieved so far, however, due to
only being able to set a single value for the position of a label has
caused much of the text to be badly misaligned with the underlying features.
OS has determined the best position for the label and provide this as
attribute data for each text label point and we would like to be able to
utilise it. Is there anyway to make the position label attribute accept
a binding as some of the other values do, e.g. angle which we also use.
The problem we have is that no single value works with the data to
provide a good map result, therefore we would like to be able to use
each feature's value as opposed to a global value.
Any help or insights in how to achieve this will be gratefully received.
At the moment our applications access Mapserver via CGI mode directly
without the use of mapscript although we could investigate that option.
The following is an example of one of the entries in the mapfile for a
label layer.
LAYER
NAME "Heritage labels"
METADATA
"wms_title" "Heritage labels"
"wms_srs" "EPSG:27700"
"wms_extent" "0.0 0.0 700000.0 1300000.0"
END
STATUS OFF
CONNECTIONTYPE postgis
CONNECTION "user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX"
DATA '"anchorpoint" from "cartographictext" using unique "fid" using
SRID=27700'
PROCESSING "CLOSE_CONNECTION=DEFER"
TYPE Annotation
LABELITEM 'textstring'
FILTER ("layer" = '59')
CLASS
NAME 'Antiquity Text (82)'
LABEL
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT arial-italic
SIZE 8
ANGLE [angle]
ANTIALIAS TRUE
POSITION CC
PARTIALS TRUE
ENCODING 'UTF-8'
END
END
MINSCALEDENOM 100.0
MAXSCALEDENOM 5500.0
PROJECTION
"init=epsg:27700"
END
END
many thanks
Tim
--
Tim Urwin
EDINA
The University of Edinburgh
Causewayside House
160 Causewayside
Edinburgh EH9 1PR
tel: +44 (0) 131 650 3310
fax: +44 (0) 131 650 3308
email: t.urwin at ed.ac.uk
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From Tim.Nolte at ipcswirelessinc.com Thu Jun 5 05:14:11 2008
From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim)
Date: Thu, 5 Jun 2008 08:14:11 -0400
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
In-Reply-To: <17666380.post@talk.nabble.com>
References: <17666380.post@talk.nabble.com>
Message-ID:
I can safely say that I have successfully compiled MapServer 5.x on
both. We are currently running a production MapServer on Solaris 10 x86.
I'm attaching my build guide for Solaris.
- Tim
----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer
iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512
Office: 616-656-5163
PCS: 616-706-2438
Fax: 616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Faldor
Sent: Thursday, June 05, 2008 6:00 AM
To: mapserver-users at lists.osgeo.org
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
Hi all,
I have to ensure that Mapserver can be built and run on Solaris 2.10 and
2.8
Do you know of any issues concerning those versions ?
Regards,
Faldor
--
View this message in context:
http://www.nabble.com/Mapserver-on-Solaris-2.10-tp17666380p17666380.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SolarisMapServer.txt
URL:
From Joel.D.Schlagel at usace.army.mil Thu Jun 5 05:18:14 2008
From: Joel.D.Schlagel at usace.army.mil (Schlagel, Joel D IWR)
Date: Thu, 5 Jun 2008 08:18:14 -0400
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
References: <17666380.post@talk.nabble.com>
Message-ID:
We are using mapserver on Sparc in a production environment with no problems-
joel
----
Joel Schlagel
Institute for Water Resources
joel.d.schlagel at usace.army.mil
1.603.646.4387
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org on behalf of Nolte, Tim
Sent: Thu 6/5/2008 8:14 AM
To: Faldor; mapserver-users at lists.osgeo.org
Subject: RE: [MAPSERVER-USERS] Mapserver on Solaris 2.10
I can safely say that I have successfully compiled MapServer 5.x on
both. We are currently running a production MapServer on Solaris 10 x86.
I'm attaching my build guide for Solaris.
- Tim
----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer
iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512
Office: 616-656-5163
PCS: 616-706-2438
Fax: 616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Faldor
Sent: Thursday, June 05, 2008 6:00 AM
To: mapserver-users at lists.osgeo.org
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
Hi all,
I have to ensure that Mapserver can be built and run on Solaris 2.10 and
2.8
Do you know of any issues concerning those versions ?
Regards,
Faldor
--
View this message in context:
http://www.nabble.com/Mapserver-on-Solaris-2.10-tp17666380p17666380.html
Sent from the Mapserver - User mailing list archive at Nabble.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 deangadoury at subpixelmedia.com Thu Jun 5 05:44:51 2008
From: deangadoury at subpixelmedia.com (deangadoury at subpixelmedia.com)
Date: Thu, 05 Jun 2008 05:44:51 -0700
Subject: [mapserver-users] Label attribute bindings
Message-ID: <20080605054451.101c104282a567f8bab9dfdb5864fa84.90c1e31901.wbe@email.secureserver.net>
This is only a partial answer, but if you have a label angle as an attribute in your data you should be able to use LABELANGLEITEM.
LABELANGLEITEM [attribute]
Item name in attribute table to use for class annotation angles. Values should be in degrees.
Dean Gadoury
Subpixel Media
subpixelmedia.com
> -------- Original Message --------
> Subject: [mapserver-users] Label attribute bindings
> From: Tim Urwin
> Date: Thu, June 05, 2008 4:25 am
> To: mapserver-users at lists.osgeo.org
>
> Hi all,
>
> This is a questuion about label attribute bindings.
>
> We are about to migrate some of our Ordnance Survey MasterMap data from
> a propriety system to using mapserver serving the data from a PostGIS
> database for screen maps. We are currently using Mapserver 5.02 and are
> very happy with the results we have achieved so far, however, due to
> only being able to set a single value for the position of a label has
> caused much of the text to be badly misaligned with the underlying features.
>
> OS has determined the best position for the label and provide this as
> attribute data for each text label point and we would like to be able to
> utilise it. Is there anyway to make the position label attribute accept
> a binding as some of the other values do, e.g. angle which we also use.
> The problem we have is that no single value works with the data to
> provide a good map result, therefore we would like to be able to use
> each feature's value as opposed to a global value.
>
> Any help or insights in how to achieve this will be gratefully received.
> At the moment our applications access Mapserver via CGI mode directly
> without the use of mapscript although we could investigate that option.
>
> The following is an example of one of the entries in the mapfile for a
> label layer.
>
> LAYER
>
> NAME "Heritage labels"
>
> METADATA
> "wms_title" "Heritage labels"
> "wms_srs" "EPSG:27700"
> "wms_extent" "0.0 0.0 700000.0 1300000.0"
> END
>
> STATUS OFF
>
> CONNECTIONTYPE postgis
> CONNECTION "user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX"
> DATA '"anchorpoint" from "cartographictext" using unique "fid" using
> SRID=27700'
>
> PROCESSING "CLOSE_CONNECTION=DEFER"
>
> TYPE Annotation
>
> LABELITEM 'textstring'
>
> FILTER ("layer" = '59')
>
> CLASS
> NAME 'Antiquity Text (82)'
> LABEL
> COLOR 0 0 0
> OUTLINECOLOR 255 255 255
> TYPE TRUETYPE
> FONT arial-italic
> SIZE 8
> ANGLE [angle]
> ANTIALIAS TRUE
> POSITION CC
> PARTIALS TRUE
> ENCODING 'UTF-8'
> END
> END
>
> MINSCALEDENOM 100.0
> MAXSCALEDENOM 5500.0
>
> PROJECTION
> "init=epsg:27700"
> END
> END
>
>
> many thanks
>
> Tim
>
> --
>
> Tim Urwin
> EDINA
> The University of Edinburgh
> Causewayside House
> 160 Causewayside
> Edinburgh EH9 1PR
>
> tel: +44 (0) 131 650 3310
> fax: +44 (0) 131 650 3308
> email: t.urwin at ed.ac.uk
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From rwburgholzer at deq.virginia.gov Thu Jun 5 06:12:53 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Thu, 5 Jun 2008 09:12:53 -0400
Subject: [mapserver-users] Problem with Mapserver WFS-client
generatedsyntax
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DB2@deqex01.deq.local>
Thought I would post an update on this issue. It seems that there was
some strange error in the particular FEATURENAME that I was requesting,
since OGC compliant requests for a different feature managed to return
the desired data sets.
NOAA once again proved to be very responsive to inquiries, contrary to
my fear that a web-form email feedback would go into the vast
nothingness of deep space. I am waiting to hear back regarding a
subsequent issue wherein the number of points returned appears to be
constrained, and also scaled based on rules that are not yet apparent to
me.
Stay tuned... :)
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
Burgholzer,Robert
Sent: Wednesday, June 04, 2008 3:03 PM
To: Yewondwossen Assefa
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] Problem with Mapserver WFS-client
generatedsyntax
Thanks for letting me know that it is their problem, not mapserver.
Hopefully, they can fix it...
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca]
Sent: Wednesday, June 04, 2008 2:35 PM
To: Burgholzer,Robert
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Problem with Mapserver WFS-client
generated syntax
Robert,
The wfs specs indicates that values for the BBOX parameter should be
separated by commas which is what Mapserver is doing. There is no other
setting in mapserver that would allow you to change the format of BBOX
easily. I think the best would be for the server to respect the syntax
described in the specs.
Best Regards,
Burgholzer,Robert wrote:
> Hey folks,
>
> I am trying to hit NOAA's experimental point based weather forecast
> product WFS server. I am using mapserver as a client, and I seem to
be
> getting a strange incompatibility, that appears to be in a subtle
> feature of the WFS query that Mapserver is putting together. The
> difference between the query that NOAA wants, and the one that
mapserver
> produces is in the BBOX parameter. NOAA wants a space between the two
> corners, and mapserver puts a comma, a la:
>
>
>
> NOAA Wants:
>
> BBOX=-79.6222567785354,37.8816528320313
-77.4274563562303,39.3436317443848
>
>
>
> Mapserver Sends:
>
>
BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.34363174438
48
>
>
>
> Doesn't Work (mapserver):
>
>
http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQ
UEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-7
9.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848
>
>
>
>
> Works (NOAA):
>
>
http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQ
UEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-7
9.6222567785354,37.8816528320313%20-77.4274563562303,39.3436317443848
>
>
>
>
> Maybe I am missing some crucial configuration param?
>
>
>
> Thanks in advance,
>
>
>
>
>
> Robert W. Burgholzer
>
> Surface Water Modeler
>
> Office of Water Supply and Planning
>
> Virginia Department of Environmental Quality
>
> rwburgholzer at deq.virginia.gov
>
> 804-698-4405
>
> Open Source Modeling Tools:
>
> http://sourceforge.net/projects/npsource/
>
>
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From woodbri at swoodbridge.com Thu Jun 5 07:46:45 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Thu, 05 Jun 2008 09:46:45 -0500
Subject: [mapserver-users] Label attribute bindings
In-Reply-To: <4847CD3F.1040902@ed.ac.uk>
References: <4847CD3F.1040902@ed.ac.uk>
Message-ID: <4847FC55.8000508@swoodbridge.com>
Tim,
When you say "OS has determined the best position for the label", what
form is this attribute in? Is the x-y position attribute columns? or
some offset x-y attribute? or what?
If it is an x-y position that you would rather use that the default
the_geom geometry position of the feature then it would probably be
possible to create a view that makes that x-y appear as
setsrid(makepoint(x_col,y_col),27700) as the_geom in the view and then
add a record to the geometry_columns table for this view. for
performance you might want to add this column to the orginal table and
index it.
Then you should be able to renter the annotation using the view or the
alternate column in the table.
-Steve W
Tim Urwin wrote:
> Hi all,
>
> This is a questuion about label attribute bindings.
>
> We are about to migrate some of our Ordnance Survey MasterMap data from
> a propriety system to using mapserver serving the data from a PostGIS
> database for screen maps. We are currently using Mapserver 5.02 and are
> very happy with the results we have achieved so far, however, due to
> only being able to set a single value for the position of a label has
> caused much of the text to be badly misaligned with the underlying
> features.
>
> OS has determined the best position for the label and provide this as
> attribute data for each text label point and we would like to be able to
> utilise it. Is there anyway to make the position label attribute accept
> a binding as some of the other values do, e.g. angle which we also use.
> The problem we have is that no single value works with the data to
> provide a good map result, therefore we would like to be able to use
> each feature's value as opposed to a global value.
>
> Any help or insights in how to achieve this will be gratefully received.
> At the moment our applications access Mapserver via CGI mode directly
> without the use of mapscript although we could investigate that option.
>
> The following is an example of one of the entries in the mapfile for a
> label layer.
>
> LAYER
>
> NAME "Heritage labels"
>
> METADATA
> "wms_title" "Heritage labels"
> "wms_srs" "EPSG:27700"
> "wms_extent" "0.0 0.0 700000.0 1300000.0"
> END
>
> STATUS OFF
>
> CONNECTIONTYPE postgis
> CONNECTION "user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX"
> DATA '"anchorpoint" from "cartographictext" using unique "fid" using
> SRID=27700'
>
> PROCESSING "CLOSE_CONNECTION=DEFER"
>
> TYPE Annotation
>
> LABELITEM 'textstring'
>
> FILTER ("layer" = '59')
>
> CLASS
> NAME 'Antiquity Text (82)'
> LABEL
> COLOR 0 0 0
> OUTLINECOLOR 255 255 255
> TYPE TRUETYPE
> FONT arial-italic
> SIZE 8
> ANGLE [angle]
> ANTIALIAS TRUE
> POSITION CC
> PARTIALS TRUE
> ENCODING 'UTF-8'
> END
> END
>
> MINSCALEDENOM 100.0
> MAXSCALEDENOM 5500.0
>
> PROJECTION
> "init=epsg:27700"
> END
> END
>
>
> many thanks
>
> Tim
>
From t.urwin at ed.ac.uk Thu Jun 5 07:22:42 2008
From: t.urwin at ed.ac.uk (Tim Urwin)
Date: Thu, 05 Jun 2008 15:22:42 +0100
Subject: [mapserver-users] Label attribute bindings
In-Reply-To: <4847FC55.8000508@swoodbridge.com>
References: <4847CD3F.1040902@ed.ac.uk> <4847FC55.8000508@swoodbridge.com>
Message-ID: <4847F6B2.204@ed.ac.uk>
Hi Steve,
Unfortunatly not, it is a single digit 1-9 in an attribute field which
we mapped to the two letter characters used by mapserver for text
position, eg ll cc etc. We would just like to be able to look this up
for each feature rather than apply a blanket approach for the layer. We
would prefer not to edit the data as it changes get updated on a regular
basis (we get updates every 6 to 8 weeks from ordnance suervey) and the
database table has just under 22 and a half million entries.
Thanks
Tim
Stephen Woodbridge wrote:
> Tim,
>
> When you say "OS has determined the best position for the label", what
> form is this attribute in? Is the x-y position attribute columns? or
> some offset x-y attribute? or what?
>
> If it is an x-y position that you would rather use that the default
> the_geom geometry position of the feature then it would probably be
> possible to create a view that makes that x-y appear as
> setsrid(makepoint(x_col,y_col),27700) as the_geom in the view and then
> add a record to the geometry_columns table for this view. for
> performance you might want to add this column to the orginal table and
> index it.
>
> Then you should be able to renter the annotation using the view or the
> alternate column in the table.
>
> -Steve W
>
> Tim Urwin wrote:
>> Hi all,
>>
>> This is a questuion about label attribute bindings.
>>
>> We are about to migrate some of our Ordnance Survey MasterMap data
>> from a propriety system to using mapserver serving the data from a
>> PostGIS database for screen maps. We are currently using Mapserver
>> 5.02 and are very happy with the results we have achieved so far,
>> however, due to only being able to set a single value for the
>> position of a label has caused much of the text to be badly
>> misaligned with the underlying features.
>>
>> OS has determined the best position for the label and provide this as
>> attribute data for each text label point and we would like to be able
>> to utilise it. Is there anyway to make the position label attribute
>> accept a binding as some of the other values do, e.g. angle which we
>> also use. The problem we have is that no single value works with the
>> data to provide a good map result, therefore we would like to be able
>> to use each feature's value as opposed to a global value.
>>
>> Any help or insights in how to achieve this will be gratefully
>> received. At the moment our applications access Mapserver via CGI
>> mode directly without the use of mapscript although we could
>> investigate that option.
>>
>> The following is an example of one of the entries in the mapfile for
>> a label layer.
>>
>> LAYER
>>
>> NAME "Heritage labels"
>>
>> METADATA
>> "wms_title" "Heritage labels"
>> "wms_srs" "EPSG:27700"
>> "wms_extent" "0.0 0.0 700000.0 1300000.0"
>> END
>>
>> STATUS OFF
>>
>> CONNECTIONTYPE postgis
>> CONNECTION "user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX"
>> DATA '"anchorpoint" from "cartographictext" using unique "fid"
>> using SRID=27700'
>>
>> PROCESSING "CLOSE_CONNECTION=DEFER"
>>
>> TYPE Annotation
>>
>> LABELITEM 'textstring'
>>
>> FILTER ("layer" = '59')
>>
>> CLASS
>> NAME 'Antiquity Text (82)'
>> LABEL
>> COLOR 0 0 0
>> OUTLINECOLOR 255 255 255
>> TYPE TRUETYPE
>> FONT arial-italic
>> SIZE 8
>> ANGLE [angle]
>> ANTIALIAS TRUE
>> POSITION CC
>> PARTIALS TRUE
>> ENCODING 'UTF-8'
>> END
>> END
>>
>> MINSCALEDENOM 100.0
>> MAXSCALEDENOM 5500.0
>>
>> PROJECTION
>> "init=epsg:27700"
>> END
>> END
>>
>>
>> many thanks
>>
>> Tim
>>
>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From woodbri at swoodbridge.com Thu Jun 5 13:52:17 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Thu, 05 Jun 2008 15:52:17 -0500
Subject: [mapserver-users] Label attribute bindings
In-Reply-To: <4847F6B2.204@ed.ac.uk>
References: <4847CD3F.1040902@ed.ac.uk> <4847FC55.8000508@swoodbridge.com>
<4847F6B2.204@ed.ac.uk>
Message-ID: <48485201.6060005@swoodbridge.com>
Tim,
Well in that case you should be able to set CLASSITEM to your position
attribute. And then set up a CLASS for each position. This is UGLY in
the mapfile, but you should be able to do it now without code changes.
-Steve
Tim Urwin wrote:
> Hi Steve,
>
> Unfortunatly not, it is a single digit 1-9 in an attribute field which
> we mapped to the two letter characters used by mapserver for text
> position, eg ll cc etc. We would just like to be able to look this up
> for each feature rather than apply a blanket approach for the layer. We
> would prefer not to edit the data as it changes get updated on a regular
> basis (we get updates every 6 to 8 weeks from ordnance suervey) and the
> database table has just under 22 and a half million entries.
>
> Thanks
>
> Tim
>
> Stephen Woodbridge wrote:
>> Tim,
>>
>> When you say "OS has determined the best position for the label", what
>> form is this attribute in? Is the x-y position attribute columns? or
>> some offset x-y attribute? or what?
>>
>> If it is an x-y position that you would rather use that the default
>> the_geom geometry position of the feature then it would probably be
>> possible to create a view that makes that x-y appear as
>> setsrid(makepoint(x_col,y_col),27700) as the_geom in the view and then
>> add a record to the geometry_columns table for this view. for
>> performance you might want to add this column to the orginal table and
>> index it.
>>
>> Then you should be able to renter the annotation using the view or the
>> alternate column in the table.
>>
>> -Steve W
>>
>> Tim Urwin wrote:
>>> Hi all,
>>>
>>> This is a questuion about label attribute bindings.
>>>
>>> We are about to migrate some of our Ordnance Survey MasterMap data
>>> from a propriety system to using mapserver serving the data from a
>>> PostGIS database for screen maps. We are currently using Mapserver
>>> 5.02 and are very happy with the results we have achieved so far,
>>> however, due to only being able to set a single value for the
>>> position of a label has caused much of the text to be badly
>>> misaligned with the underlying features.
>>>
>>> OS has determined the best position for the label and provide this as
>>> attribute data for each text label point and we would like to be able
>>> to utilise it. Is there anyway to make the position label attribute
>>> accept a binding as some of the other values do, e.g. angle which we
>>> also use. The problem we have is that no single value works with the
>>> data to provide a good map result, therefore we would like to be able
>>> to use each feature's value as opposed to a global value.
>>>
>>> Any help or insights in how to achieve this will be gratefully
>>> received. At the moment our applications access Mapserver via CGI
>>> mode directly without the use of mapscript although we could
>>> investigate that option.
>>>
>>> The following is an example of one of the entries in the mapfile for
>>> a label layer.
>>>
>>> LAYER
>>>
>>> NAME "Heritage labels"
>>>
>>> METADATA
>>> "wms_title" "Heritage labels"
>>> "wms_srs" "EPSG:27700"
>>> "wms_extent" "0.0 0.0 700000.0 1300000.0"
>>> END
>>>
>>> STATUS OFF
>>>
>>> CONNECTIONTYPE postgis
>>> CONNECTION "user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX"
>>> DATA '"anchorpoint" from "cartographictext" using unique "fid"
>>> using SRID=27700'
>>>
>>> PROCESSING "CLOSE_CONNECTION=DEFER"
>>>
>>> TYPE Annotation
>>>
>>> LABELITEM 'textstring'
>>>
>>> FILTER ("layer" = '59')
>>>
>>> CLASS
>>> NAME 'Antiquity Text (82)'
>>> LABEL
>>> COLOR 0 0 0
>>> OUTLINECOLOR 255 255 255
>>> TYPE TRUETYPE
>>> FONT arial-italic
>>> SIZE 8
>>> ANGLE [angle]
>>> ANTIALIAS TRUE
>>> POSITION CC
>>> PARTIALS TRUE
>>> ENCODING 'UTF-8'
>>> END
>>> END
>>>
>>> MINSCALEDENOM 100.0
>>> MAXSCALEDENOM 5500.0
>>>
>>> PROJECTION
>>> "init=epsg:27700"
>>> END
>>> END
>>>
>>>
>>> many thanks
>>>
>>> Tim
>>>
>>
>>
>>
>
>
From valerio.vianello at yahoo.it Thu Jun 5 23:31:17 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Fri, 6 Jun 2008 06:31:17 +0000 (GMT)
Subject: [mapserver-users] Does Mapserver work with mobile phone browser ??
In-Reply-To:
Message-ID: <582943.5762.qm@web27303.mail.ukl.yahoo.com>
Hi,
I'm doing a simple application with mapserver where there is a map file with three layers and a template file with zoom and query options.
When I use Firefox or Internet Explorer to process the map all work fine..but if I try to use the browser of my mobile phone (Nokia N95) there is something wrong.
Looking into the apache access log I saw that wherever I click on the map the coordinates in the request are always img.x=0 and img.y=0
Any suggestions ?
P.S. I tryed also to connect with my phone to the map of the mapserver tutorial with the same strange behavior.
Thanks
Valerio
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From w.blanken at geon.nl Thu Jun 5 23:23:04 2008
From: w.blanken at geon.nl (=?us-ascii?Q?Wim_Blanken?=)
Date: Fri, 6 Jun 2008 08:23:04 +0200
Subject: [mapserver-users] Dinamically changing HTML Template using
CGIparameter? (instead of hardcoded)
Message-ID:
Hi Kresh,
?
In Mapserver 4.x the method is slightly different. You can use :
?
map_web_template=othertemplate.html
?
Regards,
?
Wim Blanken
-----Original message-----
From: kreshna_iceheart at yahoo.com
Sent: Fri 06/06/08 05:45:14
To: Wim Blanken ;
Subject: RE: [mapserver-users] Dinamically changing HTML Template using CGIparameter? (instead of hardcoded)
Hi, thank you, Wim. I'm using ms4w 4.4.0 by the way, but I'll definitely try the methods you've mentioned.
Many thanks,
-Kresh
--- On Tue, 6/3/08, Wim Blanken wrote:
From: Wim Blanken
Subject: RE: [mapserver-users] Dinamically changing HTML Template using CGIparameter? (instead of hardcoded)
To: mapserver-users at lists.osgeo.org
Date: Tuesday, June 3, 2008, 12:13 PM
Hello Kresh,
?
Sorry, I did not read you question carefull enough .the answer is about changing the template of a single layer and not the main template.
?
Changing the main map template goes with cgi (mapserver 5) i believe as follows:
?
..&map_web=TEMPLATE+othertemplate.html
?
Sorry for the inconvenience .
?
Wim Blanken
The Netherlands
Van:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens kreshna_iceheart at yahoo.com
Verzonden:Tuesday, June 03, 2008 5:16 PM
Aan:mapserver-users at lists.osgeo.org
Onderwerp:[mapserver-users] Dinamically changing HTML Template using CGIparameter? (instead of hardcoded)
?
I have one mapfile, let say, PACITAN.MAP, with two template files: PACITAN-TMPL.HTML and PACITAN-PRINT-TMPL.HTML. The former is the "primary" template for the normal web map display, while the latter has "cleaner look" for printing purpose (print page).
The print page (PACITAN-PRINT-TMPL.HTML) is called from the "primary" template page using JavaScript window.open() function.
When calling the print page, I can easily pass (and manipulate, if necessary) map-related information using CGI parameters. For example, layer information (ie which layers are selected) is passed with layers=[layers] CGI parameter, while extent information is passed with mapext=[minx], [miny], [maxx], [maxy] parameter.
The problem is: since the name of HTML template is hard-coded in the *.map file, I have to create another map file named PACITAN-PRINT.MAP, which is basically an exact copy of PACITAN.MAP, but using PACITAN-PRINT-TMPL.HTML as template? (hard-coded in the mapfile, of course).
If I can dynamically change the name of the HTML template using CGI parameters, I don't have to use two versions of mapfile; I can just use one mapfile with two HTML templates and be done with it.
The problem is; is it possible to pass the name of the HTML template using CGI parameters? And if it is, then how? I have browsed MapServer documentations and this is all I found:
TEMPLATE has been removed, since the map_web_template syntax can be used to alter a template file. Simplifies security maintenance by only having to deal with this option in a single place. Note that the TEMPLATEPATTERN of the mapfile has to be used to enable this feature.
However, save the vague reference above, I just could not find any other explanation about the map_web_template syntax above. Is it a CGI parameter? Can I just use the map_web_template parameter in my url, to specify which template to use?
Many thanks,
-Kresh
?
_______________________________________________ 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 ben.kuek at abridge.com.au Thu Jun 5 23:59:49 2008
From: ben.kuek at abridge.com.au (Ben Kuek)
Date: Fri, 06 Jun 2008 14:59:49 +0800
Subject: [mapserver-users] Map seems like it is shifted to the north by
a few meters
In-Reply-To: <483D82260200003700003B6F@gate1.agriquality.com>
References: <483CD509.5030101@abridge.com.au>
<483D82260200003700003B6F@gate1.agriquality.com>
Message-ID: <4848E065.3070304@abridge.com.au>
Hi Robert,
Thank you for your response. I tried using the settings you recommended
on both the top level and the
layer object but the map remained the same.
I can now confirm the problem lies in the map source. Even using a well
known map viewer to compare it to
a reliable source like G00GLE maps, I can see the similar problem.
Cheers,
Ben
Robert Sanson wrote:
> Hi Ben
>
> This looks like WGS84. You should haev the following in your Map file,
> top level and/or layer level:
>
> PROJECTION
> "init=epsg:4326"
> END
>
> regards,
>
> Robert Sanson
>
> >>> Ben Kuek 28/05/2008 3:44:09 p.m. >>>
>
> Hi,
>
> My understanding of map projections is a bit rusty so I hope anyone can
> point out where I am wrong.
>
> I have a vector map source in shapefiles where it's .prj file has only
> the following definition
>
> GEOGCS["Geographic Coordinate System",DATUM["WGS84",SPHEROID["GRS
> 1980",6378137,298.2572220960423]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]
>
> When the map loaded, I can confirm that the map is wrong by it's
> shifting to the north by a few hundred meters.
>
> I can use :
> OFFSET 0 70
> in the STYLE object but it doesn't seem like the right thing to do.
>
> I am not very sure if the issue lies with projection or the map source
> and if there's a specific projection setting I must use.
>
>
> Regards,
>
> Ben
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> ------------------------------------------------------------------
> The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.
> ------------------------------------------------------------------
>
>
>
> This message has been scanned for malware by SurfControl plc.
> www.surfcontrol.com
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.24.1/1469 - Release Date: 27/05/2008 1:25 PM
>
From t.urwin at ed.ac.uk Fri Jun 6 00:21:04 2008
From: t.urwin at ed.ac.uk (Tim Urwin)
Date: Fri, 06 Jun 2008 08:21:04 +0100
Subject: [mapserver-users] Label attribute bindings
In-Reply-To: <48485201.6060005@swoodbridge.com>
References: <4847CD3F.1040902@ed.ac.uk> <4847FC55.8000508@swoodbridge.com>
<4847F6B2.204@ed.ac.uk> <48485201.6060005@swoodbridge.com>
Message-ID: <4848E560.4060201@ed.ac.uk>
Steve,
Thanks for that. Will certainly try it.
Tim
Stephen Woodbridge wrote:
> Tim,
>
> Well in that case you should be able to set CLASSITEM to your position
> attribute. And then set up a CLASS for each position. This is UGLY in
> the mapfile, but you should be able to do it now without code changes.
>
> -Steve
>
> Tim Urwin wrote:
>> Hi Steve,
>>
>> Unfortunatly not, it is a single digit 1-9 in an attribute field
>> which we mapped to the two letter characters used by mapserver for
>> text position, eg ll cc etc. We would just like to be able to look
>> this up for each feature rather than apply a blanket approach for the
>> layer. We would prefer not to edit the data as it changes get updated
>> on a regular basis (we get updates every 6 to 8 weeks from ordnance
>> suervey) and the database table has just under 22 and a half million
>> entries.
>>
>> Thanks
>>
>> Tim
>>
>> Stephen Woodbridge wrote:
>>> Tim,
>>>
>>> When you say "OS has determined the best position for the label",
>>> what form is this attribute in? Is the x-y position attribute
>>> columns? or some offset x-y attribute? or what?
>>>
>>> If it is an x-y position that you would rather use that the default
>>> the_geom geometry position of the feature then it would probably be
>>> possible to create a view that makes that x-y appear as
>>> setsrid(makepoint(x_col,y_col),27700) as the_geom in the view and
>>> then add a record to the geometry_columns table for this view. for
>>> performance you might want to add this column to the orginal table
>>> and index it.
>>>
>>> Then you should be able to renter the annotation using the view or
>>> the alternate column in the table.
>>>
>>> -Steve W
>>>
>>> Tim Urwin wrote:
>>>> Hi all,
>>>>
>>>> This is a questuion about label attribute bindings.
>>>>
>>>> We are about to migrate some of our Ordnance Survey MasterMap data
>>>> from a propriety system to using mapserver serving the data from a
>>>> PostGIS database for screen maps. We are currently using Mapserver
>>>> 5.02 and are very happy with the results we have achieved so far,
>>>> however, due to only being able to set a single value for the
>>>> position of a label has caused much of the text to be badly
>>>> misaligned with the underlying features.
>>>>
>>>> OS has determined the best position for the label and provide this
>>>> as attribute data for each text label point and we would like to be
>>>> able to utilise it. Is there anyway to make the position label
>>>> attribute accept a binding as some of the other values do, e.g.
>>>> angle which we also use. The problem we have is that no single
>>>> value works with the data to provide a good map result, therefore
>>>> we would like to be able to use each feature's value as opposed to
>>>> a global value.
>>>>
>>>> Any help or insights in how to achieve this will be gratefully
>>>> received. At the moment our applications access Mapserver via CGI
>>>> mode directly without the use of mapscript although we could
>>>> investigate that option.
>>>>
>>>> The following is an example of one of the entries in the mapfile
>>>> for a label layer.
>>>>
>>>> LAYER
>>>>
>>>> NAME "Heritage labels"
>>>>
>>>> METADATA
>>>> "wms_title" "Heritage labels"
>>>> "wms_srs" "EPSG:27700"
>>>> "wms_extent" "0.0 0.0 700000.0 1300000.0"
>>>> END
>>>>
>>>> STATUS OFF
>>>>
>>>> CONNECTIONTYPE postgis
>>>> CONNECTION "user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX"
>>>> DATA '"anchorpoint" from "cartographictext" using unique "fid"
>>>> using SRID=27700'
>>>>
>>>> PROCESSING "CLOSE_CONNECTION=DEFER"
>>>>
>>>> TYPE Annotation
>>>>
>>>> LABELITEM 'textstring'
>>>>
>>>> FILTER ("layer" = '59')
>>>>
>>>> CLASS
>>>> NAME 'Antiquity Text (82)'
>>>> LABEL
>>>> COLOR 0 0 0
>>>> OUTLINECOLOR 255 255 255
>>>> TYPE TRUETYPE
>>>> FONT arial-italic
>>>> SIZE 8
>>>> ANGLE [angle]
>>>> ANTIALIAS TRUE
>>>> POSITION CC
>>>> PARTIALS TRUE
>>>> ENCODING 'UTF-8'
>>>> END
>>>> END
>>>>
>>>> MINSCALEDENOM 100.0
>>>> MAXSCALEDENOM 5500.0
>>>>
>>>> PROJECTION
>>>> "init=epsg:27700"
>>>> END
>>>> END
>>>>
>>>>
>>>> many thanks
>>>>
>>>> Tim
>>>>
>>>
>>>
>>>
>>
>>
>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From kreshna_iceheart at yahoo.com Fri Jun 6 00:33:14 2008
From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com)
Date: Fri, 6 Jun 2008 00:33:14 -0700 (PDT)
Subject: [mapserver-users] Cannot display raster: MapServer shows white
rectangle instead of the raster.
Message-ID: <126264.77756.qm@web56108.mail.re3.yahoo.com>
Is it coordinate problem or gdal problem? Please help. Please please help. :(
I am using Map Server for windows (ms4w) with MapServer version 4.6.1. I created a simple mapfile to display a TIFF raster image named industri.tif. The TIFF raster image has separated world file named industri.tfw.
The contents of the industri.ftw is as follows:
1.000
0.000
0.000
-1.000
679316.007
9318670.876
Meanwhile, the extent of the mapfile is as follows:
EXTENT 679326.0 9317932.0 680607.0 9318665.0
By comparing the two sets of coordinates above (.tfw contents and EXTENT value), I think the raster should display properly, shouldn't it?
Also, below is my raster layer definition. There is nothing wrong with it, isn't there?
LAYER
NAME Industri
TYPE RASTER
STATUS ON
DATA "C:\mapfiles\shp\RASTER\industri.tif" # contoh, pakai file world
CLASS
NAME 'Industri'
END
END
Alas, when I open the map with my browser, the raster does not show. Instead, the page only show a white rectangle (blank rectangle?). Browsing in map mode (&mode=map) does not help either. In fact, browsing in map mode shows a big empty page.
And when I browsed the \temp folder (IMAGEPATH), the resulting JPG file is nothing but white rectangle. The size, however, is correct (640x400 as specified in the mapfile), but it is a white rectangle instead of the raster image.
The temporary JPG file is attached (Industri12128218881248.jpg).
I suspect it is a gdal problem, but my ms4w does support gdal, as shown below:
C:\ms4w\Apache\cgi-bin>mapserv.exe -v
MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO
RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT
=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
I also have the following *.dll files in C:\ms4w\Apache\cgi-bin\ folder:
gdal12.dll
NCScnet.dll
NCSEcw.dll
NCSUtil.dll
xerces-c_1_6_0.dll
So I think all the necessary *.dlls are complete.
I have tried copying the *.dll above to C:\WINDOWS\System32\, but to no avail. MapServer still displays white rectangle instead of the raster image.
I have opened the TIFF raster image using Photoshop as well, and yes, it is a correct raster image, not white rectangle. But still, MapServer displays nothing but white rectangle.
What should I do? What's wrong? MapServer 4.6.1 is capable to display raster image, isn't it? I really need to display the raster image, what should I do? Please please help. :(
Thanks & S.O.S,
-Kresh
PS: the mapfile and html template is attached
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Industri12128218881248.jpg
Type: image/jpeg
Size: 2012 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raster.map
Type: application/octet-stream
Size: 911 bytes
Desc: not available
URL:
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From adrian_gh.popa at romtelecom.ro Fri Jun 6 00:22:09 2008
From: adrian_gh.popa at romtelecom.ro (Adrian Popa)
Date: Fri, 06 Jun 2008 10:22:09 +0300
Subject: [mapserver-users] Displaying layers based on zoom level
Message-ID: <4848E5A1.6010806@romtelecom.ro>
Hello everybody,
I'm new to this mailing list, so forgive me if this question has been
asked before (I haven't been able to search the archives).
My question is this:
I have a map with several layers (including cities, roads, villages) and
I would like to automatically turn some layers on when the user has
zoomed in enough. I know I have read somewhere that you can set a
property to the layer to tell it when it should be turned automatically
on, but I can't find the property name or an example to get me going.
So please, point me in the right direction.
Thank you!
PS. I'm using mapserver 4.1 (and msMap as a frontend).
--
Adrian Popa
Network Engineer
Romtelecom S.A.
Divizia Centrul National de Operare Retea
Departament Transport IP & Metro
Compartiment IP Core
From damarmo at gmail.com Fri Jun 6 00:47:45 2008
From: damarmo at gmail.com (David Martinez Morata)
Date: Fri, 6 Jun 2008 09:47:45 +0200
Subject: [mapserver-users] Cannot display raster: MapServer shows white
rectangle instead of the raster.
In-Reply-To: <126264.77756.qm@web56108.mail.re3.yahoo.com>
References: <126264.77756.qm@web56108.mail.re3.yahoo.com>
Message-ID: <9771eb540806060047l6386e029t74696d59ed5d607f@mail.gmail.com>
Hello!
Maybe its your IMAGECOLOR 255 255 255
In your map file
Comment this with #, and test it.
2008/6/6 kreshna_iceheart at yahoo.com :
> Is it coordinate problem or gdal problem? Please help. Please please help.
> :(
>
> I am using Map Server for windows (ms4w) with MapServer version 4.6.1. I
> created a simple mapfile to display a TIFF raster image named industri.tif.
> The TIFF raster image has separated world file named industri.tfw.
>
> The contents of the industri.ftw is as follows:
> 1.000
> 0.000
> 0.000
> -1.000
> 679316.007
> 9318670.876
>
> Meanwhile, the extent of the mapfile is as follows:
> EXTENT 679326.0 9317932.0 680607.0 9318665.0
>
> By comparing the two sets of coordinates above (.tfw contents and EXTENT
> value), I think the raster should display properly, shouldn't it?
>
>
> Also, below is my raster layer definition. There is nothing wrong with it,
> isn't there?
> LAYER
> NAME Industri
> TYPE RASTER
> STATUS ON
> DATA "C:\mapfiles\shp\RASTER\industri.tif" # contoh, pakai file world
> CLASS
> NAME 'Industri'
> END
> END
>
>
> Alas, when I open the map with my browser, the raster does not show.
> Instead, the page only show a white rectangle (blank rectangle?). Browsing
> in map mode (&mode=map) does not help either. In fact, browsing in map mode
> shows a big empty page.
>
> And when I browsed the \temp folder (IMAGEPATH), the resulting JPG file is
> nothing but white rectangle. The size, however, is correct (640x400 as
> specified in the mapfile), but it is a white rectangle instead of the raster
> image.
>
> The temporary JPG file is attached (Industri12128218881248.jpg).
>
> I suspect it is a gdal problem, but my ms4w does support gdal, as shown
> below:
> C:\ms4w\Apache\cgi-bin>mapserv.exe -v
> MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF
> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPO
> RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> INPUT
> =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
>
> I also have the following *.dll files in C:\ms4w\Apache\cgi-bin\ folder:
> gdal12.dll
> NCScnet.dll
> NCSEcw.dll
> NCSUtil.dll
> xerces-c_1_6_0.dll
>
> So I think all the necessary *.dlls are complete.
>
> I have tried copying the *.dll above to C:\WINDOWS\System32\, but to no
> avail. MapServer still displays white rectangle instead of the raster image.
>
> I have opened the TIFF raster image using Photoshop as well, and yes, it is
> a correct raster image, not white rectangle. But still, MapServer displays
> nothing but white rectangle.
>
> What should I do? What's wrong? MapServer 4.6.1 is capable to display
> raster image, isn't it? I really need to display the raster image, what
> should I do? Please please help. :(
>
> Thanks & S.O.S,
> -Kresh
>
> PS: the mapfile and html template is attached
>
>
>
>
> _______________________________________________
> 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 damarmo at gmail.com Fri Jun 6 00:52:02 2008
From: damarmo at gmail.com (David Martinez Morata)
Date: Fri, 6 Jun 2008 09:52:02 +0200
Subject: [mapserver-users] Displaying layers based on zoom level
In-Reply-To: <4848E5A1.6010806@romtelecom.ro>
References: <4848E5A1.6010806@romtelecom.ro>
Message-ID: <9771eb540806060052h56b4670ch59e914ea763fe6e7@mail.gmail.com>
Hi!
The functions in LAYER object are
MAXSCALE 'Value of Scale'
MINSCALE 'Value of minimun Scale'
Consult this http://mapserver.gis.umn.edu/docs/reference/mapfile/layer
And at the end of the page you find some considerations for MINSCALE AND
MAXSCALE interpretation in MapServer
2008/6/6 Adrian Popa :
> Hello everybody,
>
> I'm new to this mailing list, so forgive me if this question has been asked
> before (I haven't been able to search the archives).
>
> My question is this:
> I have a map with several layers (including cities, roads, villages) and I
> would like to automatically turn some layers on when the user has zoomed in
> enough. I know I have read somewhere that you can set a property to the
> layer to tell it when it should be turned automatically on, but I can't find
> the property name or an example to get me going.
>
> So please, point me in the right direction.
>
> Thank you!
>
> PS. I'm using mapserver 4.1 (and msMap as a frontend).
>
> --
> Adrian Popa
>
> Network Engineer
> Romtelecom S.A.
> Divizia Centrul National de Operare Retea
> Departament Transport IP & Metro
> Compartiment IP Core
>
>
> _______________________________________________
> 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 kreshna_iceheart at yahoo.com Fri Jun 6 00:55:37 2008
From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com)
Date: Fri, 6 Jun 2008 00:55:37 -0700 (PDT)
Subject: [mapserver-users] Cannot display raster: MapServer shows white
rectangle instead of the raster.
In-Reply-To: <9771eb540806060047l6386e029t74696d59ed5d607f@mail.gmail.com>
Message-ID: <2177.24048.qm@web56105.mail.re3.yahoo.com>
I just removed the IMAGECOLOR 255 255 255 line, and it still doesn't work. MapServer still displays white rectangle instead of the raster. :(
-Kresh
--- On Fri, 6/6/08, David Martinez Morata wrote:
> From: David Martinez Morata
> Subject: Re: [mapserver-users] Cannot display raster: MapServer shows white rectangle instead of the raster.
> To: kreshna_iceheart at yahoo.com
> Cc: mapserver-users at lists.osgeo.org
> Date: Friday, June 6, 2008, 3:47 AM
> Hello!
>
> Maybe its your IMAGECOLOR 255 255 255
> In your map file
> Comment this with #, and test it.
>
>
> 2008/6/6 kreshna_iceheart at yahoo.com
> :
>
> > Is it coordinate problem or gdal problem? Please help.
> Please please help.
> > :(
> >
> > I am using Map Server for windows (ms4w) with
> MapServer version 4.6.1. I
> > created a simple mapfile to display a TIFF raster
> image named industri.tif.
> > The TIFF raster image has separated world file named
> industri.tfw.
> >
> > The contents of the industri.ftw is as follows:
> > 1.000
> > 0.000
> > 0.000
> > -1.000
> > 679316.007
> > 9318670.876
> >
> > Meanwhile, the extent of the mapfile is as follows:
> > EXTENT 679326.0 9317932.0 680607.0 9318665.0
> >
> > By comparing the two sets of coordinates above (.tfw
> contents and EXTENT
> > value), I think the raster should display properly,
> shouldn't it?
> >
> >
> > Also, below is my raster layer definition. There is
> nothing wrong with it,
> > isn't there?
> > LAYER
> > NAME Industri
> > TYPE RASTER
> > STATUS ON
> > DATA
> "C:\mapfiles\shp\RASTER\industri.tif"
> # contoh, pakai file world
> > CLASS
> > NAME 'Industri'
> > END
> > END
> >
> >
> > Alas, when I open the map with my browser, the raster
> does not show.
> > Instead, the page only show a white rectangle (blank
> rectangle?). Browsing
> > in map mode (&mode=map) does not help either. In
> fact, browsing in map mode
> > shows a big empty page.
> >
> > And when I browsed the \temp folder (IMAGEPATH),
> the resulting JPG file is
> > nothing but white rectangle. The size, however, is
> correct (640x400 as
> > specified in the mapfile), but it is a white rectangle
> instead of the raster
> > image.
> >
> > The temporary JPG file is attached
> (Industri12128218881248.jpg).
> >
> > I suspect it is a gdal problem, but my ms4w does
> support gdal, as shown
> > below:
> > C:\ms4w\Apache\cgi-bin>mapserv.exe -v
> > MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG
> OUTPUT=JPEG OUTPUT=WBMP
> > OUTPUT=PDF
> > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER
> > SUPPO
> > RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER
> > INPUT
> > =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> INPUT=SHAPEFILE DEBUG=MSDEBUG
> >
> > I also have the following *.dll files in
> C:\ms4w\Apache\cgi-bin\ folder:
> > gdal12.dll
> > NCScnet.dll
> > NCSEcw.dll
> > NCSUtil.dll
> > xerces-c_1_6_0.dll
> >
> > So I think all the necessary *.dlls are complete.
> >
> > I have tried copying the *.dll above to
> C:\WINDOWS\System32\, but to no
> > avail. MapServer still displays white rectangle
> instead of the raster image.
> >
> > I have opened the TIFF raster image using Photoshop as
> well, and yes, it is
> > a correct raster image, not white rectangle. But
> still, MapServer displays
> > nothing but white rectangle.
> >
> > What should I do? What's wrong? MapServer 4.6.1 is
> capable to display
> > raster image, isn't it? I really need to display
> the raster image, what
> > should I do? Please please help. :(
> >
> > Thanks & S.O.S,
> > -Kresh
> >
> > PS: the mapfile and html template is attached
> >
> >
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> >
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
From besse.pb at gmail.com Fri Jun 6 01:02:15 2008
From: besse.pb at gmail.com (Pierre-Benoit Besse)
Date: Fri, 6 Jun 2008 10:02:15 +0200
Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
In-Reply-To:
References: <17666380.post@talk.nabble.com>
Message-ID:
Thank you for your answers and for the build guide
Faldor
2008/6/5 Schlagel, Joel D IWR :
>
> We are using mapserver on Sparc in a production environment with no
> problems-
>
>
> joel
>
>
> ----
> Joel Schlagel
> Institute for Water Resources
>
> joel.d.schlagel at usace.army.mil
> 1.603.646.4387
>
>
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org on behalf of Nolte, Tim
> Sent: Thu 6/5/2008 8:14 AM
> To: Faldor; mapserver-users at lists.osgeo.org
> Subject: RE: [MAPSERVER-USERS] Mapserver on Solaris 2.10
>
> I can safely say that I have successfully compiled MapServer 5.x on
> both. We are currently running a production MapServer on Solaris 10 x86.
> I'm attaching my build guide for Solaris.
>
> - Tim
>
> ----
> Timothy J Nolte - tnolte at ilpcs.com
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS: 616-706-2438
> Fax: 616-554-6484
> Web: www.ipcswirelessinc.com
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org]
> On Behalf Of Faldor
> Sent: Thursday, June 05, 2008 6:00 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [MAPSERVER-USERS] Mapserver on Solaris 2.10
>
>
> Hi all,
>
> I have to ensure that Mapserver can be built and run on Solaris 2.10 and
> 2.8
> Do you know of any issues concerning those versions ?
>
> Regards,
>
> Faldor
> --
> View this message in context:
> http://www.nabble.com/Mapserver-on-Solaris-2.10-tp17666380p17666380.html
> Sent from the Mapserver - User mailing list archive at Nabble.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 damarmo at gmail.com Fri Jun 6 01:51:40 2008
From: damarmo at gmail.com (David Martinez Morata)
Date: Fri, 6 Jun 2008 10:51:40 +0200
Subject: [mapserver-users] Output Raster format
In-Reply-To:
References: <9771eb540806030148l397d2311t91953e669ed7a708@mail.gmail.com>
Message-ID: <9771eb540806060151jf5b8dccx2e34966bb1f8f0df@mail.gmail.com>
Thanks!
I read about procesing functions, but I don't really understand the
functions :S
I have a WMS for raster cartographyc fonds and I need to do more clear
images. the colors in the images are strong colors and when I insert a shape
I have some problems to clear show this shape.
Any sugestions?
Thanks
2008/6/3 Rahkonen Jukka :
> Hi
>
> Mapserver is not much like web processing service. However, something can
> be done with layer PROCESSING directives SCALE and LUT. There may be
> other options for customizing which I am not aware.
>
>
> http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives
>
> Sometimes I have been thinking that it would be nice to have an option to
> push aerial photos out through some sort of sharpening filter.
>
> -Jukka Rahkonen-
>
> ------------------------------
> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto:
> mapserver-users-bounces at lists.osgeo.org] *Puolesta *David Martinez Morata
> *L?hetetty:* 3. kes?kuuta 2008 11:48
> *Vastaanottaja:* mapserver-users at lists.osgeo.org
> *Aihe:* [mapserver-users] Output Raster format
>
> Hello!
>
> I have a question about customizing output format for a WMS server.
>
> I have a Raster collection in .tiff format, I make a wms server with this
> raster files. The output in mapfile its not specified in map file.
> My question its:
>
> Can we change the contrast, saturation and other values for output image?
> How? With GDAL functions?
>
> 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 LIN at hvenegaard.dk Fri Jun 6 02:28:11 2008
From: LIN at hvenegaard.dk (Lars I. Nielsen (Hvenegaard))
Date: Fri, 6 Jun 2008 11:28:11 +0200
Subject: [mapserver-users] Does Mapserver work with mobile phone browser ??
References: <582943.5762.qm@web27303.mail.ukl.yahoo.com>
Message-ID: <00a701c8c7b7$a862f7e0$3d01a8c0@odin>
Hi Valerio,
Apparently the standard browser on n95 doesn't support returning the x and y for image clicks. I've just verified it on my own n95, they're included in the POST but always 0.
However, it's a browser limitation, not a limitation in Mapserver. Maybe Opera for Symbian is better ?
Best regards / Med venlig hilsen
Lars I. Nielsen
--------------------------------------------------------
Hvenegaard A/S
Rugaardsvej 55, DK-5000 Odense C
Denmark
Tel. +45 6313 5050
http://www.hvenegaard.dk
----- Original Message -----
From: valerio vianello
To: mapserver-users at lists.osgeo.org
Sent: Friday, June 06, 2008 8:31 AM
Subject: [mapserver-users] Does Mapserver work with mobile phone browser ??
Hi,
I'm doing a simple application with mapserver where there is a map file with three layers and a template file with zoom and query options.
When I use Firefox or Internet Explorer to process the map all work fine..but if I try to use the browser of my mobile phone (Nokia N95) there is something wrong.
Looking into the apache access log I saw that wherever I click on the map the coordinates in the request are always img.x=0 and img.y=0
Any suggestions ?
P.S. I tryed also to connect with my phone to the map of the mapserver tutorial with the same strange behavior.
Thanks
Valerio
--------------------------------------------------------------------------------
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
--------------------------------------------------------------------------------
_______________________________________________
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 Jukka.Rahkonen at mmmtike.fi Fri Jun 6 02:46:40 2008
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Fri, 6 Jun 2008 12:46:40 +0300
Subject: VS: [mapserver-users] Cannot display raster: MapServer shows
whiterectangle instead of the raster.
In-Reply-To: <126264.77756.qm@web56108.mail.re3.yahoo.com>
Message-ID:
Hi,
Check list for empty map cases is
- extents
- projection
- file names and path
- if the layer is requested
In your case extents seem to be OK, but you can verify it by running gdalinfo for the image with
gdalinfo C:\mapfiles\shp\RASTER\industri.tif
You do not use PROJECTION so it cannot be wrong. I believe you have checked the file names and paths. How about the request then? You have STATUS ON for your image layer. It meand that layer can be shown, but only if it is especially requested. For example query
http://localhost/cgi-bin/mapserv.exe?map=raster.map&mode=map
will not show raster layer for you. Adding &layer=Industri should show it. Another alternative is
to set STATUS DEFAULT
I hope you are suffering from the STATUS ON phenomena.
-Jukka Rahkonen-
> -----Alkuper?inen viesti-----
> L?hett?j?: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta
> kreshna_iceheart at yahoo.com
> L?hetetty: 6. kes?kuuta 2008 10:33
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Cannot display raster: MapServer
> shows whiterectangle instead of the raster.
>
> Is it coordinate problem or gdal problem? Please help. Please
> please help. :(
>
> I am using Map Server for windows (ms4w) with MapServer
> version 4.6.1. I created a simple mapfile to display a TIFF
> raster image named industri.tif. The TIFF raster image has
> separated world file named industri.tfw.
>
> The contents of the industri.ftw is as follows:
> 1.000
> 0.000
> 0.000
> -1.000
> 679316.007
> 9318670.876
>
> Meanwhile, the extent of the mapfile is as follows:
> EXTENT 679326.0 9317932.0 680607.0 9318665.0
>
> By comparing the two sets of coordinates above (.tfw contents
> and EXTENT value), I think the raster should display
> properly, shouldn't it?
>
>
> Also, below is my raster layer definition. There is nothing
> wrong with it, isn't there?
> LAYER
> NAME Industri
> TYPE RASTER
> STATUS ON
> DATA "C:\mapfiles\shp\RASTER\industri.tif" # contoh,
> pakai file world
> CLASS
> NAME 'Industri'
> END
> END
>
>
> Alas, when I open the map with my browser, the raster does
> not show. Instead, the page only show a white rectangle
> (blank rectangle?). Browsing in map mode (&mode=map) does not
> help either. In fact, browsing in map mode shows a big empty page.
>
> And when I browsed the \temp folder (IMAGEPATH), the
> resulting JPG file is nothing but white rectangle. The size,
> however, is correct (640x400 as specified in the mapfile),
> but it is a white rectangle instead of the raster image.
>
> The temporary JPG file is attached (Industri12128218881248.jpg).
>
> I suspect it is a gdal problem, but my ms4w does support
> gdal, as shown below:
> C:\ms4w\Apache\cgi-bin>mapserv.exe -v
> MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ
> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> INPUT =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> INPUT=SHAPEFILE DEBUG=MSDEBUG
>
> I also have the following *.dll files in
> C:\ms4w\Apache\cgi-bin\ folder:
> gdal12.dll
> NCScnet.dll
> NCSEcw.dll
> NCSUtil.dll
> xerces-c_1_6_0.dll
>
> So I think all the necessary *.dlls are complete.
>
> I have tried copying the *.dll above to C:\WINDOWS\System32\,
> but to no avail. MapServer still displays white rectangle
> instead of the raster image.
>
> I have opened the TIFF raster image using Photoshop as well,
> and yes, it is a correct raster image, not white rectangle.
> But still, MapServer displays nothing but white rectangle.
>
> What should I do? What's wrong? MapServer 4.6.1 is capable to
> display raster image, isn't it? I really need to display the
> raster image, what should I do? Please please help. :(
>
> Thanks & S.O.S,
> -Kresh
>
> PS: the mapfile and html template is attached
>
>
>
>
>
From kreshna_iceheart at yahoo.com Fri Jun 6 02:48:46 2008
From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com)
Date: Fri, 6 Jun 2008 02:48:46 -0700 (PDT)
Subject: [mapserver-users] Cannot display raster: MapServer shows white
rectangle instead of the raster.
In-Reply-To: <9771eb540806060103m28c25ad9m9a6f9049b277c9f2@mail.gmail.com>
Message-ID: <295267.15382.qm@web56115.mail.re3.yahoo.com>
You mean the path that points to the TIFF file? The following path?
DATA "C:\mapfiles\shp\RASTER\industri.tif"
Yup, I have checked the folder, and the path is valid.
The IMAGEPATH is as follows, by the way:
IMAGEPATH '../../ms4w/Apache/htdocs/temp/'
I think the IMAGEPATH is valid as well, because temporary JPG files are indeed created in the folder (they're all white rectangles though).
It seems the paths are quite correct though, because I have created mapfiles with vector-only (SHPs) in the past, and they're all displayed without problems. It is the raster that problematic.
Or do I miss something?
Thanks,
-Kresh
--- On Fri, 6/6/08, David Martinez Morata wrote:
> From: David Martinez Morata
> Subject: Re: [mapserver-users] Cannot display raster: MapServer shows white rectangle instead of the raster.
> To: kreshna_iceheart at yahoo.com
> Date: Friday, June 6, 2008, 4:03 AM
> Ok, showing you files...
> The paths in your map file are defined in you Server?
>
> 2008/6/6 kreshna_iceheart at yahoo.com
> :
>
> > I just removed the IMAGECOLOR 255 255 255 line, and it
> still doesn't work.
> > MapServer still displays white rectangle instead of
> the raster. :(
> >
> > -Kresh
> >
> >
> >
> > --- On Fri, 6/6/08, David Martinez Morata
> wrote:
> >
> > > From: David Martinez Morata
>
> > > Subject: Re: [mapserver-users] Cannot display
> raster: MapServer shows
> > white rectangle instead of the raster.
> > > To: kreshna_iceheart at yahoo.com
> > > Cc: mapserver-users at lists.osgeo.org
> > > Date: Friday, June 6, 2008, 3:47 AM
> > > Hello!
> > >
> > > Maybe its your IMAGECOLOR 255 255 255
> > > In your map file
> > > Comment this with #, and test it.
> > >
> > >
> > > 2008/6/6 kreshna_iceheart at yahoo.com
> > > :
> > >
> > > > Is it coordinate problem or gdal problem?
> Please help.
> > > Please please help.
> > > > :(
> > > >
> > > > I am using Map Server for windows (ms4w)
> with
> > > MapServer version 4.6.1. I
> > > > created a simple mapfile to display a TIFF
> raster
> > > image named industri.tif.
> > > > The TIFF raster image has separated world
> file named
> > > industri.tfw.
> > > >
> > > > The contents of the industri.ftw is as
> follows:
> > > > 1.000
> > > > 0.000
> > > > 0.000
> > > > -1.000
> > > > 679316.007
> > > > 9318670.876
> > > >
> > > > Meanwhile, the extent of the mapfile is as
> follows:
> > > > EXTENT 679326.0 9317932.0 680607.0
> 9318665.0
> > > >
> > > > By comparing the two sets of coordinates
> above (.tfw
> > > contents and EXTENT
> > > > value), I think the raster should display
> properly,
> > > shouldn't it?
> > > >
> > > >
> > > > Also, below is my raster layer definition.
> There is
> > > nothing wrong with it,
> > > > isn't there?
> > > > LAYER
> > > > NAME Industri
> > > > TYPE RASTER
> > > > STATUS ON
> > > > DATA
> > >
> "C:\mapfiles\shp\RASTER\industri.tif"
> > > # contoh, pakai file world
> > > > CLASS
> > > > NAME 'Industri'
> > > > END
> > > > END
> > > >
> > > >
> > > > Alas, when I open the map with my browser,
> the raster
> > > does not show.
> > > > Instead, the page only show a white
> rectangle (blank
> > > rectangle?). Browsing
> > > > in map mode (&mode=map) does not help
> either. In
> > > fact, browsing in map mode
> > > > shows a big empty page.
> > > >
> > > > And when I browsed the \temp folder
> (IMAGEPATH),
> > > the resulting JPG file is
> > > > nothing but white rectangle. The size,
> however, is
> > > correct (640x400 as
> > > > specified in the mapfile), but it is a white
> rectangle
> > > instead of the raster
> > > > image.
> > > >
> > > > The temporary JPG file is attached
> > > (Industri12128218881248.jpg).
> > > >
> > > > I suspect it is a gdal problem, but my ms4w
> does
> > > support gdal, as shown
> > > > below:
> > > >
> C:\ms4w\Apache\cgi-bin>mapserv.exe -v
> > > > MapServer version 4.6.1 OUTPUT=GIF
> OUTPUT=PNG
> > > OUTPUT=JPEG OUTPUT=WBMP
> > > > OUTPUT=PDF
> > > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ
> SUPPORTS=FREETYPE
> > > SUPPORTS=WMS_SERVER
> > > > SUPPO
> > > > RTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT
> > > SUPPORTS=WCS_SERVER
> > > > INPUT
> > > > =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> > > INPUT=SHAPEFILE DEBUG=MSDEBUG
> > > >
> > > > I also have the following *.dll files in
> > > C:\ms4w\Apache\cgi-bin\ folder:
> > > > gdal12.dll
> > > > NCScnet.dll
> > > > NCSEcw.dll
> > > > NCSUtil.dll
> > > > xerces-c_1_6_0.dll
> > > >
> > > > So I think all the necessary *.dlls are
> complete.
> > > >
> > > > I have tried copying the *.dll above to
> > > C:\WINDOWS\System32\, but to no
> > > > avail. MapServer still displays white
> rectangle
> > > instead of the raster image.
> > > >
> > > > I have opened the TIFF raster image using
> Photoshop as
> > > well, and yes, it is
> > > > a correct raster image, not white rectangle.
> But
> > > still, MapServer displays
> > > > nothing but white rectangle.
> > > >
> > > > What should I do? What's wrong?
> MapServer 4.6.1 is
> > > capable to display
> > > > raster image, isn't it? I really need to
> display
> > > the raster image, what
> > > > should I do? Please please help. :(
> > > >
> > > > Thanks & S.O.S,
> > > > -Kresh
> > > >
> > > > PS: the mapfile and html template is
> attached
> > > >
> > > >
> > > >
> > > >
> > > >
> _______________________________________________
> > > > mapserver-users mailing list
> > > > mapserver-users at lists.osgeo.org
> > > >
> > >
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > > >
> > > >
> >
> >
> >
> >
From valerio.vianello at yahoo.it Fri Jun 6 03:11:46 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Fri, 6 Jun 2008 10:11:46 +0000 (GMT)
Subject: [mapserver-users] Does Mapserver work with mobile phone browser ??
In-Reply-To: <00a701c8c7b7$a862f7e0$3d01a8c0@odin>
Message-ID: <914945.57539.qm@web27307.mail.ukl.yahoo.com>
Hi Lars,
You have right, the problem is on the phone browser...I tryed to use in the template file an img tag in place of the <input type"image"...> of the form.Then I will use a javascript to take the pointer coordinations on the map. I'm still working on it but seems that it will work fine.
thanks
Valerio
--- Ven 6/6/08, Lars I. Nielsen (Hvenegaard) <LIN at hvenegaard.dk> ha scritto:
Da: Lars I. Nielsen (Hvenegaard) <LIN at hvenegaard.dk>
Oggetto: Re: [mapserver-users] Does Mapserver work with mobile phone browser ??
A: valerio.vianello at yahoo.it
Cc: mapserver-users at lists.osgeo.org
Data: Venerd? 6 giugno 2008, 11:28
?
Hi Valerio,
Apparently the standard browser on n95 doesn't
support returning the x and y for image clicks. I've just verified it on my own
n95, they're included in the POST but always 0.
However, it's a browser limitation, not a
limitation in Mapserver. Maybe Opera for Symbian is better ?
Best regards / Med venlig hilsen
Lars I.
Nielsen
--------------------------------------------------------
Hvenegaard
A/S
Rugaardsvej 55, DK-5000 Odense C
Denmark
Tel. +45 6313 5050
http://www.hvenegaard.dk
----- Original Message -----
From: valerio
vianello
To: mapserver-users at lists.osgeo.org
Sent: Friday, June 06, 2008 8:31 AM
Subject: [mapserver-users] Does Mapserver work with mobile phone
browser ??
Hi,
I'm doing a simple application with mapserver
where there is a map file with three layers and a template file with zoom
and query options.
When I use Firefox or Internet Explorer to process
the map all work fine..but if I try to use the browser of my mobile phone
(Nokia N95) there is something wrong.
Looking into the apache access
log I saw that wherever I click on the map the coordinates in the request
are always img.x=0 and img.y=0
Any suggestions ?
P.S. I tryed
also to connect with my phone to the map of the mapserver tutorial with
the same strange behavior.
Thanks
Valerio
Scopri il Blog
di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
_______________________________________________
mapserver-users
mailing
list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ila.engg at gmail.com Fri Jun 6 03:21:16 2008
From: ila.engg at gmail.com (Ila)
Date: Fri, 6 Jun 2008 03:21:16 -0700 (PDT)
Subject: [MAPSERVER-USERS] Direction on road using ARROW Image
Message-ID: <17688884.post@talk.nabble.com>
Hello readers,
As I am working on GIS application & new to it, so please forgive me
for my noob questions. I want to show the direction on oneway road using any
arrow image, not through using arrow character. I have successfully
implemented the road direction using ARROW Character, but I want to
implement the same using ARROW image in my application. So, is there any way
to implement it? Please provide me some example for my better understanding.
I would be very thankful for your suggestions/thoughts.
--
View this message in context: http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp17688884p17688884.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From adrian_gh.popa at romtelecom.ro Fri Jun 6 03:21:10 2008
From: adrian_gh.popa at romtelecom.ro (Adrian Popa)
Date: Fri, 06 Jun 2008 13:21:10 +0300
Subject: [mapserver-users] Displaying layers based on zoom level
In-Reply-To: <9771eb540806060052h56b4670ch59e914ea763fe6e7@mail.gmail.com>
References: <4848E5A1.6010806@romtelecom.ro>
<9771eb540806060052h56b4670ch59e914ea763fe6e7@mail.gmail.com>
Message-ID: <48490F96.10602@romtelecom.ro>
Thank you very much for your help. I made the changes (tweaked the
values for MAXSCALE) and I'm happy with the results :)
Cheers!
David Martinez Morata wrote:
> Hi!
> The functions in LAYER object are
> MAXSCALE 'Value of Scale'
> MINSCALE 'Value of minimun Scale'
> Consult this http://mapserver.gis.umn.edu/docs/reference/mapfile/layer
> And at the end of the page you find some considerations for MINSCALE
> AND MAXSCALE interpretation in MapServer
>
>
> 2008/6/6 Adrian Popa >:
>
> Hello everybody,
>
> I'm new to this mailing list, so forgive me if this question has
> been asked before (I haven't been able to search the archives).
>
> My question is this:
> I have a map with several layers (including cities, roads,
> villages) and I would like to automatically turn some layers on
> when the user has zoomed in enough. I know I have read somewhere
> that you can set a property to the layer to tell it when it should
> be turned automatically on, but I can't find the property name or
> an example to get me going.
>
> So please, point me in the right direction.
>
> Thank you!
>
> PS. I'm using mapserver 4.1 (and msMap as a frontend).
>
> --
> Adrian Popa
>
> Network Engineer
> Romtelecom S.A.
> Divizia Centrul National de Operare Retea
> Departament Transport IP & Metro
> Compartiment IP Core
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
Adrian Popa
Network Engineer
Romtelecom S.A.
Divizia Centrul National de Operare Retea
Departament Transport IP & Metro
Compartiment IP Core
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ila.engg at gmail.com Fri Jun 6 03:46:50 2008
From: ila.engg at gmail.com (Ila)
Date: Fri, 6 Jun 2008 03:46:50 -0700 (PDT)
Subject: [MAPSERVER-USERS] Displaying layers based on zoom level
In-Reply-To: <48490F96.10602@romtelecom.ro>
References: <4848E5A1.6010806@romtelecom.ro>
<9771eb540806060052h56b4670ch59e914ea763fe6e7@mail.gmail.com>
<48490F96.10602@romtelecom.ro>
Message-ID: <17689278.post@talk.nabble.com>
For your reference, there is an example I have tested, just check this out:
LAYER # to dispaly district as land
NAME "district"
CONNECTIONTYPE da_name
CONNECTION username/password
DATA "query_to_be_fired"
TYPE POLYGON
STATUS ON
CLASSITEM "TYPE"
LABELITEM "NAME"
CLASS
NAME "DISTRICT"
COLOR 253 251 240
OUTLINECOLOR 255 255 240
EXPRESSION "DISTRICT"
#EXPRESSION ('[TYPE]' = 'district')
MAXSCALE 260000
MINSCALE 120000
END
END # Layer
LAYER # to display area
NAME "area"
CONNECTIONTYPE db_name
CONNECTION username/password
TYPE POLYGON
STATUS ON
CLASSITEM "TYPE"
LABELITEM "NAME"
CLASS
NAME "AREA"
COLOR 253 251 240
EXPRESSION "AREA"
MAXSCALE 120000
MINSCALE 260000
LABEL
COLOR 0 0 0
FONT "verdanab"
SHADOWSIZE 2 2
TYPE truetype
SIZE 8
ANTIALIAS true
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 255 255 255
END
style
COLOR 255 255 255
WIDTH 1
antialias true
end
END
END
Hope this will clear you more.
Adrian Popa-3 wrote:
>
> Thank you very much for your help. I made the changes (tweaked the
> values for MAXSCALE) and I'm happy with the results :)
>
> Cheers!
>
> David Martinez Morata wrote:
>> Hi!
>> The functions in LAYER object are
>> MAXSCALE 'Value of Scale'
>> MINSCALE 'Value of minimun Scale'
>> Consult this http://mapserver.gis.umn.edu/docs/reference/mapfile/layer
>> And at the end of the page you find some considerations for MINSCALE
>> AND MAXSCALE interpretation in MapServer
>>
>>
>> 2008/6/6 Adrian Popa > >:
>>
>> Hello everybody,
>>
>> I'm new to this mailing list, so forgive me if this question has
>> been asked before (I haven't been able to search the archives).
>>
>> My question is this:
>> I have a map with several layers (including cities, roads,
>> villages) and I would like to automatically turn some layers on
>> when the user has zoomed in enough. I know I have read somewhere
>> that you can set a property to the layer to tell it when it should
>> be turned automatically on, but I can't find the property name or
>> an example to get me going.
>>
>> So please, point me in the right direction.
>>
>> Thank you!
>>
>> PS. I'm using mapserver 4.1 (and msMap as a frontend).
>>
>> --
>> Adrian Popa
>>
>> Network Engineer
>> Romtelecom S.A.
>> Divizia Centrul National de Operare Retea
>> Departament Transport IP & Metro
>> Compartiment IP Core
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
>
> --
> Adrian Popa
>
> Network Engineer
> Romtelecom S.A.
> Divizia Centrul National de Operare Retea
> Departament Transport IP & Metro
> Compartiment IP Core
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
View this message in context: http://www.nabble.com/Displaying-layers-based-on-zoom-level-tp17686351p17689278.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From paulborodaev at gmail.com Fri Jun 6 04:53:45 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Fri, 6 Jun 2008 04:53:45 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithm imperfection
Message-ID: <17667733.post@talk.nabble.com>
I use this output format in my map file:
OUTPUTFORMAT
NAME "AGG_Q"
DRIVER "AGG/PNG"
MIMETYPE "image/png; mode=8bit"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "QUANTIZE_FORCE=ON"
FORMATOPTION "QUANTIZE_DITHER=OFF"
FORMATOPTION "QUANTIZE_COLORS=256"
END
but every time map draw called (or map image requested fom cgi mapserv.exe)
polygons has a little difference in fill color (I think this is because
color palette recalculated slightly different each time). This is
unacceptable for me. How can i correct this? (maybe some FORMATOPTION?)
--
View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17667733.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From pspencer at dmsolutions.ca Fri Jun 6 05:01:37 2008
From: pspencer at dmsolutions.ca (Paul Spencer)
Date: Fri, 6 Jun 2008 08:01:37 -0400
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithm
imperfection
In-Reply-To: <17667733.post@talk.nabble.com>
References: <17667733.post@talk.nabble.com>
Message-ID:
Use:
OUTPUTFORMAT
OUTPUTFORMAT
NAME "AGG_Q"
DRIVER "AGG/PNG"
MIMETYPE "image/png; mode=8bit"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "PALETTE_FORCE=TRUE"
FORMATOPTION "PALETTE=/path/to/palette.txt"
END
where palette.txt is a text file with RGB tuples in the form:
RRR,GGG,BBB
For example:
0,0,0
255,255,255
127,127,127
MapServer will use AGG 24 bit rendering but reduce the output file to
8 bit and reserve the colours in your palette.txt file. This will
give you consistent colours for the ones you care about.
Specifically, you should reserve all the colours that you actually
reference in your map file plus any colours of pixmap symbols. Don't
put in more colours than you actually need to because MapServer needs
to use whatever space is left (255 less your colours) for antialiasing.
Cheers
Paul
On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>
> I use this output format in my map file:
> OUTPUTFORMAT
> NAME "AGG_Q"
> DRIVER "AGG/PNG"
> MIMETYPE "image/png; mode=8bit"
> IMAGEMODE RGB
> EXTENSION "png"
> FORMATOPTION "QUANTIZE_FORCE=ON"
> FORMATOPTION "QUANTIZE_DITHER=OFF"
> FORMATOPTION "QUANTIZE_COLORS=256"
> END
> but every time map draw called (or map image requested fom cgi
> mapserv.exe)
> polygons has a little difference in fill color (I think this is
> because
> color palette recalculated slightly different each time). This is
> unacceptable for me. How can i correct this? (maybe some
> FORMATOPTION?)
> --
> View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17667733.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
__________________________________________
Paul Spencer
Chief Technology Officer
DM Solutions Group Inc
http://www.dmsolutions.ca/
From guillaume.sueur at neogeo-online.net Fri Jun 6 05:52:28 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Fri, 06 Jun 2008 14:52:28 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
Message-ID: <4849330C.3070605@neogeo-online.net>
Hi folks,
Does Mapserver SLD implementation supports the fill-opacity css
parameter ? As far as I can see, it doesn't. Bug ?
Thanks
--
Guillaume
From bartvde at osgis.nl Fri Jun 6 05:56:56 2008
From: bartvde at osgis.nl (bartvde at osgis.nl)
Date: Fri, 06 Jun 2008 14:56:56 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <4849330C.3070605@neogeo-online.net>
References: <4849330C.3070605@neogeo-online.net>
Message-ID:
I am quite sure this is because back then Mapserver only supported
layer-level transparency, and not style-level transparency.
With the new addition of style-level transparency in trunk, it should
become possible to implement this now AFAICT. Maybe open up an enhancement
ticket for this?
Best regards,
Bart
On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
wrote:
> Hi folks,
>
> Does Mapserver SLD implementation supports the fill-opacity css
> parameter ? As far as I can see, it doesn't. Bug ?
>
> Thanks
> --
> Guillaume
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From gis at vanbooth.com Fri Jun 6 06:01:41 2008
From: gis at vanbooth.com (Rob)
Date: Fri, 6 Jun 2008 14:01:41 +0100
Subject: [mapserver-users] MapScript migration problems
Message-ID: <2a955f950806060601g6f846200i410eb66c544517c9@mail.gmail.com>
Hi
I'm trying to migrate my MapServer 4.8.6 mapscript application to 5.0.2.
I've seen the following webpages, and this has identified a number of
things that I need to do, which I have started on
http://mapserver.gis.umn.edu/download/previous/mapserver_4_10/migration_guide_48_410
http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT
I've had some success so far, with shapefiles, rasters and cascaded
WMS feeds, but I've just hit a problem when trying to view an Oracle
layer.
I am seeing the following error.
"msOracleSpatialLayerNextShape(): OracleSpatial error : No memory
avaliable to allocate the values" [TYPO in the error message BTW]
This seems to be for any Oracle layer, including a test layer with
only 12 points in it, so I can't believe it really is an available
memory issue.
Looking at the MapServer code directly, this error message comes from here
shape->values = (char **)malloc( sizeof(char*) * shape->numvalues );
if (shape->values == NULL)
{
msSetError( MS_ORACLESPATIALERR, "No memory avaliable to
allocate the values", "msOracleSpatialLayerNextShape()" );
return MS_FAILURE;
}
For some background, my application is running on AIX, and I from what
I can gather thats an issue with regards to MALLOC. From our internal
documentation of how we resolved the issue on 4.8.6
"Malloc on AIX differs from other platforms, in particular attempting
to allocate zero bytes e.g. malloc(0) does not work on AIX. This
causes problems with mapserver, where malloc(0) is used, often to
create an empty structure then add 'points' etc to this structure.
This problem allows the mapserver to be built but executing the server
causes SIGSEGV-11 memory errors when the code attempts to reference
the memory it expects to have been allocated by malloc(0).
To fix this malloc is replaced with some rpl_malloc.c macro so as to
handle malloc(0)
Add rpl_malloc.o to the object list in the Makefile
OBJS= maptemplate.o ?? rpl_malloc.o $(EPPL_OBJ)
And define the macro to override malloc with rpl_malloc in the file
mapprimitive.c
/* Deal with AIX malloc(0) issues */
#define malloc rpl_malloc
"
We've done this again this time round, and resolved the SIGSEGV issues
that still existed.
I have no idea whether this is part of the issue, but I thought it
might be relevant given the location of the error in the code. If
not, then doesn anybody of any of the parameters needed for an
OracleSpatial layer have changed between the versions?
MTIA
Rob
From guillaume.sueur at neogeo-online.net Fri Jun 6 06:02:24 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Fri, 06 Jun 2008 15:02:24 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To:
References: <4849330C.3070605@neogeo-online.net>
Message-ID: <48493560.4080606@neogeo-online.net>
sure
thanks
bartvde at osgis.nl a ?crit :
> I am quite sure this is because back then Mapserver only supported
> layer-level transparency, and not style-level transparency.
>
> With the new addition of style-level transparency in trunk, it should
> become possible to implement this now AFAICT. Maybe open up an enhancement
> ticket for this?
>
> Best regards,
> Bart
>
> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
> wrote:
>> Hi folks,
>>
>> Does Mapserver SLD implementation supports the fill-opacity css
>> parameter ? As far as I can see, it doesn't. Bug ?
>>
>> Thanks
>> --
>> Guillaume
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
From paulborodaev at gmail.com Fri Jun 6 06:41:12 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Fri, 6 Jun 2008 06:41:12 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithm
imperfection
In-Reply-To:
References: <17667733.post@talk.nabble.com>
Message-ID: <17692463.post@talk.nabble.com>
Thanks, i already read about preparing palette index file & I see 2
obstacles:
1) I need to monitor my map file (big size) to keep relevant my palette
file. It is inflexible to extract rgb colors used in pixmap symbols
(hundreds, updatable). Can I use html palette for ex. (or any other
'universal' palette) - to make this process not so time-consuming?
2) If I have strict palette, can I be sure that agg renderer will always use
the nearest(?) color from my palette?
pagameba wrote:
>
> Use:
>
> OUTPUTFORMAT
> OUTPUTFORMAT
> NAME "AGG_Q"
> DRIVER "AGG/PNG"
> MIMETYPE "image/png; mode=8bit"
> IMAGEMODE RGB
> EXTENSION "png"
> FORMATOPTION "PALETTE_FORCE=TRUE"
> FORMATOPTION "PALETTE=/path/to/palette.txt"
> END
>
> where palette.txt is a text file with RGB tuples in the form:
>
> RRR,GGG,BBB
>
> For example:
>
> 0,0,0
> 255,255,255
> 127,127,127
>
> MapServer will use AGG 24 bit rendering but reduce the output file to
> 8 bit and reserve the colours in your palette.txt file. This will
> give you consistent colours for the ones you care about.
> Specifically, you should reserve all the colours that you actually
> reference in your map file plus any colours of pixmap symbols. Don't
> put in more colours than you actually need to because MapServer needs
> to use whatever space is left (255 less your colours) for antialiasing.
>
> Cheers
>
> Paul
>
> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>
>>
>> I use this output format in my map file:
>> OUTPUTFORMAT
>> NAME "AGG_Q"
>> DRIVER "AGG/PNG"
>> MIMETYPE "image/png; mode=8bit"
>> IMAGEMODE RGB
>> EXTENSION "png"
>> FORMATOPTION "QUANTIZE_FORCE=ON"
>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>> FORMATOPTION "QUANTIZE_COLORS=256"
>> END
>> but every time map draw called (or map image requested fom cgi
>> mapserv.exe)
>> polygons has a little difference in fill color (I think this is
>> because
>> color palette recalculated slightly different each time). This is
>> unacceptable for me. How can i correct this? (maybe some
>> FORMATOPTION?)
>> --
>> View this message in context:
>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17667733.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> __________________________________________
>
> Paul Spencer
> Chief Technology Officer
> DM Solutions Group Inc
> http://www.dmsolutions.ca/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17692463.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From paulborodaev at gmail.com Fri Jun 6 06:44:43 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Fri, 6 Jun 2008 06:44:43 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! strange preserving invalid query in mapobject
Message-ID: <17692522.post@talk.nabble.com>
I use mapscript in c#, data from postgis, map file is correct. My web service
produce map image with mapObj.draw() method, mapObj stored in session state
object to prevent useless mapfile parsing every time calling web server. My
web app has an attribute query widget, which can initiate invalid query
string (filter) - sql where expression (just misprint for ex.). For ex. we
have empty (zero length) query string "" for table street_axis. that will
produce an an exception during layer.queryByAttributes(map, "", filter,
mapscript.MS_MULTIPLE). After! this error occurred I have an exception in my
web service (when requested by openlayers rich client js lib (by
zoomming/panning map)). This is expected:
Message="msDrawMap(): Image handling error. Failed to draw layer named
'street_axis'.;prepare_database(): Query error. Error executing POSTGIS
DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR
SELECT
\"name\"::text,asbinary(force_collection(force_2d(geom)),'NDR'),id::text
from public.street_axis WHERE () and (geom && setSRID(
'BOX3D(240.340106037016 704.038663225639,418.96195656596
822.319350804203)'::BOX3D,find_srid('','public.street_axis','geom') ))'
\n\nPostgresql reports the error as 'ERROR: syntax error at or near
\")\"\nLINE 1: ...)),'NDR'),id::text from public.street_axis WHERE () and
(geo...\ bla bla bla. But what can I do to reset this invalid query in my
map object??? remove it?
I tried many ways right before calling map.draw() method (with or without
catching query exception):
1) map.freeQuery(-1);
2) map.freeQuery for all layers;
3) turning on/off map.querymap.status;
4) map.drawQuery() instead of draw();
5) map.loadQuery with empty query (previously saved by 'clean' map);
6) PROCESSING "CLOSE_CONNECTION=DEFER" or without it (in map file);
7) opening/closing layers;
8) even !!! making new dummy valid query returning 0 records (something like
"id<0") on catching exception
... but nothing helped me!!!
Only the way I can use now is parsing mapObj from scratch from my temporary
saved map file? but i don't like it:).
--
View this message in context: http://www.nabble.com/help%21-strange-preserving-invalid-query-in-mapobject-tp17692522p17692522.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From woodbri at swoodbridge.com Fri Jun 6 08:00:24 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Fri, 06 Jun 2008 10:00:24 -0500
Subject: [MAPSERVER-USERS] help! agg palette quantize
algorithm imperfection
In-Reply-To: <17692463.post@talk.nabble.com>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com>
Message-ID: <48495108.3010905@swoodbridge.com>
Hey, that's what they pay you the BIG BUCKS for! :)
Write a perl/bash/{your favorite} script to grab all the COLOR lines
from you mapfile and reformat the r g b to r,g,b in you palette file.
I have a few hundred symbols in my symbol library, but I only use about
10 of them regularly so I made sure the primary colors were also in the
palette file. I make the script add them so I don't have to think about it.
It sounds like a big deal, but it not that bad.
YMMV,
-Steve W
BrainDrain wrote:
> Thanks, i already read about preparing palette index file & I see 2
> obstacles:
> 1) I need to monitor my map file (big size) to keep relevant my palette
> file. It is inflexible to extract rgb colors used in pixmap symbols
> (hundreds, updatable). Can I use html palette for ex. (or any other
> 'universal' palette) - to make this process not so time-consuming?
> 2) If I have strict palette, can I be sure that agg renderer will always use
> the nearest(?) color from my palette?
>
> pagameba wrote:
>> Use:
>>
>> OUTPUTFORMAT
>> OUTPUTFORMAT
>> NAME "AGG_Q"
>> DRIVER "AGG/PNG"
>> MIMETYPE "image/png; mode=8bit"
>> IMAGEMODE RGB
>> EXTENSION "png"
>> FORMATOPTION "PALETTE_FORCE=TRUE"
>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>> END
>>
>> where palette.txt is a text file with RGB tuples in the form:
>>
>> RRR,GGG,BBB
>>
>> For example:
>>
>> 0,0,0
>> 255,255,255
>> 127,127,127
>>
>> MapServer will use AGG 24 bit rendering but reduce the output file to
>> 8 bit and reserve the colours in your palette.txt file. This will
>> give you consistent colours for the ones you care about.
>> Specifically, you should reserve all the colours that you actually
>> reference in your map file plus any colours of pixmap symbols. Don't
>> put in more colours than you actually need to because MapServer needs
>> to use whatever space is left (255 less your colours) for antialiasing.
>>
>> Cheers
>>
>> Paul
>>
>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>
>>> I use this output format in my map file:
>>> OUTPUTFORMAT
>>> NAME "AGG_Q"
>>> DRIVER "AGG/PNG"
>>> MIMETYPE "image/png; mode=8bit"
>>> IMAGEMODE RGB
>>> EXTENSION "png"
>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>> END
>>> but every time map draw called (or map image requested fom cgi
>>> mapserv.exe)
>>> polygons has a little difference in fill color (I think this is
>>> because
>>> color palette recalculated slightly different each time). This is
>>> unacceptable for me. How can i correct this? (maybe some
>>> FORMATOPTION?)
>>> --
>>> View this message in context:
>>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17667733.html
>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>> __________________________________________
>>
>> Paul Spencer
>> Chief Technology Officer
>> DM Solutions Group Inc
>> http://www.dmsolutions.ca/
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
From patruno at istat.it Fri Jun 6 06:05:45 2008
From: patruno at istat.it (patruno at istat.it)
Date: Fri, 06 Jun 2008 15:05:45 +0200
Subject: [mapserver-users] compare date in class
Message-ID:
Hi list!
I'd like to ask you if there is a way to compare a field date (mm-gg-yyyy) coming from a PostGIS query with the current date. (and above all how to get the current date ....)
My goal is to use a point layer with different colours depending on expression result in the 'class' block.
Ex:
CONNECTION 'dbname=xxxx user=username password=password host=localhost'
DATA 'the_geom from (select the_geom, id, oid, ...., start_date from table) as foo'
.....
CLASS
EXPRESSION (current_date > start_date)
NAME "red"
TEXT ([id])
STYLE
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END
....
Thanks in advance
Vinc
From rwburgholzer at deq.virginia.gov Fri Jun 6 07:12:34 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Fri, 6 Jun 2008 10:12:34 -0400
Subject: [mapserver-users] compare date in class
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DBB@deqex01.deq.local>
Don't know if the mapserver operators will deal with dates or not, but
in your postgis DATA string, you can include the following: "now() as
current_date" in order to provide you with the current_date.
If mapserver does not evaluate dates properly, you could opt to do the
comparison in the DATA query as well, and simply return a "t" or "f" ,
i.e.:
"(now() > startdate) as old", and then your expression reads:
EXPRESSION "[old] = 'f'"
And
EXPRESSION "[old] = 't'"
HTH,
r.b.
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
patruno at istat.it
Sent: Friday, June 06, 2008 9:06 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] compare date in class
Hi list!
I'd like to ask you if there is a way to compare a field date
(mm-gg-yyyy) coming from a PostGIS query with the current date. (and
above all how to get the current date ....)
My goal is to use a point layer with different colours depending on
expression result in the 'class' block.
Ex:
CONNECTION 'dbname=xxxx user=username password=password
host=localhost'
DATA 'the_geom from (select the_geom, id, oid, ...., start_date from
table) as foo'
.....
CLASS
EXPRESSION (current_date > start_date)
NAME "red"
TEXT ([id])
STYLE
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END
....
Thanks in advance
Vinc
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From yassefa at dmsolutions.ca Fri Jun 6 06:31:38 2008
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Fri, 06 Jun 2008 09:31:38 -0400
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To:
References: <4849330C.3070605@neogeo-online.net>
Message-ID: <48493C3A.4010009@dmsolutions.ca>
Hi there,
Actually the style->opacity parameter was there for a while although
not used until recently. The SLD (mapserver svn) already reads the
stoke/fill-opacity and set the parameter. Note that this only the AGG
output supports opacity at style level.
Please report an issue through bug 2638 if opacity with AGG output is
not working as expected.
Best Regards,
bartvde at osgis.nl wrote:
> I am quite sure this is because back then Mapserver only supported
> layer-level transparency, and not style-level transparency.
>
> With the new addition of style-level transparency in trunk, it should
> become possible to implement this now AFAICT. Maybe open up an enhancement
> ticket for this?
>
> Best regards,
> Bart
>
> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
> wrote:
>> Hi folks,
>>
>> Does Mapserver SLD implementation supports the fill-opacity css
>> parameter ? As far as I can see, it doesn't. Bug ?
>>
>> Thanks
>> --
>> Guillaume
>> _______________________________________________
>> 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
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From guillaume.sueur at neogeo-online.net Fri Jun 6 07:19:40 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Fri, 06 Jun 2008 16:19:40 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <48493C3A.4010009@dmsolutions.ca>
References: <4849330C.3070605@neogeo-online.net>
<48493C3A.4010009@dmsolutions.ca>
Message-ID: <4849477C.3020408@neogeo-online.net>
Hi, Assefa,
Do you mean I have to use AGG to get benefit from opacity settings in SLD ?
Thanks
Yewondwossen Assefa a ?crit :
> Hi there,
>
> Actually the style->opacity parameter was there for a while although
> not used until recently. The SLD (mapserver svn) already reads the
> stoke/fill-opacity and set the parameter. Note that this only the AGG
> output supports opacity at style level.
> Please report an issue through bug 2638 if opacity with AGG output is
> not working as expected.
>
> Best Regards,
>
> bartvde at osgis.nl wrote:
>> I am quite sure this is because back then Mapserver only supported
>> layer-level transparency, and not style-level transparency.
>>
>> With the new addition of style-level transparency in trunk, it should
>> become possible to implement this now AFAICT. Maybe open up an
>> enhancement
>> ticket for this?
>>
>> Best regards,
>> Bart
>>
>> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
>> wrote:
>>> Hi folks,
>>>
>>> Does Mapserver SLD implementation supports the fill-opacity css
>>> parameter ? As far as I can see, it doesn't. Bug ?
>>>
>>> Thanks
>>> --
>>> Guillaume
>>> _______________________________________________
>>> 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
>>
>
>
--
Guillaume SUEUR
Expert SIG et OpenSource
NEOGEO
46 RUE MATABIAU
31000 TOULOUSE
06 74 91 95 20
Site web : http://www.neogeo-online.net
From yassefa at dmsolutions.ca Fri Jun 6 07:42:24 2008
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Fri, 06 Jun 2008 10:42:24 -0400
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <4849477C.3020408@neogeo-online.net>
References: <4849330C.3070605@neogeo-online.net>
<48493C3A.4010009@dmsolutions.ca>
<4849477C.3020408@neogeo-online.net>
Message-ID: <48494CD0.4070309@dmsolutions.ca>
Guillaume Sueur wrote:
> Hi, Assefa,
>
> Do you mean I have to use AGG to get benefit from opacity settings in SLD ?
>
> Thanks
>
Yesy : the SLD will always parse and set the style's opacity parameter.
But since only the AGG output uses it when rendering the map, you
would need to set your output to AGG to see the effects.
> Yewondwossen Assefa a ?crit :
>> Hi there,
>>
>> Actually the style->opacity parameter was there for a while although
>> not used until recently. The SLD (mapserver svn) already reads the
>> stoke/fill-opacity and set the parameter. Note that this only the AGG
>> output supports opacity at style level.
>> Please report an issue through bug 2638 if opacity with AGG output is
>> not working as expected.
>>
>> Best Regards,
>>
>> bartvde at osgis.nl wrote:
>>> I am quite sure this is because back then Mapserver only supported
>>> layer-level transparency, and not style-level transparency.
>>>
>>> With the new addition of style-level transparency in trunk, it should
>>> become possible to implement this now AFAICT. Maybe open up an
>>> enhancement
>>> ticket for this?
>>>
>>> Best regards,
>>> Bart
>>>
>>> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
>>> wrote:
>>>> Hi folks,
>>>>
>>>> Does Mapserver SLD implementation supports the fill-opacity css
>>>> parameter ? As far as I can see, it doesn't. Bug ?
>>>>
>>>> Thanks
>>>> --
>>>> Guillaume
>>>> _______________________________________________
>>>> 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
>>>
>>
>>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From Jukka.Rahkonen at mmmtike.fi Fri Jun 6 09:27:57 2008
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Fri, 6 Jun 2008 19:27:57 +0300
Subject: [mapserver-users] Output Raster format
In-Reply-To: <9771eb540806060151jf5b8dccx2e34966bb1f8f0df@mail.gmail.com>
Message-ID:
Hi,
Try adding something like
PROCESSING "LUT=0:0,255:200"
It should give an linearly lightened image. Have a try and play with the LUT input/output values, perhaps you'll get a more usable output. By using separate LUT inputs you can control red, green and blue separately. If you want to use WYSIWYG tool for colour adjustment take a sample image into GIMP, use curves tool and save the GIMP curve file once you are satified. "PROCESSING LUT=" accepts the curve files saved from GIMP.
GIMP is not meant for big geospatial images. Use some reasonably sized image excerpt for adjusting colours with it.
-Jukka-
________________________________
L?hett?j?: David Martinez Morata [mailto:damarmo at gmail.com]
L?hetetty: 6. kes?kuuta 2008 11:52
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] Output Raster format
Thanks!
I read about procesing functions, but I don't really understand the functions :S
I have a WMS for raster cartographyc fonds and I need to do more clear images. the colors in the images are strong colors and when I insert a shape I have some problems to clear show this shape.
Any sugestions?
Thanks
2008/6/3 Rahkonen Jukka :
Hi
Mapserver is not much like web processing service. However, something can be done with layer PROCESSING directives SCALE and LUT. There may be other options for customizing which I am not aware.
http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives
Sometimes I have been thinking that it would be nice to have an option to push aerial photos out through some sort of sharpening filter.
-Jukka Rahkonen-
________________________________
L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta David Martinez Morata
L?hetetty: 3. kes?kuuta 2008 11:48
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Output Raster format
Hello!
I have a question about customizing output format for a WMS server.
I have a Raster collection in .tiff format, I make a wms server with this raster files. The output in mapfile its not specified in map file.
My question its:
Can we change the contrast, saturation and other values for output image? How? With GDAL functions?
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 rwburgholzer at deq.virginia.gov Fri Jun 6 09:57:38 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Fri, 6 Jun 2008 12:57:38 -0400
Subject: [mapserver-users] troubleshooting WFS LINE output
Message-ID: <6C097DA58429B743A67070F98BE73A37025DD7D2@deqex01.deq.local>
I am retrieving some WFS layers, and having a bit of trouble with a LINE
layer (not to mention a bit more trouble with a POLYGON layer, but that
will hold for now). The data set that I am working with has much
promise if I can get it to work, it is the National Hydrography Database
or NHD.
The GML file is retrieved, it appears to be in coordinates that are
within my extent, and the map loads just fine, except it does not show
any LINE. I am able to load a point from this source, no worries, but
the LINE has thus far eluded me. I will attach my line block from my
mapfile, in case I have made a real rookie mistake here, but any insight
into how to troubleshoot otherwise would be welcome (I have debugging
turned on, and am receiving no errors related to the line).
LAYER
NAME nhd_wfs
TYPE LINE
#TYPE POINT
STATUS ON
DEBUG ON
CONNECTIONTYPE WFS
CONNECTION
"http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?OutputFormat=GML3L1&
srsName=EPSG:4326"
METADATA
#"wfs_typename" "HydroElementWBMD"
#"wfs_typename" "HydroElementPTMD"
"wfs_typename" "HydroElementLIHI"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "240"
END
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "None"
STYLE
#SYMBOL 'circle'
#SIZE 7
COLOR 42 151 220
#BACKGROUNDCOLOR 42 151 220
#OUTLINECOLOR 42 151 220
END
END
END # Layer
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From rwburgholzer at deq.virginia.gov Fri Jun 6 10:10:01 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Fri, 6 Jun 2008 13:10:01 -0400
Subject: [mapserver-users] troubleshooting WFS LINE output
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DC3@deqex01.deq.local>
More information from the maintainer of the WFS service. If what they
say is correct, ogr2ogr doesn't grok GML3? See below if interested:
#############################################
## Begin Correspondence with NHD WFS Contact #
#############################################
For the framework data our server raises an exception if the output
format is not GML3 because the framework schemas:
http://frameworkwfs.usgs.gov/framework/schemas/gmlsf1/
are only defined for GML3. So, if you request GML2 output, the server
raises an exception since it cannot validate GML2 input or output
because the GML2 schemas do not exist.
> I have made progress enough to load point layers, such as , however,
> when trying to load some of the polygon layers, such as, , I get the
> following error:
>
> OGR error. Missing outerBoundary Is property on Polygon.
You may have trouble accessing the framework data (which is only
available in GML3) with OGR because OGR can only handles GML2 (at least
that is my understanding).
The error you indicate kinda bears out my understanding ...
is an element defined in GML2 but deprecated in
GML3. The corresponding GML3 element is which is what
our server generates when the requested output format is GML3.
>
> BTW - what is the status of this product?
The CubeWerx WFS is part of CubeSERV which is a production product.
Are you using ogr2ogr to try and convert the output to something else?
If so, let me know which output format you are trying to convert the
data to and I may be able to come up with another way to get that
format. Or at least tweak our server to allow you to use ogr.
#############################################
## End Correspondence with NHD WFS Contact ##
#############################################
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
Burgholzer,Robert
Sent: Friday, June 06, 2008 12:58 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] troubleshooting WFS LINE output
I am retrieving some WFS layers, and having a bit of trouble with a LINE
layer (not to mention a bit more trouble with a POLYGON layer, but that
will hold for now). The data set that I am working with has much
promise if I can get it to work, it is the National Hydrography Database
or NHD.
The GML file is retrieved, it appears to be in coordinates that are
within my extent, and the map loads just fine, except it does not show
any LINE. I am able to load a point from this source, no worries, but
the LINE has thus far eluded me. I will attach my line block from my
mapfile, in case I have made a real rookie mistake here, but any insight
into how to troubleshoot otherwise would be welcome (I have debugging
turned on, and am receiving no errors related to the line).
LAYER
NAME nhd_wfs
TYPE LINE
#TYPE POINT
STATUS ON
DEBUG ON
CONNECTIONTYPE WFS
CONNECTION
"http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?OutputFormat=GML3L1&
srsName=EPSG:4326"
METADATA
#"wfs_typename" "HydroElementWBMD"
#"wfs_typename" "HydroElementPTMD"
"wfs_typename" "HydroElementLIHI"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "240"
END
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "None"
STYLE
#SYMBOL 'circle'
#SIZE 7
COLOR 42 151 220
#BACKGROUNDCOLOR 42 151 220
#OUTLINECOLOR 42 151 220
END
END
END # Layer
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From MMaganti at oriongis.com Fri Jun 6 10:39:48 2008
From: MMaganti at oriongis.com (Murty Maganti)
Date: Fri, 6 Jun 2008 13:39:48 -0400
Subject: [mapserver-users] Exception using oracle spatial layer
Message-ID:
Hello Users
I am getting an exception when using oracle spatial layer.
I am setting filter expression to the layer at run time(using C# map
script, layerObj.setFilter()) and when I call draw() method on map after
setting the filter, the following exception is thrown
msDrawMap(): Image handling error. Failed to draw layer named
'Ward'.;msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error:
ORA-21710: argument is expecting a valid memory address of an object.
Filter expression is very simple - 'WARDID in (1,2)'. The field and the
values both exist on the layer.
It works fine (i.e. image is generated) when I don't set the filter.
Appreciate any help
-Murty Maganti
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From paulborodaev at gmail.com Fri Jun 6 13:24:28 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Fri, 6 Jun 2008 13:24:28 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithm
imperfection
In-Reply-To: <48495108.3010905@swoodbridge.com>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
Message-ID: <17700473.post@talk.nabble.com>
$? You're kidding)) Anyway, thanks for advise. Will try.
And what about agg rgba mode (bug, invalid color interpretation (inverting?)
or something like that)? When
this problem will be fixed? I need it, because I want to use map
transparency (only rgba mode) to combine with google map layer in openlayers
rich client app.
Stephen Woodbridge wrote:
>
> Hey, that's what they pay you the BIG BUCKS for! :)
>
> Write a perl/bash/{your favorite} script to grab all the COLOR lines
> from you mapfile and reformat the r g b to r,g,b in you palette file.
>
> I have a few hundred symbols in my symbol library, but I only use about
> 10 of them regularly so I made sure the primary colors were also in the
> palette file. I make the script add them so I don't have to think about
> it.
>
> It sounds like a big deal, but it not that bad.
>
> YMMV,
> -Steve W
>
> BrainDrain wrote:
>> Thanks, i already read about preparing palette index file & I see 2
>> obstacles:
>> 1) I need to monitor my map file (big size) to keep relevant my palette
>> file. It is inflexible to extract rgb colors used in pixmap symbols
>> (hundreds, updatable). Can I use html palette for ex. (or any other
>> 'universal' palette) - to make this process not so time-consuming?
>> 2) If I have strict palette, can I be sure that agg renderer will always
>> use
>> the nearest(?) color from my palette?
>>
>> pagameba wrote:
>>> Use:
>>>
>>> OUTPUTFORMAT
>>> OUTPUTFORMAT
>>> NAME "AGG_Q"
>>> DRIVER "AGG/PNG"
>>> MIMETYPE "image/png; mode=8bit"
>>> IMAGEMODE RGB
>>> EXTENSION "png"
>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>> END
>>>
>>> where palette.txt is a text file with RGB tuples in the form:
>>>
>>> RRR,GGG,BBB
>>>
>>> For example:
>>>
>>> 0,0,0
>>> 255,255,255
>>> 127,127,127
>>>
>>> MapServer will use AGG 24 bit rendering but reduce the output file to
>>> 8 bit and reserve the colours in your palette.txt file. This will
>>> give you consistent colours for the ones you care about.
>>> Specifically, you should reserve all the colours that you actually
>>> reference in your map file plus any colours of pixmap symbols. Don't
>>> put in more colours than you actually need to because MapServer needs
>>> to use whatever space is left (255 less your colours) for antialiasing.
>>>
>>> Cheers
>>>
>>> Paul
>>>
>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>
>>>> I use this output format in my map file:
>>>> OUTPUTFORMAT
>>>> NAME "AGG_Q"
>>>> DRIVER "AGG/PNG"
>>>> MIMETYPE "image/png; mode=8bit"
>>>> IMAGEMODE RGB
>>>> EXTENSION "png"
>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>> END
>>>> but every time map draw called (or map image requested fom cgi
>>>> mapserv.exe)
>>>> polygons has a little difference in fill color (I think this is
>>>> because
>>>> color palette recalculated slightly different each time). This is
>>>> unacceptable for me. How can i correct this? (maybe some
>>>> FORMATOPTION?)
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17667733.html
>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>> __________________________________________
>>>
>>> Paul Spencer
>>> Chief Technology Officer
>>> DM Solutions Group Inc
>>> http://www.dmsolutions.ca/
>>> _______________________________________________
>>> 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
>
>
--
View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17700473.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From guillaume.sueur at neogeo-online.net Fri Jun 6 13:39:10 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Fri, 06 Jun 2008 22:39:10 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <48494CD0.4070309@dmsolutions.ca>
References: <4849330C.3070605@neogeo-online.net>
<48493C3A.4010009@dmsolutions.ca>
<4849477C.3020408@neogeo-online.net>
<48494CD0.4070309@dmsolutions.ca>
Message-ID: <4849A06E.5000104@neogeo-online.net>
I still don't have a the desired rendering, even with AGG... I'm using
5.0.1 dev version, should I upgrade to the last SVN version ?
thanks
Yewondwossen Assefa a ?crit :
> Guillaume Sueur wrote:
>> Hi, Assefa,
>>
>> Do you mean I have to use AGG to get benefit from opacity settings in
>> SLD ?
>>
>> Thanks
>>
>
> Yesy : the SLD will always parse and set the style's opacity parameter.
> But since only the AGG output uses it when rendering the map, you would
> need to set your output to AGG to see the effects.
>
>> Yewondwossen Assefa a ?crit :
>>> Hi there,
>>>
>>> Actually the style->opacity parameter was there for a while although
>>> not used until recently. The SLD (mapserver svn) already reads the
>>> stoke/fill-opacity and set the parameter. Note that this only the AGG
>>> output supports opacity at style level.
>>> Please report an issue through bug 2638 if opacity with AGG output
>>> is not working as expected.
>>>
>>> Best Regards,
>>>
>>> bartvde at osgis.nl wrote:
>>>> I am quite sure this is because back then Mapserver only supported
>>>> layer-level transparency, and not style-level transparency.
>>>>
>>>> With the new addition of style-level transparency in trunk, it should
>>>> become possible to implement this now AFAICT. Maybe open up an
>>>> enhancement
>>>> ticket for this?
>>>>
>>>> Best regards,
>>>> Bart
>>>>
>>>> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
>>>> wrote:
>>>>> Hi folks,
>>>>>
>>>>> Does Mapserver SLD implementation supports the fill-opacity css
>>>>> parameter ? As far as I can see, it doesn't. Bug ?
>>>>>
>>>>> Thanks
>>>>> --
>>>>> Guillaume
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>
>>>
>>
>
>
--
Guillaume SUEUR
Expert SIG et OpenSource
NEOGEO
46 RUE MATABIAU
31000 TOULOUSE
06 74 91 95 20
Site web : http://www.neogeo-online.net
From yjacolin at free.fr Fri Jun 6 13:43:32 2008
From: yjacolin at free.fr (Yves Jacolin)
Date: Fri, 6 Jun 2008 22:43:32 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <4849A06E.5000104@neogeo-online.net>
References: <4849330C.3070605@neogeo-online.net>
<48494CD0.4070309@dmsolutions.ca>
<4849A06E.5000104@neogeo-online.net>
Message-ID: <200806062243.33066.yjacolin@free.fr>
Hi Guillaume,
>> Yewondwossen Assefa a ?crit :
> The SLD (mapserver svn) already reads the
>stoke/fill-opacity and set the parameter.
I think so ;)
Y.
--
Yves Jacolin
-------------
http://yjacolin.gloobe.org
http://softlibre.gloobe.org
From yassefa at dmsolutions.ca Fri Jun 6 13:51:40 2008
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Fri, 06 Jun 2008 16:51:40 -0400
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <4849A06E.5000104@neogeo-online.net>
References: <4849330C.3070605@neogeo-online.net>
<48493C3A.4010009@dmsolutions.ca>
<4849477C.3020408@neogeo-online.net>
<48494CD0.4070309@dmsolutions.ca>
<4849A06E.5000104@neogeo-online.net>
Message-ID: <4849A35C.6060305@dmsolutions.ca>
Guillaume,
Yes :support in AGG for the style opacity is only available in the
last svn trunk (http://trac.osgeo.org/mapserver/ticket/1155)
Besr Regards,
Guillaume Sueur wrote:
> I still don't have a the desired rendering, even with AGG... I'm using
> 5.0.1 dev version, should I upgrade to the last SVN version ?
>
> thanks
>
> Yewondwossen Assefa a ?crit :
>> Guillaume Sueur wrote:
>>> Hi, Assefa,
>>>
>>> Do you mean I have to use AGG to get benefit from opacity settings in
>>> SLD ?
>>>
>>> Thanks
>>>
>>
>> Yesy : the SLD will always parse and set the style's opacity parameter.
>> But since only the AGG output uses it when rendering the map, you
>> would need to set your output to AGG to see the effects.
>>
>>> Yewondwossen Assefa a ?crit :
>>>> Hi there,
>>>>
>>>> Actually the style->opacity parameter was there for a while
>>>> although not used until recently. The SLD (mapserver svn) already
>>>> reads the stoke/fill-opacity and set the parameter. Note that this
>>>> only the AGG output supports opacity at style level.
>>>> Please report an issue through bug 2638 if opacity with AGG output
>>>> is not working as expected.
>>>>
>>>> Best Regards,
>>>>
>>>> bartvde at osgis.nl wrote:
>>>>> I am quite sure this is because back then Mapserver only supported
>>>>> layer-level transparency, and not style-level transparency.
>>>>>
>>>>> With the new addition of style-level transparency in trunk, it should
>>>>> become possible to implement this now AFAICT. Maybe open up an
>>>>> enhancement
>>>>> ticket for this?
>>>>>
>>>>> Best regards,
>>>>> Bart
>>>>>
>>>>> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
>>>>> wrote:
>>>>>> Hi folks,
>>>>>>
>>>>>> Does Mapserver SLD implementation supports the fill-opacity css
>>>>>> parameter ? As far as I can see, it doesn't. Bug ?
>>>>>>
>>>>>> Thanks
>>>>>> --
>>>>>> Guillaume
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>
>>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From guillaume.sueur at neogeo-online.net Fri Jun 6 13:54:16 2008
From: guillaume.sueur at neogeo-online.net (Guillaume Sueur)
Date: Fri, 06 Jun 2008 22:54:16 +0200
Subject: [mapserver-users] SLD implementation - fill-opacity
In-Reply-To: <4849A35C.6060305@dmsolutions.ca>
References: <4849330C.3070605@neogeo-online.net>
<48493C3A.4010009@dmsolutions.ca>
<4849477C.3020408@neogeo-online.net>
<48494CD0.4070309@dmsolutions.ca>
<4849A06E.5000104@neogeo-online.net>
<4849A35C.6060305@dmsolutions.ca>
Message-ID: <4849A3F8.5010808@neogeo-online.net>
Great ! thanks again !
Yewondwossen Assefa a ?crit :
> Guillaume,
>
> Yes :support in AGG for the style opacity is only available in the last
> svn trunk (http://trac.osgeo.org/mapserver/ticket/1155)
>
> Besr Regards,
>
> Guillaume Sueur wrote:
>> I still don't have a the desired rendering, even with AGG... I'm using
>> 5.0.1 dev version, should I upgrade to the last SVN version ?
>>
>> thanks
>>
>> Yewondwossen Assefa a ?crit :
>>> Guillaume Sueur wrote:
>>>> Hi, Assefa,
>>>>
>>>> Do you mean I have to use AGG to get benefit from opacity settings
>>>> in SLD ?
>>>>
>>>> Thanks
>>>>
>>>
>>> Yesy : the SLD will always parse and set the style's opacity parameter.
>>> But since only the AGG output uses it when rendering the map, you
>>> would need to set your output to AGG to see the effects.
>>>
>>>> Yewondwossen Assefa a ?crit :
>>>>> Hi there,
>>>>>
>>>>> Actually the style->opacity parameter was there for a while
>>>>> although not used until recently. The SLD (mapserver svn) already
>>>>> reads the stoke/fill-opacity and set the parameter. Note that this
>>>>> only the AGG output supports opacity at style level.
>>>>> Please report an issue through bug 2638 if opacity with AGG output
>>>>> is not working as expected.
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> bartvde at osgis.nl wrote:
>>>>>> I am quite sure this is because back then Mapserver only supported
>>>>>> layer-level transparency, and not style-level transparency.
>>>>>>
>>>>>> With the new addition of style-level transparency in trunk, it should
>>>>>> become possible to implement this now AFAICT. Maybe open up an
>>>>>> enhancement
>>>>>> ticket for this?
>>>>>>
>>>>>> Best regards,
>>>>>> Bart
>>>>>>
>>>>>> On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
>>>>>> wrote:
>>>>>>> Hi folks,
>>>>>>>
>>>>>>> Does Mapserver SLD implementation supports the fill-opacity css
>>>>>>> parameter ? As far as I can see, it doesn't. Bug ?
>>>>>>>
>>>>>>> Thanks
>>>>>>> --
>>>>>>> Guillaume
>>>>>>> _______________________________________________
>>>>>>> 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 Steve.Lime at dnr.state.mn.us Fri Jun 6 14:04:47 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Fri, 06 Jun 2008 16:04:47 -0500
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithmimperfection
In-Reply-To: <17700473.post@talk.nabble.com>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
<17700473.post@talk.nabble.com>
Message-ID: <4849601F.5157.008F.0@dnr.state.mn.us>
I've generated palettes by rendering a large 24-bit sample image and then reducing colors using
tools like Photoshop, GIMP or ImageMagick. Then I just run gdalinfo output on the reduced color
image through a perl script to extract the palette.
#!/usr/bin/perl
$doit = 0;
while(<>) {
if($_ =~ /Color Table/) {
$doit = 1;
next;
}
if($doit) {
($r,$g,$b,$a) = split /,/, substr($_,7);
print "$r,$g,$b\n";
}
}
Works just fine...
Steve
>>> On 6/6/2008 at 3:24 PM, in message <17700473.post at talk.nabble.com>, BrainDrain
wrote:
> $? You're kidding)) Anyway, thanks for advise. Will try.
> And what about agg rgba mode (bug, invalid color interpretation (inverting?)
> or something like that)? When
> this problem will be fixed? I need it, because I want to use map
> transparency (only rgba mode) to combine with google map layer in openlayers
> rich client app.
>
> Stephen Woodbridge wrote:
>>
>> Hey, that's what they pay you the BIG BUCKS for! :)
>>
>> Write a perl/bash/{your favorite} script to grab all the COLOR lines
>> from you mapfile and reformat the r g b to r,g,b in you palette file.
>>
>> I have a few hundred symbols in my symbol library, but I only use about
>> 10 of them regularly so I made sure the primary colors were also in the
>> palette file. I make the script add them so I don't have to think about
>> it.
>>
>> It sounds like a big deal, but it not that bad.
>>
>> YMMV,
>> -Steve W
>>
>> BrainDrain wrote:
>>> Thanks, i already read about preparing palette index file & I see 2
>>> obstacles:
>>> 1) I need to monitor my map file (big size) to keep relevant my palette
>>> file. It is inflexible to extract rgb colors used in pixmap symbols
>>> (hundreds, updatable). Can I use html palette for ex. (or any other
>>> 'universal' palette) - to make this process not so time-consuming?
>>> 2) If I have strict palette, can I be sure that agg renderer will always
>>> use
>>> the nearest(?) color from my palette?
>>>
>>> pagameba wrote:
>>>> Use:
>>>>
>>>> OUTPUTFORMAT
>>>> OUTPUTFORMAT
>>>> NAME "AGG_Q"
>>>> DRIVER "AGG/PNG"
>>>> MIMETYPE "image/png; mode=8bit"
>>>> IMAGEMODE RGB
>>>> EXTENSION "png"
>>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>>> END
>>>>
>>>> where palette.txt is a text file with RGB tuples in the form:
>>>>
>>>> RRR,GGG,BBB
>>>>
>>>> For example:
>>>>
>>>> 0,0,0
>>>> 255,255,255
>>>> 127,127,127
>>>>
>>>> MapServer will use AGG 24 bit rendering but reduce the output file to
>>>> 8 bit and reserve the colours in your palette.txt file. This will
>>>> give you consistent colours for the ones you care about.
>>>> Specifically, you should reserve all the colours that you actually
>>>> reference in your map file plus any colours of pixmap symbols. Don't
>>>> put in more colours than you actually need to because MapServer needs
>>>> to use whatever space is left (255 less your colours) for antialiasing.
>>>>
>>>> Cheers
>>>>
>>>> Paul
>>>>
>>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>>
>>>>> I use this output format in my map file:
>>>>> OUTPUTFORMAT
>>>>> NAME "AGG_Q"
>>>>> DRIVER "AGG/PNG"
>>>>> MIMETYPE "image/png; mode=8bit"
>>>>> IMAGEMODE RGB
>>>>> EXTENSION "png"
>>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>>> END
>>>>> but every time map draw called (or map image requested fom cgi
>>>>> mapserv.exe)
>>>>> polygons has a little difference in fill color (I think this is
>>>>> because
>>>>> color palette recalculated slightly different each time). This is
>>>>> unacceptable for me. How can i correct this? (maybe some
>>>>> FORMATOPTION?)
>>>>> --
>>>>> View this message in context:
>>>>>
> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp1766773
> 3p17667733.html
>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>>
>>>>> _______________________________________________
>>>>> mapserver-users mailing list
>>>>> mapserver-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>> __________________________________________
>>>>
>>>> Paul Spencer
>>>> Chief Technology Officer
>>>> DM Solutions Group Inc
>>>> http://www.dmsolutions.ca/
>>>> _______________________________________________
>>>> 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 ben at remoteinformation.com.au Fri Jun 6 18:02:04 2008
From: ben at remoteinformation.com.au (Ben Madin)
Date: Sat, 7 Jun 2008 09:02:04 +0800
Subject: [mapserver-users] compare date in class
In-Reply-To: <20080606160009.24C6AE01E3A@lists.osgeo.org>
References: <20080606160009.24C6AE01E3A@lists.osgeo.org>
Message-ID: <22A46EBF-1F84-47F7-B930-5316C0FA57EC@remoteinformation.com.au>
G'day Vinc,
It might be easier to code the expression check into the SQL
statement. I could be wrong, but I suspect that this would make the
execution of the statements much faster as well, as increasingly
complex expression checking I think is relatively slow in MapServer,
but shouldn't stress a database. (If I am wrong, it would be good to
know!!)
Off the top of my head, something like this might work:
> DATA 'the_geom from (select the_geom, id, oid, ...., start_date
> from table) as foo'
Would become :
DATA 'the_geom from (select the_geom, id, oid, ...., start_date,
CASE WHEN start_date < now()
THEN 'old'
WHEN start_date > now()
THEN 'future'
ELSE 'now'
END AS status
from table) as foo'
then make :
CLASSITEM status
and CLASS EXPRESSION 'now'
Good luck!
cheers
Ben
On 07/06/2008, at 12:00 AM, mapserver-users-request at lists.osgeo.org
wrote:
> From: patruno at istat.it
> Date: 6 June 2008 9:05:45 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] compare date in class
>
>
> Hi list!
>
> I'd like to ask you if there is a way to compare a field date (mm-gg-
> yyyy) coming from a PostGIS query with the current date. (and above
> all how to get the current date ....)
>
> My goal is to use a point layer with different colours depending on
> expression result in the 'class' block.
>
> Ex:
> CONNECTION 'dbname=xxxx user=username password=password
> host=localhost'
>
> DATA 'the_geom from (select the_geom, id, oid, ...., start_date
> from table) as foo'
>
> .....
>
> CLASS
> EXPRESSION (current_date > start_date)
>
> NAME "red"
> TEXT ([id])
> STYLE
> COLOR 255 0 0
> OUTLINECOLOR 0 0 0
> END
> ....
>
>
>
> Thanks in advance
> Vinc
>
--
Ben Madin
REMOTE INFORMATION
t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome WA 6725
ben at remoteinformation.com.au
Out here, it pays to know...
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From paulborodaev at gmail.com Sat Jun 7 06:35:13 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Sat, 7 Jun 2008 06:35:13 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithmimperfection
In-Reply-To: <4849601F.5157.008F.0@dnr.state.mn.us>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
<17700473.post@talk.nabble.com>
<4849601F.5157.008F.0@dnr.state.mn.us>
Message-ID: <17708955.post@talk.nabble.com>
hmmm, like sample map image with all layers (and most symbols) turned on?
sounds reasonable
That would be enough? (not all colors in sample: the nearest colors will be
used?) Sorry for importunity.
Steve Lime wrote:
>
> I've generated palettes by rendering a large 24-bit sample image and then
> reducing colors using
> tools like Photoshop, GIMP or ImageMagick. Then I just run gdalinfo output
> on the reduced color
> image through a perl script to extract the palette.
>
> #!/usr/bin/perl
>
> $doit = 0;
> while(<>) {
> if($_ =~ /Color Table/) {
> $doit = 1;
> next;
> }
>
> if($doit) {
> ($r,$g,$b,$a) = split /,/, substr($_,7);
> print "$r,$g,$b\n";
> }
> }
>
> Works just fine...
>
> Steve
>
>>>> On 6/6/2008 at 3:24 PM, in message <17700473.post at talk.nabble.com>,
>>>> BrainDrain
> wrote:
>
>> $? You're kidding)) Anyway, thanks for advise. Will try.
>> And what about agg rgba mode (bug, invalid color interpretation
>> (inverting?)
>> or something like that)? When
>> this problem will be fixed? I need it, because I want to use map
>> transparency (only rgba mode) to combine with google map layer in
>> openlayers
>> rich client app.
>>
>> Stephen Woodbridge wrote:
>>>
>>> Hey, that's what they pay you the BIG BUCKS for! :)
>>>
>>> Write a perl/bash/{your favorite} script to grab all the COLOR lines
>>> from you mapfile and reformat the r g b to r,g,b in you palette file.
>>>
>>> I have a few hundred symbols in my symbol library, but I only use about
>>> 10 of them regularly so I made sure the primary colors were also in the
>>> palette file. I make the script add them so I don't have to think about
>>> it.
>>>
>>> It sounds like a big deal, but it not that bad.
>>>
>>> YMMV,
>>> -Steve W
>>>
>>> BrainDrain wrote:
>>>> Thanks, i already read about preparing palette index file & I see 2
>>>> obstacles:
>>>> 1) I need to monitor my map file (big size) to keep relevant my palette
>>>> file. It is inflexible to extract rgb colors used in pixmap symbols
>>>> (hundreds, updatable). Can I use html palette for ex. (or any other
>>>> 'universal' palette) - to make this process not so time-consuming?
>>>> 2) If I have strict palette, can I be sure that agg renderer will
>>>> always
>>>> use
>>>> the nearest(?) color from my palette?
>>>>
>>>> pagameba wrote:
>>>>> Use:
>>>>>
>>>>> OUTPUTFORMAT
>>>>> OUTPUTFORMAT
>>>>> NAME "AGG_Q"
>>>>> DRIVER "AGG/PNG"
>>>>> MIMETYPE "image/png; mode=8bit"
>>>>> IMAGEMODE RGB
>>>>> EXTENSION "png"
>>>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>>>> END
>>>>>
>>>>> where palette.txt is a text file with RGB tuples in the form:
>>>>>
>>>>> RRR,GGG,BBB
>>>>>
>>>>> For example:
>>>>>
>>>>> 0,0,0
>>>>> 255,255,255
>>>>> 127,127,127
>>>>>
>>>>> MapServer will use AGG 24 bit rendering but reduce the output file to
>>>>> 8 bit and reserve the colours in your palette.txt file. This will
>>>>> give you consistent colours for the ones you care about.
>>>>> Specifically, you should reserve all the colours that you actually
>>>>> reference in your map file plus any colours of pixmap symbols. Don't
>>>>> put in more colours than you actually need to because MapServer needs
>>>>> to use whatever space is left (255 less your colours) for
>>>>> antialiasing.
>>>>>
>>>>> Cheers
>>>>>
>>>>> Paul
>>>>>
>>>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>>>
>>>>>> I use this output format in my map file:
>>>>>> OUTPUTFORMAT
>>>>>> NAME "AGG_Q"
>>>>>> DRIVER "AGG/PNG"
>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>> IMAGEMODE RGB
>>>>>> EXTENSION "png"
>>>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>>>> END
>>>>>> but every time map draw called (or map image requested fom cgi
>>>>>> mapserv.exe)
>>>>>> polygons has a little difference in fill color (I think this is
>>>>>> because
>>>>>> color palette recalculated slightly different each time). This is
>>>>>> unacceptable for me. How can i correct this? (maybe some
>>>>>> FORMATOPTION?)
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp1766773
>> 3p17667733.html
>>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>>>
>>>>>> _______________________________________________
>>>>>> mapserver-users mailing list
>>>>>> mapserver-users at lists.osgeo.org
>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>
>>>>> __________________________________________
>>>>>
>>>>> Paul Spencer
>>>>> Chief Technology Officer
>>>>> DM Solutions Group Inc
>>>>> http://www.dmsolutions.ca/
>>>>> _______________________________________________
>>>>> 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
>
>
--
View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17708955.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From thy at 42.dk Sat Jun 7 15:49:19 2008
From: thy at 42.dk (Kristian Thy)
Date: Sun, 8 Jun 2008 00:49:19 +0200
Subject: [mapserver-users] GetFeatureInfo from Oracle Spatial
Message-ID: <20080607224919.GB14026@42.dk>
Hi list
I've made a small openlayers viewer that shows a data layer from a
materialized view in Oracle Spatial. When clicking on the map, I do a
simple GetFeatureInfo which works when I test it with a shapefile-based
layer, but when I move to the Oracle layer, I get an error message
saying that no features were found with MAXIMO_ID = 0 (something to that
effect, anyways). Unfortunately this is an internal GIS app, so I can't
demo it.
The relevant layer definition in my map file:
------------------------------------------------------------------------
LAYER
NAME 'TRIM-Q'
TYPE POINT
CONNECTIONTYPE oraclespatial
CONNECTION "******@******"
DATA "SHAPE FROM (SELECT MAXIMO_ID, ASSETTYPE, SHAPE FROM MAPSERVER_TRIMQ) USING UNIQUE MAXIMO_ID SRID 32632 VERSION 10g"
TEMPLATE "trim.html"
HEADER "trim_header.html"
FOOTER "trim_footer.html"
TOLERANCE 20
DUMP true
METADATA
"wms_title" "TRIM-Q"
"wms_srs" "EPSG:32632"
"wms_include_items" "ALL"
"ows_include_items" "ALL"
"gml_include_items" "ALL"
END #metadata
CLASS
NAME 'vejskab'
EXPRESSION ('[ASSETTYPE]' = 'VEJSKAB')
STYLE
SYMBOL 'square'
OFFSET -4 -2
END #STYLE
LABEL
type truetype
antialias true
font arial_black
size 8
position ll
color 0 0 0
outlinecolor 255 255 255
buffer 2
partials false
END #label
TEXT ([MAXIMO_ID])
END #class
CLASS
#NAME faerdselstavle
EXPRESSION ('[ASSETTYPE]' = 'TAVLE')
STYLE
SYMBOL 'triangle'
OFFSET -10 2
END #STYLE
LABEL
FORCE true
type truetype
antialias true
font arial_black
size 8
position lc
color 0 0 0
outlinecolor 255 255 255
buffer 0
partials false
end #label
TEXT ([MAXIMO_ID])
END #class
CLASS
#NAME 'other values'
STYLE
SYMBOL 'circle'
SIZE 2
COLOR 100 0 0
END #STYLE
LABEL
type truetype
antialias true
font arial_black
size 8
position uc
color 0 0 0
outlinecolor 255 255 255
buffer 2
partials false
end #label
TEXT ([MAXIMO_ID])
END #class
SIZEUNITS PIXELS
STATUS ON
UNITS meters
MAXSCALE 60000
LABELMAXSCALE 60000
END #layer
------------------------------------------------------------------------
The OpenLayers code I use for calling GetFeatureInfo:
------------------------------------------------------------------------
map.events.register('click', map, function (e)
{
var url = trimq.getFullRequestString({
REQUEST: 'GetFeatureInfo',
EXCEPTIONS: 'application/vnd.ogc.se_xml',
BBOX: trimq.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/plain',
QUERY_LAYERS: 'TRIM-Q',
RADIUS: 5,
WIDTH: trimq.map.size.w,
HEIGHT: trimq.map.size.h});
document.getElementById('map').style.cursor = 'wait';
OpenLayers.loadURL(url, '', this, handleResponse);
Event.stop(e);
});
function handleResponse(response)
{
document.getElementById('map').style.cursor = 'auto';
alert(response.responseText);
}
------------------------------------------------------------------------
As mentioned, this works if I query a shapefile-based layer, so I assume
the javascript is ok. Any ideas what my problem is?
\\kristian
--
... et nemo ex vobis interrogat me: ?Quo vadis??
From matthew.pettis at gmail.com Sat Jun 7 17:21:25 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Sat, 7 Jun 2008 19:21:25 -0500
Subject: [mapserver-users] mapserver wms: srs problem
Message-ID: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com>
Hi,
I am not a GIS guy, and am a bit confused by the projection attributes
i have to specify in mapserver. In particular, I have a simple
example. I have a map that has the following metadata:
Horizontal Coordinate Scheme UTM
Ellipsoid GRS80
Horizontal Datum NAD83
Horizontal Units Meters
UTM Zone Number 15
I believe this translates to an epsg=26915
Now, according to mapserver, I have to specify a projection object, a
web metadata srs, and a layer metadata srs.
To compress the mapfile, i'll just note what i have specified for each
of these settings.
First, I would think that this would work:
projection => init=epsg:26915
web metadata srs => EPSG:26915
layer metadata srs => EPSG:26915
this give me the error:
msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS
must be valid for all requested layers.
I only have the one layer (it's of the state of MN from www.gis.leg.mn).
However, the following renders, but I don't think it is the projection
i want (as the top of MN is too wide):
projection => init=epsg:26915
web metadata srs => EPSG:26915
layer metadata srs => EPSG:4326
Now, I am using mapserver as a WMS. Before I was using it NOT as a
WMS, but just making it render the shapefile without any projection
information, it worked, and it was the projection I had come to expect
when seeing the state of MN rendered.
Why does my first configuration give me an error?
How can I make it render in the way I expect without giving mapserver
explicit projection instructions?
please forgive the ignorance of map projection knowledge.
thanks,
matt
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
From chris123 at magma.ca Sun Jun 8 10:19:17 2008
From: chris123 at magma.ca (Chris H)
Date: Sun, 8 Jun 2008 13:19:17 -0400
Subject: [mapserver-users] wms and itasca demo
Message-ID: <200806081319.17595.chris123@magma.ca>
Greets
mapserver nubie and trying the itasca demo which works fine via the web
interface.
From my reading of
http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
the basic configuration (minus layers) is activated by default in the demo.
-------------------
# Start of web interface definition (including WMS enabling metadata)
#
WEB
HEADER templates/header.html
TEMPLATE "set in index.html"
FOOTER templates/footer.html
MINSCALE 1000
MAXSCALE 1550000
IMAGEPATH "set in index.html"
IMAGEURL "set in index.html"
METADATA
WMS_TITLE "UMN MapServer Itasca Demo"
WMS_ABSTRACT "This is a UMN MapServer application for Itasca County
located in north central Minnesota."
WMS_ACCESSCONSTRAINTS "none"
# change this value to match your setup
WMS_ONLINERESOURCE "http://localhost/workshop/itasca/index.html"
WMS_SRS "EPSG:26915"
END
END
-------------------------eof-----
Yet despite which ever URL I call from qgis I get different errors, mostly 404
or the alternative:
Could not get WMS capabilities: tag mismatch at line 30 column 9
This is probably due to an incorrect WMS Server URL.
Tried URL: http://localhost/workshop/?SERVICE=WMS&REQUEST=GetCapabilities
Any insight would be appreciated.
Best and many thanks
--
/ch
From kobben at itc.nl Sun Jun 8 11:08:23 2008
From: kobben at itc.nl (Barend Kobben)
Date: Sun, 08 Jun 2008 20:08:23 +0200
Subject: [mapserver-users] mapserver wms: srs problem
In-Reply-To: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com>
Message-ID:
It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other
words, the data in your shapefile, database or raster image are (or are
advertised to be) in 4326. Its because your data is indeed in that srs
and/or advertised as such in the Mapfile LAYER as
PROJECTION
"init=epsg:4326"
END
But you tell the WMS interface that the layer is in 26915, by setting layer
metadata srs => EPSG:26915
If you want MS to reproject your data from 4326 to 26915 upon request, make
sure you set the layerdata projection:
PROJECTION
"init=epsg:4326"
END
Then make sure you tell the WMS interface to advertise it can be reprojected
to 26915 by setting it in web metadata srs:
"wms_srs" "EPSG:4326 EPSG:26915 EPSG:[others you want to offer]"
AFAIK there no wms_srs metadata in the LAYER object...
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
On 08-06-08 02:21, "Matthew Pettis" wrote:
> Hi,
>
> I am not a GIS guy, and am a bit confused by the projection attributes
> i have to specify in mapserver. In particular, I have a simple
> example. I have a map that has the following metadata:
>
> Horizontal Coordinate Scheme UTM
> Ellipsoid GRS80
> Horizontal Datum NAD83
> Horizontal Units Meters
> UTM Zone Number 15
>
> I believe this translates to an epsg=26915
>
> Now, according to mapserver, I have to specify a projection object, a
> web metadata srs, and a layer metadata srs.
>
> To compress the mapfile, i'll just note what i have specified for each
> of these settings.
>
> First, I would think that this would work:
>
> projection => init=epsg:26915
> web metadata srs => EPSG:26915
> layer metadata srs => EPSG:26915
>
> this give me the error:
> msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS
> must be valid for all requested layers.
>
> I only have the one layer (it's of the state of MN from www.gis.leg.mn).
>
> However, the following renders, but I don't think it is the projection
> i want (as the top of MN is too wide):
>
> projection => init=epsg:26915
> web metadata srs => EPSG:26915
> layer metadata srs => EPSG:4326
>
> Now, I am using mapserver as a WMS. Before I was using it NOT as a
> WMS, but just making it render the shapefile without any projection
> information, it worked, and it was the projection I had come to expect
> when seeing the state of MN rendered.
>
> Why does my first configuration give me an error?
> How can I make it render in the way I expect without giving mapserver
> explicit projection instructions?
>
> please forgive the ignorance of map projection knowledge.
>
> thanks,
> matt
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
From jmckenna at gatewaygeomatics.com Sun Jun 8 11:42:10 2008
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Sun, 8 Jun 2008 14:42:10 -0400
Subject: [mapserver-users] wms and itasca demo
In-Reply-To: <200806081319.17595.chris123@magma.ca>
References: <200806081319.17595.chris123@magma.ca>
Message-ID:
um, you should use that doc to read about the wms_onlineresource URL
(it should point to your mapserv executable), and you should follow
the "Test your WMS Server" section of that doc to test the
capabilities in the browser (no client, such as qgis, is needed) and
look for errors or warnings. You might also want to follow the
"MapServer OGC workshop": http://ms-ogc-workshop.maptools.org/
---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
On 8-Jun-08, at 1:19 PM, Chris H wrote:
> Greets
>
> mapserver nubie and trying the itasca demo which works fine via the
> web
> interface.
>
> From my reading of
> http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
> the basic configuration (minus layers) is activated by default in
> the demo.
>
> -------------------
> # Start of web interface definition (including WMS enabling metadata)
> #
> WEB
> HEADER templates/header.html
> TEMPLATE "set in index.html"
> FOOTER templates/footer.html
> MINSCALE 1000
> MAXSCALE 1550000
> IMAGEPATH "set in index.html"
> IMAGEURL "set in index.html"
> METADATA
> WMS_TITLE "UMN MapServer Itasca Demo"
> WMS_ABSTRACT "This is a UMN MapServer application for Itasca
> County
> located in north central Minnesota."
> WMS_ACCESSCONSTRAINTS "none"
>
> # change this value to match your setup
> WMS_ONLINERESOURCE "http://localhost/workshop/itasca/index.html"
>
> WMS_SRS "EPSG:26915"
> END
> END
> -------------------------eof-----
>
> Yet despite which ever URL I call from qgis I get different errors,
> mostly 404
> or the alternative:
>
> Could not get WMS capabilities: tag mismatch at line 30 column 9
> This is probably due to an incorrect WMS Server URL.
> Tried URL: http://localhost/workshop/?SERVICE=WMS&REQUEST=GetCapabilities
>
> Any insight would be appreciated.
>
> Best and many thanks
>
> --
> /ch
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From kreshna_iceheart at yahoo.com Sun Jun 8 18:44:21 2008
From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com)
Date: Sun, 8 Jun 2008 18:44:21 -0700 (PDT)
Subject: VS: [mapserver-users] Cannot display raster: MapServer shows
whiterectangle instead of the raster.
In-Reply-To:
Message-ID: <505405.6257.qm@web56103.mail.re3.yahoo.com>
YES! You are correct, it is indeed a STATUS ON phenomena. I changed to STATUS DEFAULT and now mapserver can show the map.
Thank you! :-)
I wonder though; with vector data, I never have any problem of displaying it with STATUS ON. Why does it become problematic with raster data? Just wonder.
Thanks again,
-Kresh
--- On Fri, 6/6/08, Rahkonen Jukka wrote:
> From: Rahkonen Jukka
> Subject: VS: [mapserver-users] Cannot display raster: MapServer shows whiterectangle instead of the raster.
> To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org
> Date: Friday, June 6, 2008, 5:46 AM
> Hi,
>
> Check list for empty map cases is
>
> - extents
> - projection
> - file names and path
> - if the layer is requested
>
> In your case extents seem to be OK, but you can verify it
> by running gdalinfo for the image with
> gdalinfo
> C:\mapfiles\shp\RASTER\industri.tif
>
> You do not use PROJECTION so it cannot be wrong. I believe
> you have checked the file names and paths. How about the
> request then? You have STATUS ON for your image layer. It
> meand that layer can be shown, but only if it is especially
> requested. For example query
> http://localhost/cgi-bin/mapserv.exe?map=raster.map&mode=map
>
> will not show raster layer for you. Adding
> &layer=Industri should show it. Another alternative is
> to set STATUS DEFAULT
>
> I hope you are suffering from the STATUS ON phenomena.
>
> -Jukka Rahkonen-
>
>
>
> > -----Alkuper?inen viesti-----
> > L?hett?j?: mapserver-users-bounces at lists.osgeo.org
> > [mailto:mapserver-users-bounces at lists.osgeo.org]
> Puolesta
> > kreshna_iceheart at yahoo.com
> > L?hetetty: 6. kes?kuuta 2008 10:33
> > Vastaanottaja: mapserver-users at lists.osgeo.org
> > Aihe: [mapserver-users] Cannot display raster:
> MapServer
> > shows whiterectangle instead of the raster.
> >
> > Is it coordinate problem or gdal problem? Please help.
> Please
> > please help. :(
> >
> > I am using Map Server for windows (ms4w) with
> MapServer
> > version 4.6.1. I created a simple mapfile to display a
> TIFF
> > raster image named industri.tif. The TIFF raster image
> has
> > separated world file named industri.tfw.
> >
> > The contents of the industri.ftw is as follows:
> > 1.000
> > 0.000
> > 0.000
> > -1.000
> > 679316.007
> > 9318670.876
> >
> > Meanwhile, the extent of the mapfile is as follows:
> > EXTENT 679326.0 9317932.0 680607.0 9318665.0
> >
> > By comparing the two sets of coordinates above (.tfw
> contents
> > and EXTENT value), I think the raster should display
> > properly, shouldn't it?
> >
> >
> > Also, below is my raster layer definition. There is
> nothing
> > wrong with it, isn't there?
> > LAYER
> > NAME Industri
> > TYPE RASTER
> > STATUS ON
> > DATA
> "C:\mapfiles\shp\RASTER\industri.tif"
> # contoh,
> > pakai file world
> > CLASS
> > NAME 'Industri'
> > END
> > END
> >
> >
> > Alas, when I open the map with my browser, the raster
> does
> > not show. Instead, the page only show a white
> rectangle
> > (blank rectangle?). Browsing in map mode
> (&mode=map) does not
> > help either. In fact, browsing in map mode shows a big
> empty page.
> >
> > And when I browsed the \temp folder (IMAGEPATH),
> the
> > resulting JPG file is nothing but white rectangle. The
> size,
> > however, is correct (640x400 as specified in the
> mapfile),
> > but it is a white rectangle instead of the raster
> image.
> >
> > The temporary JPG file is attached
> (Industri12128218881248.jpg).
> >
> > I suspect it is a gdal problem, but my ms4w does
> support
> > gdal, as shown below:
> > C:\ms4w\Apache\cgi-bin>mapserv.exe -v
> > MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG
> OUTPUT=JPEG
> > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG
> SUPPORTS=PROJ
> > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO
> RTS=WMS_CLIENT
> > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER
> > INPUT =JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> > INPUT=SHAPEFILE DEBUG=MSDEBUG
> >
> > I also have the following *.dll files in
> > C:\ms4w\Apache\cgi-bin\ folder:
> > gdal12.dll
> > NCScnet.dll
> > NCSEcw.dll
> > NCSUtil.dll
> > xerces-c_1_6_0.dll
> >
> > So I think all the necessary *.dlls are complete.
> >
> > I have tried copying the *.dll above to
> C:\WINDOWS\System32\,
> > but to no avail. MapServer still displays white
> rectangle
> > instead of the raster image.
> >
> > I have opened the TIFF raster image using Photoshop as
> well,
> > and yes, it is a correct raster image, not white
> rectangle.
> > But still, MapServer displays nothing but white
> rectangle.
> >
> > What should I do? What's wrong? MapServer 4.6.1 is
> capable to
> > display raster image, isn't it? I really need to
> display the
> > raster image, what should I do? Please please help. :(
> >
> > Thanks & S.O.S,
> > -Kresh
> >
> > PS: the mapfile and html template is attached
> >
> >
> >
> >
> >
From rainer.spittel at terralink.co.nz Sun Jun 8 21:32:28 2008
From: rainer.spittel at terralink.co.nz (Rainer Spittel)
Date: Mon, 9 Jun 2008 16:32:28 +1200
Subject: [mapserver-users] Unknown identifier: LABELSIZEITEM
Message-ID: <12B8F225666F99489CEFA8B3F261540C0223F0E9@geneva.local.terralink>
Hi guys,
I am using Mapserver 5.0.2 and 5.0.3 and wanted to test LIBELSIZEITEM
for my annotation layers. The mapfile can not be loaded with that
attribute, I get following error:
loadLayer(): Unknown identifier. Parsing error near
(LABELSIZEITEM):(line 699)
The Layer definition is like this:
LAYER
NAME "annotation_layer_forced"
GROUP "annotation_layer_forced"
STATUS OFF
CONNECTIONTYPE POSTGIS
CONNECTION "..."
DATA "the_geom from (select label_priority, gid, the_geom, anno from
parcel) as foo USING UNIQUE gid USING srid=27200"
TYPE ANNOTATION
PROJECTION
"init=epsg:27200"
"resize4Print" "true"
END
LABELITEM "anno"
LABELCACHE ON
LABELSIZEITEM [label_priority]
MAXSCALE 32000
CLASS
LABEL
PRIORITY [label_priority]
TYPE TRUETYPE
FONT "META"
COLOR 0 0 0
WRAP '#'
FORCE FALSE
END
END
END
Any idea what I do wrong??? ;-)
Thx,
Rainer
From gregor at hostgis.com Sun Jun 8 22:02:50 2008
From: gregor at hostgis.com (Gregor Mosheh)
Date: Sun, 08 Jun 2008 23:02:50 -0600
Subject: [mapserver-users] Unknown identifier: LABELSIZEITEM
In-Reply-To: <12B8F225666F99489CEFA8B3F261540C0223F0E9@geneva.local.terralink>
References: <12B8F225666F99489CEFA8B3F261540C0223F0E9@geneva.local.terralink>
Message-ID: <484CB97A.2030606@hostgis.com>
Rainer Spittel wrote:
> loadLayer(): Unknown identifier. Parsing error near
> (LABELSIZEITEM):(line 699)
Yep, as of MS 5 they now use "binding" and have omitted the old "item"
keywords. Try this:
LABEL
SIZE [label_priority]
END
--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/
"Remember that no one cares if you can back up,
only if you can restore." - AMANDA
From group.ritesh at gmail.com Mon Jun 9 02:00:05 2008
From: group.ritesh at gmail.com (Ritesh Ambastha)
Date: Mon, 9 Jun 2008 02:00:05 -0700 (PDT)
Subject: [MAPSERVER-USERS] Direction on road using ARROW Image
In-Reply-To: <17688884.post@talk.nabble.com>
References: <17688884.post@talk.nabble.com>
Message-ID: <17728881.post@talk.nabble.com>
Please write your Layer definition and symbol definition.
It would be helpful for us to gaze the problem.
Arrow directions is easy to implement. I guess you might be missing a minor
part.
Regards,
Ritesh Ambastha
Ila wrote:
>
> Hello readers,
>
> As I am working on GIS application & new to it, so please forgive me
> for my noob questions. I want to show the direction on oneway road using
> any arrow image, not through using arrow character. I have successfully
> implemented the road direction using ARROW Character, but I want to
> implement the same using ARROW image in my application. So, is there any
> way to implement it? Please provide me some example for my better
> understanding. I would be very thankful for your suggestions/thoughts.
>
--
View this message in context: http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp17688884p17728881.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From ila.engg at gmail.com Mon Jun 9 02:39:42 2008
From: ila.engg at gmail.com (Ila)
Date: Mon, 9 Jun 2008 02:39:42 -0700 (PDT)
Subject: [MAPSERVER-USERS] Direction on road using ARROW Image
In-Reply-To: <17728881.post@talk.nabble.com>
References: <17688884.post@talk.nabble.com> <17728881.post@talk.nabble.com>
Message-ID: <17729411.post@talk.nabble.com>
I am getting symbol on the road, but its not coming as it was in image.gif
file. The symbol get displayed in rectangular form. I am not getting where
theres a problem. Please help me out.
My symbol definition is as follows:
SYMBOL
NAME "newarrow"
TYPE PIXMAP
IMAGE "105.gif"
GAP -70
END
And Layer is as:
LAYER
NAME "road"
CONNECTIONTYPE db
CONNECTION "username/password"
DATA "GEOM FROM road"
CLASSITEM "ONEWAY"
LABELITEM "STREETNAME"
TYPE Line
STATUS ON
CLASS
NAME "MAJOR-ROADS"
MAXSCALE 260000
MINSCALE 0
EXPRESSION ([ONEWAY] = 1)
style
SYMBOL "newarrow"
SIZE 8
COLOR 119 136 153
ANTIALIAS true
end
END
END # Layer
Ritesh Ambastha wrote:
>
> Please write your Layer definition and symbol definition.
> It would be helpful for us to gaze the problem.
>
> Arrow directions is easy to implement. I guess you might be missing a
> minor part.
>
> Regards,
> Ritesh Ambastha
>
>
> Ila wrote:
>>
>> Hello readers,
>>
>> As I am working on GIS application & new to it, so please forgive me
>> for my noob questions. I want to show the direction on oneway road using
>> any arrow image, not through using arrow character. I have successfully
>> implemented the road direction using ARROW Character, but I want to
>> implement the same using ARROW image in my application. So, is there any
>> way to implement it? Please provide me some example for my better
>> understanding. I would be very thankful for your suggestions/thoughts.
>>
>
>
--
View this message in context: http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp17688884p17729411.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From damarmo at gmail.com Mon Jun 9 03:00:55 2008
From: damarmo at gmail.com (David Martinez Morata)
Date: Mon, 9 Jun 2008 12:00:55 +0200
Subject: [mapserver-users] PROJECTION object
Message-ID: <9771eb540806090300s54862aa6t9a739e1df0635d1b@mail.gmail.com>
Hi!
I'm working in a WMS service, and I would like to know if it is possible to
implement a custom PROJECTION object.
I try to put a ESPG code, and It's OK, but my data have a particular ESRI
projection:
In ESRIWKT Format it's:
PROJCS ["NTF_Lambert_II_?tendu",
GEOGCS["GCS_NTF",
DATUM["D_NTF",
SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",600000.0],
PARAMETER["False_Northing",2200000.0],
PARAMETER["Central_Meridian",2.3372291667],
PARAMETER["Standard_Parallel_1",45.8989188889],
PARAMETER["Standard_Parallel_2",47.6960144444],
PARAMETER["Scale_Factor",1.0],
PARAMETER["Latitude_Of_Origin",46.8],
UNIT["Meter",1.0]]
And the parameter of PRIMEM it's not like EPSG codes.
I read the MS RFC 37: MapServer Spatial Reference Improvements and
Additions,
and I don't know if it is implemented.
All suggestions are Welcomed, only one detail -> "I couldn't change the
layers projection I don't have this possibility "
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From valerio.vianello at yahoo.it Mon Jun 9 04:29:42 2008
From: valerio.vianello at yahoo.it (valerio vianello)
Date: Mon, 9 Jun 2008 11:29:42 +0000 (GMT)
Subject: [mapserver-users] Does Mapserver work with mobile phone browser ??
Message-ID: <689666.90642.qm@web27301.mail.ukl.yahoo.com>
Thank you so much!!!!!
I have used some of your javascript and I solved my cross browser problem....
PS I had to do a little change in the capturaposicao(exy)
function :
I used
var e = (document) ? exy : window.event;
in place of
var e = (navn) ? exy : window.event;
because it doesn't work.
--- Ven 6/6/08, Edmar Moretti <edmar.moretti at mma.gov.br> ha scritto:
Da: Edmar Moretti <edmar.moretti at mma.gov.br>
Oggetto: Re: [mapserver-users] Does Mapserver work with mobile phone browser ??
A: valerio.vianello at yahoo.it
Data: Venerd? 6 giugno 2008, 22:44
See an example:
http://mapas.mma.gov.br/i3geo/mobile
valerio vianello escreveu:
Hi,
I'm doing a simple application with mapserver where there is a map file
with three layers and a template file with zoom and query options.
When I use Firefox or Internet Explorer to process the map all work
fine..but if I try to use the browser of my mobile phone (Nokia N95)
there is something wrong.
Looking into the apache access log I saw that wherever I click on the
map the coordinates in the request are always img.x=0 and img.y=0
Any suggestions ?
P.S. I tryed also to connect with my phone to the map of the mapserver
tutorial with the same strange behavior.
Thanks
Valerio
Scopri il
Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Edmar Moretti
CGTI/MMA
?rea de Gest?o de Geotecnologias
Gerente de Projetos
skype: edmar.moretti
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ila.engg at gmail.com Mon Jun 9 04:51:37 2008
From: ila.engg at gmail.com (Ila)
Date: Mon, 9 Jun 2008 04:51:37 -0700 (PDT)
Subject: [MAPSERVER-USERS] Direction on road using ARROW Image
In-Reply-To: <17729411.post@talk.nabble.com>
References: <17688884.post@talk.nabble.com> <17728881.post@talk.nabble.com>
<17729411.post@talk.nabble.com>
Message-ID: <17731257.post@talk.nabble.com>
Finally I got the solution. I have created an arrow(->) on roads properly. I
wont be able to fine CHARACTER CODE of(->) in required FONT SET. But now i
got it. For reference I m giving you the solution if anybody requires it:
I have modified the symbol definition:
SYMBOL
NAME "arrow"
TYPE TRUETYPE
FONT arial
FILLED true
ANTIALIAS true
CHARACTER '→'
GAP -50
END
Ans in layer definition:
LAYER
NAME "major road"
CONNECTIONTYPE db
CONNECTION "usename/password at mapdb"
DATA "GEOM FROM road "
CLASSITEM "ONEWAY"
LABELITEM "STREETNAME"
TYPE Line
STATUS ON
CLASS
NAME "MAJOR-ROADS"
MAXSCALE 260000
MINSCALE 0
EXPRESSION ([ONEWAY] = 1)
style
SYMBOL "arrow"
SIZE 10
COLOR 82 82 82
ANTIALIAS true
end
END
END # Layer
Now this will work fine. Thank you for everyone's guidance & suggestions.
I am getting symbol on the road, but its not coming as it was in image.gif
file. The symbol get displayed in rectangular form. I am not getting where
theres a problem. Please help me out.
My symbol definition is as follows:
SYMBOL
NAME "newarrow"
TYPE PIXMAP
IMAGE "105.gif"
GAP -70
END
And Layer is as:
LAYER
NAME "road"
CONNECTIONTYPE db
CONNECTION "username/password"
DATA "GEOM FROM road"
CLASSITEM "ONEWAY"
LABELITEM "STREETNAME"
TYPE Line
STATUS ON
CLASS
NAME "MAJOR-ROADS"
MAXSCALE 260000
MINSCALE 0
EXPRESSION ([ONEWAY] = 1)
style
SYMBOL "newarrow"
SIZE 8
COLOR 119 136 153
ANTIALIAS true
end
END
END # Layer
Ritesh Ambastha wrote:
>
> Please write your Layer definition and symbol definition.
> It would be helpful for us to gaze the problem.
>
> Arrow directions is easy to implement. I guess you might be missing a
> minor part.
>
> Regards,
> Ritesh Ambastha
>
>
> Ila wrote:
>>
>> Hello readers,
>>
>> As I am working on GIS application & new to it, so please forgive me
>> for my noob questions. I want to show the direction on oneway road using
>> any arrow image, not through using arrow character. I have successfully
>> implemented the road direction using ARROW Character, but I want to
>> implement the same using ARROW image in my application. So, is there any
>> way to implement it? Please provide me some example for my better
>> understanding. I would be very thankful for your suggestions/thoughts.
>>
>
>
--
View this message in context: http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp17688884p17731257.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From ila.engg at gmail.com Mon Jun 9 04:58:32 2008
From: ila.engg at gmail.com (Ila)
Date: Mon, 9 Jun 2008 04:58:32 -0700 (PDT)
Subject: [MAPSERVER-USERS] Direction on road using ARROW Image
In-Reply-To: <17729411.post@talk.nabble.com>
References: <17688884.post@talk.nabble.com> <17728881.post@talk.nabble.com>
<17729411.post@talk.nabble.com>
Message-ID: <17731359.post@talk.nabble.com>
Finally I got the solution. I have created an arrow(->) on roads properly. I
wont be able to fine CHARACTER CODE of(->) in required FONT SET. But now i
got it. For reference I m giving you the solution if anybody requires it:
I have modified the symbol definition:
SYMBOL
NAME "arrow"
TYPE TRUETYPE
FONT arial
FILLED true
ANTIALIAS true
CHARACTER '?'
GAP -50
END
Ans in layer definition:
LAYER
NAME "major road"
CONNECTIONTYPE db
CONNECTION "usename/password"
DATA "GEOM FROM road "
CLASSITEM "ONEWAY"
LABELITEM "STREETNAME"
TYPE Line
STATUS ON
CLASS
NAME "MAJOR-ROADS"
MAXSCALE 260000
MINSCALE 0
EXPRESSION ([ONEWAY] = 1)
style
SYMBOL "arrow"
SIZE 10
COLOR 82 82 82
ANTIALIAS true
end
END
END # Layer
Now this will work fine. Thank you for everyone's guidance & suggestions.
Ila wrote:
>
> I am getting symbol on the road, but its not coming as it was in image.gif
> file. The symbol get displayed in rectangular form. I am not getting where
> theres a problem. Please help me out.
> My symbol definition is as follows:
>
> SYMBOL
> NAME "newarrow"
> TYPE PIXMAP
> IMAGE "105.gif"
> GAP -70
> END
>
> And Layer is as:
>
> LAYER
>
> NAME "road"
> CONNECTIONTYPE db
> CONNECTION "username/password"
> DATA "GEOM FROM road"
> CLASSITEM "ONEWAY"
> LABELITEM "STREETNAME"
> TYPE Line
> STATUS ON
>
> CLASS
> NAME "MAJOR-ROADS"
> MAXSCALE 260000
> MINSCALE 0
> EXPRESSION ([ONEWAY] = 1)
>
> style
> SYMBOL "newarrow"
> SIZE 8
> COLOR 119 136 153
> ANTIALIAS true
> end
> END
> END # Layer
>
>
> Ritesh Ambastha wrote:
>>
>> Please write your Layer definition and symbol definition.
>> It would be helpful for us to gaze the problem.
>>
>> Arrow directions is easy to implement. I guess you might be missing a
>> minor part.
>>
>> Regards,
>> Ritesh Ambastha
>>
>>
>> Ila wrote:
>>>
>>> Hello readers,
>>>
>>> As I am working on GIS application & new to it, so please forgive
>>> me for my noob questions. I want to show the direction on oneway road
>>> using any arrow image, not through using arrow character. I have
>>> successfully implemented the road direction using ARROW Character, but I
>>> want to implement the same using ARROW image in my application. So, is
>>> there any way to implement it? Please provide me some example for my
>>> better understanding. I would be very thankful for your
>>> suggestions/thoughts.
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp17688884p17731359.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From matthew.pettis at gmail.com Mon Jun 9 07:39:10 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Mon, 9 Jun 2008 09:39:10 -0500
Subject: [mapserver-users] mapserver wms: srs problem
In-Reply-To:
References: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com>
Message-ID: <82ba77b80806090739n75f9e4e5nbad4823dc9989ec8@mail.gmail.com>
Thank you! I will try this, and the explanation was helpful.
On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben wrote:
> It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other
> words, the data in your shapefile, database or raster image are (or are
> advertised to be) in 4326. Its because your data is indeed in that srs
> and/or advertised as such in the Mapfile LAYER as
>
> PROJECTION
> "init=epsg:4326"
> END
>
> But you tell the WMS interface that the layer is in 26915, by setting layer
> metadata srs => EPSG:26915
>
> If you want MS to reproject your data from 4326 to 26915 upon request, make
> sure you set the layerdata projection:
> PROJECTION
> "init=epsg:4326"
> END
>
> Then make sure you tell the WMS interface to advertise it can be reprojected
> to 26915 by setting it in web metadata srs:
> "wms_srs" "EPSG:4326 EPSG:26915 EPSG:[others you want to offer]"
>
> AFAIK there no wms_srs metadata in the LAYER object...
>
>
> --
> Barend K?bben
> International Institute for Geo-Information
> Sciences and Earth Observation (ITC)
> PO Box 6
> 7500AA Enschede, The Netherlands
> +31 (0)53 4874253
>
>
>
>
>
> On 08-06-08 02:21, "Matthew Pettis" wrote:
>
>> Hi,
>>
>> I am not a GIS guy, and am a bit confused by the projection attributes
>> i have to specify in mapserver. In particular, I have a simple
>> example. I have a map that has the following metadata:
>>
>> Horizontal Coordinate Scheme UTM
>> Ellipsoid GRS80
>> Horizontal Datum NAD83
>> Horizontal Units Meters
>> UTM Zone Number 15
>>
>> I believe this translates to an epsg=26915
>>
>> Now, according to mapserver, I have to specify a projection object, a
>> web metadata srs, and a layer metadata srs.
>>
>> To compress the mapfile, i'll just note what i have specified for each
>> of these settings.
>>
>> First, I would think that this would work:
>>
>> projection => init=epsg:26915
>> web metadata srs => EPSG:26915
>> layer metadata srs => EPSG:26915
>>
>> this give me the error:
>> msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS
>> must be valid for all requested layers.
>>
>> I only have the one layer (it's of the state of MN from www.gis.leg.mn).
>>
>> However, the following renders, but I don't think it is the projection
>> i want (as the top of MN is too wide):
>>
>> projection => init=epsg:26915
>> web metadata srs => EPSG:26915
>> layer metadata srs => EPSG:4326
>>
>> Now, I am using mapserver as a WMS. Before I was using it NOT as a
>> WMS, but just making it render the shapefile without any projection
>> information, it worked, and it was the projection I had come to expect
>> when seeing the state of MN rendered.
>>
>> Why does my first configuration give me an error?
>> How can I make it render in the way I expect without giving mapserver
>> explicit projection instructions?
>>
>> please forgive the ignorance of map projection knowledge.
>>
>> thanks,
>> matt
>
> International Institute for Geo-Information Science and Earth Observation (ITC)
> Chamber of Commerce: 410 27 560
>
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
>
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
From rwburgholzer at deq.virginia.gov Mon Jun 9 07:50:26 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Mon, 9 Jun 2008 10:50:26 -0400
Subject: [mapserver-users] OGR doesn't grok GML3?
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DC4@deqex01.deq.local>
This is a re-post, perhaps my title wasn't concise enough to grab
attention. This is related to pulling WFS-base National Hydrography
Dataset.
Is it true that ogr2ogr only understands the GML2? If so, any ideas on
the difficulty of amending this situation?
More information from the maintainer of the WFS service. If what they
say is correct, ogr2ogr doesn't grok GML3? See below if interested:
#############################################
## Begin Correspondence with NHD WFS Contact #
#############################################
For the framework data our server raises an exception if the output
format is not GML3 because the framework schemas:
http://frameworkwfs.usgs.gov/framework/schemas/gmlsf1/
are only defined for GML3. So, if you request GML2 output, the server
raises an exception since it cannot validate GML2 input or output
because the GML2 schemas do not exist.
> I have made progress enough to load point layers, such as , however,
> when trying to load some of the polygon layers, such as, , I get the
> following error:
>
> OGR error. Missing outerBoundary Is property on Polygon.
You may have trouble accessing the framework data (which is only
available in GML3) with OGR because OGR can only handles GML2 (at least
that is my understanding).
The error you indicate kinda bears out my understanding ...
is an element defined in GML2 but deprecated in
GML3. The corresponding GML3 element is which is what
our server generates when the requested output format is GML3.
>
> BTW - what is the status of this product?
The CubeWerx WFS is part of CubeSERV which is a production product.
Are you using ogr2ogr to try and convert the output to something else?
If so, let me know which output format you are trying to convert the
data to and I may be able to come up with another way to get that
format. Or at least tweak our server to allow you to use ogr.
#############################################
## End Correspondence with NHD WFS Contact ##
#############################################
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
Burgholzer,Robert
Sent: Friday, June 06, 2008 12:58 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] troubleshooting WFS LINE output
I am retrieving some WFS layers, and having a bit of trouble with a LINE
layer (not to mention a bit more trouble with a POLYGON layer, but that
will hold for now). The data set that I am working with has much
promise if I can get it to work, it is the National Hydrography Database
or NHD.
The GML file is retrieved, it appears to be in coordinates that are
within my extent, and the map loads just fine, except it does not show
any LINE. I am able to load a point from this source, no worries, but
the LINE has thus far eluded me. I will attach my line block from my
mapfile, in case I have made a real rookie mistake here, but any insight
into how to troubleshoot otherwise would be welcome (I have debugging
turned on, and am receiving no errors related to the line).
LAYER
NAME nhd_wfs
TYPE LINE
#TYPE POINT
STATUS ON
DEBUG ON
CONNECTIONTYPE WFS
CONNECTION
"http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?OutputFormat=GML3L1&
srsName=EPSG:4326"
METADATA
#"wfs_typename" "HydroElementWBMD"
#"wfs_typename" "HydroElementPTMD"
"wfs_typename" "HydroElementLIHI"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "240"
END
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "None"
STYLE
#SYMBOL 'circle'
#SIZE 7
COLOR 42 151 220
#BACKGROUNDCOLOR 42 151 220
#OUTLINECOLOR 42 151 220
END
END
END # Layer
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT376310.txt
URL:
From maurerj at nsidc.org Mon Jun 9 08:20:10 2008
From: maurerj at nsidc.org (John Maurer)
Date: Mon, 09 Jun 2008 16:20:10 +0100
Subject: [mapserver-users] Dynamically changing processing directive using
CGI parameter?
Message-ID: <484D4A2A.2010504@nsidc.org>
Hi,
I'm using MapServer 4.99 and trying to modify the processing directive
for a raster layer dynamically using a CGI parameter. I want to let the
user modify the min and max values used to scale the image. I've tried
lots of different syntaxes for this without any success. Anybody know
the trick? I've tried the following:
&map_layername_processing="scale=15000,17000"
&map_layername_processing="scale%3D15000%2C17000"
&map_layername_processing=scale%3D15000%2C17000
&map_layername_processing_0=/all of the above.../
&map_layername_processing_scale=15000,17000
&map_layername_processing_scale=15000%2C17000
&map_layername_processing_scale=15000+17000
&map_layername_processing_0_scale=/all of the above.../
Is this something that's not possible to modify dynamically? Thanks for
any help!
Best Regards,
John Maurer
--
John Maurer
Web/Database Applications Engineer
National Snow and Ice Data Center (NSIDC)
University of Colorado at Boulder
http://cires.colorado.edu/~maurerj
------------------------------------
"Without geography, you're nowhere!"
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From warmerdam at pobox.com Mon Jun 9 09:16:51 2008
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Mon, 09 Jun 2008 12:16:51 -0400
Subject: [mapserver-users] OGR doesn't grok GML3?
In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13DC4@deqex01.deq.local>
References: <6C097DA58429B743A67070F98BE73A3702B13DC4@deqex01.deq.local>
Message-ID: <484D5773.60100@pobox.com>
Burgholzer,Robert wrote:
> This is a re-post, perhaps my title wasn?t concise enough to grab
> attention. This is related to pulling WFS-base National Hydrography
> Dataset.
>
> Is it true that ogr2ogr only understands the GML2? If so, any ideas on
> the difficulty of amending this situation?
>
>
>
> More information from the maintainer of the WFS service. If what they
> say is correct, ogr2ogr doesn?t grok GML3? See below if interested:
Robert,
That is correct. OGR's GML reader is aimed at GML2.
I have done some experimental work on a reader for NAS format, a german
GML3 profile, and found I had to do quite a bit of work. At some point
I expect that to roll into GDAL and I'll try to back port some of the
work into the generic GML reader.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
From rwburgholzer at deq.virginia.gov Mon Jun 9 09:49:11 2008
From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert)
Date: Mon, 9 Jun 2008 12:49:11 -0400
Subject: [mapserver-users] OGR doesn't grok GML3?
Message-ID: <6C097DA58429B743A67070F98BE73A3702B13DC5@deqex01.deq.local>
Frank,
Where would I start to look (i.e., which package) if I were wishing to
help along on the development of this?
Thanks!
r.b.
Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
rwburgholzer at deq.virginia.gov
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/
-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com]
Sent: Monday, June 09, 2008 12:17 PM
To: Burgholzer,Robert
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] OGR doesn't grok GML3?
Burgholzer,Robert wrote:
> This is a re-post, perhaps my title wasn't concise enough to grab
> attention. This is related to pulling WFS-base National Hydrography
> Dataset.
>
> Is it true that ogr2ogr only understands the GML2? If so, any ideas on
> the difficulty of amending this situation?
>
>
>
> More information from the maintainer of the WFS service. If what they
> say is correct, ogr2ogr doesn't grok GML3? See below if interested:
Robert,
That is correct. OGR's GML reader is aimed at GML2.
I have done some experimental work on a reader for NAS format, a german
GML3 profile, and found I had to do quite a bit of work. At some point
I expect that to roll into GDAL and I'll try to back port some of the
work into the generic GML reader.
Best regards,
--
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo,
http://osgeo.org
From warmerdam at pobox.com Mon Jun 9 10:42:46 2008
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Mon, 09 Jun 2008 13:42:46 -0400
Subject: [mapserver-users] OGR doesn't grok GML3?
In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13DC5@deqex01.deq.local>
References: <6C097DA58429B743A67070F98BE73A3702B13DC5@deqex01.deq.local>
Message-ID: <484D6B96.9030504@pobox.com>
Burgholzer,Robert wrote:
> Frank,
> Where would I start to look (i.e., which package) if I were wishing to
> help along on the development of this?
Robert,
The bulk of my work on GML3 support for the NAS driver was implementing
alternate GML geometry reading. Possibly as an extension in the
gdal/ogr/gml2ogrgeometry.cpp file.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
From simon.mercier at msp.gouv.qc.ca Mon Jun 9 12:21:06 2008
From: simon.mercier at msp.gouv.qc.ca (SIMON MERCIER)
Date: Mon, 09 Jun 2008 15:21:06 -0400
Subject: =?Windows-1252?Q?R=E9p.=20:=20[mapserver-users]=20GetFeatureInfo?=
=?Windows-1252?Q?=20from=20Oracle=20Spatial?=
In-Reply-To: <20080607224919.GB14026@42.dk>
References: <20080607224919.GB14026@42.dk>
Message-ID: <484D4A62020000E90005AC02@mail.msp.gouv.qc.ca>
maybe you can try to limite the output field in the metadata
"$$$_include_items" "$$$_exclude_items" tag :
...
DATA "SHAPE FROM MAPSERVER_TRIMQ USING UNIQUE MAXIMO_ID SRID 32632
VERSION 10g"
...
METADATA
...
"wms_exclude_items" "ALL"
"wms_include_items" "MAXIMO_ID, ASSETTYPE"
"oms_exclude_items" "ALL"
"ows_include_items" "MAXIMO_ID, ASSETTYPE"
"gms_exclude_items" "ALL"
"gml_include_items" "MAXIMO_ID, ASSETTYPE"
END
...
>>> Kristian Thy 7/6/2008 18:49 >>>
Hi list
I've made a small openlayers viewer that shows a data layer from a
materialized view in Oracle Spatial. When clicking on the map, I do a
simple GetFeatureInfo which works when I test it with a
shapefile-based
layer, but when I move to the Oracle layer, I get an error message
saying that no features were found with MAXIMO_ID = 0 (something to
that
effect, anyways). Unfortunately this is an internal GIS app, so I
can't
demo it.
The relevant layer definition in my map file:
------------------------------------------------------------------------
LAYER
NAME 'TRIM-Q'
TYPE POINT
CONNECTIONTYPE oraclespatial
CONNECTION "******@******"
DATA "SHAPE FROM (SELECT MAXIMO_ID, ASSETTYPE, SHAPE FROM
MAPSERVER_TRIMQ) USING UNIQUE MAXIMO_ID SRID 32632 VERSION 10g"
TEMPLATE "trim.html"
HEADER "trim_header.html"
FOOTER "trim_footer.html"
TOLERANCE 20
DUMP true
METADATA
"wms_title" "TRIM-Q"
"wms_srs" "EPSG:32632"
"wms_include_items" "ALL"
"ows_include_items" "ALL"
"gml_include_items" "ALL"
END #metadata
CLASS
NAME 'vejskab'
EXPRESSION ('[ASSETTYPE]' = 'VEJSKAB')
STYLE
SYMBOL 'square'
OFFSET -4 -2
END #STYLE
LABEL
type truetype
antialias true
font arial_black
size 8
position ll
color 0 0 0
outlinecolor 255 255 255
buffer 2
partials false
END #label
TEXT ([MAXIMO_ID])
END #class
CLASS
#NAME faerdselstavle
EXPRESSION ('[ASSETTYPE]' = 'TAVLE')
STYLE
SYMBOL 'triangle'
OFFSET -10 2
END #STYLE
LABEL
FORCE true
type truetype
antialias true
font arial_black
size 8
position lc
color 0 0 0
outlinecolor 255 255 255
buffer 0
partials false
end #label
TEXT ([MAXIMO_ID])
END #class
CLASS
#NAME 'other values'
STYLE
SYMBOL 'circle'
SIZE 2
COLOR 100 0 0
END #STYLE
LABEL
type truetype
antialias true
font arial_black
size 8
position uc
color 0 0 0
outlinecolor 255 255 255
buffer 2
partials false
end #label
TEXT ([MAXIMO_ID])
END #class
SIZEUNITS PIXELS
STATUS ON
UNITS meters
MAXSCALE 60000
LABELMAXSCALE 60000
END #layer
------------------------------------------------------------------------
The OpenLayers code I use for calling GetFeatureInfo:
------------------------------------------------------------------------
map.events.register('click', map, function (e)
{
var url = trimq.getFullRequestString({
REQUEST: 'GetFeatureInfo',
EXCEPTIONS: 'application/vnd.ogc.se_xml',
BBOX: trimq.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/plain',
QUERY_LAYERS: 'TRIM-Q',
RADIUS: 5,
WIDTH: trimq.map.size.w,
HEIGHT: trimq.map.size.h});
document.getElementById('map').style.cursor = 'wait';
OpenLayers.loadURL(url, '', this, handleResponse);
Event.stop(e);
});
function handleResponse(response)
{
document.getElementById('map').style.cursor = 'auto';
alert(response.responseText);
}
------------------------------------------------------------------------
As mentioned, this works if I query a shapefile-based layer, so I
assume
the javascript is ok. Any ideas what my problem is?
\\kristian
--
... et nemo ex vobis interrogat me: ?Quo vadis??
_______________________________________________
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 paulborodaev at gmail.com Mon Jun 9 12:26:52 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Mon, 9 Jun 2008 12:26:52 -0700 (PDT)
Subject: [MAPSERVER-USERS] mapObject serialization in C# (variant)
Message-ID: <17739919.post@talk.nabble.com>
Is there any 'standart' fast(!) way/method to serialize (xml/json/other
markup) mapObj in C#? I need it for using server mapObj as JSON on rich
client app running on browser. Look at my method (using reflection):
public static ListDictionary PartialSerialize(object instance, Stack
callerTypes, Type[] excludeTypes)
{
ListDictionary result = new ListDictionary();
object val;
callerTypes.Push(instance.GetType());
PropertyInfo[] pis = instance.GetType().GetProperties();
foreach (PropertyInfo pi in pis)
{
if (pi.PropertyType.IsSerializable &&
!pi.PropertyType.IsArray)
result[pi.Name] = pi.GetValue(instance, new object[0]);
else
{
//preventing useless nesting
if (!callerTypes.Contains(pi.PropertyType) &&
!((IList)excludeTypes).Contains(pi.PropertyType))
{
val = pi.GetValue(instance, new object[0]);
if (val != null)
result[pi.Name] = PartialSerialize(val,
callerTypes, excludeTypes);
}
}
}
callerTypes.Pop();
return result;
}
...
So I can convert mapObj on serever to hashtable automatically an then
populate JSON object
(still need to call explicitly getLayer, getClass etc., but this is not a
problem):
...
layers[i].Properties = Tools.PartialSerialize(layer, new Stack(), new
Type[3] { typeof(mapObj), typeof(hashTableObj), typeof(colorObj)});
...
classes[j].Properties = Tools.PartialSerialize(layerClass, new Stack(), new
Type[4] { typeof(layerObj), typeof(labelObj), typeof(hashTableObj),
typeof(colorObj)});
...
styles[k].Properties = Tools.PartialSerialize(classStyle, new Stack(), new
Type[2]{typeof(hashTableObj), typeof(colorObj)});
...
mapStub.Properties = Tools.PartialSerialize(map, new Stack(), new Type[11] {
typeof(labelObj), typeof(hashTableObj), typeof(fontSetObj),
typeof(labelCacheObj), typeof(outputFormatObj[]), typeof(queryMapObj),
typeof(referenceMapObj), typeof(scalebarObj), typeof(symbolSetObj),
typeof(colorObj), typeof(legendObj)});
...
JavaScriptSerializer class object allows to perform convertion to client
More often I use script method in my web service that can do it behind the
scenes.
How do you do such kind of operation?
--
View this message in context: http://www.nabble.com/mapObject-serialization-in-C--%28variant%29-tp17739919p17739919.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From stewart.nimmo at virtually-here.com Mon Jun 9 13:36:50 2008
From: stewart.nimmo at virtually-here.com (Stewart Nimmo)
Date: Mon, 9 Jun 2008 13:36:50 -0700
Subject: [mapserver-users] Mapserver wml template
Message-ID:
I have seen several references to persons using wml templates, but is it
possible for a WAP browser to receive a wml file from Mapserv ?
I've been able to display the wml template results in IE but that's because
Mapserv is returning the result as html. I suspect to get a WAP browser to
display a Mapserv generated wml file, I need to change the "content-type" to
something like "Content-type: text/vnd.wap.wml" , but I am not sure how or
if Mapserver accept it and generate a wml page/deck?
Any comments are appreciated.
Regards
sfn
Stewart Nimmo
Virtually Here Technologies Inc.
604-922-7896 off
604-551-6564 mob
stewart.nimmo at virtually-here.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From matthew.pettis at gmail.com Mon Jun 9 13:44:39 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Mon, 9 Jun 2008 15:44:39 -0500
Subject: [mapserver-users] mapserver wms: srs problem
In-Reply-To:
References: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com>
Message-ID: <82ba77b80806091344o648349e5h928e6f617f8ce6ae@mail.gmail.com>
Hi Barend, All,
I tried your suggested changes:
====================================================
...
PROJECTION
"init=epsg:4326"
END
####################
# Web settings
####################
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?center=45,-95&zoom=6"
"wms_srs" "EPSG:4326 EPSG:26915"
END
END
####################
# State
# Background shows through missing precincts to show where no
votes will be coming from
####################
LAYER
NAME "state"
METADATA
"wms_title" "state"
"wms_format" "image/png"
END
...
====================================================
Now, the map is blank (no error messages either). It looks like i can
drag and zoom per the controls, but there is no image of the state of
MN to move around. Any idea what could still be the matter?
Thanks,
Matt
On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben wrote:
> It looks like your datastore's SRS is 4326 (latlon on the WGS84). In other
> words, the data in your shapefile, database or raster image are (or are
> advertised to be) in 4326. Its because your data is indeed in that srs
> and/or advertised as such in the Mapfile LAYER as
>
> PROJECTION
> "init=epsg:4326"
> END
>
> But you tell the WMS interface that the layer is in 26915, by setting layer
> metadata srs => EPSG:26915
>
> If you want MS to reproject your data from 4326 to 26915 upon request, make
> sure you set the layerdata projection:
> PROJECTION
> "init=epsg:4326"
> END
>
> Then make sure you tell the WMS interface to advertise it can be reprojected
> to 26915 by setting it in web metadata srs:
> "wms_srs" "EPSG:4326 EPSG:26915 EPSG:[others you want to offer]"
>
> AFAIK there no wms_srs metadata in the LAYER object...
>
>
> --
> Barend K?bben
> International Institute for Geo-Information
> Sciences and Earth Observation (ITC)
> PO Box 6
> 7500AA Enschede, The Netherlands
> +31 (0)53 4874253
>
>
>
>
>
> On 08-06-08 02:21, "Matthew Pettis" wrote:
>
>> Hi,
>>
>> I am not a GIS guy, and am a bit confused by the projection attributes
>> i have to specify in mapserver. In particular, I have a simple
>> example. I have a map that has the following metadata:
>>
>> Horizontal Coordinate Scheme UTM
>> Ellipsoid GRS80
>> Horizontal Datum NAD83
>> Horizontal Units Meters
>> UTM Zone Number 15
>>
>> I believe this translates to an epsg=26915
>>
>> Now, according to mapserver, I have to specify a projection object, a
>> web metadata srs, and a layer metadata srs.
>>
>> To compress the mapfile, i'll just note what i have specified for each
>> of these settings.
>>
>> First, I would think that this would work:
>>
>> projection => init=epsg:26915
>> web metadata srs => EPSG:26915
>> layer metadata srs => EPSG:26915
>>
>> this give me the error:
>> msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS
>> must be valid for all requested layers.
>>
>> I only have the one layer (it's of the state of MN from www.gis.leg.mn).
>>
>> However, the following renders, but I don't think it is the projection
>> i want (as the top of MN is too wide):
>>
>> projection => init=epsg:26915
>> web metadata srs => EPSG:26915
>> layer metadata srs => EPSG:4326
>>
>> Now, I am using mapserver as a WMS. Before I was using it NOT as a
>> WMS, but just making it render the shapefile without any projection
>> information, it worked, and it was the projection I had come to expect
>> when seeing the state of MN rendered.
>>
>> Why does my first configuration give me an error?
>> How can I make it render in the way I expect without giving mapserver
>> explicit projection instructions?
>>
>> please forgive the ignorance of map projection knowledge.
>>
>> thanks,
>> matt
>
> International Institute for Geo-Information Science and Earth Observation (ITC)
> Chamber of Commerce: 410 27 560
>
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
>
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
From Steve.Lime at dnr.state.mn.us Mon Jun 9 15:14:05 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Mon, 09 Jun 2008 17:14:05 -0500
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithmimperfection
In-Reply-To: <17708955.post@talk.nabble.com>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
<17700473.post@talk.nabble.com> <4849601F.5157.008F.0@dnr.state.mn.us>
<17708955.post@talk.nabble.com>
Message-ID: <484D64DD.5157.008F.0@dnr.state.mn.us>
I choose my sample image carefully and have mosaic'd a couple of them together to make sure I get most
all colors. For example:
http://maps.dnr.state.mn.us/compass/compass_color_master.gif
Those missing colors will be assigned the closest match if there is no room in the palette. I can't recall if extra
space in the palette is filled or not (it might). My master image allocates 128 colors and the results via tilecache
are terrific.
Steve
>>> On 6/7/2008 at 8:35 AM, in message <17708955.post at talk.nabble.com>, BrainDrain
wrote:
> hmmm, like sample map image with all layers (and most symbols) turned on?
> sounds reasonable
> That would be enough? (not all colors in sample: the nearest colors will be
> used?) Sorry for importunity.
>
> Steve Lime wrote:
>>
>> I've generated palettes by rendering a large 24-bit sample image and then
>> reducing colors using
>> tools like Photoshop, GIMP or ImageMagick. Then I just run gdalinfo output
>> on the reduced color
>> image through a perl script to extract the palette.
>>
>> #!/usr/bin/perl
>>
>> $doit = 0;
>> while(<>) {
>> if($_ =~ /Color Table/) {
>> $doit = 1;
>> next;
>> }
>>
>> if($doit) {
>> ($r,$g,$b,$a) = split /,/, substr($_,7);
>> print "$r,$g,$b\n";
>> }
>> }
>>
>> Works just fine...
>>
>> Steve
>>
>>>>> On 6/6/2008 at 3:24 PM, in message <17700473.post at talk.nabble.com>,
>>>>> BrainDrain
>> wrote:
>>
>>> $? You're kidding)) Anyway, thanks for advise. Will try.
>>> And what about agg rgba mode (bug, invalid color interpretation
>>> (inverting?)
>>> or something like that)? When
>>> this problem will be fixed? I need it, because I want to use map
>>> transparency (only rgba mode) to combine with google map layer in
>>> openlayers
>>> rich client app.
>>>
>>> Stephen Woodbridge wrote:
>>>>
>>>> Hey, that's what they pay you the BIG BUCKS for! :)
>>>>
>>>> Write a perl/bash/{your favorite} script to grab all the COLOR lines
>>>> from you mapfile and reformat the r g b to r,g,b in you palette file.
>>>>
>>>> I have a few hundred symbols in my symbol library, but I only use about
>>>> 10 of them regularly so I made sure the primary colors were also in the
>>>> palette file. I make the script add them so I don't have to think about
>>>> it.
>>>>
>>>> It sounds like a big deal, but it not that bad.
>>>>
>>>> YMMV,
>>>> -Steve W
>>>>
>>>> BrainDrain wrote:
>>>>> Thanks, i already read about preparing palette index file & I see 2
>>>>> obstacles:
>>>>> 1) I need to monitor my map file (big size) to keep relevant my palette
>>>>> file. It is inflexible to extract rgb colors used in pixmap symbols
>>>>> (hundreds, updatable). Can I use html palette for ex. (or any other
>>>>> 'universal' palette) - to make this process not so time-consuming?
>>>>> 2) If I have strict palette, can I be sure that agg renderer will
>>>>> always
>>>>> use
>>>>> the nearest(?) color from my palette?
>>>>>
>>>>> pagameba wrote:
>>>>>> Use:
>>>>>>
>>>>>> OUTPUTFORMAT
>>>>>> OUTPUTFORMAT
>>>>>> NAME "AGG_Q"
>>>>>> DRIVER "AGG/PNG"
>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>> IMAGEMODE RGB
>>>>>> EXTENSION "png"
>>>>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>>>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>>>>> END
>>>>>>
>>>>>> where palette.txt is a text file with RGB tuples in the form:
>>>>>>
>>>>>> RRR,GGG,BBB
>>>>>>
>>>>>> For example:
>>>>>>
>>>>>> 0,0,0
>>>>>> 255,255,255
>>>>>> 127,127,127
>>>>>>
>>>>>> MapServer will use AGG 24 bit rendering but reduce the output file to
>>>>>> 8 bit and reserve the colours in your palette.txt file. This will
>>>>>> give you consistent colours for the ones you care about.
>>>>>> Specifically, you should reserve all the colours that you actually
>>>>>> reference in your map file plus any colours of pixmap symbols. Don't
>>>>>> put in more colours than you actually need to because MapServer needs
>>>>>> to use whatever space is left (255 less your colours) for
>>>>>> antialiasing.
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>>>>
>>>>>>> I use this output format in my map file:
>>>>>>> OUTPUTFORMAT
>>>>>>> NAME "AGG_Q"
>>>>>>> DRIVER "AGG/PNG"
>>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>>> IMAGEMODE RGB
>>>>>>> EXTENSION "png"
>>>>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>>>>> END
>>>>>>> but every time map draw called (or map image requested fom cgi
>>>>>>> mapserv.exe)
>>>>>>> polygons has a little difference in fill color (I think this is
>>>>>>> because
>>>>>>> color palette recalculated slightly different each time). This is
>>>>>>> unacceptable for me. How can i correct this? (maybe some
>>>>>>> FORMATOPTION?)
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>>
> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp1766773
>
>>> 3p17667733.html
>>>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> mapserver-users mailing list
>>>>>>> mapserver-users at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>>
>>>>>> __________________________________________
>>>>>>
>>>>>> Paul Spencer
>>>>>> Chief Technology Officer
>>>>>> DM Solutions Group Inc
>>>>>> http://www.dmsolutions.ca/
>>>>>> _______________________________________________
>>>>>> 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 Steve.Lime at dnr.state.mn.us Mon Jun 9 15:14:36 2008
From: Steve.Lime at dnr.state.mn.us (Steve Lime)
Date: Mon, 09 Jun 2008 17:14:36 -0500
Subject: [mapserver-users] Mapserver wml template
In-Reply-To:
References:
Message-ID: <484D64FC.5157.008F.0@dnr.state.mn.us>
Is this a standard pan/zoom application or are you feeding mapserver query urls? Depending on which
you can use something like:
WEB
BROWSEFORMAT ' text/vnd.wap.wml'
QUERYFORMAT 'text/vnd.wap.wml'
END
Steve
>>> On 6/9/2008 at 3:36 PM, in message
, "Stewart
Nimmo" wrote:
> I have seen several references to persons using wml templates, but is it
> possible for a WAP browser to receive a wml file from Mapserv ?
> I've been able to display the wml template results in IE but that's because
> Mapserv is returning the result as html. I suspect to get a WAP browser to
> display a Mapserv generated wml file, I need to change the "content-type" to
> something like "Content-type: text/vnd.wap.wml" , but I am not sure how or
> if Mapserver accept it and generate a wml page/deck?
>
> Any comments are appreciated.
> Regards
> sfn
>
> Stewart Nimmo
> Virtually Here Technologies Inc.
>
> 604-922-7896 off
> 604-551-6564 mob
> stewart.nimmo at virtually-here.com
From stewart.nimmo at virtually-here.com Mon Jun 9 16:46:29 2008
From: stewart.nimmo at virtually-here.com (Stewart Nimmo)
Date: Mon, 9 Jun 2008 16:46:29 -0700
Subject: [mapserver-users] Mapserver wml template
In-Reply-To: <484D64FC.5157.008F.0@dnr.state.mn.us>
Message-ID:
Steve:
Thanks for the response.
It's a basic pan/zoom application. I tried your suggestion and get an error
of :
"Mapserver Message" loadWeb(): Unknown identifier. Parsing error near
(BROWSEFORMAT):(line 28)
I've tried altering the syntax, but continue to get the same error on the
WAP browser.
Any thoughts?, Have you seen this wml setting used before?
sfn
-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us]
Sent: June 9, 2008 3:15 PM
To: mapserver-users at lists.osgeo.org; stewart.nimmo at virtually-here.com
Subject: Re: [mapserver-users] Mapserver wml template
Is this a standard pan/zoom application or are you feeding mapserver query
urls? Depending on which
you can use something like:
WEB
BROWSEFORMAT ' text/vnd.wap.wml'
QUERYFORMAT 'text/vnd.wap.wml'
END
Steve
>>> On 6/9/2008 at 3:36 PM, in message
, "Stewart
Nimmo" wrote:
> I have seen several references to persons using wml templates, but is it
> possible for a WAP browser to receive a wml file from Mapserv ?
> I've been able to display the wml template results in IE but that's
because
> Mapserv is returning the result as html. I suspect to get a WAP browser to
> display a Mapserv generated wml file, I need to change the "content-type"
to
> something like "Content-type: text/vnd.wap.wml" , but I am not sure how or
> if Mapserver accept it and generate a wml page/deck?
>
> Any comments are appreciated.
> Regards
> sfn
>
> Stewart Nimmo
> Virtually Here Technologies Inc.
>
> 604-922-7896 off
> 604-551-6564 mob
> stewart.nimmo at virtually-here.com
From jmckenna at gatewaygeomatics.com Mon Jun 9 18:19:11 2008
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Mon, 9 Jun 2008 21:19:11 -0400
Subject: [mapserver-users] mapserver wms: srs problem
In-Reply-To: <82ba77b80806091344o648349e5h928e6f617f8ce6ae@mail.gmail.com>
References: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com>
<82ba77b80806091344o648349e5h928e6f617f8ce6ae@mail.gmail.com>
Message-ID: <8307E97E-5DD2-4564-A509-6C1506621047@gatewaygeomatics.com>
Maybe you could attach your entire .map file for the mailing list to
see.
---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
On 9-Jun-08, at 4:44 PM, Matthew Pettis wrote:
> Hi Barend, All,
>
> I tried your suggested changes:
> ====================================================
> ...
> PROJECTION
> "init=epsg:4326"
> END
>
> ####################
> # Web settings
> ####################
> WEB
> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
> IMAGEURL "/tmp/"
> METADATA
> "wms_title" "WMS Demo Server"
> "wms_onlineresource"
> "http://localhost/cgi-bin/mapserv.exe?center=45,-95&zoom=6"
> "wms_srs" "EPSG:4326 EPSG:26915"
> END
> END
>
> ####################
> # State
> # Background shows through missing precincts to show where no
> votes will be coming from
> ####################
> LAYER
> NAME "state"
> METADATA
> "wms_title" "state"
> "wms_format" "image/png"
> END
> ...
> ====================================================
>
> Now, the map is blank (no error messages either). It looks like i can
> drag and zoom per the controls, but there is no image of the state of
> MN to move around. Any idea what could still be the matter?
>
> Thanks,
> Matt
>
>
> On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben wrote:
>> It looks like your datastore's SRS is 4326 (latlon on the WGS84).
>> In other
>> words, the data in your shapefile, database or raster image are (or
>> are
>> advertised to be) in 4326. Its because your data is indeed in that
>> srs
>> and/or advertised as such in the Mapfile LAYER as
>>
>> PROJECTION
>> "init=epsg:4326"
>> END
>>
>> But you tell the WMS interface that the layer is in 26915, by
>> setting layer
>> metadata srs => EPSG:26915
>>
>> If you want MS to reproject your data from 4326 to 26915 upon
>> request, make
>> sure you set the layerdata projection:
>> PROJECTION
>> "init=epsg:4326"
>> END
>>
>> Then make sure you tell the WMS interface to advertise it can be
>> reprojected
>> to 26915 by setting it in web metadata srs:
>> "wms_srs" "EPSG:4326 EPSG:26915 EPSG:[others you want to offer]"
>>
>> AFAIK there no wms_srs metadata in the LAYER object...
>>
>>
>> --
>> Barend K?bben
>> International Institute for Geo-Information
>> Sciences and Earth Observation (ITC)
>> PO Box 6
>> 7500AA Enschede, The Netherlands
>> +31 (0)53 4874253
>>
>>
>>
>>
>>
>> On 08-06-08 02:21, "Matthew Pettis" wrote:
>>
>>> Hi,
>>>
>>> I am not a GIS guy, and am a bit confused by the projection
>>> attributes
>>> i have to specify in mapserver. In particular, I have a simple
>>> example. I have a map that has the following metadata:
>>>
>>> Horizontal Coordinate Scheme UTM
>>> Ellipsoid GRS80
>>> Horizontal Datum NAD83
>>> Horizontal Units Meters
>>> UTM Zone Number 15
>>>
>>> I believe this translates to an epsg=26915
>>>
>>> Now, according to mapserver, I have to specify a projection
>>> object, a
>>> web metadata srs, and a layer metadata srs.
>>>
>>> To compress the mapfile, i'll just note what i have specified for
>>> each
>>> of these settings.
>>>
>>> First, I would think that this would work:
>>>
>>> projection => init=epsg:26915
>>> web metadata srs => EPSG:26915
>>> layer metadata srs => EPSG:26915
>>>
>>> this give me the error:
>>> msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS
>>> must be valid for all requested layers.
>>>
>>> I only have the one layer (it's of the state of MN from www.gis.leg.mn
>>> ).
>>>
>>> However, the following renders, but I don't think it is the
>>> projection
>>> i want (as the top of MN is too wide):
>>>
>>> projection => init=epsg:26915
>>> web metadata srs => EPSG:26915
>>> layer metadata srs => EPSG:4326
>>>
>>> Now, I am using mapserver as a WMS. Before I was using it NOT as a
>>> WMS, but just making it render the shapefile without any projection
>>> information, it worked, and it was the projection I had come to
>>> expect
>>> when seeing the state of MN rendered.
>>>
>>> Why does my first configuration give me an error?
>>> How can I make it render in the way I expect without giving
>>> mapserver
>>> explicit projection instructions?
>>>
>>> please forgive the ignorance of map projection knowledge.
>>>
>>> thanks,
>>> matt
>>
>> International Institute for Geo-Information Science and Earth
>> Observation (ITC)
>> Chamber of Commerce: 410 27 560
>>
>> E-mail disclaimer
>> The information in this e-mail, including any attachments, is
>> intended for the addressee only. If you are not the intended
>> recipient, you are hereby notified that any disclosure, copying,
>> distribution or action in relation to the content of this
>> information is strictly prohibited. If you have received this e-
>> mail by mistake, please delete the message and any attachment and
>> inform the sender by return e-mail. ITC accepts no liability for
>> any error or omission in the message content or for damage of any
>> kind that may arise as a result of e-mail transmission.
>>
>
>
>
> --
> It is from the wellspring of our despair and the places that we are
> broken that we come to repair the world.
> -- Murray Waas
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From matthew.pettis at gmail.com Mon Jun 9 20:14:34 2008
From: matthew.pettis at gmail.com (Matthew Pettis)
Date: Mon, 9 Jun 2008 22:14:34 -0500
Subject: [mapserver-users] mapserver wms: srs problem
In-Reply-To: <8307E97E-5DD2-4564-A509-6C1506621047@gatewaygeomatics.com>
References: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com>
<82ba77b80806091344o648349e5h928e6f617f8ce6ae@mail.gmail.com>
<8307E97E-5DD2-4564-A509-6C1506621047@gatewaygeomatics.com>
Message-ID: <82ba77b80806092014s13d560bfw34626652d1d83b08@mail.gmail.com>
Will do. Here it is below:
===================================================================
MAP
# http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
# http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&mode=map
################
# Map attributes
################
IMAGETYPE PNG
EXTENT 184056.505 4809728.25 767381.245 5478975.75
SIZE 660 495
IMAGECOLOR 255 255 255
FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list"
PROJECTION
"init=epsg:4326"
END
####################
# Web settings
####################
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "WMS Demo Server"
"wms_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?center=45,-95&zoom=6"
# "wms_srs" "EPSG:4269 EPSG:4326"
# "wms_srs" "EPSG:26915"
"wms_srs" "EPSG:4326 EPSG:26915"
END
END
####################
# State
# Background shows through missing precincts to show where no
votes will be coming from
####################
LAYER
NAME "state"
PROJECTION
"init=epsg:4326"
END
METADATA
"wms_title" "state"
# "wms_srs" "EPSG:26915"
# "wms_srs" "EPSG:4326"
"wms_format" "image/png"
END
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=gisvote password=postgres"
DATA "the_geom from shp_state"
STATUS default
TYPE polygon
CLASS
NAME "state"
COLOR 200 200 200
END
END # Layer state
END
===================================================================
On Mon, Jun 9, 2008 at 8:19 PM, Jeff McKenna
wrote:
> Maybe you could attach your entire .map file for the mailing list to see.
>
>
> ---
> Jeff McKenna
> FOSS4G Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
>
>
> On 9-Jun-08, at 4:44 PM, Matthew Pettis wrote:
>
>> Hi Barend, All,
>>
>> I tried your suggested changes:
>> ====================================================
>> ...
>> PROJECTION
>> "init=epsg:4326"
>> END
>>
>> ####################
>> # Web settings
>> ####################
>> WEB
>> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/"
>> IMAGEURL "/tmp/"
>> METADATA
>> "wms_title" "WMS Demo Server"
>> "wms_onlineresource"
>> "http://localhost/cgi-bin/mapserv.exe?center=45,-95&zoom=6"
>> "wms_srs" "EPSG:4326 EPSG:26915"
>> END
>> END
>>
>> ####################
>> # State
>> # Background shows through missing precincts to show where no
>> votes will be coming from
>> ####################
>> LAYER
>> NAME "state"
>> METADATA
>> "wms_title" "state"
>> "wms_format" "image/png"
>> END
>> ...
>> ====================================================
>>
>> Now, the map is blank (no error messages either). It looks like i can
>> drag and zoom per the controls, but there is no image of the state of
>> MN to move around. Any idea what could still be the matter?
>>
>> Thanks,
>> Matt
>>
>>
>> On Sun, Jun 8, 2008 at 1:08 PM, Barend Kobben wrote:
>>>
>>> It looks like your datastore's SRS is 4326 (latlon on the WGS84). In
>>> other
>>> words, the data in your shapefile, database or raster image are (or are
>>> advertised to be) in 4326. Its because your data is indeed in that srs
>>> and/or advertised as such in the Mapfile LAYER as
>>>
>>> PROJECTION
>>> "init=epsg:4326"
>>> END
>>>
>>> But you tell the WMS interface that the layer is in 26915, by setting
>>> layer
>>> metadata srs => EPSG:26915
>>>
>>> If you want MS to reproject your data from 4326 to 26915 upon request,
>>> make
>>> sure you set the layerdata projection:
>>> PROJECTION
>>> "init=epsg:4326"
>>> END
>>>
>>> Then make sure you tell the WMS interface to advertise it can be
>>> reprojected
>>> to 26915 by setting it in web metadata srs:
>>> "wms_srs" "EPSG:4326 EPSG:26915 EPSG:[others you want to offer]"
>>>
>>> AFAIK there no wms_srs metadata in the LAYER object...
>>>
>>>
>>> --
>>> Barend K?bben
>>> International Institute for Geo-Information
>>> Sciences and Earth Observation (ITC)
>>> PO Box 6
>>> 7500AA Enschede, The Netherlands
>>> +31 (0)53 4874253
>>>
>>>
>>>
>>>
>>>
>>> On 08-06-08 02:21, "Matthew Pettis" wrote:
>>>
>>>> Hi,
>>>>
>>>> I am not a GIS guy, and am a bit confused by the projection attributes
>>>> i have to specify in mapserver. In particular, I have a simple
>>>> example. I have a map that has the following metadata:
>>>>
>>>> Horizontal Coordinate Scheme UTM
>>>> Ellipsoid GRS80
>>>> Horizontal Datum NAD83
>>>> Horizontal Units Meters
>>>> UTM Zone Number 15
>>>>
>>>> I believe this translates to an epsg=26915
>>>>
>>>> Now, according to mapserver, I have to specify a projection object, a
>>>> web metadata srs, and a layer metadata srs.
>>>>
>>>> To compress the mapfile, i'll just note what i have specified for each
>>>> of these settings.
>>>>
>>>> First, I would think that this would work:
>>>>
>>>> projection => init=epsg:26915
>>>> web metadata srs => EPSG:26915
>>>> layer metadata srs => EPSG:26915
>>>>
>>>> this give me the error:
>>>> msWMSLoadGetMapParams(): WMS Server Error. Invalid SRS given. SRS
>>>> must be valid for all requested layers.
>>>>
>>>> I only have the one layer (it's of the state of MN from www.gis.leg.mn).
>>>>
>>>> However, the following renders, but I don't think it is the projection
>>>> i want (as the top of MN is too wide):
>>>>
>>>> projection => init=epsg:26915
>>>> web metadata srs => EPSG:26915
>>>> layer metadata srs => EPSG:4326
>>>>
>>>> Now, I am using mapserver as a WMS. Before I was using it NOT as a
>>>> WMS, but just making it render the shapefile without any projection
>>>> information, it worked, and it was the projection I had come to expect
>>>> when seeing the state of MN rendered.
>>>>
>>>> Why does my first configuration give me an error?
>>>> How can I make it render in the way I expect without giving mapserver
>>>> explicit projection instructions?
>>>>
>>>> please forgive the ignorance of map projection knowledge.
>>>>
>>>> thanks,
>>>> matt
>>>
>>> International Institute for Geo-Information Science and Earth Observation
>>> (ITC)
>>> Chamber of Commerce: 410 27 560
>>>
>>> E-mail disclaimer
>>> The information in this e-mail, including any attachments, is intended
>>> for the addressee only. If you are not the intended recipient, you are
>>> hereby notified that any disclosure, copying, distribution or action in
>>> relation to the content of this information is strictly prohibited. If you
>>> have received this e-mail by mistake, please delete the message and any
>>> attachment and inform the sender by return e-mail. ITC accepts no liability
>>> for any error or omission in the message content or for damage of any kind
>>> that may arise as a result of e-mail transmission.
>>>
>>
>>
>>
>> --
>> It is from the wellspring of our despair and the places that we are
>> broken that we come to repair the world.
>> -- Murray Waas
>> _______________________________________________
>> 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
>
--
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas
From Jukka.Rahkonen at mmmtike.fi Mon Jun 9 22:48:56 2008
From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka)
Date: Tue, 10 Jun 2008 08:48:56 +0300
Subject: [mapserver-users] mapserver wms: srs problem
References: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com><82ba77b80806091344o648349e5h928e6f617f8ce6ae@mail.gmail.com><8307E97E-5DD2-4564-A509-6C1506621047@gatewaygeomatics.com>
<82ba77b80806092014s13d560bfw34626652d1d83b08@mail.gmail.com>
Message-ID:
Hi,
I have not followed this discussion closely, but at least map extents and map level projection do not match. It may not have any effect on WMS but it does not harm if they were correct.
EXTENT 184056.505 4809728.25 767381.245 5478975.75
...
PROJECTION
"init=epsg:4326"
END
-Jukka Rahkonen-
From pal.kristensen at statkart.no Tue Jun 10 00:01:17 2008
From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=)
Date: Tue, 10 Jun 2008 00:01:17 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithmimperfection
In-Reply-To: <4849601F.5157.008F.0@dnr.state.mn.us>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
<17700473.post@talk.nabble.com>
<4849601F.5157.008F.0@dnr.state.mn.us>
Message-ID: <17748999.post@talk.nabble.com>
Hi!
Is the quantize mechanism for AGG now included as default, or do we still
need to build with the --with-experimental_png set?
Regards,
P?l Kristensen
Steve Lime wrote:
>
> I've generated palettes by rendering a large 24-bit sample image and then
> reducing colors using
> tools like Photoshop, GIMP or ImageMagick. Then I just run gdalinfo output
> on the reduced color
> image through a perl script to extract the palette.
>
> #!/usr/bin/perl
>
> $doit = 0;
> while(<>) {
> if($_ =~ /Color Table/) {
> $doit = 1;
> next;
> }
>
> if($doit) {
> ($r,$g,$b,$a) = split /,/, substr($_,7);
> print "$r,$g,$b\n";
> }
> }
>
> Works just fine...
>
> Steve
>
>>>> On 6/6/2008 at 3:24 PM, in message <17700473.post at talk.nabble.com>,
>>>> BrainDrain
> wrote:
>
>> $? You're kidding)) Anyway, thanks for advise. Will try.
>> And what about agg rgba mode (bug, invalid color interpretation
>> (inverting?)
>> or something like that)? When
>> this problem will be fixed? I need it, because I want to use map
>> transparency (only rgba mode) to combine with google map layer in
>> openlayers
>> rich client app.
>>
>> Stephen Woodbridge wrote:
>>>
>>> Hey, that's what they pay you the BIG BUCKS for! :)
>>>
>>> Write a perl/bash/{your favorite} script to grab all the COLOR lines
>>> from you mapfile and reformat the r g b to r,g,b in you palette file.
>>>
>>> I have a few hundred symbols in my symbol library, but I only use about
>>> 10 of them regularly so I made sure the primary colors were also in the
>>> palette file. I make the script add them so I don't have to think about
>>> it.
>>>
>>> It sounds like a big deal, but it not that bad.
>>>
>>> YMMV,
>>> -Steve W
>>>
>>> BrainDrain wrote:
>>>> Thanks, i already read about preparing palette index file & I see 2
>>>> obstacles:
>>>> 1) I need to monitor my map file (big size) to keep relevant my palette
>>>> file. It is inflexible to extract rgb colors used in pixmap symbols
>>>> (hundreds, updatable). Can I use html palette for ex. (or any other
>>>> 'universal' palette) - to make this process not so time-consuming?
>>>> 2) If I have strict palette, can I be sure that agg renderer will
>>>> always
>>>> use
>>>> the nearest(?) color from my palette?
>>>>
>>>> pagameba wrote:
>>>>> Use:
>>>>>
>>>>> OUTPUTFORMAT
>>>>> OUTPUTFORMAT
>>>>> NAME "AGG_Q"
>>>>> DRIVER "AGG/PNG"
>>>>> MIMETYPE "image/png; mode=8bit"
>>>>> IMAGEMODE RGB
>>>>> EXTENSION "png"
>>>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>>>> END
>>>>>
>>>>> where palette.txt is a text file with RGB tuples in the form:
>>>>>
>>>>> RRR,GGG,BBB
>>>>>
>>>>> For example:
>>>>>
>>>>> 0,0,0
>>>>> 255,255,255
>>>>> 127,127,127
>>>>>
>>>>> MapServer will use AGG 24 bit rendering but reduce the output file to
>>>>> 8 bit and reserve the colours in your palette.txt file. This will
>>>>> give you consistent colours for the ones you care about.
>>>>> Specifically, you should reserve all the colours that you actually
>>>>> reference in your map file plus any colours of pixmap symbols. Don't
>>>>> put in more colours than you actually need to because MapServer needs
>>>>> to use whatever space is left (255 less your colours) for
>>>>> antialiasing.
>>>>>
>>>>> Cheers
>>>>>
>>>>> Paul
>>>>>
>>>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>>>
>>>>>> I use this output format in my map file:
>>>>>> OUTPUTFORMAT
>>>>>> NAME "AGG_Q"
>>>>>> DRIVER "AGG/PNG"
>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>> IMAGEMODE RGB
>>>>>> EXTENSION "png"
>>>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>>>> END
>>>>>> but every time map draw called (or map image requested fom cgi
>>>>>> mapserv.exe)
>>>>>> polygons has a little difference in fill color (I think this is
>>>>>> because
>>>>>> color palette recalculated slightly different each time). This is
>>>>>> unacceptable for me. How can i correct this? (maybe some
>>>>>> FORMATOPTION?)
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp1766773
>> 3p17667733.html
>>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>>>
>>>>>> _______________________________________________
>>>>>> mapserver-users mailing list
>>>>>> mapserver-users at lists.osgeo.org
>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>
>>>>> __________________________________________
>>>>>
>>>>> Paul Spencer
>>>>> Chief Technology Officer
>>>>> DM Solutions Group Inc
>>>>> http://www.dmsolutions.ca/
>>>>> _______________________________________________
>>>>> 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
>
>
--
View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17748999.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From thomas.bonfort at gmail.com Tue Jun 10 00:10:48 2008
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Tue, 10 Jun 2008 09:10:48 +0200
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithmimperfection
In-Reply-To: <17748999.post@talk.nabble.com>
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
<17700473.post@talk.nabble.com> <4849601F.5157.008F.0@dnr.state.mn.us>
<17748999.post@talk.nabble.com>
Message-ID:
you still need --with-experimental-png
thomas
On Tue, Jun 10, 2008 at 9:01 AM, P?l Kristensen
wrote:
>
> Hi!
>
> Is the quantize mechanism for AGG now included as default, or do we still
> need to build with the --with-experimental_png set?
>
> Regards,
> P?l Kristensen
>
>
> Steve Lime wrote:
>>
>> I've generated palettes by rendering a large 24-bit sample image and then
>> reducing colors using
>> tools like Photoshop, GIMP or ImageMagick. Then I just run gdalinfo output
>> on the reduced color
>> image through a perl script to extract the palette.
>>
>> #!/usr/bin/perl
>>
>> $doit = 0;
>> while(<>) {
>> if($_ =~ /Color Table/) {
>> $doit = 1;
>> next;
>> }
>>
>> if($doit) {
>> ($r,$g,$b,$a) = split /,/, substr($_,7);
>> print "$r,$g,$b\n";
>> }
>> }
>>
>> Works just fine...
>>
>> Steve
>>
>>>>> On 6/6/2008 at 3:24 PM, in message <17700473.post at talk.nabble.com>,
>>>>> BrainDrain
>> wrote:
>>
>>> $? You're kidding)) Anyway, thanks for advise. Will try.
>>> And what about agg rgba mode (bug, invalid color interpretation
>>> (inverting?)
>>> or something like that)? When
>>> this problem will be fixed? I need it, because I want to use map
>>> transparency (only rgba mode) to combine with google map layer in
>>> openlayers
>>> rich client app.
>>>
>>> Stephen Woodbridge wrote:
>>>>
>>>> Hey, that's what they pay you the BIG BUCKS for! :)
>>>>
>>>> Write a perl/bash/{your favorite} script to grab all the COLOR lines
>>>> from you mapfile and reformat the r g b to r,g,b in you palette file.
>>>>
>>>> I have a few hundred symbols in my symbol library, but I only use about
>>>> 10 of them regularly so I made sure the primary colors were also in the
>>>> palette file. I make the script add them so I don't have to think about
>>>> it.
>>>>
>>>> It sounds like a big deal, but it not that bad.
>>>>
>>>> YMMV,
>>>> -Steve W
>>>>
>>>> BrainDrain wrote:
>>>>> Thanks, i already read about preparing palette index file & I see 2
>>>>> obstacles:
>>>>> 1) I need to monitor my map file (big size) to keep relevant my palette
>>>>> file. It is inflexible to extract rgb colors used in pixmap symbols
>>>>> (hundreds, updatable). Can I use html palette for ex. (or any other
>>>>> 'universal' palette) - to make this process not so time-consuming?
>>>>> 2) If I have strict palette, can I be sure that agg renderer will
>>>>> always
>>>>> use
>>>>> the nearest(?) color from my palette?
>>>>>
>>>>> pagameba wrote:
>>>>>> Use:
>>>>>>
>>>>>> OUTPUTFORMAT
>>>>>> OUTPUTFORMAT
>>>>>> NAME "AGG_Q"
>>>>>> DRIVER "AGG/PNG"
>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>> IMAGEMODE RGB
>>>>>> EXTENSION "png"
>>>>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>>>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>>>>> END
>>>>>>
>>>>>> where palette.txt is a text file with RGB tuples in the form:
>>>>>>
>>>>>> RRR,GGG,BBB
>>>>>>
>>>>>> For example:
>>>>>>
>>>>>> 0,0,0
>>>>>> 255,255,255
>>>>>> 127,127,127
>>>>>>
>>>>>> MapServer will use AGG 24 bit rendering but reduce the output file to
>>>>>> 8 bit and reserve the colours in your palette.txt file. This will
>>>>>> give you consistent colours for the ones you care about.
>>>>>> Specifically, you should reserve all the colours that you actually
>>>>>> reference in your map file plus any colours of pixmap symbols. Don't
>>>>>> put in more colours than you actually need to because MapServer needs
>>>>>> to use whatever space is left (255 less your colours) for
>>>>>> antialiasing.
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>>>>
>>>>>>> I use this output format in my map file:
>>>>>>> OUTPUTFORMAT
>>>>>>> NAME "AGG_Q"
>>>>>>> DRIVER "AGG/PNG"
>>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>>> IMAGEMODE RGB
>>>>>>> EXTENSION "png"
>>>>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>>>>> END
>>>>>>> but every time map draw called (or map image requested fom cgi
>>>>>>> mapserv.exe)
>>>>>>> polygons has a little difference in fill color (I think this is
>>>>>>> because
>>>>>>> color palette recalculated slightly different each time). This is
>>>>>>> unacceptable for me. How can i correct this? (maybe some
>>>>>>> FORMATOPTION?)
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>>
>>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp1766773
>>> 3p17667733.html
>>>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> mapserver-users mailing list
>>>>>>> mapserver-users at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>>
>>>>>> __________________________________________
>>>>>>
>>>>>> Paul Spencer
>>>>>> Chief Technology Officer
>>>>>> DM Solutions Group Inc
>>>>>> http://www.dmsolutions.ca/
>>>>>> _______________________________________________
>>>>>> 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
>>
>>
>
> --
> View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17748999.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From pal.kristensen at statkart.no Tue Jun 10 00:18:37 2008
From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=)
Date: Tue, 10 Jun 2008 00:18:37 -0700 (PDT)
Subject: [MAPSERVER-USERS] help! agg palette quantize algorithmimperfection
In-Reply-To:
References: <17667733.post@talk.nabble.com>
<17692463.post@talk.nabble.com> <48495108.3010905@swoodbridge.com>
<17700473.post@talk.nabble.com>
<4849601F.5157.008F.0@dnr.state.mn.us>
<17748999.post@talk.nabble.com>
Message-ID: <17749226.post@talk.nabble.com>
Hi!
Thanks for the quick answer! Is this feature considered to be includes as
"default" in the 5.2 release? If not I hope that the people maintaining the
MS4W would include this in that build. On Linux there is quite easy to build
MapServer, but on windows we still depends on the MS4W pre-build package.
Regards,
P?l Kristensen
tbonfort wrote:
>
> you still need --with-experimental-png
>
> thomas
>
> On Tue, Jun 10, 2008 at 9:01 AM, P?l Kristensen
> wrote:
>>
>> Hi!
>>
>> Is the quantize mechanism for AGG now included as default, or do we still
>> need to build with the --with-experimental_png set?
>>
>> Regards,
>> P?l Kristensen
>>
>>
>> Steve Lime wrote:
>>>
>>> I've generated palettes by rendering a large 24-bit sample image and
>>> then
>>> reducing colors using
>>> tools like Photoshop, GIMP or ImageMagick. Then I just run gdalinfo
>>> output
>>> on the reduced color
>>> image through a perl script to extract the palette.
>>>
>>> #!/usr/bin/perl
>>>
>>> $doit = 0;
>>> while(<>) {
>>> if($_ =~ /Color Table/) {
>>> $doit = 1;
>>> next;
>>> }
>>>
>>> if($doit) {
>>> ($r,$g,$b,$a) = split /,/, substr($_,7);
>>> print "$r,$g,$b\n";
>>> }
>>> }
>>>
>>> Works just fine...
>>>
>>> Steve
>>>
>>>>>> On 6/6/2008 at 3:24 PM, in message <17700473.post at talk.nabble.com>,
>>>>>> BrainDrain
>>> wrote:
>>>
>>>> $? You're kidding)) Anyway, thanks for advise. Will try.
>>>> And what about agg rgba mode (bug, invalid color interpretation
>>>> (inverting?)
>>>> or something like that)? When
>>>> this problem will be fixed? I need it, because I want to use map
>>>> transparency (only rgba mode) to combine with google map layer in
>>>> openlayers
>>>> rich client app.
>>>>
>>>> Stephen Woodbridge wrote:
>>>>>
>>>>> Hey, that's what they pay you the BIG BUCKS for! :)
>>>>>
>>>>> Write a perl/bash/{your favorite} script to grab all the COLOR lines
>>>>> from you mapfile and reformat the r g b to r,g,b in you palette file.
>>>>>
>>>>> I have a few hundred symbols in my symbol library, but I only use
>>>>> about
>>>>> 10 of them regularly so I made sure the primary colors were also in
>>>>> the
>>>>> palette file. I make the script add them so I don't have to think
>>>>> about
>>>>> it.
>>>>>
>>>>> It sounds like a big deal, but it not that bad.
>>>>>
>>>>> YMMV,
>>>>> -Steve W
>>>>>
>>>>> BrainDrain wrote:
>>>>>> Thanks, i already read about preparing palette index file & I see 2
>>>>>> obstacles:
>>>>>> 1) I need to monitor my map file (big size) to keep relevant my
>>>>>> palette
>>>>>> file. It is inflexible to extract rgb colors used in pixmap symbols
>>>>>> (hundreds, updatable). Can I use html palette for ex. (or any other
>>>>>> 'universal' palette) - to make this process not so time-consuming?
>>>>>> 2) If I have strict palette, can I be sure that agg renderer will
>>>>>> always
>>>>>> use
>>>>>> the nearest(?) color from my palette?
>>>>>>
>>>>>> pagameba wrote:
>>>>>>> Use:
>>>>>>>
>>>>>>> OUTPUTFORMAT
>>>>>>> OUTPUTFORMAT
>>>>>>> NAME "AGG_Q"
>>>>>>> DRIVER "AGG/PNG"
>>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>>> IMAGEMODE RGB
>>>>>>> EXTENSION "png"
>>>>>>> FORMATOPTION "PALETTE_FORCE=TRUE"
>>>>>>> FORMATOPTION "PALETTE=/path/to/palette.txt"
>>>>>>> END
>>>>>>>
>>>>>>> where palette.txt is a text file with RGB tuples in the form:
>>>>>>>
>>>>>>> RRR,GGG,BBB
>>>>>>>
>>>>>>> For example:
>>>>>>>
>>>>>>> 0,0,0
>>>>>>> 255,255,255
>>>>>>> 127,127,127
>>>>>>>
>>>>>>> MapServer will use AGG 24 bit rendering but reduce the output file
>>>>>>> to
>>>>>>> 8 bit and reserve the colours in your palette.txt file. This will
>>>>>>> give you consistent colours for the ones you care about.
>>>>>>> Specifically, you should reserve all the colours that you actually
>>>>>>> reference in your map file plus any colours of pixmap symbols.
>>>>>>> Don't
>>>>>>> put in more colours than you actually need to because MapServer
>>>>>>> needs
>>>>>>> to use whatever space is left (255 less your colours) for
>>>>>>> antialiasing.
>>>>>>>
>>>>>>> Cheers
>>>>>>>
>>>>>>> Paul
>>>>>>>
>>>>>>> On 6-Jun-08, at 7:53 AM, BrainDrain wrote:
>>>>>>>
>>>>>>>> I use this output format in my map file:
>>>>>>>> OUTPUTFORMAT
>>>>>>>> NAME "AGG_Q"
>>>>>>>> DRIVER "AGG/PNG"
>>>>>>>> MIMETYPE "image/png; mode=8bit"
>>>>>>>> IMAGEMODE RGB
>>>>>>>> EXTENSION "png"
>>>>>>>> FORMATOPTION "QUANTIZE_FORCE=ON"
>>>>>>>> FORMATOPTION "QUANTIZE_DITHER=OFF"
>>>>>>>> FORMATOPTION "QUANTIZE_COLORS=256"
>>>>>>>> END
>>>>>>>> but every time map draw called (or map image requested fom cgi
>>>>>>>> mapserv.exe)
>>>>>>>> polygons has a little difference in fill color (I think this is
>>>>>>>> because
>>>>>>>> color palette recalculated slightly different each time). This is
>>>>>>>> unacceptable for me. How can i correct this? (maybe some
>>>>>>>> FORMATOPTION?)
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>>
>>>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp1766773
>>>> 3p17667733.html
>>>>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> mapserver-users mailing list
>>>>>>>> mapserver-users at lists.osgeo.org
>>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>>>>
>>>>>>> __________________________________________
>>>>>>>
>>>>>>> Paul Spencer
>>>>>>> Chief Technology Officer
>>>>>>> DM Solutions Group Inc
>>>>>>> http://www.dmsolutions.ca/
>>>>>>> _______________________________________________
>>>>>>> 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
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17748999.html
>> Sent from the Mapserver - User mailing list archive at Nabble.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
>
>
--
View this message in context: http://www.nabble.com/help%21-agg-palette-quantize-algorithm-imperfection-tp17667733p17749226.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From gabmessner at gmail.com Tue Jun 10 01:21:32 2008
From: gabmessner at gmail.com (Gabriel Messner)
Date: Tue, 10 Jun 2008 10:21:32 +0200
Subject: [mapserver-users] How to delete multiple CAD layers
Message-ID: <1708890c0806100121m391f6109x72d06d90d438ba6b@mail.gmail.com>
Hi all,
I?d be hugly appreciated if anyone could help me to solve the following
task:
I have a folder with 5000 dgn files wich I serve with Mapserver using the
OGR connection and tileindexing, but some overlapping areas make the
tileindexing fail.
I would need to delete several layers of those CAD files in order to remove
the overlapping areas. Does anyone know any script to perform this in batch
processing or with a loop statement? (perhaps OGR tools, Arcscript, or so
on...).
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From paulborodaev at gmail.com Tue Jun 10 03:03:12 2008
From: paulborodaev at gmail.com (BrainDrain)
Date: Tue, 10 Jun 2008 03:03:12 -0700 (PDT)
Subject: [MAPSERVER-USERS] how to specify polyline width in ground units
Message-ID: <17751833.post@talk.nabble.com>
how can I specify polyline width in ground units without querying (because I
will use queries for other tasks) and without variable substitution?
for ex, I need constant (in real world units) line width for my layer
'Street Axes'
TIA
--
View this message in context: http://www.nabble.com/how-to-specify-polyline-width-in-ground-units-tp17751833p17751833.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From w.blanken at geon.nl Tue Jun 10 03:32:49 2008
From: w.blanken at geon.nl (Wim Blanken)
Date: Tue, 10 Jun 2008 12:32:49 +0200
Subject: [mapserver-users] Mapserver 5.0.3 true type problem
Message-ID: