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 > >
> src="/tmp/"> >
> > > > > 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. > > > xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink"> > > > > width="600" height="400"/> > > > > > > > > > > fill="#841f1f" text-anchor="end">s.X > fill="#841f1f" text-anchor="end">s.F > fill="#841f1f" text-anchor="end">s.E > fill="#841f1f" text-anchor="end">s.canteen > fill="#841f1f" text-anchor="end">s.B > fill="#841f1f" text-anchor="end">s.A > > > 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_html] [leg_footer_html]
[leg_class_name]
[/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 &lt;guillaume.sueur at neogeo-online.net&gt; ha > scritto: > Da: Guillaume Sueur &lt;guillaume.sueur at neogeo-online.net&gt; > 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 : > &gt; Hi, > &gt; > &gt; I need that Mapserver give me an image in svg format. I tried to follow > &gt; the instruction in > "http://mapserver.gis.umn.edu/docs/howto/svg-howto" > &gt; but I still have some problems. My map file is composed by two layers: a > &gt; raster layer (a png file) a polygon layer. I set in the map the output > &gt; format as svg and I have put in the file this code : > &gt; OUTPUTFORMAT > &gt; NAME svg > &gt; DRIVER "svg" > &gt; MIMETYPE "image/svg+xml" > &gt; IMAGEMODE PC256 > &gt; EXTENSION "svg" > &gt; END > &gt; > &gt; In the Mapserver tmp directory there is two file. One file in png format > &gt; with the raster layer and one file in svg format with the polygon layer > &gt; and a link to the png file. > &gt; > &gt; There is a way to insert a real picture in the svg file in place of the > &gt; link ? > &gt; > &gt; The following is the code in the svg file. > &gt; > &gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt; > &gt; &lt;svg version="1.1" width="600" > height="400" > &gt; xmlns="http://www.w3.org/2000/svg" > &gt; xmlns:xlink="http://www.w3.org/1999/xlink"&gt; > &gt; > &gt; &lt;!-- START LAYER background --&gt; > &gt; > &gt; &lt;image xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png" > x="0" y="0" > &gt; width="600" height="400"/&gt; > &gt; > &gt; &lt;!-- START LAYER floors --&gt; > &gt; &lt;path stroke="#202020" stroke-width="1" > style="fill:none" d="M 8 28 L > &gt; 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8 28 > z"/&gt; > &gt; &lt;path stroke="#202020" stroke-width="1" > style="fill:none" d="M 240 241 L > &gt; 285 241 L 285 364 L 146 363 L 149 322 L 240 241 z"/&gt; > &gt; &lt;path stroke="#202020" stroke-width="1" > style="fill:none" d="M 3 242 L > &gt; 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242 z"/&gt; > &gt; &lt;path stroke="#202020" stroke-width="1" > style="fill:none" d="M 5 30 L > &gt; 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30 z"/&gt; > &gt; &lt;path stroke="#202020" stroke-width="1" > style="fill:none" d="M 293 38 L > &gt; 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/&gt; > &gt; &lt;path stroke="#202020" stroke-width="1" > style="fill:none" d="M 436 41 L > &gt; 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/&gt; > &gt; &lt;path stroke="#ffff00" stroke-width="1" > style="fill:none" d="M 11 138 L > &gt; 281 136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244 L 8 223 > &gt; L 11 138 z"/&gt; > &gt; &lt;text x="115" y="234" > font-family="arial-bold" font-size="12pt" > &gt; fill="#841f1f" text-anchor="end"&gt;s.X&lt;/text&gt; > &gt; &lt;text x="466" y="106" > font-family="arial-bold" font-size="12pt" > &gt; fill="#841f1f" text-anchor="end"&gt;s.F&lt;/text&gt; > &gt; &lt;text x="323" y="106" > font-family="arial-bold" font-size="12pt" > &gt; fill="#841f1f" text-anchor="end"&gt;s.E&lt;/text&gt; > &gt; &lt;text x="50" y="90" > font-family="arial-bold" font-size="12pt" > &gt; fill="#841f1f" > text-anchor="end"&gt;s.canteen&lt;/text&gt; > &gt; &lt;text x="35" y="310" > font-family="arial-bold" font-size="12pt" > &gt; fill="#841f1f" text-anchor="end"&gt;s.B&lt;/text&gt; > &gt; &lt;text x="185" y="308" > font-family="arial-bold" font-size="12pt" > &gt; fill="#841f1f" text-anchor="end"&gt;s.A&lt;/text&gt; > &gt; &lt;/svg&gt; > &gt; > &gt; Any suggestion > &gt; > &gt; thanks valerio > &gt; > &gt; > &gt; ------------------------------------------------------------------------ > &gt; Scopri il Blog di Yahoo! Mail > &gt; > &lt;http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3 > A%2F%2Fwww.ymailblogit.com%2Fblog%2F&gt;: > > &gt; trucchi, novit?, consigli... e la tua opinione! > &gt; > &gt; > &gt; ------------------------------------------------------------------------ > &gt; > &gt; _______________________________________________ > &gt; mapserver-users mailing list > &gt; mapserver-users at lists.osgeo.org > &gt; 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: Hello list, I have a strange problem with the most recent version of mapserver. All my symbols that are using true type fonts return the same symbol in te legend. Is there a problem with AGG in combination with true type fonts? I think it may have something to do with the encoding type of the tryetype fonts? Regards, Wim Blanken The Netherlands -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernardo at incargis.com Tue Jun 10 04:49:31 2008 From: bernardo at incargis.com (Bernardo (iNCARGiS)) Date: Tue, 10 Jun 2008 13:49:31 +0200 Subject: [mapserver-users] show legend graphic with mapbuilder 1.5 and mapserver References: <20080610071844.4B2B1E017A2@lists.osgeo.org> Message-ID: I'm just begining with mapbuilde and i have problems in show the legend image in my web This is the part of my .map file LAYER NAME EDIFICIOS DATA LLIRIA STATUS ON TYPE POLYGON GROUP BASE PROJECTION "init=epsg:23030" END DUMP TRUE TOLERANCE 10 TEMPLATE "edificios.html" METADATA "wms_srs" "EPSG:23030" "wms_name" "Edificios" "wms_server_version" "1.1.0" "wms_format" "image/gif" "wms_legend_graphic" "true" END And this is my map context The legend is defined inside the map file TRANSPARENCY 100 CLASSITEM "USO" CLASS NAME "ACERAS" EXPRESSION "ACERA" COLOR -1 -1 -1 OUTLINECOLOR 104 104 104 END CLASS NAME "BALSAS" EXPRESSION "BALSA" COLOR 151 219 242 OUTLINECOLOR 64 101 235 END CLASS NAME "EDIFICIOS" EXPRESSION "EDIF" COLOR 255 234 190 OUTLINECOLOR 255 211 127 END The imgage map is right but the legend no. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dibujo.JPG Type: image/jpeg Size: 64957 bytes Desc: not available URL: From bartvde at osgis.nl Tue Jun 10 05:29:05 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 10 Jun 2008 14:29:05 +0200 Subject: [mapserver-users] show legend graphic with mapbuilder 1.5 andmapserverUID 4386) In-Reply-To: References: <20080610071844.4B2B1E017A2@lists.osgeo.org> Message-ID: Hi, I think you are missing the required parameter VERSION in your GetLegendGraphic URL. http://localhost/cgi-bin/mapserv.exe?map=d:/www/lliria_wms/lliria.map&REQUEST=GetLegendGraphic&LAYER=Edificios&FORMAT=image/gif&version=1.1.1 Otherwise try the URL directly in your browser and see what error message you get. Best regards, Bart On Tue, 10 Jun 2008 13:49:31 +0200, "Bernardo \(iNCARGiS\)" wrote: > I'm just begining with mapbuilde and i have problems in show the legend > image in my web > > This is the part of my .map file > > LAYER > NAME EDIFICIOS > DATA LLIRIA > STATUS ON > TYPE POLYGON > GROUP BASE > > PROJECTION > "init=epsg:23030" > END > > DUMP TRUE > TOLERANCE 10 > TEMPLATE "edificios.html" > > METADATA > "wms_srs" "EPSG:23030" > "wms_name" "Edificios" > "wms_server_version" "1.1.0" > "wms_format" "image/gif" > "wms_legend_graphic" "true" > END > > And this is my map context > > > > The legend is defined inside the map file > > > TRANSPARENCY 100 > CLASSITEM "USO" > > CLASS > NAME "ACERAS" > EXPRESSION "ACERA" > COLOR -1 -1 -1 > OUTLINECOLOR 104 104 104 > END > > CLASS > NAME "BALSAS" > EXPRESSION "BALSA" > COLOR 151 219 242 > OUTLINECOLOR 64 101 235 > END > > CLASS > NAME "EDIFICIOS" > EXPRESSION "EDIF" > COLOR 255 234 190 > OUTLINECOLOR 255 211 127 > END > > > The imgage map is right but the legend no. > > Thanks in advance From Ludger.Steffens at t-mobile.de Tue Jun 10 06:05:37 2008 From: Ludger.Steffens at t-mobile.de (Steffens, Ludger) Date: Tue, 10 Jun 2008 15:05:37 +0200 Subject: [mapserver-users] sde query and EXPRESSION error in sde Message-ID: <29B5E55F64B92C428E096B7136A0100D3BB887@DEBNLWMXSC0101.sv.ad.tmo> Hi, We have to draw and query a map which is based on an arcsde database. Case 1: I want to query an object, which is of type point. The objects are in an arcsde geodata-server, which I connect with the following statement: CONNECTION "xxx.dcnv.xxx.de,port:5151,sde,xxx,xxx" CONNECTIONTYPE SDE DATA "xxx.xTS,SHAPE,SDE.DEFAULT" As a result I get the following error: Content-type: text/html msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) There is a great number of points which I do have to query, and there are also cases (points) , which might have a NULL-field within the list of attributs for a specific point. If I query objects which are polygon type everything is fine, i.e. I don't get any errors. Case 2: I want to draw another layer based on the same connection statement, i.e. also point object in an arcsde database. The attribut are of type SE_INT32. When I issue an EXPRESSION statement , i.e. EXPRESSION ([WINKEL] > 0 ), mapserver complains this with the error message msyyparse(): Expression parser error. syntax error msEvalExpression: Expression parser error. Failed to parse expression: > 0 What do I do wrong? Or, is there an error in the sde database? Mapserver was build including arcsde library sdeexe92 and use the configure statement " --with-sde-version=92" I really would appreciate any ideas in solving these errors. Ludger T-Mobile Deutschland GmbH Aufsichtsrat: Hamid Akhavan (Vorsitzender) Geschaftsfuhrung: Philipp Humm (Sprecher), Thomas Berlemann, Jiri Dvorjancansky, Dr. Peter Korner, Gunther Ottendorfer, Dr. Raphael Kubler, Dr. Steffen Roehn Handelsregister: Amtsgericht Bonn, HRB 59 19 Sitz der Gesellschaft: Bonn WEEE-Reg.-Nr.: DE60800328 From jhevenor at rogers.com Tue Jun 10 06:43:20 2008 From: jhevenor at rogers.com (Josh Hevenor) Date: Tue, 10 Jun 2008 09:43:20 -0400 Subject: [mapserver-users] show legend graphic with mapbuilder 1.5 and mapserver Message-ID: <484E84F8.605@rogers.com> First a note that your email text didn't come through in my list digest: > Skipped content of type multipart/alternative-------------- next part -------------- Now for legends. This might not be what you need but it's how I've worked with legends in mapbuilder before. So here's the app: http://www.eman-rese.ca/mapbuilder/demo/citsci/index.html More specifically the map context is here http://www.eman-rese.ca/mapbuilder/demo/citsci/elements.xml So we have MapBuilder showing a MapServer WMS layer. I set the legend graphic as part of the layer with So this should take care of the client end...If I can find that mapfile again I'll pass along the WMS definition also. Hope this helps, Josh Hevenor From rwburgholzer at deq.virginia.gov Tue Jun 10 08:35:00 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Tue, 10 Jun 2008 11:35:00 -0400 Subject: [mapserver-users] OGR doesn't grok GML3? References: <6C097DA58429B743A67070F98BE73A3702B13DC5@deqex01.deq.local> <484D6B96.9030504@pobox.com> <484E8E19.8070204@dmsolutions.ca> Message-ID: <6C097DA58429B743A67070F98BE73A37025DD7DF@deqex01.deq.local> This is excellent news! Thanks! I will let you know how it goes for me. I am cc'ing the Mapserver listserv so as to keep a record of this online, and to see if others find it useful. r.b. -----Original Message----- From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Sent: Tue 6/10/2008 10:22 AM To: Frank Warmerdam; Burgholzer,Robert Cc: Subject: Re: [mapserver-users] OGR doesn't grok GML3? Hi There, Just few comments in case this might help: There is a patch submitted in http://trac.osgeo.org/gdal/ticket/2311 that could help in this case. The patch was intended for the reading of gml3 profile 1. Couple of issues I had when proposing the patch is that the support for things like gml:posList are limited. According to the specs for gml3.1/level 1 gml:posList does not have any attribute but for gml3.1, it could have attributes such as a dimension (. The patch assumes a 2 dimension geometry. It is also my understanding that currently the ogr gml parser strips out any attribute information from the gml file, and things like "srsDimension" are not available in gml2ogrgeometry.cpp. I think any upgrade to the reader would have to address this. Note that using this patch and modifying it a bit to assume a 3d geometries for posList elements, I was able to read polygon/line/points coming out of the wfs server (http://frameworkwfs.usgs.gov/) and display it in Mapserver. Hope this helps. Best Regards, Frank Warmerdam wrote: > 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, -- ---------------------------------------------------------------- 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: From bernardo at incargis.com Tue Jun 10 08:43:30 2008 From: bernardo at incargis.com (Bernardo (iNCARGiS)) Date: Tue, 10 Jun 2008 17:43:30 +0200 Subject: [mapserver-users] show legend graphic with mapbuilder 1.5 and mapserver Message-ID: I'm just begining with mapbuilde and i have problems in show the legend image in my web This is the part of my .map file LAYER NAME EDIFICIOS DATA LLIRIA STATUS ON TYPE POLYGON GROUP BASE PROJECTION "init=epsg:23030" END DUMP TRUE TOLERANCE 10 TEMPLATE "edificios.html" METADATA "wms_srs" "EPSG:23030" "wms_name" "Edificios" "wms_server_version" "1.1.0" "wms_format" "image/gif" "wms_legend_graphic" "true" END And this is my map context The legend is defined inside the map file TRANSPARENCY 100 CLASSITEM "USO" CLASS NAME "ACERAS" EXPRESSION "ACERA" COLOR -1 -1 -1 OUTLINECOLOR 104 104 104 END CLASS NAME "BALSAS" EXPRESSION "BALSA" COLOR 151 219 242 OUTLINECOLOR 64 101 235 END CLASS NAME "EDIFICIOS" EXPRESSION "EDIF" COLOR 255 234 190 OUTLINECOLOR 255 211 127 END The imgage map is right but the legend no. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.pettis at gmail.com Tue Jun 10 08:50:35 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Tue, 10 Jun 2008 10:50:35 -0500 Subject: [mapserver-users] mapserver wms: srs problem In-Reply-To: References: <82ba77b80806071721s6a54f6f6o43bfa61b0f017647@mail.gmail.com> <82ba77b80806091344o648349e5h928e6f617f8ce6ae@mail.gmail.com> <8307E97E-5DD2-4564-A509-6C1506621047@gatewaygeomatics.com> <82ba77b80806092014s13d560bfw34626652d1d83b08@mail.gmail.com> Message-ID: <82ba77b80806100850k7190fc14t7b7a44c3ea99ef37@mail.gmail.com> Hi All, Thanks to everyone that contributed. The mapfile that renders (thanks to Tom [Burlington] Kralidis for it) is below. I am still working on it not being the projection that makes the state of MN look short and squat. If anyone wants a screenshot, contact me and i'll send it to you directly rather than to the listserv. Thanks everybody for your help, matt =============================================================== 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 -100 30 90 55 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: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 PROJECTION "init=epsg:26915" END CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=gisvote password=postgres" DATA "the_geom from shp_state" STATUS on TYPE polygon CLASS NAME "state" COLOR 200 200 200 END END # Layer state END =============================================================== On Tue, Jun 10, 2008 at 12:48 AM, Rahkonen Jukka wrote: > 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- > > -- 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 kobben at itc.nl Tue Jun 10 09:26:06 2008 From: kobben at itc.nl (Barend Kobben) Date: Tue, 10 Jun 2008 18:26:06 +0200 Subject: [mapserver-users] mapserver wms: srs problem In-Reply-To: <82ba77b80806092014s13d560bfw34626652d1d83b08@mail.gmail.com> Message-ID: Hi, It looks like your mixing up several things that shouldn't be mixed: 1) http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&SE RVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities ...is a valid WMS GetCapabilities request. It might result in a valid WMS response (although I cannot test this as I obviously do not have the same localhost as you...) However: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&mo de=map ...is a non-WMS request, it uses the 'old' MapServer CGI mode, not the OGC standardised WMS interface. To get a map the "WMS way" you'd request something like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&m& SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=aLayer&BBOX=1,2,3,4& SRS=EPSG:4326&format=image/gif 2) next, you advertise your data to be in lat-lon on the WGS 84 (PROJECTION init=epsg:4326), but you proclaim the EXTENT of the data to be in meters or some other projected unit: EXTENT 184056.505 4809728.25 767381.245 5478975.75 This obviously are not lat-lon degrees (which have a max extent of -180,180,-90,90)... Now MS will be really confused! "Hmmmm, this client wants lat-lon data that stretches over the whole of the universe..." :-) 3) you then advertise the WMS to be able to deliver data in a non-projected and a projected SRS: "wms_srs" "EPSG:4326 EPSG:26915" Which is fine, but you do it again for the LAYER, which I think is superfluous. 4) You do NOT tell the WMS what SRS the data originally is in. There is no PROJECTION object in the LAYER, which in some case might lead to MapServer trying to find out for itself, BUT NOT in the Postgis case you have. A connection to PostGIS in itself needs to be told which projection to fetch the data in (because PosGIS can reproject if necessary). One of the ways of doing that is to make the DATA statement a bit more elaborate than "the_geom from shp_state", instead use DATA "the_geom from shp_state using unique using srid=26915" Hope this helps... -- 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 szekerest at gmail.com Tue Jun 10 10:57:50 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 10 Jun 2008 19:57:50 +0200 Subject: [MAPSERVER-USERS] mapObject serialization in C# (variant) In-Reply-To: <17739919.post@talk.nabble.com> References: <17739919.post@talk.nabble.com> Message-ID: Hi, MapServer currently doesn`t support any other persitence representation than the mapfiles. There have been some initial plans related to an XML format in this list, but no one had any motivation to implement that. So I think the best what you can do at the moment is to use reflection to access the properties along with some other members of the objects and serialize the values manually. Best regards, Tamas 2008/6/9 BrainDrain : > > 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. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From hanscastorp76 at yahoo.es Tue Jun 10 11:04:24 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 10 Jun 2008 18:04:24 +0000 (GMT) Subject: [MAPSERVER-USERS] runtime variable substitution Message-ID: <132323.65346.qm@web25905.mail.ukl.yahoo.com> Hi to all, Any of you have an example about how to do a parameter substitution??? What I want is to change the FILTER statement in one of my mapfile layers, but I don't know how to do it. This is my layer's data and filter definition: DATA "the_geom FROM temp" FILTER "id_session=%id%" What I want is to change the id valuedepending on some circunstances in my application. Thanks in advance. Hans Castorp ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Jun 10 11:44:49 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 10 Jun 2008 14:44:49 -0400 Subject: [MAPSERVER-USERS] runtime variable substitution In-Reply-To: <132323.65346.qm@web25905.mail.ukl.yahoo.com> References: <132323.65346.qm@web25905.mail.ukl.yahoo.com> Message-ID: <484ECBA1.7080909@dmsolutions.ca> Hi There, There are a couple of examples at the end of http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub/ You should be able in your case to use a URL like ....&id=value_of_the_id . Have you tried this and It did not work? Hope it helps. Y.A. Hans Castorp wrote: > Hi to all, > > Any of you have an example about how to do a parameter substitution??? > > What I want is to change the FILTER statement in one of my mapfile > layers, but I don't know how to do it. > > This is my layer's data and filter definition: > > DATA "the_geom FROM temp" > FILTER "id_session=%id%" > > What I want is to change the id valuedepending on some circunstances in > my application. > > Thanks in advance. > > > > > Hans Castorp > > ------------------------------------------------------------------------ > > Enviado desde Correo Yahoo! > > La bandeja de entrada m?s inteligente. > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 Bob.Basques at ci.stpaul.mn.us Tue Jun 10 11:30:20 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 10 Jun 2008 13:30:20 -0500 Subject: [MAPSERVER-USERS] MapFile2XML conversion - WAS: mapObject serialization in C# (variant) In-Reply-To: References: <17739919.post@talk.nabble.com> Message-ID: <484E81EC.163B.00A8.0@ci.stpaul.mn.us> All, We've been pondering some sort of alternative to the Mapfiles for a few years now. A preferable approach would be something that could be stored in a DB in some fashion for querying/assembly processes. It seems on the surface like a DB schema could be developed to handle the MapFile storage aspects. A first step would be in how to best approach moving into an XML way of life for the MapFiles. Would it make any sense in the beginning to just build a MapFile2XML convertor (I would imagine this would be needed before anyone would sign up for XML) and once something like this is a state close to production, the innards of MapServer would then be made to parse the XML directly? Another approach might be to do something like MapFile2SQL first, and then the MapFile2XML. This might save some time and seem like it would make standardization easier, since it would need to be inside of the DB fist. Has anyone tried putting together any requirements list along these lines at all? Is it going to be something where we just need to jump in and build something even if it might be a wrong approach to begin with? This thread just got me thinking is all . . .you know how dangerous that can be . . . :c) bobb >>> "Tamas Szekeres" wrote: Hi, MapServer currently doesn`t support any other persitence representation than the mapfiles. There have been some initial plans related to an XML format in this list, but no one had any motivation to implement that. So I think the best what you can do at the moment is to use reflection to access the properties along with some other members of the objects and serialize the values manually. Best regards, Tamas 2008/6/9 BrainDrain : > > 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. > > _______________________________________________ > 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 kobben at itc.nl Wed Jun 11 00:40:50 2008 From: kobben at itc.nl (Barend Kobben) Date: Wed, 11 Jun 2008 09:40:50 +0200 Subject: [MAPSERVER-USERS] MapFile2XML conversion - WAS: mapObject serialization in C# (variant) In-Reply-To: <484E81EC.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Hi Bob, YES, by all means do move to XML. I think this would be a very important step forward (and my first guess is it would be not too complicated, but you never know...). I do see how some might be attracted to having an DB storage too, but I would urge you to always have that as an alternative, not as instead-of: keep the main configuration mechanism (XML-)file based! In many use cases there's no need for a DB and that would mean you'd have tho have a DB plus all its hassle, only for the configuration part. Also the current file-base config is ideal in situations were many people need to work on the one MS, such as in our educational setup, where we have many students working on their own config files in their private dirs, and they don't need to touch the 'main' MS setup on the server. Actually, what are your reasons for preferring an SQL sdolution over the file based one...? -- 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 10-06-08 20:30, "Bob Basques" wrote: > All, > > We've been pondering some sort of alternative to the Mapfiles for a few years > now. A preferable approach would be something that could be stored in a DB in > some fashion for querying/assembly processes. It seems on the surface like a > DB schema could be developed to handle the MapFile storage aspects. > > A first step would be in how to best approach moving into an XML way of life > for the MapFiles. Would it make any sense in the beginning to just build a > MapFile2XML convertor (I would imagine this would be needed before anyone > would sign up for XML) and once something like this is a state close to > production, the innards of MapServer would then be made to parse the XML > directly? > > Another approach might be to do something like MapFile2SQL first, and then the > MapFile2XML. This might save some time and seem like it would make > standardization easier, since it would need to be inside of the DB fist. > > Has anyone tried putting together any requirements list along these lines at > all? Is it going to be something where we just need to jump in and build > something even if it might be a wrong approach to begin with? > > This thread just got me thinking is all . . .you know how dangerous that can > be . . . :c) > > bobb > > > >>>> "Tamas Szekeres" wrote: > Hi, > > MapServer currently doesn`t support any other persitence > representation than the mapfiles. There have been some initial plans > related to an XML format in this list, but no one had any motivation > to implement that. > So I think the best what you can do at the moment is to use reflection > to access the properties along with some other members of the objects > and serialize the values manually. > > Best regards, > > Tamas > > > 2008/6/9 BrainDrain : >> >> 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-tp17739919p >> 17739919.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 > _______________________________________________ > 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 gonewacko at gonewacko.com Wed Jun 11 00:34:13 2008 From: gonewacko at gonewacko.com (GoneWacko) Date: Wed, 11 Jun 2008 10:34:13 +0300 Subject: [mapserver-users] WMS Client setup not sending any requests Message-ID: <000001c8cb95$8dd4d380$a97e7a80$@com> Hello, I am currently working on a project where I'm trying to use Mapserver as a WMS client, intending to have Mapserver handle the overlaying of data for me. The WMS service I'm going to be using one licensed from the National Land Survey of Finland. This server only supports HTTPS connections and requires Basic Authorization to get data from the service. This may prove to be an issue for me in the future, but at the moment I'm having (what I suspect to be) a different problem. When I test my Map file, which to the best of my (currently limited) knowledge of Mapserver, should work, I only get entirely white images back from the mapserv binary. I've not yet figured out how to get mapserv to do verbose logging, but the logging it does so far does not show me what the issue might be. I've been trying to get it to work on linux, but then when it didn't I tried it on my local windows machine as well. Both machines display the same white image. The output of my mapserv -v invocations: On Linux: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Windows: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The map file I'm using can be found at the following location: http://www.gonewacko.com/work/finland.map For more information about the capabilities of the WMS Server I'm trying to connect to, I've uploaded the results of a GetCapabilities request here: http://gonewacko.com/work/GetCapabilities.xml (Most of the text is in Finnish; Which I don't actually understand myself, but luckily it's not too relevant). The URL I've been using to test it has usually just been http://example.com/cgi-bin/mapserv?map=/path/to/finland.map &mode=map. My theories are - The map has been set up in such a way that mapserv finds it's not within the area I'm requesting, and as such does not attempt to render it. - The map has just been set up incorrectly (most likely) Note that the only files I have are the map file. I do not have any shape files or anything of that nature. And apart from the censored login information in the URLs, the map file is available in its entirety. Also note that I've tried replacing the WMS URLs with something that is not a https url (i.e. a normal http url), as well as omitting the authorization data. It still wouldn't send a request to the URL. Can anyone shed some light on what I'm doing wrong? Thanks in advance. Best Regards, Stijn Gijsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at yahoo.es Wed Jun 11 01:03:21 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Wed, 11 Jun 2008 08:03:21 +0000 (GMT) Subject: [MAPSERVER-USERS] runtime variable substitution Message-ID: <324808.41740.qm@web25905.mail.ukl.yahoo.com> Thanks for your reply, Well, this is my problem. I am using ka-map so, I think, I am not able to use a URL like the one you show. I was thinking about making the substitution using mapscript, but I haven't found any example... Thankis in advance. -----Mensaje original----- De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: martes, 10 de junio de 2008 20:45 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [MAPSERVER-USERS] runtime variable substitution Hi There, There are a couple of examples at the end of http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub/ You should be able in your case to use a URL like ....&id=value_of_the_id . Have you tried this and It did not work? Hope it helps. Y.A. Hans Castorp wrote: > Hi to all, > > Any of you have an example about how to do a parameter substitution??? > > What I want is to change the FILTER statement in one of my mapfile > layers, but I don't know how to do it. > > This is my layer's data and filter definition: > > DATA "the_geom FROM temp" > FILTER "id_session=%id%" > > What I want is to change the id valuedepending on some circunstances in > my application. > > Thanks in advance. > > > > > Hans Castorp > > ------------------------------------------------------------------------ > > Enviado desde Correo Yahoo! > > La bandeja de entrada m?s inteligente. > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 ---------------------------------------------------------------- No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.2.0/1495 - Release Date: 10/06/2008 17:11 ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.stockhaus at srhh.de Wed Jun 11 00:39:50 2008 From: d.stockhaus at srhh.de (d.stockhaus at srhh.de) Date: Wed, 11 Jun 2008 09:39:50 +0200 Subject: Antwort: [mapserver-users] sde query and EXPRESSION error in sde In-Reply-To: <29B5E55F64B92C428E096B7136A0100D3BB887@DEBNLWMXSC0101.sv.ad.tmo> Message-ID: Hi Ludger, to query a Point Layer from SDE you need tolerance and Dump true in your Layerdefinition. TOLERANCE 3 TOLERANCEUNITS PIXELS DUMP TRUE maybe that is the problem. Mit freundlichem Gru?, Detlef Stockhaus Zentraler Service / IT Anwendungsentwicklung Telefon: 040 - 2576 1561 Fax: 040 - 2576 1500 Mobil: 0162 - 288 1561 STADTREINIGUNG HAMBURG ENTSORGUNGSFACHBETRIEB, zertifiziert f?r das Einsammeln, Bef?rdern, Lagern, Behandeln von Abf?llen zur Verwertung und Beseitigung. Anstalt des ?ffentlichen Rechts, Bullerdeich 19, 20537 Hamburg Vorsitzender des Aufsichtsrats: Staatsrat Christian Maa? Gesch?ftsf?hrer: Dr. R?diger Siechau, Werner Kehren Tipps, Termine und Dienstleistungen rund um die Abfallentsorgung in Hamburg finden Sie auch unter http://www.stadtreinigung-hh.de Informationen der Stadtreinigung Hamburg erhalten Sie stets aktuell durch den E-Mail-Newsletter. Anmeldung ?ber: http://www.srhh.de/srhh/servlet/NewsletterLogonServlet.do "Steffens, Ludger" Gesendet von: mapserver-users-bounces at lists.osgeo.org 10.06.2008 15:05 An Kopie Thema [mapserver-users] sde query and EXPRESSION error in sde Hi, We have to draw and query a map which is based on an arcsde database. Case 1: I want to query an object, which is of type point. The objects are in an arcsde geodata-server, which I connect with the following statement: CONNECTION "xxx.dcnv.xxx.de,port:5151,sde,xxx,xxx" CONNECTIONTYPE SDE DATA "xxx.xTS,SHAPE,SDE.DEFAULT" As a result I get the following error: Content-type: text/html msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) There is a great number of points which I do have to query, and there are also cases (points) , which might have a NULL-field within the list of attributs for a specific point. If I query objects which are polygon type everything is fine, i.e. I don't get any errors. Case 2: I want to draw another layer based on the same connection statement, i.e. also point object in an arcsde database. The attribut are of type SE_INT32. When I issue an EXPRESSION statement , i.e. EXPRESSION ([WINKEL] > 0 ), mapserver complains this with the error message msyyparse(): Expression parser error. syntax error msEvalExpression: Expression parser error. Failed to parse expression: > 0 What do I do wrong? Or, is there an error in the sde database? Mapserver was build including arcsde library sdeexe92 and use the configure statement " --with-sde-version=92" I really would appreciate any ideas in solving these errors. Ludger T-Mobile Deutschland GmbH Aufsichtsrat: Hamid Akhavan (Vorsitzender) Geschaftsfuhrung: Philipp Humm (Sprecher), Thomas Berlemann, Jiri Dvorjancansky, Dr. Peter Korner, Gunther Ottendorfer, Dr. Raphael Kubler, Dr. Steffen Roehn Handelsregister: Amtsgericht Bonn, HRB 59 19 Sitz der Gesellschaft: Bonn WEEE-Reg.-Nr.: DE60800328 _______________________________________________ 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 guillaume.sueur at neogeo-online.net Wed Jun 11 01:15:28 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 11 Jun 2008 10:15:28 +0200 Subject: [mapserver-users] WMS Client setup not sending any requests In-Reply-To: <000001c8cb95$8dd4d380$a97e7a80$@com> References: <000001c8cb95$8dd4d380$a97e7a80$@com> Message-ID: <484F89A0.1060200@neogeo-online.net> Hi, Tough question, as the problem can has many origins, or even multiple origins... Having seen your .map, I assume that the main parameters are correct. Maybe one first pointto check is the scale : the getCapabilities says for raster100 : and you set in your layer section scales from 500 to 20000. I don't think your initial extent (3037978.75 6622010.94 3767454.98 7790000) falls into that. Can you try with a more adequate extent ? Also, you are requesting a jpeg image from the wms server to render your map in png. Try to ask for png as the server allows that. Hint : to test a mapfile directly, you can use shp2img which will try to draw the image as defined in the mapfile. use shp2img -o test.png to get the resulting image into test.png file. Hope that helps, Guillaume GoneWacko a ?crit : > Hello, > > > > I am currently working on a project where I?m trying to use Mapserver as > a WMS client, intending to have Mapserver handle the overlaying of data > for me. The WMS service I?m going to be using one licensed from the > National Land Survey of Finland. > > This server only supports HTTPS connections and requires Basic > Authorization to get data from the service. This may prove to be an > issue for me in the future, but at the moment I?m having (what I suspect > to be) a different problem. > > > > When I test my Map file, which to the best of my (currently limited) > knowledge of Mapserver, should work, I only get entirely white images > back from the mapserv binary. I?ve not yet figured out how to get > mapserv to do verbose logging, but the logging it does so far does not > show me what the issue might be. > > > > I?ve been trying to get it to work on linux, but then when it didn?t I > tried it on my local windows machine as well. Both machines display the > same white image. > > > > The output of my mapserv ?v invocations: > > On Linux: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > On Windows: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > The map file I?m using can be found at the following location: > http://www.gonewacko.com/work/finland.map > > For more information about the capabilities of the WMS Server I?m trying > to connect to, I?ve uploaded the results of a GetCapabilities request > here: http://gonewacko.com/work/GetCapabilities.xml (Most of the text is > in Finnish; Which I don?t actually understand myself, but luckily it?s > not too relevant). > > The URL I?ve been using to test it has usually just been > http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map > . > > My theories are > > - The map has been set up in such a way that mapserv > finds it?s not within the area I?m requesting, and as such does not > attempt to render it. > > - The map has just been set up incorrectly (most likely) > > > > Note that the only files I have are the map file. I do not have any > shape files or anything of that nature. And apart from the censored > login information in the URLs, the map file is available in its entirety. > > Also note that I?ve tried replacing the WMS URLs with something that is > not a https url (i.e. a normal http url), as well as omitting the > authorization data. It still wouldn?t send a request to the URL. > > > > Can anyone shed some light on what I?m doing wrong? Thanks in advance. > > > > Best Regards, > > Stijn Gijsen > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 11 02:51:19 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 11 Jun 2008 12:51:19 +0300 Subject: [mapserver-users] WMS Client setup not sending any requests In-Reply-To: <000001c8cb95$8dd4d380$a97e7a80$@com> Message-ID: Hi, Your first problem is that you are requesting layer rasta100 layer in EPSG:2393, but it supports only EPSG:3067. But I am thinking that the basic problem is that MapServer does not support connection over https with basic authentication at all. I started a thread named "Cascading external WMS using basic authentication over https" in January this year. At that time Frank Warmerdam wrote: > Jukka, > I would be willing to implement this if you are willing to help with > some research, RFC writing and testing. In particular we need to > isolate what extra curl options such as, but possibly not limited to, > userid and password we should be able to pass through. Then we can > write up an RFC based on doing this through layer metadata. Then - > once approved - I can implement and you could test. > As I think back, I realize the other time I did something like this it > was actually using a digital certificate rather than simple > userid/password protection. Ideally we would address both cases. > If this effort level exceeds the amount of effort you want to invest, > then filing an enhancement ticket at least summarizing some of these > ideas would be a good start. > PS. If implemented we would presumably do it in a way that applied to > WFS and WMS client layers. It is good news for me if MapServer has made to support connection in the way you are trying, thus( https://user:password at server.etc...) -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko L?hetetty: 11. kes?kuuta 2008 10:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS Client setup not sending any requests Hello, I am currently working on a project where I'm trying to use Mapserver as a WMS client, intending to have Mapserver handle the overlaying of data for me. The WMS service I'm going to be using one licensed from the National Land Survey of Finland. This server only supports HTTPS connections and requires Basic Authorization to get data from the service. This may prove to be an issue for me in the future, but at the moment I'm having (what I suspect to be) a different problem. When I test my Map file, which to the best of my (currently limited) knowledge of Mapserver, should work, I only get entirely white images back from the mapserv binary. I've not yet figured out how to get mapserv to do verbose logging, but the logging it does so far does not show me what the issue might be. I've been trying to get it to work on linux, but then when it didn't I tried it on my local windows machine as well. Both machines display the same white image. The output of my mapserv -v invocations: On Linux: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Windows: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The map file I'm using can be found at the following location: http://www.gonewacko.com/work/finland.map For more information about the capabilities of the WMS Server I'm trying to connect to, I've uploaded the results of a GetCapabilities request here: http://gonewacko.com/work/GetCapabilities.xml (Most of the text is in Finnish; Which I don't actually understand myself, but luckily it's not too relevant). The URL I've been using to test it has usually just been http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. My theories are - The map has been set up in such a way that mapserv finds it's not within the area I'm requesting, and as such does not attempt to render it. - The map has just been set up incorrectly (most likely) Note that the only files I have are the map file. I do not have any shape files or anything of that nature. And apart from the censored login information in the URLs, the map file is available in its entirety. Also note that I've tried replacing the WMS URLs with something that is not a https url (i.e. a normal http url), as well as omitting the authorization data. It still wouldn't send a request to the URL. Can anyone shed some light on what I'm doing wrong? Thanks in advance. Best Regards, Stijn Gijsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jun 11 03:04:45 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 11 Jun 2008 13:04:45 +0300 Subject: [mapserver-users] WMS Client setup not sending any requests In-Reply-To: Message-ID: Sorry, I was wrong with supported projections for rasta100 layer. EPSG:2393 is ok. So the question is if basic authentication is supported or not. -Jukka- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Rahkonen Jukka L?hetetty: 11. kes?kuuta 2008 12:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WMS Client setup not sending any requests Hi, Your first problem is that you are requesting layer rasta100 layer in EPSG:2393, but it supports only EPSG:3067. But I am thinking that the basic problem is that MapServer does not support connection over https with basic authentication at all. I started a thread named "Cascading external WMS using basic authentication over https" in January this year. At that time Frank Warmerdam wrote: > Jukka, > I would be willing to implement this if you are willing to help with > some research, RFC writing and testing. In particular we need to > isolate what extra curl options such as, but possibly not limited to, > userid and password we should be able to pass through. Then we can > write up an RFC based on doing this through layer metadata. Then - > once approved - I can implement and you could test. > As I think back, I realize the other time I did something like this it > was actually using a digital certificate rather than simple > userid/password protection. Ideally we would address both cases. > If this effort level exceeds the amount of effort you want to invest, > then filing an enhancement ticket at least summarizing some of these > ideas would be a good start. > PS. If implemented we would presumably do it in a way that applied to > WFS and WMS client layers. It is good news for me if MapServer has made to support connection in the way you are trying, thus( https://user:password at server.etc...) -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko L?hetetty: 11. kes?kuuta 2008 10:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS Client setup not sending any requests Hello, I am currently working on a project where I'm trying to use Mapserver as a WMS client, intending to have Mapserver handle the overlaying of data for me. The WMS service I'm going to be using one licensed from the National Land Survey of Finland. This server only supports HTTPS connections and requires Basic Authorization to get data from the service. This may prove to be an issue for me in the future, but at the moment I'm having (what I suspect to be) a different problem. When I test my Map file, which to the best of my (currently limited) knowledge of Mapserver, should work, I only get entirely white images back from the mapserv binary. I've not yet figured out how to get mapserv to do verbose logging, but the logging it does so far does not show me what the issue might be. I've been trying to get it to work on linux, but then when it didn't I tried it on my local windows machine as well. Both machines display the same white image. The output of my mapserv -v invocations: On Linux: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Windows: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The map file I'm using can be found at the following location: http://www.gonewacko.com/work/finland.map For more information about the capabilities of the WMS Server I'm trying to connect to, I've uploaded the results of a GetCapabilities request here: http://gonewacko.com/work/GetCapabilities.xml (Most of the text is in Finnish; Which I don't actually understand myself, but luckily it's not too relevant). The URL I've been using to test it has usually just been http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. My theories are - The map has been set up in such a way that mapserv finds it's not within the area I'm requesting, and as such does not attempt to render it. - The map has just been set up incorrectly (most likely) Note that the only files I have are the map file. I do not have any shape files or anything of that nature. And apart from the censored login information in the URLs, the map file is available in its entirety. Also note that I've tried replacing the WMS URLs with something that is not a https url (i.e. a normal http url), as well as omitting the authorization data. It still wouldn't send a request to the URL. Can anyone shed some light on what I'm doing wrong? Thanks in advance. Best Regards, Stijn Gijsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jun 11 03:11:12 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 11 Jun 2008 13:11:12 +0300 Subject: [MAPSERVER-USERS] MapFile2XML conversion - WAS: mapObjectserialization in C# (variant) In-Reply-To: Message-ID: Hi, Oh no, please do not move to XML as the only alternative, at least not without making a very-easy-to-use XML-Mapfile editor for mortals like me with the same. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Barend Kobben > L?hetetty: 11. kes?kuuta 2008 10:41 > Vastaanottaja: Bob Basques; mapserver-users at lists.osgeo.org > Aihe: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: > mapObjectserialization in C# (variant) > > Hi Bob, > > YES, by all means do move to XML. I think this would be a > very important step forward (and my first guess is it would > be not too complicated, but you never know...). > > I do see how some might be attracted to having an DB storage > too, but I would urge you to always have that as an > alternative, not as instead-of: > keep the main configuration mechanism (XML-)file based! In > many use cases there's no need for a DB and that would mean > you'd have tho have a DB plus all its hassle, only for the > configuration part. Also the current file-base config is > ideal in situations were many people need to work on the one > MS, such as in our educational setup, where we have many > students working on their own config files in their private > dirs, and they don't need to touch the 'main' MS setup on the server. > > Actually, what are your reasons for preferring an SQL > sdolution over the file based one...? > > > -- > 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 10-06-08 20:30, "Bob Basques" wrote: > > > All, > > > > We've been pondering some sort of alternative to the > Mapfiles for a few years > > now. A preferable approach would be something that could > be stored in a DB in > > some fashion for querying/assembly processes. It seems on > the surface like a > > DB schema could be developed to handle the MapFile storage aspects. > > > > A first step would be in how to best approach moving into > an XML way of life > > for the MapFiles. Would it make any sense in the beginning > to just build a > > MapFile2XML convertor (I would imagine this would be needed > before anyone > > would sign up for XML) and once something like this is a > state close to > > production, the innards of MapServer would then be made to > parse the XML > > directly? > > > > Another approach might be to do something like MapFile2SQL > first, and then the > > MapFile2XML. This might save some time and seem like it would make > > standardization easier, since it would need to be inside of > the DB fist. > > > > Has anyone tried putting together any requirements list > along these lines at > > all? Is it going to be something where we just need to > jump in and build > > something even if it might be a wrong approach to begin with? > > > > This thread just got me thinking is all . . .you know how > dangerous that can > > be . . . :c) > > > > bobb > > > > > > > >>>> "Tamas Szekeres" wrote: > > Hi, > > > > MapServer currently doesn`t support any other persitence > > representation than the mapfiles. There have been some initial plans > > related to an XML format in this list, but no one had any motivation > > to implement that. > > So I think the best what you can do at the moment is to use > reflection > > to access the properties along with some other members of > the objects > > and serialize the values manually. > > > > Best regards, > > > > Tamas > > > > > > 2008/6/9 BrainDrain : > >> > >> 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-tp17739919p > >> 17739919.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 > > _______________________________________________ > > 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. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gonewacko at gonewacko.com Wed Jun 11 03:20:40 2008 From: gonewacko at gonewacko.com (GoneWacko) Date: Wed, 11 Jun 2008 13:20:40 +0300 Subject: [mapserver-users] RE: WMS Client setup not sending any requests In-Reply-To: <20080611101117.46275E01953@lists.osgeo.org> References: <20080611101117.46275E01953@lists.osgeo.org> Message-ID: <001f01c8cbac$ce0274a0$6a075de0$@com> Hello. Jukka: Unfortunately it is not even sending any requests when I change the URL into "http://www.gonewacko.com/"; Of course this would not work, but when I look at my packet sniffer (ethereal/wireshark) I don't even see mapserver *attempting* to connect to gonewacko.com. In other words, even when the URL does not feature basic authentication and it is not a https URL, mapserver does not make any HTTP connections. As for the advice given about the scale and the extent: The scale hints I had forgotten to update after fiddling around with the various SRSes available. I also feared that the extent would be the culprit. Unfortunately I do not seem to understand the way the EXTENT works to find the proper settings. But I'm taking another close look at whatever documentation I might find (links to documents explaining the option in greater detail would be appreciated ;)) in order to find out what the proper setting would be. Thank you for the quick responses! Best Regards, Stijn Gijsen -----Oorspronkelijk bericht----- Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens mapserver-users-request at lists.osgeo.org Verzonden: woensdag 11 juni 2008 13:11 Aan: mapserver-users at lists.osgeo.org Onderwerp: mapserver-users Digest, Vol 5, Issue 44 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: WMS Client setup not sending any requests (Rahkonen Jukka) 2. Re: MapFile2XML conversion - WAS: mapObjectserialization in C# (variant) (Rahkonen Jukka) ---------------------------------------------------------------------- Message: 1 Date: Wed, 11 Jun 2008 13:04:45 +0300 From: "Rahkonen Jukka" Subject: Re: [mapserver-users] WMS Client setup not sending any requests To: Message-ID: Content-Type: text/plain; charset="iso-8859-1" Sorry, I was wrong with supported projections for rasta100 layer. EPSG:2393 is ok. So the question is if basic authentication is supported or not. -Jukka- ________________________________ Ldhettdjd: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Rahkonen Jukka Ldhetetty: 11. kesdkuuta 2008 12:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WMS Client setup not sending any requests Hi, Your first problem is that you are requesting layer rasta100 layer in EPSG:2393, but it supports only EPSG:3067. But I am thinking that the basic problem is that MapServer does not support connection over https with basic authentication at all. I started a thread named "Cascading external WMS using basic authentication over https" in January this year. At that time Frank Warmerdam wrote: > Jukka, > I would be willing to implement this if you are willing to help with > some research, RFC writing and testing. In particular we need to > isolate what extra curl options such as, but possibly not limited to, > userid and password we should be able to pass through. Then we can > write up an RFC based on doing this through layer metadata. Then - > once approved - I can implement and you could test. > As I think back, I realize the other time I did something like this it > was actually using a digital certificate rather than simple > userid/password protection. Ideally we would address both cases. > If this effort level exceeds the amount of effort you want to invest, > then filing an enhancement ticket at least summarizing some of these > ideas would be a good start. > PS. If implemented we would presumably do it in a way that applied to > WFS and WMS client layers. It is good news for me if MapServer has made to support connection in the way you are trying, thus( https://user:password at server.etc...) -Jukka Rahkonen- ________________________________ Ldhettdjd: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko Ldhetetty: 11. kesdkuuta 2008 10:34 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS Client setup not sending any requests Hello, I am currently working on a project where I'm trying to use Mapserver as a WMS client, intending to have Mapserver handle the overlaying of data for me. The WMS service I'm going to be using one licensed from the National Land Survey of Finland. This server only supports HTTPS connections and requires Basic Authorization to get data from the service. This may prove to be an issue for me in the future, but at the moment I'm having (what I suspect to be) a different problem. When I test my Map file, which to the best of my (currently limited) knowledge of Mapserver, should work, I only get entirely white images back from the mapserv binary. I've not yet figured out how to get mapserv to do verbose logging, but the logging it does so far does not show me what the issue might be. I've been trying to get it to work on linux, but then when it didn't I tried it on my local windows machine as well. Both machines display the same white image. The output of my mapserv -v invocations: On Linux: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Windows: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The map file I'm using can be found at the following location: http://www.gonewacko.com/work/finland.map For more information about the capabilities of the WMS Server I'm trying to connect to, I've uploaded the results of a GetCapabilities request here: http://gonewacko.com/work/GetCapabilities.xml (Most of the text is in Finnish; Which I don't actually understand myself, but luckily it's not too relevant). The URL I've been using to test it has usually just been http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. My theories are - The map has been set up in such a way that mapserv finds it's not within the area I'm requesting, and as such does not attempt to render it. - The map has just been set up incorrectly (most likely) Note that the only files I have are the map file. I do not have any shape files or anything of that nature. And apart from the censored login information in the URLs, the map file is available in its entirety. Also note that I've tried replacing the WMS URLs with something that is not a https url (i.e. a normal http url), as well as omitting the authorization data. It still wouldn't send a request to the URL. Can anyone shed some light on what I'm doing wrong? Thanks in advance. Best Regards, Stijn Gijsen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080611/afd7ee 84/attachment-0001.html ------------------------------ Message: 2 Date: Wed, 11 Jun 2008 13:11:12 +0300 From: "Rahkonen Jukka" Subject: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: mapObjectserialization in C# (variant) To: Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Oh no, please do not move to XML as the only alternative, at least not without making a very-easy-to-use XML-Mapfile editor for mortals like me with the same. -Jukka Rahkonen- > -----Alkuperdinen viesti----- > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Barend Kobben > Ldhetetty: 11. kesdkuuta 2008 10:41 > Vastaanottaja: Bob Basques; mapserver-users at lists.osgeo.org > Aihe: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: > mapObjectserialization in C# (variant) > > Hi Bob, > > YES, by all means do move to XML. I think this would be a > very important step forward (and my first guess is it would > be not too complicated, but you never know...). > > I do see how some might be attracted to having an DB storage > too, but I would urge you to always have that as an > alternative, not as instead-of: > keep the main configuration mechanism (XML-)file based! In > many use cases there's no need for a DB and that would mean > you'd have tho have a DB plus all its hassle, only for the > configuration part. Also the current file-base config is > ideal in situations were many people need to work on the one > MS, such as in our educational setup, where we have many > students working on their own config files in their private > dirs, and they don't need to touch the 'main' MS setup on the server. > > Actually, what are your reasons for preferring an SQL > sdolution over the file based one...? > > > -- > Barend Kvbben > International Institute for Geo-Information Sciences and > Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > On 10-06-08 20:30, "Bob Basques" wrote: > > > All, > > > > We've been pondering some sort of alternative to the > Mapfiles for a few years > > now. A preferable approach would be something that could > be stored in a DB in > > some fashion for querying/assembly processes. It seems on > the surface like a > > DB schema could be developed to handle the MapFile storage aspects. > > > > A first step would be in how to best approach moving into > an XML way of life > > for the MapFiles. Would it make any sense in the beginning > to just build a > > MapFile2XML convertor (I would imagine this would be needed > before anyone > > would sign up for XML) and once something like this is a > state close to > > production, the innards of MapServer would then be made to > parse the XML > > directly? > > > > Another approach might be to do something like MapFile2SQL > first, and then the > > MapFile2XML. This might save some time and seem like it would make > > standardization easier, since it would need to be inside of > the DB fist. > > > > Has anyone tried putting together any requirements list > along these lines at > > all? Is it going to be something where we just need to > jump in and build > > something even if it might be a wrong approach to begin with? > > > > This thread just got me thinking is all . . .you know how > dangerous that can > > be . . . :c) > > > > bobb > > > > > > > >>>> "Tamas Szekeres" wrote: > > Hi, > > > > MapServer currently doesn`t support any other persitence > > representation than the mapfiles. There have been some initial plans > > related to an XML format in this list, but no one had any motivation > > to implement that. > > So I think the best what you can do at the moment is to use > reflection > > to access the properties along with some other members of > the objects > > and serialize the values manually. > > > > Best regards, > > > > Tamas > > > > > > 2008/6/9 BrainDrain : > >> > >> 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-tp17739919p > >> 17739919.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 > > _______________________________________________ > > 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. > _______________________________________________ > 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 End of mapserver-users Digest, Vol 5, Issue 44 ********************************************** From guillaume.sueur at neogeo-online.net Wed Jun 11 03:26:52 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 11 Jun 2008 12:26:52 +0200 Subject: [mapserver-users] RE: WMS Client setup not sending any requests In-Reply-To: <001f01c8cbac$ce0274a0$6a075de0$@com> References: <20080611101117.46275E01953@lists.osgeo.org> <001f01c8cbac$ce0274a0$6a075de0$@com> Message-ID: <484FA86C.8030000@neogeo-online.net> setting the extent is not a big deal. juste specify a square extent (same difference between x and y) to adjust to your 800 x800 image. try to specify an extent within the actual one, with xmax = xmin + 10000 (10 kms) and the same for y. Guillaume From Jukka.Rahkonen at mmmtike.fi Wed Jun 11 03:42:32 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 11 Jun 2008 13:42:32 +0300 Subject: [mapserver-users] RE: WMS Client setup not sending any requests In-Reply-To: <001f01c8cbac$ce0274a0$6a075de0$@com> Message-ID: Hi, If your URL is http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. and all your layers has STATUS ON you are not asking for anything else than an empty map. Either set STATUS DEFAULT, or add &layer= to your request. I recommend you to make a couple of very simple layers first from local shapefile and local GeoTIFF image. Start adding WMS layers once those simple cases are working and you know for sure that all the basics are OK. Next step would be to add WMS service that do not require authentication, for example from openaerialmap.org -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko > L?hetetty: 11. kes?kuuta 2008 13:21 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] RE: WMS Client setup not sending any requests > > Hello. > > Jukka: Unfortunately it is not even sending any requests when > I change the URL into "http://www.gonewacko.com/"; Of course > this would not work, but when I look at my packet sniffer > (ethereal/wireshark) I don't even see mapserver *attempting* > to connect to gonewacko.com. In other words, even when the > URL does not feature basic authentication and it is not a > https URL, mapserver does not make any HTTP connections. > > As for the advice given about the scale and the extent: The > scale hints I had forgotten to update after fiddling around > with the various SRSes available. I also feared that the > extent would be the culprit. Unfortunately I do not seem to > understand the way the EXTENT works to find the proper > settings. But I'm taking another close look at whatever > documentation I might find (links to documents explaining the > option in greater detail would be appreciated ;)) in order to > find out what the proper setting would be. > > Thank you for the quick responses! > > Best Regards, > Stijn Gijsen > > -----Oorspronkelijk bericht----- > Van: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Namens > mapserver-users-request at lists.osgeo.org > Verzonden: woensdag 11 juni 2008 13:11 > Aan: mapserver-users at lists.osgeo.org > Onderwerp: mapserver-users Digest, Vol 5, Issue 44 > > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more > specific than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: WMS Client setup not sending any requests (Rahkonen Jukka) > 2. Re: MapFile2XML conversion - WAS: > mapObjectserialization in > C# (variant) (Rahkonen Jukka) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 11 Jun 2008 13:04:45 +0300 > From: "Rahkonen Jukka" > Subject: Re: [mapserver-users] WMS Client setup not sending any > requests > To: > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Sorry, I was wrong with supported projections for rasta100 > layer. EPSG:2393 is ok. So the question is if basic > authentication is supported or not. > > -Jukka- > > > ________________________________ > > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Rahkonen Jukka > Ldhetetty: 11. kesdkuuta 2008 12:51 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] WMS Client setup not > sending any requests > > > Hi, > > Your first problem is that you are requesting layer > rasta100 layer in EPSG:2393, but it supports only EPSG:3067. > But I am thinking that the basic problem is that MapServer > does not support connection over https with basic > authentication at all. I started a thread named "Cascading > external WMS using basic authentication over https" in > January this year. > At that time Frank Warmerdam wrote: > > > Jukka, > > I would be willing to implement this if you are > willing to help with > > some research, RFC writing and testing. In > particular we need to > > isolate what extra curl options such as, but possibly > not limited to, > > userid and password we should be able to pass > through. Then we can > > write up an RFC based on doing this through layer > metadata. Then > - > > once approved - I can implement and you could test. > > As I think back, I realize the other time I did > something like this it > > was actually using a digital certificate rather than simple > > userid/password protection. Ideally we would address > both cases. > > If this effort level exceeds the amount of effort you > want to invest, > > then filing an enhancement ticket at least > summarizing some of these > > ideas would be a good start. > > PS. If implemented we would presumably do it in a way > that applied to > > WFS and WMS client layers. > > It is good news for me if MapServer has made to support > connection in the way you are trying, thus( > https://user:password at server.etc...) > > -Jukka Rahkonen- > > > > ________________________________ > > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko > Ldhetetty: 11. kesdkuuta 2008 10:34 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WMS Client setup not sending > any requests > > > > Hello, > > > > I am currently working on a project where I'm > trying to use Mapserver as a WMS client, intending to have > Mapserver handle the overlaying of data for me. The WMS > service I'm going to be using one licensed from the National > Land Survey of Finland. > > This server only supports HTTPS connections and > requires Basic Authorization to get data from the service. > This may prove to be an issue for me in the future, but at > the moment I'm having (what I suspect to > be) a different problem. > > > > When I test my Map file, which to the best of > my (currently > limited) knowledge of Mapserver, should work, I only get > entirely white images back from the mapserv binary. I've not > yet figured out how to get mapserv to do verbose logging, but > the logging it does so far does not show me what the issue might be. > > > > I've been trying to get it to work on linux, > but then when it didn't I tried it on my local windows > machine as well. Both machines display the same white image. > > > > The output of my mapserv -v invocations: > > On Linux: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > On Windows: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > The map file I'm using can be found at the following > location: http://www.gonewacko.com/work/finland.map > > For more information about the capabilities of > the WMS Server I'm trying to connect to, I've uploaded the > results of a GetCapabilities request here: > http://gonewacko.com/work/GetCapabilities.xml > (Most of the text is in Finnish; Which I don't actually > understand myself, but luckily it's not too relevant). > > The URL I've been using to test it has usually > just been > http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. > > My theories are > > - The map has been set up in > such a way that mapserv finds it's not within the area I'm > requesting, and as such does not attempt to render it. > > - The map has just been set up > incorrectly (most likely) > > > > Note that the only files I have are the map > file. I do not have any shape files or anything of that > nature. And apart from the censored login information in the > URLs, the map file is available in its entirety. > > Also note that I've tried replacing the WMS > URLs with something that is not a https url (i.e. a normal > http url), as well as omitting the authorization data. It > still wouldn't send a request to the URL. > > > > Can anyone shed some light on what I'm doing > wrong? Thanks in advance. > > > > Best Regards, > > Stijn Gijsen > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/2 > 0080611/afd7ee > 84/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Wed, 11 Jun 2008 13:11:12 +0300 > From: "Rahkonen Jukka" > Subject: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: > mapObjectserialization in C# (variant) > To: > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Oh no, please do not move to XML as the only alternative, at > least not without making a very-easy-to-use XML-Mapfile > editor for mortals like me with the same. > > -Jukka Rahkonen- > > > -----Alkuperdinen viesti----- > > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Barend > > Kobben > > Ldhetetty: 11. kesdkuuta 2008 10:41 > > Vastaanottaja: Bob Basques; mapserver-users at lists.osgeo.org > > Aihe: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: > > mapObjectserialization in C# (variant) > > > > Hi Bob, > > > > YES, by all means do move to XML. I think this would be a very > > important step forward (and my first guess is it would be not too > > complicated, but you never know...). > > > > I do see how some might be attracted to having an DB > storage too, but > > I would urge you to always have that as an alternative, not as > > instead-of: > > keep the main configuration mechanism (XML-)file based! In many use > > cases there's no need for a DB and that would mean you'd > have tho have > > a DB plus all its hassle, only for the configuration part. Also the > > current file-base config is ideal in situations were many > people need > > to work on the one MS, such as in our educational setup, > where we have > > many students working on their own config files in their > private dirs, > > and they don't need to touch the 'main' MS setup on the server. > > > > Actually, what are your reasons for preferring an SQL > sdolution over > > the file based one...? > > > > > > -- > > Barend Kvbben > > International Institute for Geo-Information Sciences and Earth > > Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands > > +31 (0)53 4874253 > > > > > > > > On 10-06-08 20:30, "Bob Basques" > wrote: > > > > > All, > > > > > > We've been pondering some sort of alternative to the > > Mapfiles for a few years > > > now. A preferable approach would be something that could > > be stored in a DB in > > > some fashion for querying/assembly processes. It seems on > > the surface like a > > > DB schema could be developed to handle the MapFile > storage aspects. > > > > > > A first step would be in how to best approach moving into > > an XML way of life > > > for the MapFiles. Would it make any sense in the beginning > > to just build a > > > MapFile2XML convertor (I would imagine this would be needed > > before anyone > > > would sign up for XML) and once something like this is a > > state close to > > > production, the innards of MapServer would then be made to > > parse the XML > > > directly? > > > > > > Another approach might be to do something like MapFile2SQL > > first, and then the > > > MapFile2XML. This might save some time and seem like it > would make > > > standardization easier, since it would need to be inside of > > the DB fist. > > > > > > Has anyone tried putting together any requirements list > > along these lines at > > > all? Is it going to be something where we just need to > > jump in and build > > > something even if it might be a wrong approach to begin with? > > > > > > This thread just got me thinking is all . . .you know how > > dangerous that can > > > be . . . :c) > > > > > > bobb > > > > > > > > > > > >>>> "Tamas Szekeres" wrote: > > > Hi, > > > > > > MapServer currently doesn`t support any other persitence > > > representation than the mapfiles. There have been some > initial plans > > > related to an XML format in this list, but no one had any > motivation > > > to implement that. > > > So I think the best what you can do at the moment is to use > > reflection > > > to access the properties along with some other members of > > the objects > > > and serialize the values manually. > > > > > > Best regards, > > > > > > Tamas > > > > > > > > > 2008/6/9 BrainDrain : > > >> > > >> 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-tp17739919p > > >> 17739919.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 > > > _______________________________________________ > > > 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. > > _______________________________________________ > > 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 > > > End of mapserver-users Digest, Vol 5, Issue 44 > ********************************************** > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gonewacko at gonewacko.com Wed Jun 11 03:52:46 2008 From: gonewacko at gonewacko.com (GoneWacko) Date: Wed, 11 Jun 2008 13:52:46 +0300 Subject: [mapserver-users] RE: WMS Client setup not sending any requests In-Reply-To: References: <001f01c8cbac$ce0274a0$6a075de0$@com> Message-ID: <002201c8cbb1$4d45d050$e7d170f0$@com> Hello, I guess I'll have a go at local shape files first, yes. Unfortunately my GIS needs are rather specific and I am quite dependent on the nls.fi maps I'm attempting to use. But the https/basic authentication issue is one that I will resolve later, be it by compiling a version of mapserver that does support them (as there seem to be patches available to add authentication support), or by writing a little python script that relays the requests to the nls.fi server. Thanks for the suggestions. Now I'll go and look how to make shape files... :-) Best Regards, Stijn Gijsen -----Oorspronkelijk bericht----- Van: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Verzonden: woensdag 11 juni 2008 13:43 Aan: GoneWacko; mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] RE: WMS Client setup not sending any requests Hi, If your URL is http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. and all your layers has STATUS ON you are not asking for anything else than an empty map. Either set STATUS DEFAULT, or add &layer= to your request. I recommend you to make a couple of very simple layers first from local shapefile and local GeoTIFF image. Start adding WMS layers once those simple cases are working and you know for sure that all the basics are OK. Next step would be to add WMS service that do not require authentication, for example from openaerialmap.org -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko > L?hetetty: 11. kes?kuuta 2008 13:21 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] RE: WMS Client setup not sending any requests > > Hello. > > Jukka: Unfortunately it is not even sending any requests when > I change the URL into "http://www.gonewacko.com/"; Of course > this would not work, but when I look at my packet sniffer > (ethereal/wireshark) I don't even see mapserver *attempting* > to connect to gonewacko.com. In other words, even when the > URL does not feature basic authentication and it is not a > https URL, mapserver does not make any HTTP connections. > > As for the advice given about the scale and the extent: The > scale hints I had forgotten to update after fiddling around > with the various SRSes available. I also feared that the > extent would be the culprit. Unfortunately I do not seem to > understand the way the EXTENT works to find the proper > settings. But I'm taking another close look at whatever > documentation I might find (links to documents explaining the > option in greater detail would be appreciated ;)) in order to > find out what the proper setting would be. > > Thank you for the quick responses! > > Best Regards, > Stijn Gijsen > > -----Oorspronkelijk bericht----- > Van: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Namens > mapserver-users-request at lists.osgeo.org > Verzonden: woensdag 11 juni 2008 13:11 > Aan: mapserver-users at lists.osgeo.org > Onderwerp: mapserver-users Digest, Vol 5, Issue 44 > > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more > specific than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: WMS Client setup not sending any requests (Rahkonen Jukka) > 2. Re: MapFile2XML conversion - WAS: > mapObjectserialization in > C# (variant) (Rahkonen Jukka) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 11 Jun 2008 13:04:45 +0300 > From: "Rahkonen Jukka" > Subject: Re: [mapserver-users] WMS Client setup not sending any > requests > To: > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Sorry, I was wrong with supported projections for rasta100 > layer. EPSG:2393 is ok. So the question is if basic > authentication is supported or not. > > -Jukka- > > > ________________________________ > > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Rahkonen Jukka > Ldhetetty: 11. kesdkuuta 2008 12:51 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] WMS Client setup not > sending any requests > > > Hi, > > Your first problem is that you are requesting layer > rasta100 layer in EPSG:2393, but it supports only EPSG:3067. > But I am thinking that the basic problem is that MapServer > does not support connection over https with basic > authentication at all. I started a thread named "Cascading > external WMS using basic authentication over https" in > January this year. > At that time Frank Warmerdam wrote: > > > Jukka, > > I would be willing to implement this if you are > willing to help with > > some research, RFC writing and testing. In > particular we need to > > isolate what extra curl options such as, but possibly > not limited to, > > userid and password we should be able to pass > through. Then we can > > write up an RFC based on doing this through layer > metadata. Then > - > > once approved - I can implement and you could test. > > As I think back, I realize the other time I did > something like this it > > was actually using a digital certificate rather than simple > > userid/password protection. Ideally we would address > both cases. > > If this effort level exceeds the amount of effort you > want to invest, > > then filing an enhancement ticket at least > summarizing some of these > > ideas would be a good start. > > PS. If implemented we would presumably do it in a way > that applied to > > WFS and WMS client layers. > > It is good news for me if MapServer has made to support > connection in the way you are trying, thus( > https://user:password at server.etc...) > > -Jukka Rahkonen- > > > > ________________________________ > > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta GoneWacko > Ldhetetty: 11. kesdkuuta 2008 10:34 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WMS Client setup not sending > any requests > > > > Hello, > > > > I am currently working on a project where I'm > trying to use Mapserver as a WMS client, intending to have > Mapserver handle the overlaying of data for me. The WMS > service I'm going to be using one licensed from the National > Land Survey of Finland. > > This server only supports HTTPS connections and > requires Basic Authorization to get data from the service. > This may prove to be an issue for me in the future, but at > the moment I'm having (what I suspect to > be) a different problem. > > > > When I test my Map file, which to the best of > my (currently > limited) knowledge of Mapserver, should work, I only get > entirely white images back from the mapserv binary. I've not > yet figured out how to get mapserv to do verbose logging, but > the logging it does so far does not show me what the issue might be. > > > > I've been trying to get it to work on linux, > but then when it didn't I tried it on my local windows > machine as well. Both machines display the same white image. > > > > The output of my mapserv -v invocations: > > On Linux: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > On Windows: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > The map file I'm using can be found at the following > location: http://www.gonewacko.com/work/finland.map > > For more information about the capabilities of > the WMS Server I'm trying to connect to, I've uploaded the > results of a GetCapabilities request here: > http://gonewacko.com/work/GetCapabilities.xml > (Most of the text is in Finnish; Which I don't actually > understand myself, but luckily it's not too relevant). > > The URL I've been using to test it has usually > just been > http://example.com/cgi-bin/mapserv?map=/path/to/finland.map&mode=map. > > My theories are > > - The map has been set up in > such a way that mapserv finds it's not within the area I'm > requesting, and as such does not attempt to render it. > > - The map has just been set up > incorrectly (most likely) > > > > Note that the only files I have are the map > file. I do not have any shape files or anything of that > nature. And apart from the censored login information in the > URLs, the map file is available in its entirety. > > Also note that I've tried replacing the WMS > URLs with something that is not a https url (i.e. a normal > http url), as well as omitting the authorization data. It > still wouldn't send a request to the URL. > > > > Can anyone shed some light on what I'm doing > wrong? Thanks in advance. > > > > Best Regards, > > Stijn Gijsen > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/2 > 0080611/afd7ee > 84/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Wed, 11 Jun 2008 13:11:12 +0300 > From: "Rahkonen Jukka" > Subject: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: > mapObjectserialization in C# (variant) > To: > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Oh no, please do not move to XML as the only alternative, at > least not without making a very-easy-to-use XML-Mapfile > editor for mortals like me with the same. > > -Jukka Rahkonen- > > > -----Alkuperdinen viesti----- > > Ldhettdjd: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Barend > > Kobben > > Ldhetetty: 11. kesdkuuta 2008 10:41 > > Vastaanottaja: Bob Basques; mapserver-users at lists.osgeo.org > > Aihe: Re: [MAPSERVER-USERS] MapFile2XML conversion - WAS: > > mapObjectserialization in C# (variant) > > > > Hi Bob, > > > > YES, by all means do move to XML. I think this would be a very > > important step forward (and my first guess is it would be not too > > complicated, but you never know...). > > > > I do see how some might be attracted to having an DB > storage too, but > > I would urge you to always have that as an alternative, not as > > instead-of: > > keep the main configuration mechanism (XML-)file based! In many use > > cases there's no need for a DB and that would mean you'd > have tho have > > a DB plus all its hassle, only for the configuration part. Also the > > current file-base config is ideal in situations were many > people need > > to work on the one MS, such as in our educational setup, > where we have > > many students working on their own config files in their > private dirs, > > and they don't need to touch the 'main' MS setup on the server. > > > > Actually, what are your reasons for preferring an SQL > sdolution over > > the file based one...? > > > > > > -- > > Barend Kvbben > > International Institute for Geo-Information Sciences and Earth > > Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands > > +31 (0)53 4874253 > > > > > > > > On 10-06-08 20:30, "Bob Basques" > wrote: > > > > > All, > > > > > > We've been pondering some sort of alternative to the > > Mapfiles for a few years > > > now. A preferable approach would be something that could > > be stored in a DB in > > > some fashion for querying/assembly processes. It seems on > > the surface like a > > > DB schema could be developed to handle the MapFile > storage aspects. > > > > > > A first step would be in how to best approach moving into > > an XML way of life > > > for the MapFiles. Would it make any sense in the beginning > > to just build a > > > MapFile2XML convertor (I would imagine this would be needed > > before anyone > > > would sign up for XML) and once something like this is a > > state close to > > > production, the innards of MapServer would then be made to > > parse the XML > > > directly? > > > > > > Another approach might be to do something like MapFile2SQL > > first, and then the > > > MapFile2XML. This might save some time and seem like it > would make > > > standardization easier, since it would need to be inside of > > the DB fist. > > > > > > Has anyone tried putting together any requirements list > > along these lines at > > > all? Is it going to be something where we just need to > > jump in and build > > > something even if it might be a wrong approach to begin with? > > > > > > This thread just got me thinking is all . . .you know how > > dangerous that can > > > be . . . :c) > > > > > > bobb > > > > > > > > > > > >>>> "Tamas Szekeres" wrote: > > > Hi, > > > > > > MapServer currently doesn`t support any other persitence > > > representation than the mapfiles. There have been some > initial plans > > > related to an XML format in this list, but no one had any > motivation > > > to implement that. > > > So I think the best what you can do at the moment is to use > > reflection > > > to access the properties along with some other members of > > the objects > > > and serialize the values manually. > > > > > > Best regards, > > > > > > Tamas > > > > > > > > > 2008/6/9 BrainDrain : > > >> > > >> 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-tp17739919p > > >> 17739919.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 > > > _______________________________________________ > > > 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. > > _______________________________________________ > > 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 > > > End of mapserver-users Digest, Vol 5, Issue 44 > ********************************************** > > _______________________________________________ > 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 11 03:57:42 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 11 Jun 2008 13:57:42 +0300 Subject: [mapserver-users] RE: WMS Client setup not sending any requests References: <20080611101117.46275E01953@lists.osgeo.org> <001f01c8cbac$ce0274a0$6a075de0$@com> Message-ID: Hi, I took some lines of a working mapfile for cascading WMS. These extents are covering the whole Finland. If you make a request with pure &mode=map map level extents are used as bounding box. By setting also the bounding box in request you will have much better control on what is happening. I would be nice to hear about what solution you will find for basic authentication. I should be using the same WMS service as you. -Jukka- EXTENT 3009960.000 6630040.000 3749960.000 7850040.000 WEB IMAGEPATH "d:/ms4w/apps/data" METADATA "wms_title" "WMS-server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe ?" "wms_srs" "EPSG:2393" END END LAYER NAME "WMS-orthophotos" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http:// ....." UNITS METERS SIZEUNITS PIXELS MAXSCALE 12000 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:2393" "wms_name" "orthos" "wms_format" "image/jpeg" "wms_server_version" "1.1.1" END END From gis at vanbooth.com Wed Jun 11 04:21:02 2008 From: gis at vanbooth.com (Rob) Date: Wed, 11 Jun 2008 12:21:02 +0100 Subject: [mapserver-users] Re: MapScript migration problems In-Reply-To: <2a955f950806060601g6f846200i410eb66c544517c9@mail.gmail.com> References: <2a955f950806060601g6f846200i410eb66c544517c9@mail.gmail.com> Message-ID: <2a955f950806110421s1c7ca35cx2666fd0e1d197ffc@mail.gmail.com> For future reference, I had applied the rpl_malloc change to the mapprimitive.c file, but this hadn't been picked up by maporaclespatial.c I've removed the mapprimitive.c reference and put it into mapserver.h between the _WIN32 and DISABLE_CVSID #ifdef statements. 2008/6/6 Rob : > 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 Piero.Cavalieri at heidi.it Wed Jun 11 05:20:44 2008 From: Piero.Cavalieri at heidi.it (Cavalieri Piero) Date: Wed, 11 Jun 2008 14:20:44 +0200 Subject: [MAPSERVER-USERS] mapObject serialization in C# (variant) In-Reply-To: References: <17739919.post@talk.nabble.com> Message-ID: <4841F745477DF94A97C515658C91BB2F155716@lan-exc-01.heidi.local> I don't know C# mapscript, but are you sure you need to serialize the whole mapObj? At the and I think that in your client, you will use: image, reference map and scalebar urls, an html (or xml) representation of the legend...so why don't to serialize a custom object which contains only these things ? I do so, without using mapscript, it's simple... Cheers Piero > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres > Sent: marted? 10 giugno 2008 19:58 > To: BrainDrain > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] mapObject serialization in C# (variant) > > Hi, > > MapServer currently doesn`t support any other persitence > representation than the mapfiles. There have been some initial plans > related to an XML format in this list, but no one had any motivation > to implement that. > So I think the best what you can do at the moment is to use reflection > to access the properties along with some other members of the objects > and serialize the values manually. > > Best regards, > > Tamas > > > 2008/6/9 BrainDrain : > > > > 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. > > > > _______________________________________________ > > 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 marieeve16 at hotmail.com Wed Jun 11 06:39:46 2008 From: marieeve16 at hotmail.com (=?iso-8859-1?Q?Marie-Eve_L=E9vesque?=) Date: Wed, 11 Jun 2008 09:39:46 -0400 Subject: [mapserver-users] Flash CS3 - impossible to access the mapObj Message-ID: I am using mapserver to generate maps in swf. With Flash CS2 (actionscript 2), I was able to access some information about my layers via the mapObj property of the generated swf. With flash CS3 (actionscript 3), I am no longer able to access properties in the swf. I've read that it has to do with the change of the virtual machine from the two versions and that the only way to access to properties of CS2 swf is by the mean of the LocalConnection (see http://www.learningactionscript3.com/2007/12/14/sending-data-from-avm2-to-avm1/). To do that, the swf generated by MapServer has to be change to include a call to the LocalConnection object... Is that functionnality going to be in MapServer soon? Has somebody an other way to access to the properties of the swf object in Flash CS3? Thank you, Marie-Eve _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at UDel.Edu Wed Jun 11 06:42:00 2008 From: john.callahan at UDel.Edu (John Callahan) Date: Wed, 11 Jun 2008 09:42:00 -0400 Subject: [MAPSERVER-USERS] MapFile2XML conversion In-Reply-To: References: Message-ID: <484FD628.6040602@udel.edu> Is it possible to allow MapServer to use KML, or a variation thereof? I really don't what would be entailed. For example, KML can store coordinates for displaying vectors, which would be pointless in our context. Can KML point to shapefiles or tables for vectors like it can point to TIFs for rasters? If so, it seems like the infrastructure (styling, external editing packages, viewers, conversion tools, wide adoption) is already there to build on. Can we pull pieces from KML to make it easier for people to adopt without learning a new structure? +1 on keeping the configuration maps as file based. Databases are great for many reasons but add an entirely new level of complexity (and points of failure) for any application. - John **************************************** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan at udel.edu http://www.dgs.udel.edu **************************************** Barend Kobben wrote: > Hi Bob, > > YES, by all means do move to XML. I think this would be a very important > step forward (and my first guess is it would be not too complicated, but you > never know...). > > I do see how some might be attracted to having an DB storage too, but I > would urge you to always have that as an alternative, not as instead-of: > keep the main configuration mechanism (XML-)file based! In many use cases > there's no need for a DB and that would mean you'd have tho have a DB plus > all its hassle, only for the configuration part. Also the current file-base > config is ideal in situations were many people need to work on the one MS, > such as in our educational setup, where we have many students working on > their own config files in their private dirs, and they don't need to touch > the 'main' MS setup on the server. > > Actually, what are your reasons for preferring an SQL sdolution over the > file based one...? > > > Bob Basques wrote: > All, > > We've been pondering some sort of alternative to the Mapfiles for a > few years now. A preferable approach would be something that could be > stored in a DB in some fashion for querying/assembly processes. It > seems on the surface like a DB schema could be developed to handle the > MapFile storage aspects. > > A first step would be in how to best approach moving into an XML way > of life for the MapFiles. Would it make any sense in the beginning to > just build a MapFile2XML convertor (I would imagine this would be > needed before anyone would sign up for XML) and once something like > this is a state close to production, the innards of MapServer would > then be made to parse the XML directly? > > Another approach might be to do something like MapFile2SQL first, and > then the MapFile2XML. This might save some time and seem like it > would make standardization easier, since it would need to be inside of > the DB fist. > > Has anyone tried putting together any requirements list along these > lines at all? Is it going to be something where we just need to jump > in and build something even if it might be a wrong approach to begin with? > > This thread just got me thinking is all . . .you know how dangerous > that can be . . . :c) > > bobb > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Jun 11 08:23:46 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 11 Jun 2008 17:23:46 +0200 Subject: [MAPSERVER-USERS] MapFile2XML conversion - WAS: mapObject serialization in C# (variant) In-Reply-To: <484E81EC.163B.00A8.0@ci.stpaul.mn.us> References: <17739919.post@talk.nabble.com> <484E81EC.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Hi Bob and All, I would support having an interface in mapserver that would provide low level access to the object hierarchy, like: typedef struct object_info { char* name; void* value; char* type; int index; } objectInfo; objectInfo* GetNextSubItem(objectInfo* object); By using this, each persistence provider (MapFile/XML/JSON) could go through the object hierarchy easily In order to support reading the files, the mapObj properties in the hierarchy could also be set in an unique manner, like: int AddSubItem(objectInfo parent, objectInfo child); We should also utilize an msIO like functionality so that the providers would support reading from and writing to various kind of streams/storage types. We should probably switch to the -dev list with further implementation details. Best regards, Tamas 2008/6/10 Bob Basques : > All, > > We've been pondering some sort of alternative to the Mapfiles for a few > years now. A preferable approach would be something that could be stored in > a DB in some fashion for querying/assembly processes. It seems on the > surface like a DB schema could be developed to handle the MapFile storage > aspects. > > A first step would be in how to best approach moving into an XML way of life > for the MapFiles. Would it make any sense in the beginning to just build a > MapFile2XML convertor (I would imagine this would be needed before anyone > would sign up for XML) and once something like this is a state close to > production, the innards of MapServer would then be made to parse the XML > directly? > > Another approach might be to do something like MapFile2SQL first, and then > the MapFile2XML. This might save some time and seem like it would make > standardization easier, since it would need to be inside of the DB fist. > > Has anyone tried putting together any requirements list along these lines at > all? Is it going to be something where we just need to jump in and build > something even if it might be a wrong approach to begin with? > > This thread just got me thinking is all . . .you know how dangerous that can > be . . . :c) > > bobb > > >>>> "Tamas Szekeres" wrote: > Hi, > > MapServer currently doesn`t support any other persitence > representation than the mapfiles. There have been some initial plans > related to an XML format in this list, but no one had any motivation > to implement that. > So I think the best what you can do at the moment is to use reflection > to access the properties along with some other members of the objects > and serialize the values manually. > > Best regards, > > Tamas > > > 2008/6/9 BrainDrain : >> >> 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--(variant)-tp17739919p17739919.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 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Bob.Basques at ci.stpaul.mn.us Wed Jun 11 08:39:30 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 11 Jun 2008 10:39:30 -0500 Subject: [MAPSERVER-USERS] MapFile2XML conversion In-Reply-To: <484FD4E7.80405@udel.edu> References: <484FD4E7.80405@udel.edu> Message-ID: <484FAB62.163B.00A8.0@ci.stpaul.mn.us> John, You're starting to think about two different applications of XML. I was interested in setting up the XML to reflect the typical MapFile contents and use the XML for the Map generation out of MapServer. KML is a output format option, that would be output by MapServer, (possibly using this new XML MapServer control) to format the KML output. I would still tend to keep the configurations as file based as well, the DB approach just aloows for much more flexibilty for those hardcore programmers, and the MapFiles, don't input into a DB very easily. bobb >>> John Callahan wrote: Is it possible to allow MapServer to use KML, or a variation thereof? I really don't what would be entailed. For example, KML can store coordinates for displaying vectors, which would be pointless in our context. Can KML point to shapefiles or tables for vectors like it can point to TIFs for rasters? If so, it seems like the infrastructure (styling, external editing packages, viewers, conversion tools, wide adoption) is already there to build on. Can we pull pieces from KML to make it easier for people to adopt without learning a new structure? +1 on keeping the configuration maps as file based. Databases are great for many reasons but add an entirely new level of complexity (and points of failure) for any application. - John **************************************** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan at udel.edu http://www.dgs.udel.edu ( http://www.dgs.udel.edu/ ) **************************************** Barend Kobben wrote: > Hi Bob, > > YES, by all means do move to XML. I think this would be a very important > step forward (and my first guess is it would be not too complicated, but you > never know...). > > I do see how some might be attracted to having an DB storage too, but I > would urge you to always have that as an alternative, not as instead-of: > keep the main configuration mechanism (XML-)file based! In many use cases > there's no need for a DB and that would mean you'd have tho have a DB plus > all its hassle, only for the configuration part. Also the current file-base > config is ideal in situations were many people need to work on the one MS, > such as in our educational setup, where we have many students working on > their own config files in their private dirs, and they don't need to touch > the 'main' MS setup on the server. > > Actually, what are your reasons for preferring an SQL sdolution over the > file based one...? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulborodaev at gmail.com Wed Jun 11 12:57:22 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Wed, 11 Jun 2008 12:57:22 -0700 (PDT) Subject: [MAPSERVER-USERS] mapObject serialization in C# (variant) In-Reply-To: <4841F745477DF94A97C515658C91BB2F155716@lan-exc-01.heidi.local> References: <17739919.post@talk.nabble.com> <4841F745477DF94A97C515658C91BB2F155716@lan-exc-01.heidi.local> Message-ID: <17785932.post@talk.nabble.com> I use excludeTypes parameter to exclude some properies of mapObj and child-objects. (see example above) I decided to do so because I wanted to keep unambiguous conformity between my custom representation and mapserver object automatically, I wanted to minimize 'interface' changes. XML - it will be great, in conjunction with xslt. I love xpath - it brings db aspect (you're talking about) to life. I can write xml from mapObj with the same method but with other serializer (there are many .net object->db mappers available, including object->xml). And it is possible to read mapObj xml via xslt transformation producing normal map text file config (not implemented yet, but it will be sufficiently simple). Piero Cavalieri wrote: > > I don't know C# mapscript, but are you sure you need to serialize the > whole mapObj? At the and I think that in your client, you will use: image, > reference map and scalebar urls, an html (or xml) representation of the > legend...so why don't to serialize a custom object which contains only > these things ? I do so, without using mapscript, it's simple... > > Cheers > Piero > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres >> Sent: marted? 10 giugno 2008 19:58 >> To: BrainDrain >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] mapObject serialization in C# (variant) >> >> Hi, >> >> MapServer currently doesn`t support any other persitence >> representation than the mapfiles. There have been some initial plans >> related to an XML format in this list, but no one had any motivation >> to implement that. >> So I think the best what you can do at the moment is to use reflection >> to access the properties along with some other members of the objects >> and serialize the values manually. >> >> Best regards, >> >> Tamas >> >> >> 2008/6/9 BrainDrain : >> > >> > 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. >> > >> > _______________________________________________ >> > 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/mapObject-serialization-in-C--%28variant%29-tp17739919p17785932.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Wed Jun 11 15:46:55 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 11 Jun 2008 17:46:55 -0500 Subject: [mapserver-users] MapServer 5.2 Beta 1 Available Message-ID: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> Hi folks: MapServer 5.2 Beta 1 has just been released. The source package is available for download at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since 5.0 can be found at the end this message. This is a significant release so we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be relatively easy for folks to test. Please let us know how it goes! The plan is to have 2 beta releases, two release candidates with a final release the first week in July. More details can be found in the 5.2 release plan at: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ Steve Version 5.2.0-beta1 (2008-06-11): --------------------------------- - WMS/WFS layers can now specify a proxy servert (#571) - mapwmslayer.c: set QUERY_LAYERS correctly (#2001) - mapwcs.c: handle PARAMETER values correctly (#2509) - SOS: fix various memory leaks (#2412) - mapwcs.c: advertise temporal support in GetCapabilities (#2487) - Fixed flaw in findTag() in maptemplate.c that prevented multiple tags on the same line being processed under certain conditions. (#2633) - Return results even when extents are missing (#2420) - Avoid displaying OGR connection strings in error messages (#2629) - WCS: respect wcs_name metadata for GetCoverage and DescribeCoverage requests (#2036) - CGI: added -nh option to allow for the suppression of content headers from the command line (#2594) - PostGIS: fix postgis idle-in-transaction problem (#2626) - AGG: enable ellipse symbol rotation for POINT/ANNOTATION layers (#2617) - RFC36: add more extensions to support templates (#2576) - AGG: allow dashed hatch symbols (#2614) - AGG: enable offset lines of type x -99 (#2588) - AGG: use an agg specific label size calculation function where possible (#2357) - 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) - Tiling API (RFC 43) mode=tile, tilemode=spheremerc, tile=x y zoom (#2581) - Remove C++-style comments and most other warnings thrown by -pedantic (#2598) - Fix PostGIS transaction behavior in fcgi situations (#2497, #2613) - Improve performance for large shape files (#2282) - encode WMS parameters correctly (#1296) - Added alignment option within a scalebar (#2468) - RFC-42 HTTP Cookie Forwarding (#2566) - Fixed handling of encrypted connection strings in postgis driver (#2563) - mapagg.cpp: AGG: add opacity at the style level (#1155) - mapwms.c: add Cache-Control max-age HTTP header support (#2551) - mapogcsos.c: support URI encoded procedures correctly (#2547) - Added support for EMPTY template with WMS GetFeatureInfo (#546) - Throw an exception if the WCS request does not overlap layer (#2503) - Acquire TLOCK_PROJ for pj_transform() calls (#2533). - Fixed problem with large imagemaps generating no output (#2526) - mapwms.c: make version optional for GetCapabilities again (#2528) - support URN scheme for components of observed property elements (#2522) - Fixed gdImagePtr gdPImg memory leak in msSaveImageBufferGD() (#2525) - mapogcsos.c: handle invalid POST requests (#2521) - mapogcsos.c: handle ACCEPTVERSIONS parameter (#2515) - mapwcs.c/mapwcs11.c: s/neighbour/neighbor/g (#2518) - mapwms.c: relax FORMAT parameter restrictions for GetFeatureInfo (#2517) - mapwcs.c: support COVERAGE lists for DescribeCoverage (#2508) - mapwcs.c: fix lonLatEnvelope/@srsName (#2507) - mapwcs.c: omit VendorSpecificCapabilities (#2506) - mapwcs.c: test for either resx/resy OR width/height (#2505) - mapwcs.c: make GetCoverage demand one of TIME or BBOX (#2504) - mapwms.c: make GetLegendGraphic listen to TRANSPARENT in OUTPUTFORMAT (#2494) - OWS: support updatesequence (#2384) - mapwms.c: test VERSION after service=WMS (#2475) - OWS: output Capabilities XML updateSequence if set (#2384) - mapwcs.c: better handling of REQUEST parameter (#2490) - mapwcs.c: point to correct exception schema (#2481) - mapows.c: add version negotiation (#996) - mapwfs.c: return default GML2 when invalid OUTPUTFORMAT passed (#2479) - mapowscommon.c: add OWS Common style version negotiation (#996) - mapwcs.c: better section parameter handling for CITE (#2485) - mapwfs.c: point to the correct schema for exceptions (#2480) - shp2img.c/shp2pdf.c: clean up usage text, check for invalid layers (#2066) - completed implementation of RFC24 (#2442, #2032) - mapwcs.c: require VERSION parameter for DescribeCoverage and GetCoverage (#2473) - mapwcs.c: change error token to MS_WCSERR instead of MS_WMSERR (#2474) - mapwcs.c: set exception MIME type to application/vnd.ogc.se_xml for 1.0.0 (#2470) - mapwcs.c: Generate a decently formatted exception if an WCS XML POST request is received (#2476). - mapowscommon.c: support OWS Common 1.1.0 as well (#2071) - mapogcsos.c: support SOS 1.0.0 (#2246) - Implement mapObj.setCenter, mapObj.offsetExtent, mapObj.scaleExtent, rectObj.getCenter at the SWIG API (#2346) - mapogcfilter.c: use USE_LIBXML2 in ifdefs (#2416) - clean up naming conventions of Shapefile API (#599) - use msComputeBounds() instead, since it's already in the codebase (#2087) - set shapeObj bounds from WKT (#2087) - fixed issue where path following labels sometimes used the supplied setting for position. In all cases with ANGLE FOLLOW we want to force position MS_CC regardless of what is set in the mapfile. - enforce (-99 -99) to be the penup value for vector symbols (#1036) - Support for labeling features (polygon & line) prior to clipping. This results in stable label positions regardless of map extent. (#2447) - Support for quantization and forced palette png output with RGBA images (#2436) - SLD using a single BBOX filter should generate an SQL ststement for oracle/postgis/ogr (#2450) - Accurate Calculation of legend size for WMS LegendURL (#2435) - Converted mapogr.cpp to use OGR C API instead of C++ classes to allow GDAL/OGR updates without having to recompile MapServer (#545, #697) - add missing space on dashed polygon outlines with svg (#2429) - Restored behavior of MS 4.10 and made WMS STYLES parameter optional again in GetMap and GetFeatureInfo requests (#2427) - Speed up forced palette rendering (#2422) - WMS GetFeatureInfo: honour FEATURE_COUNT for any INFO_FORMAT and apply the FEATURE_COUNT per layer instead of globally (#2423, #1686) - enable soft outlines on truetype labels. This is triggered with a new keyword OUTLINEWIDTH for the LABEL block (#2417) - fix clipping rectangle to take width as well as size into account (#2411) - AGG: added and use a line and polygon adaptor to avoid copying shapeObj points to an agg path_storage. avoids a few mallocs and a few copies. - fixed symbolsetObj not to set the SWIG immutable flag permanently don't expose refcount and the symbol attributes (Ticket #2407) - fix for support of entity encoded text in angle follow text (#2403) - AGG: initial support for native computation of label sizes (#2357) - AGG: support text symbols specified by their character number (#2398) - AGG: fix angle orientation for various symbols - allow scientific notation for attributes binded to an int (#2394) - merge GD and AGG label cache drawing functions (#2390) - Enable AGG rendering of bitmap font labels instead of falling back to GD (#2387) - clean up treatment of encoding and wrap caracter - Fix legend label placement for multiline labels (#2382) - enforce WRAP parameter in legend label (#2382) - AGG: pixel level simplification for line and polygon shapes (#2381) - fixed blue/green color swapping for space delimited strings bound to an attribute. (bug 2378) - don't remove points that are checked as being colinear (#2366) - mapowscommon.c: fix namespace leak issues (#2375) - mapogcsos.c: add SWE DataBlock support (#2248) - mapogcsos.c: fix build warnings, namespace and schema pointers (#2248) - mappdf.c: support output in fastcgi case via msIO_fwrite() (#2406) - mapogcsos.c: Initial support for POST requests (#2379) and updated msSOSDispatch() handling - mapogr.cpp: Use pooling api to ensure per-thread sharing of connections only (#2408) - mapogcsos.c: change substituted variable from sensorid to procedure (#2409) - maplibxml2.c: Initial implementation of libxml2 convenience functions - configure: Modified so libxml2 support is requested for WCS and SOS, and is indicated by USE_LIBXML2 definition. Use @ALL_ENABLED@ in DEFINEs and mapscriptvars generation. - mapresample.c: Fixed support for multi-band data in RAW mode for bilinear and nearest neighbour resamplers (#2364). - mapdraw.c: Improve error reporting if a raster layer requested in a query map (#1842). - mapfile.c: add simple urn:ogc:def:crs:OGC::CRS84 support. From matthew.pettis at gmail.com Wed Jun 11 16:30:54 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Wed, 11 Jun 2008 18:30:54 -0500 Subject: [mapserver-users] mapserver wms: srs problem In-Reply-To: References: <82ba77b80806092014s13d560bfw34626652d1d83b08@mail.gmail.com> Message-ID: <82ba77b80806111630t26a7c161t36bda25353070e9@mail.gmail.com> Hi All, I'm posting further findings and observations. I made a simple mapfile and dumped the shape information to a .shp file. I have made a .zip file with all of the components to verify what I will be saying, and will provided it upon request to individuals (don't want to pollute inboxes on the listserv indiscriminantly). First, I have discovered that when I render the shapefile NOT as a WMS, but just with a url like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tb\ex.map&mode=map the coords are unprojected, and I get the expected (tall and skinny) map of MN. When I call mapserver as a WMS (with epsg:26915), like: http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\tb\ex.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=state&BBOX=184056.505,4809728.25,767381.245,5478975.75&SRS=EPSG:26915&format=image/png&width=800&height=600 then I get a map, but the map stretches to the dimensions I set the image 'height' and 'width' parameters to. This does not happen with the non-WMS request. So the point is, my WMS map calls stretch as a function of the image width and height (which is how it is called for openlayers). If I want the unprojected map via WMS (that doesn't stretch based on the tile image dimensions), how do I configure my WMS url, or .map file (particularly for openlayers)? Thanks again for everybody's help, Matt On Tue, Jun 10, 2008 at 11:26 AM, Barend Kobben wrote: > Hi, > > It looks like your mixing up several things that shouldn't be mixed: > > 1) > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&SE > RVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > ...is a valid WMS GetCapabilities request. It might result in a valid WMS > response (although I cannot test this as I obviously do not have the same > localhost as you...) > > However: > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&mo > de=map > ...is a non-WMS request, it uses the 'old' MapServer CGI mode, not the OGC > standardised WMS interface. To get a map the "WMS way" you'd request > something like: > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\wms.map&m& > SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=aLayer&BBOX=1,2,3,4& > SRS=EPSG:4326&format=image/gif > > 2) next, you advertise your data to be in lat-lon on the WGS 84 (PROJECTION > init=epsg:4326), but you proclaim the EXTENT of the data to be in meters or > some other projected unit: > EXTENT 184056.505 4809728.25 767381.245 5478975.75 > This obviously are not lat-lon degrees (which have a max extent of > -180,180,-90,90)... Now MS will be really confused! "Hmmmm, this client > wants lat-lon data that stretches over the whole of the universe..." :-) > > 3) you then advertise the WMS to be able to deliver data in a non-projected > and a projected SRS: > "wms_srs" "EPSG:4326 EPSG:26915" > Which is fine, but you do it again for the LAYER, which I think is > superfluous. > > 4) You do NOT tell the WMS what SRS the data originally is in. There is no > PROJECTION object in the LAYER, which in some case might lead to MapServer > trying to find out for itself, BUT NOT in the Postgis case you have. A > connection to PostGIS in itself needs to be told which projection to fetch > the data in (because PosGIS can reproject if necessary). One of the ways of > doing that is to make the DATA statement a bit more elaborate than > "the_geom from shp_state", instead use > DATA "the_geom from shp_state using unique using > srid=26915" > > Hope this helps... > > -- > 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. > -- 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 woodbri at swoodbridge.com Wed Jun 11 17:47:22 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 11 Jun 2008 19:47:22 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.2 Beta 1 Available In-Reply-To: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> References: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> Message-ID: <4850721A.7000202@swoodbridge.com> Steve et al, Nice job! BTW. unless I missed it, I didn't see a note on the addition of fribidi2 support for rendering RTL labels with shaping. -Steve Steve Lime wrote: > Hi folks: MapServer 5.2 Beta 1 has just been released. The source package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.0 can be found at the end this message. This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is to have 2 beta releases, two release candidates with a final release the first week in July. > More details can be found in the 5.2 release plan at: > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > > Version 5.2.0-beta1 (2008-06-11): > --------------------------------- > > - WMS/WFS layers can now specify a proxy servert (#571) > > - mapwmslayer.c: set QUERY_LAYERS correctly (#2001) > > - mapwcs.c: handle PARAMETER values correctly (#2509) > > - SOS: fix various memory leaks (#2412) > > - mapwcs.c: advertise temporal support in GetCapabilities (#2487) > > - Fixed flaw in findTag() in maptemplate.c that prevented multiple tags > on the same line being processed under certain conditions. (#2633) > > - Return results even when extents are missing (#2420) > > - Avoid displaying OGR connection strings in error messages (#2629) > > - WCS: respect wcs_name metadata for GetCoverage and DescribeCoverage > requests (#2036) > > - CGI: added -nh option to allow for the suppression of content headers from > the command line (#2594) > > - PostGIS: fix postgis idle-in-transaction problem (#2626) > > - AGG: enable ellipse symbol rotation for POINT/ANNOTATION layers (#2617) > > - RFC36: add more extensions to support templates (#2576) > > - AGG: allow dashed hatch symbols (#2614) > > - AGG: enable offset lines of type x -99 (#2588) > > - AGG: use an agg specific label size calculation function where > possible (#2357) > > - 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) > > - Tiling API (RFC 43) mode=tile, tilemode=spheremerc, tile=x y zoom (#2581) > > - Remove C++-style comments and most other warnings thrown by -pedantic (#2598) > > - Fix PostGIS transaction behavior in fcgi situations (#2497, #2613) > > - Improve performance for large shape files (#2282) > > - encode WMS parameters correctly (#1296) > > - Added alignment option within a scalebar (#2468) > > - RFC-42 HTTP Cookie Forwarding (#2566) > > - Fixed handling of encrypted connection strings in postgis driver (#2563) > > - mapagg.cpp: AGG: add opacity at the style level (#1155) > > - mapwms.c: add Cache-Control max-age HTTP header support (#2551) > > - mapogcsos.c: support URI encoded procedures correctly (#2547) > > - Added support for EMPTY template with WMS GetFeatureInfo (#546) > > - Throw an exception if the WCS request does not overlap layer (#2503) > > - Acquire TLOCK_PROJ for pj_transform() calls (#2533). > > - Fixed problem with large imagemaps generating no output (#2526) > > - mapwms.c: make version optional for GetCapabilities again (#2528) > > - support URN scheme for components of observed property elements (#2522) > > - Fixed gdImagePtr gdPImg memory leak in msSaveImageBufferGD() (#2525) > > - mapogcsos.c: handle invalid POST requests (#2521) > > - mapogcsos.c: handle ACCEPTVERSIONS parameter (#2515) > > - mapwcs.c/mapwcs11.c: s/neighbour/neighbor/g (#2518) > > - mapwms.c: relax FORMAT parameter restrictions for GetFeatureInfo (#2517) > > - mapwcs.c: support COVERAGE lists for DescribeCoverage (#2508) > > - mapwcs.c: fix lonLatEnvelope/@srsName (#2507) > > - mapwcs.c: omit VendorSpecificCapabilities (#2506) > > - mapwcs.c: test for either resx/resy OR width/height (#2505) > > - mapwcs.c: make GetCoverage demand one of TIME or BBOX (#2504) > > - mapwms.c: make GetLegendGraphic listen to TRANSPARENT in OUTPUTFORMAT (#2494) > > - OWS: support updatesequence (#2384) > > - mapwms.c: test VERSION after service=WMS (#2475) > > - OWS: output Capabilities XML updateSequence if set (#2384) > > - mapwcs.c: better handling of REQUEST parameter (#2490) > > - mapwcs.c: point to correct exception schema (#2481) > > - mapows.c: add version negotiation (#996) > > - mapwfs.c: return default GML2 when invalid OUTPUTFORMAT passed (#2479) > > - mapowscommon.c: add OWS Common style version negotiation (#996) > > - mapwcs.c: better section parameter handling for CITE (#2485) > > - mapwfs.c: point to the correct schema for exceptions (#2480) > > - shp2img.c/shp2pdf.c: clean up usage text, check for invalid layers (#2066) > > - completed implementation of RFC24 (#2442, #2032) > > - mapwcs.c: require VERSION parameter for DescribeCoverage and > GetCoverage (#2473) > > - mapwcs.c: change error token to MS_WCSERR instead of MS_WMSERR (#2474) > > - mapwcs.c: set exception MIME type to application/vnd.ogc.se_xml > for 1.0.0 (#2470) > > - mapwcs.c: Generate a decently formatted exception if an WCS XML POST request > is received (#2476). > > - mapowscommon.c: support OWS Common 1.1.0 as well (#2071) > > - mapogcsos.c: support SOS 1.0.0 (#2246) > > - Implement mapObj.setCenter, mapObj.offsetExtent, mapObj.scaleExtent, > rectObj.getCenter at the SWIG API (#2346) > > - mapogcfilter.c: use USE_LIBXML2 in ifdefs (#2416) > > - clean up naming conventions of Shapefile API (#599) > > - use msComputeBounds() instead, since it's already in the codebase (#2087) > > - set shapeObj bounds from WKT (#2087) > > - fixed issue where path following labels sometimes used the supplied > setting for position. In all cases with ANGLE FOLLOW we want to force > position MS_CC regardless of what is set in the mapfile. > > - enforce (-99 -99) to be the penup value for vector symbols (#1036) > > - Support for labeling features (polygon & line) prior to clipping. This > results in stable label positions regardless of map extent. (#2447) > > - Support for quantization and forced palette png output with RGBA images > (#2436) > > - SLD using a single BBOX filter should generate an SQL ststement for > oracle/postgis/ogr (#2450) > > - Accurate Calculation of legend size for WMS LegendURL (#2435) > > - Converted mapogr.cpp to use OGR C API instead of C++ classes to allow > GDAL/OGR updates without having to recompile MapServer (#545, #697) > > - add missing space on dashed polygon outlines with svg (#2429) > > - Restored behavior of MS 4.10 and made WMS STYLES parameter optional > again in GetMap and GetFeatureInfo requests (#2427) > > - Speed up forced palette rendering (#2422) > > - WMS GetFeatureInfo: honour FEATURE_COUNT for any INFO_FORMAT and > apply the FEATURE_COUNT per layer instead of globally (#2423, #1686) > > - enable soft outlines on truetype labels. This is triggered with a new > keyword OUTLINEWIDTH for the LABEL block (#2417) > > - fix clipping rectangle to take width as well as size into account (#2411) > > - AGG: added and use a line and polygon adaptor to avoid copying shapeObj > points to an agg path_storage. avoids a few mallocs and a few copies. > > - fixed symbolsetObj not to set the SWIG immutable flag permanently > don't expose refcount and the symbol attributes (Ticket #2407) > > - fix for support of entity encoded text in angle follow text (#2403) > > - AGG: initial support for native computation of label sizes (#2357) > > - AGG: support text symbols specified by their character number (#2398) > > - AGG: fix angle orientation for various symbols > > - allow scientific notation for attributes binded to an int (#2394) > > - merge GD and AGG label cache drawing functions (#2390) > > - Enable AGG rendering of bitmap font labels instead of falling back to > GD (#2387) > > - clean up treatment of encoding and wrap caracter > > - Fix legend label placement for multiline labels (#2382) > > - enforce WRAP parameter in legend label (#2382) > > - AGG: pixel level simplification for line and polygon shapes (#2381) > > - fixed blue/green color swapping for space delimited strings bound to an > attribute. (bug 2378) > > - don't remove points that are checked as being colinear (#2366) > > - mapowscommon.c: fix namespace leak issues (#2375) > > - mapogcsos.c: add SWE DataBlock support (#2248) > > - mapogcsos.c: fix build warnings, namespace and schema pointers (#2248) > > - mappdf.c: support output in fastcgi case via msIO_fwrite() (#2406) > > - mapogcsos.c: Initial support for POST requests (#2379) and updated > msSOSDispatch() handling > > - mapogr.cpp: Use pooling api to ensure per-thread sharing of connections > only (#2408) > > - mapogcsos.c: change substituted variable from sensorid to procedure (#2409) > > - maplibxml2.c: Initial implementation of libxml2 convenience functions > > - configure: Modified so libxml2 support is requested for WCS and SOS, > and is indicated by USE_LIBXML2 definition. Use @ALL_ENABLED@ in > DEFINEs and mapscriptvars generation. > > - mapresample.c: Fixed support for multi-band data in RAW mode for bilinear > and nearest neighbour resamplers (#2364). > > - mapdraw.c: Improve error reporting if a raster layer requested in > a query map (#1842). > > - mapfile.c: add simple urn:ogc:def:crs:OGC::CRS84 support. > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev From David.Fawcett at state.mn.us Wed Jun 11 20:34:28 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 11 Jun 2008 22:34:28 -0500 Subject: [mapserver-users] ms_nonsquare Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBE12@s-sp22.pca.state.mn.us> Is it possible to use CONFIG "MS_NONSQUARE" "FALSE" or something like it to turn off the non-square behavior in a WMS request? If not, how do most people deal with this? I guess if you are consuming your own WMS, you can just make sure that the aspect ratios of your bbox and height:width match. David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jun 11 22:08:01 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 12 Jun 2008 08:08:01 +0300 Subject: [mapserver-users] mapserver wms: srs problem References: <82ba77b80806092014s13d560bfw34626652d1d83b08@mail.gmail.com> <82ba77b80806111630t26a7c161t36bda25353070e9@mail.gmail.com> Message-ID: Matthew Pettis wrote: > So the point is, my WMS map calls stretch as a function of the image > width and height (which is how it is called for openlayers). If I > want the unprojected map via WMS (that doesn't stretch based on the > tile image dimensions), how do I configure my WMS url, or .map file > (particularly for openlayers)? BBOX and width and height are all compulsory in WMS so you need to know what you want and build the request so that the image is not stretched. Some simple calculation is needed to make image size and BBOX to suit. -Jukka Rahkonen- From valerio.vianello at yahoo.it Thu Jun 12 01:29:15 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 12 Jun 2008 08:29:15 +0000 (GMT) Subject: [mapserver-users] changing the size of the map on-the-fly Message-ID: <876370.11377.qm@web27303.mail.ukl.yahoo.com> Dear all, is there a way to change the size of the map using the template file ? For example using the mapsize, mapheight or mapwidth variables ? 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 b.veldkamp at zonnet.nl Thu Jun 12 02:55:16 2008 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 12 Jun 2008 11:55:16 +0200 Subject: [mapserver-users] One-to-many join Message-ID: <57fc60330806120255o16ba0e67h163751362700e639@mail.gmail.com> Hi, I'm trying to get a one-to-many join in a Postgis db working. One-to-one is working fine, but when I use one-to-many and add a template to the join object, no joined records are returned. In fact, the join template seems to be ignored altogether. Does anyone have a working example? The documentation is limited to "One-to-many joins: The more complex variant. If the join type is multiple (one-to-many) the template is replaced by the set of header, template file and footer specified in the mapfile.", and I'm not exactly sure what this means. Do I need to specify where the "many" template(s) are inserted into the "main" template? Here's the layer definition from my mapfile, and the templates: LAYER NAME Provincies TYPE polygon CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=gisdb user=user password=pass" DATA "the_geom from nl97" STATUS on CLASS COLOR 0 128 128 OUTLINECOLOR 0 64 64 END METADATA "wms_title" "Provincies" "wms_srs" "EPSG:28992" END JOIN NAME "test" CONNECTION "host=localhost dbname=gisdb user=user password=pass" CONNECTIONTYPE ogr TABLE "lookup" FROM "provnr" TO "provnr" TYPE one-to-many TEMPLATE join.html END HEADER header.html FOOTER footer.html TEMPLATE provincies.html END provincies.html: Naam: [provincie] Inwoners: [inwoners] Inkomen: [inkomen] Provcode: [provnr] join.html: Joined field: [joined] -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.vianello at yahoo.it Thu Jun 12 03:00:44 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 12 Jun 2008 10:00:44 +0000 (GMT) Subject: R: [mapserver-users] changing the size of the map on-the-fly In-Reply-To: <876370.11377.qm@web27303.mail.ukl.yahoo.com> Message-ID: <80849.53905.qm@web27307.mail.ukl.yahoo.com> hi to all, I'm sorry for this post, the solution was quite simple.... I found that to change the map dimension by the template file you need to insert an initial size in the map file and then change it using the mapsize variable into the template. bye Valerio  --- Gio 12/6/08, valerio vianello <valerio.vianello at yahoo.it> ha scritto: Da: valerio vianello <valerio.vianello at yahoo.it> Oggetto: [mapserver-users] changing the size of the map on-the-fly A: mapserver-users at lists.osgeo.org Data: Gioved? 12 giugno 2008, 10:29 Dear all, is there a way to change the size of the map using the template file ? For example using the mapsize, mapheight or mapwidth variables ? 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 w.blanken at geon.nl Thu Jun 12 03:09:22 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Thu, 12 Jun 2008 12:09:22 +0200 Subject: [mapserver-users] One-to-many join In-Reply-To: <57fc60330806120255o16ba0e67h163751362700e639@mail.gmail.com> Message-ID: Hi Berend, Which version of mapserver are you using. I had the same problems with version 5.x. In version 4.x the one-to-many join was functioning ok, I also posted this to the list but got no response so far... Best regards, Wim Blanken The Netherlands. _____ Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Berend Veldkamp Verzonden: Thursday, June 12, 2008 11:55 AM Aan: mapserver-users at lists.osgeo.org Onderwerp: [mapserver-users] One-to-many join Hi, I'm trying to get a one-to-many join in a Postgis db working. One-to-one is working fine, but when I use one-to-many and add a template to the join object, no joined records are returned. In fact, the join template seems to be ignored altogether. Does anyone have a working example? The documentation is limited to "One-to-many joins: The more complex variant. If the join type is multiple (one-to-many) the template is replaced by the set of header, template file and footer specified in the mapfile.", and I'm not exactly sure what this means. Do I need to specify where the "many" template(s) are inserted into the "main" template? Here's the layer definition from my mapfile, and the templates: LAYER NAME Provincies TYPE polygon CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=gisdb user=user password=pass" DATA "the_geom from nl97" STATUS on CLASS COLOR 0 128 128 OUTLINECOLOR 0 64 64 END METADATA "wms_title" "Provincies" "wms_srs" "EPSG:28992" END JOIN NAME "test" CONNECTION "host=localhost dbname=gisdb user=user password=pass" CONNECTIONTYPE ogr TABLE "lookup" FROM "provnr" TO "provnr" TYPE one-to-many TEMPLATE join.html END HEADER header.html FOOTER footer.html TEMPLATE provincies.html END provincies.html: Naam: [provincie] Inwoners: [inwoners] Inkomen: [inkomen] Provcode: [provnr] join.html: Joined field: [joined] No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1498 - Release Date: 11-6-2008 19:13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Thu Jun 12 04:56:42 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 12 Jun 2008 04:56:42 -0700 (PDT) Subject: [MAPSERVER-USERS] ms_nonsquare In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBE12@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBE12@s-sp22.pca.state.mn.us> Message-ID: <17798167.post@talk.nabble.com> Hi! First of all (just to clarify the need), why would you want to turn of the nonsquare behaviour? Second, in my opinion this is a client issue, not a server issue. If the client wants to request a image with nosquare pixels, feel free to do so. Third, this behaviour is mandatory in the WMS specification, see chapter 7.2.3.8 of the 1.1.1 spesification. The required WIDTH and HEIGHT parameters specify the size in integer pixels of the map image to be produced. WIDTH specifies the number of pixels to be used between the minimum and maximum X values (inclusive) in the BBOX parameter, while HEIGHT specifies the number of pixels between the minimum and maximum Y values. The returned picture, regardless of its return format, shall have exactly the specified width and height in pixels. In the case where the aspect ratio of the BBOX and the ratio width/height are different, the WMS shall stretch the returned map so that the resulting pixels could themselves be rendered in the aspect ratio of the BBOX. In other words, it should be possible using this definition to request a map for a device whose output pixels are themselves non-square, or to stretch a map into an image area of a different aspect ratio. Regards, P?l Kristensen Fawcett, David wrote: > > Is it possible to use CONFIG "MS_NONSQUARE" "FALSE" or something like it > to turn off the non-square behavior in a WMS request? > > If not, how do most people deal with this? I guess if you are consuming > your own WMS, you can just make sure that the aspect ratios of your bbox > and height:width match. > > David. > > _______________________________________________ > 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/ms_nonsquare-tp17791893p17798167.html Sent from the Mapserver - User mailing list archive at Nabble.com. From b.veldkamp at zonnet.nl Thu Jun 12 06:17:35 2008 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 12 Jun 2008 15:17:35 +0200 Subject: [mapserver-users] One-to-many join Message-ID: <57fc60330806120617q697fc409m564796c531d68c51@mail.gmail.com> Hello Wim, As happens often, one thinks of the answer right after clicking "Send"... In the layer's template, add a tag named [join_test], i.e. the literal text "join", an underscore, and the name of the join in the mapfile. This is the place where zero or more join templates will be inserted. In the join's template, add one or more tags named [test_joined], i.e. the name of the join, an underscore, and a fieldname. HTH, Berend -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.veldkamp at zonnet.nl Thu Jun 12 06:19:20 2008 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 12 Jun 2008 15:19:20 +0200 Subject: [mapserver-users] One-to-many join In-Reply-To: <57fc60330806120617q697fc409m564796c531d68c51@mail.gmail.com> References: <57fc60330806120617q697fc409m564796c531d68c51@mail.gmail.com> Message-ID: <57fc60330806120619l27173152g46c3d645ae70ab82@mail.gmail.com> BTW, this is MapServer 5.0.2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at easy-map.it Thu Jun 12 06:49:34 2008 From: info at easy-map.it (Francesco Tomei) Date: Thu, 12 Jun 2008 15:49:34 +0200 Subject: [mapserver-users] Linux/windows install steps Message-ID: <001e01c8cc93$26a956f0$0301a8c0@fisso> Hi list, I'd like to know which are the necessary file to download for a correct configuration in two different server environment and which are the steps sequences to follow: 1.. windows 3000 server with IIS 2.. linux server with apache 2.0 and PHP 4 could be useful a direct link to the right documentation notes. thanks in advance, Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at geon.nl Thu Jun 12 07:08:44 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Thu, 12 Jun 2008 16:08:44 +0200 Subject: [mapserver-users] One-to-many join In-Reply-To: <57fc60330806120617q697fc409m564796c531d68c51@mail.gmail.com> Message-ID: HI Berend, Just checked my installation and with 5.0.2 it also Works here now. Maybe something changed from 5.0.1 to 5.0.2. Anyway glad to have it working now so i can remove my 4.x parallel installation that I used to bypass this problem. By the way are you going to the Opensource GIS seminar next week (17 june) in Delft? Best regards, Wim Blanken _____ Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Berend Veldkamp Verzonden: Thursday, June 12, 2008 3:18 PM Aan: mapserver-users at lists.osgeo.org Onderwerp: [mapserver-users] One-to-many join Hello Wim, As happens often, one thinks of the answer right after clicking "Send"... In the layer's template, add a tag named [join_test], i.e. the literal text "join", an underscore, and the name of the join in the mapfile. This is the place where zero or more join templates will be inserted. In the join's template, add one or more tags named [test_joined], i.e. the name of the join, an underscore, and a fieldname. HTH, Berend No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1498 - Release Date: 11-6-2008 19:13 -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at UDel.Edu Thu Jun 12 10:18:22 2008 From: john.callahan at UDel.Edu (John Callahan) Date: Thu, 12 Jun 2008 13:18:22 -0400 Subject: [MAPSERVER-USERS] MapFile2XML conversion In-Reply-To: <484FAB62.163B.00A8.0@ci.stpaul.mn.us> References: <484FD4E7.80405@udel.edu> <484FAB62.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <48515A5E.2080201@udel.edu> I know what you mean about different applications of XML. However, can a single file or format serve both needs? KML is an output format and used in many programs but it can be viewed as a map description format as well: it can point to multiple datasets, access dynamic web services and WMS, adds style information, screen overlays, and more. Aside from inclusion of coordinates/geometry of vectors data instead of referencing a vector dataset, KML seems to do accomplish similar tasks as map files. I've always thought KML becomes difficult to share when locally referencing large rasters; KML as input to a map server engine would solve that. It would be huge stretch to make something like this work but the lure of incorporating the successes of KML into an open source project (as something more than just an output format) just got me wondering. Even converting KML files to map files (placemarks/paths/polygons become shapefiles) may be beneficial. Just some thoughts... - John **************************************** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan at udel.edu http://www.dgs.udel.edu **************************************** Bob Basques wrote: > John, > > You're starting to think about two different applications of XML. I > was interested in setting up the XML to reflect the typical MapFile > contents and use the XML for the Map generation out of MapServer. KML > is a output format option, that would be output by MapServer, > (possibly using this new XML MapServer control) to format the KML output. > > I would still tend to keep the configurations as file based as well, > the DB approach just aloows for much more flexibilty for those > hardcore programmers, and the MapFiles, don't input into a DB very easily. > > bobb > > > >>> John Callahan wrote: > Is it possible to allow MapServer to use KML, or a variation thereof? > I really don't what would be entailed. For example, KML can store > coordinates for displaying vectors, which would be pointless in our > context. Can KML point to shapefiles or tables for vectors like it can > point to TIFs for rasters? If so, it seems like the infrastructure > (styling, external editing packages, viewers, conversion tools, wide > adoption) is already there to build on. Can we pull pieces from KML to > make it easier for people to adopt without learning a new structure? > > +1 on keeping the configuration maps as file based. Databases are great > for many reasons but add an entirely new level of complexity (and points > of failure) for any application. > > - John > > **************************************** > John Callahan > Geospatial Application Developer > > Delaware Geological Survey > University of Delaware > 227 Academy St, Newark DE 19716-7501 > Tel: (302) 831-3584 > > Email: john.callahan at udel.edu > http://www.dgs.udel.edu > **************************************** > > > > Barend Kobben wrote: > > Hi Bob, > > > > YES, by all means do move to XML. I think this would be a very important > > step forward (and my first guess is it would be not too complicated, > but you > > never know...). > > > > I do see how some might be attracted to having an DB storage too, but I > > would urge you to always have that as an alternative, not as instead-of: > > keep the main configuration mechanism (XML-)file based! In many use > cases > > there's no need for a DB and that would mean you'd have tho have a > DB plus > > all its hassle, only for the configuration part. Also the current > file-base > > config is ideal in situations were many people need to work on the > one MS, > > such as in our educational setup, where we have many students working on > > their own config files in their private dirs, and they don't need to > touch > > the 'main' MS setup on the server. > > > > Actually, what are your reasons for preferring an SQL sdolution over the > > file based one...? > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 pvoudouris at gaiocorp.com Thu Jun 12 23:51:38 2008 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Fri, 13 Jun 2008 09:51:38 +0300 Subject: [mapserver-users] PointM shapefile not displaying outside its extent Message-ID: <003201c8cd21$ef945630$cebd0290$@com> Hi All, I have a pointM shapefile that justs refuse to display as soon as I pan the map (same scale) so part of the shapes go beyond the map extent. It will only display if all points are within the view window. I dropped and recreated the spatial index, used the shptree to create the *qix file but all to no avail. I have stripped down the layer to the bare basics. The entry in the mapfile is: LAYER NAME "DEFS" STATUS DEFAULT TYPE POINT DATA defects2 METADATA WMS_TITLE "defects" END #end metadata CLASS STYLE SYMBOL "point" SIZE 12 COLOR 0 170 0 #MAXSIZE 100 #MINSIZE 50 END END END I only managed to display it after I converted it to simple points (not PointM). Is this some sort of limitation in Mapserver? It can display PolylineM w/out any problems. Thanks in anticipation, Pano -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.vianello at yahoo.it Fri Jun 13 03:48:24 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Fri, 13 Jun 2008 10:48:24 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map Message-ID: <932649.82824.qm@web27307.mail.ukl.yahoo.com> Hi, I have a map with some point of interest on top of it, these POIs are divided in three categories. In the map file I used three layers, one for each category and I could decide which kind of POIs shown on the map using the layers variable from the template file. But if I want to show only one POI on the map? what I have to do ? 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 henric at ernstson.nu Fri Jun 13 05:48:28 2008 From: henric at ernstson.nu (Henric Ernstson) Date: Fri, 13 Jun 2008 14:48:28 +0200 Subject: [mapserver-users] layer in chameleon Message-ID: Hi list, a simple q. probebly, I am looking how to only show the group-name of a large set of rastermaps in the legend, how do I do that? The rest of layers (ogr-from a mySQL) I would like to present normal in a Legend. I now show all layers, including the rastermaps. Best reg. From simon.mercier at msp.gouv.qc.ca Fri Jun 13 07:04:42 2008 From: simon.mercier at msp.gouv.qc.ca (SIMON MERCIER) Date: Fri, 13 Jun 2008 10:04:42 -0400 Subject: =?Windows-1252?Q?R=E9p.=20:=20[mapserver-users]=20layer=20in=20c?= =?Windows-1252?Q?hameleon?= In-Reply-To: References: Message-ID: <4852463A.4080.00E9.0@msp.gouv.qc.ca> This is not a "build-in" feature in Chameleon. If your raster is in the same spatial reference, use gdal to build a tileindex and show all your raster in one layer... In our organisation we have the same needs and we ask to Mapgears to build it for us.... If you need it, we can put this new feature somewhere on the Web... Simon Mercier Analyste en G?omatique DTI - Service de l'infrastructure et du r?seau Direction des technologies de l'information Minist?re de la S?curit? publique 2525, boulevard Laurier, Tour du Saint-Laurent, 10e ?tage Qu?bec (QC) G1V 2L2 T?l?phone : (418) 646-5687 T?l?copie : (418) 643-0787 Courriel : simon.mercier at msp.gouv.qc.ca >>> "Henric Ernstson" 13/6/2008 8:48 >>> Hi list, a simple q. probebly, I am looking how to only show the group-name of a large set of rastermaps in the legend, how do I do that? The rest of layers (ogr-from a mySQL) I would like to present normal in a Legend. I now show all layers, including the rastermaps. Best reg. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.balman at gmail.com Sat Jun 14 02:07:14 2008 From: mark.balman at gmail.com (Mark) Date: Sat, 14 Jun 2008 10:07:14 +0100 Subject: [mapserver-users] Multiple geometry layer Message-ID: <48538A42.9070702@gmail.com> Hi all I was wondering if it is at all possible to define a layer that uses multiple geometries specifically point and polygon data? A current project I am working on requires that where there is no polygon then display a point instead - from what I have read so far this is not yet an implemented feature within mapserver. I am trying to avoid having dual layers for points and polygons for multiple datasets. Worst case would be to use buffered points but again this is not ideal. I would be grateful for any ideas that others may have. Thanks in advance Mark From szekerest at gmail.com Sat Jun 14 07:20:43 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 14 Jun 2008 16:20:43 +0200 Subject: [mapserver-users] Multiple geometry layer In-Reply-To: <48538A42.9070702@gmail.com> References: <48538A42.9070702@gmail.com> Message-ID: Mark, Though a data source may contain multiple geometry types in a single layer you can specify only a single type per layer in mapserver. The various drivers are trying to convert the geometries to the specified target type if possible, however the point to polygon conversions might not be implemented and supported at the moment. Moreover there`s a significant difference how the different type of the layers are rendered and the related parameters are taken into account. For this reason you should probably convert the geometries to a single type at data source level if possible. Best regards, Tamas 2008/6/14 Mark : > Hi all > > I was wondering if it is at all possible to define a layer that uses > multiple geometries specifically point and polygon data? A current project I > am working on requires that where there is no polygon then display a point > instead - from what I have read so far this is not yet an implemented > feature within mapserver. I am trying to avoid having dual layers for points > and polygons for multiple datasets. Worst case would be to use buffered > points but again this is not ideal. I would be grateful for any ideas that > others may have. > > Thanks in advance > > Mark > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Sat Jun 14 07:24:08 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 14 Jun 2008 16:24:08 +0200 Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <932649.82824.qm@web27307.mail.ukl.yahoo.com> References: <932649.82824.qm@web27307.mail.ukl.yahoo.com> Message-ID: Valerio, How about setting a FILTER based on the attributes of the layer so as to select the single point to be rendered? Best regards, Tamas 2008/6/13 valerio vianello : > Hi, > > I have a map with some point of interest on top of it, these POIs are > divided in three categories. In the map file I used three layers, one for > each category and I could decide which kind of POIs shown on the map using > the layers variable from the template file. But if I want to show only one > POI on the map what I have to do ? > > 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 Jukka.Rahkonen at mmmtike.fi Sat Jun 14 08:16:37 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 14 Jun 2008 18:16:37 +0300 Subject: [mapserver-users] Multiple geometry layer References: <48538A42.9070702@gmail.com> Message-ID: Hi, If you are using database in backgound perhaps there is no need to convert data. How about creating polygon layer by quering just polygon geometries by adding some SQL into layer DATA definition, and point layer by quering the point geometries with "WHERE polygon_geometry is null"? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Tamas Szekeres L?hetetty: la 14.6.2008 17:20 Vastaanottaja: Mark Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Multiple geometry layer Mark, Though a data source may contain multiple geometry types in a single layer you can specify only a single type per layer in mapserver. The various drivers are trying to convert the geometries to the specified target type if possible, however the point to polygon conversions might not be implemented and supported at the moment. Moreover there`s a significant difference how the different type of the layers are rendered and the related parameters are taken into account. For this reason you should probably convert the geometries to a single type at data source level if possible. Best regards, Tamas 2008/6/14 Mark : > Hi all > > I was wondering if it is at all possible to define a layer that uses > multiple geometries specifically point and polygon data? A current project I > am working on requires that where there is no polygon then display a point > instead - from what I have read so far this is not yet an implemented > feature within mapserver. I am trying to avoid having dual layers for points > and polygons for multiple datasets. Worst case would be to use buffered > points but again this is not ideal. I would be grateful for any ideas that > others may have. > > Thanks in advance > > Mark > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From valerio.vianello at yahoo.it Sat Jun 14 09:13:50 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Sat, 14 Jun 2008 16:13:50 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map In-Reply-To: Message-ID: <299617.50167.qm@web27303.mail.ukl.yahoo.com> Hi Tamas, thanks for the replay, I can set the FILTER into the map file but How can I change the FILTER value from the template ? I need to change the point to show dynamically based on user selection. At the moment the only solution that I have found is to put each Poi in a different layer using a filter in each layer to choose the Poi. So from the template to change the Poi? the user have to change the layer.? But I hope to find a better solution. best regards, Valerio --- Sab 14/6/08, Tamas Szekeres ha scritto: Da: Tamas Szekeres Oggetto: Re: [mapserver-users] Show only one POI on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Sabato 14 giugno 2008, 16:24 Valerio, How about setting a FILTER based on the attributes of the layer so as to select the single point to be rendered? Best regards, Tamas 2008/6/13 valerio vianello : > Hi, > > I have a map with some point of interest on top of it, these POIs are > divided in three categories. In the map file I used three layers, one for > each category and I could decide which kind of POIs shown on the map using > the layers variable from the template file. But if I want to show only one > POI on the map what I have to do ? > > 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 > > ___________________________________ 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 szekerest at gmail.com Sat Jun 14 10:03:19 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 14 Jun 2008 19:03:19 +0200 Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <299617.50167.qm@web27303.mail.ukl.yahoo.com> References: <299617.50167.qm@web27303.mail.ukl.yahoo.com> Message-ID: Valerio, If you use mapserver CGI I wonder if the run-time substitution is applicable for you: http://mapserver.gis.umn.edu/docs/howto/runsub Best regards, Tamas 2008/6/14 valerio vianello : > Hi Tamas, > > thanks for the replay, > > I can set the FILTER into the map file but How can I change the FILTER value > from the template ? > > I need to change the point to show dynamically based on user selection. > > At the moment the only solution that I have found is to put each Poi in a > different layer using a filter in each layer to choose the Poi. So from the > template to change the Poi the user have to change the layer. > > But I hope to find a better solution. > > best regards, > Valerio > > --- Sab 14/6/08, Tamas Szekeres ha scritto: > > Da: Tamas Szekeres > Oggetto: Re: [mapserver-users] Show only one POI on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Sabato 14 giugno 2008, 16:24 > > Valerio, > > How about setting a FILTER based on the attributes of the layer so as > to select the single point to be rendered? > > Best regards, > > Tamas > > > 2008/6/13 valerio vianello : >> Hi, >> >> I have a map with some point of interest on top of it, these POIs are >> divided in three categories. In the map file I used three layers, one for >> each category and I could decide which kind of POIs shown on the map using >> the layers variable from the template file. But if I want to show only one >> POI on the map what I have to do ? >> >> 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 >> >> > > ________________________________ > Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua > opinione! From elshayal at smartwebonline.com Sat Jun 14 11:44:34 2008 From: elshayal at smartwebonline.com (elshayal at smartwebonline.com) Date: Sat, 14 Jun 2008 14:44:34 -0400 Subject: [mapserver-users] New Memeber ElshayalSmartGIS Message-ID: <20080614144434.illarhg0zhxc8g8c@email.accountsupport.com> Dear Sirs, I am a new Member in your list I have developed some Small GIS Map Editor Software I wish, I could get other Memebers Feedback in my small GIS Map Editor. the New Version Of Elshayal Smart 2.7 is available in http://www.smartwebonline.com/ or in Direct Download http://www.gismagazine.com/downloads/download.php?id=143 Thank you and best regards Mohamed Elshayal The First Arabian GIS Software http://www.smartwebonline.com/ From henric at ernstson.nu Sun Jun 15 11:46:19 2008 From: henric at ernstson.nu (Henric Ernstson) Date: Sun, 15 Jun 2008 20:46:19 +0200 Subject: [mapserver-users] to large files? or Message-ID: I have a functional chameleon app. I use many raster-data set and shp-files. No I get problem with some new rasterdata that I use. I get the following error. .. .. Yes I have added some wery large dataset (>290 Meg per rasterfile)... Warning: [MapServer Error]: getString(): Parsing error near (8):(line 126) in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line 215 Warning: Failed to open map file C:\ms4w\apps\chameleon\samples\htdocs\/../map/base3_b.map in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line 215 Fatal error: Call to a member function set() on a non-object in C:\ms4w\apps\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on line 197 From jmckenna at gatewaygeomatics.com Sun Jun 15 15:28:30 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 15 Jun 2008 18:28:30 -0400 Subject: [mapserver-users] to large files? or In-Reply-To: References: Message-ID: <94992600-D981-41D2-B328-E2E67692F933@gatewaygeomatics.com> MapServer (through the GDAL library) handles raster files of that size very well. To test your mapfile I would: 1) open a command prompt and execute c:\ms4w\setenv.bat) 2) cd into your map folder 3) test the mapfile with a shp2img command: shp2img -m base3_b.map -o test.png -map_debug 3 A png should be produced of your map, or an error message should be displayed with a line number. If shp2img gives no error and produces a valid map image, then it is a problem on the application side. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 15-Jun-08, at 2:46 PM, Henric Ernstson wrote: > I have a functional chameleon app. I use many raster-data set and > shp-files. > No I get problem with some new rasterdata that I use. I get the > following > error. .. .. > Yes I have added some wery large dataset (>290 Meg per rasterfile)... > > > Warning: [MapServer Error]: getString(): Parsing error near (8): > (line 126) > in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on > line 215 > > Warning: Failed to open map file > C:\ms4w\apps\chameleon\samples\htdocs\/../map/base3_b.map in > C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line > 215 > > Fatal error: Call to a member function set() on a non-object in > C:\ms4w\apps\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on > line 197 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pal.kristensen at statkart.no Sun Jun 15 23:47:19 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Sun, 15 Jun 2008 23:47:19 -0700 (PDT) Subject: [MAPSERVER-USERS] MapServer 5.2 Beta 1 Available In-Reply-To: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> References: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> Message-ID: <17858782.post@talk.nabble.com> Hi! Will there be a MS4W release with containing MapServer 5.2 Beta 1? Regards, P?l Kristensen Steve Lime wrote: > > Hi folks: MapServer 5.2 Beta 1 has just been released. The source package > is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.0 can be found at the end this message. > This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 > applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is to have 2 beta releases, two release candidates with a final > release the first week in July. > More details can be found in the 5.2 release plan at: > > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > > Version 5.2.0-beta1 (2008-06-11): > --------------------------------- > > - WMS/WFS layers can now specify a proxy servert (#571) > > - mapwmslayer.c: set QUERY_LAYERS correctly (#2001) > > - mapwcs.c: handle PARAMETER values correctly (#2509) > > - SOS: fix various memory leaks (#2412) > > - mapwcs.c: advertise temporal support in GetCapabilities (#2487) > > - Fixed flaw in findTag() in maptemplate.c that prevented multiple tags > on the same line being processed under certain conditions. (#2633) > > - Return results even when extents are missing (#2420) > > - Avoid displaying OGR connection strings in error messages (#2629) > > - WCS: respect wcs_name metadata for GetCoverage and DescribeCoverage > requests (#2036) > > - CGI: added -nh option to allow for the suppression of content headers > from > the command line (#2594) > > - PostGIS: fix postgis idle-in-transaction problem (#2626) > > - AGG: enable ellipse symbol rotation for POINT/ANNOTATION layers (#2617) > > - RFC36: add more extensions to support templates (#2576) > > - AGG: allow dashed hatch symbols (#2614) > > - AGG: enable offset lines of type x -99 (#2588) > > - AGG: use an agg specific label size calculation function where > possible (#2357) > > - 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) > > - Tiling API (RFC 43) mode=tile, tilemode=spheremerc, tile=x y zoom > (#2581) > > - Remove C++-style comments and most other warnings thrown by -pedantic > (#2598) > > - Fix PostGIS transaction behavior in fcgi situations (#2497, #2613) > > - Improve performance for large shape files (#2282) > > - encode WMS parameters correctly (#1296) > > - Added alignment option within a scalebar (#2468) > > - RFC-42 HTTP Cookie Forwarding (#2566) > > - Fixed handling of encrypted connection strings in postgis driver (#2563) > > - mapagg.cpp: AGG: add opacity at the style level (#1155) > > - mapwms.c: add Cache-Control max-age HTTP header support (#2551) > > - mapogcsos.c: support URI encoded procedures correctly (#2547) > > - Added support for EMPTY template with WMS GetFeatureInfo (#546) > > - Throw an exception if the WCS request does not overlap layer (#2503) > > - Acquire TLOCK_PROJ for pj_transform() calls (#2533). > > - Fixed problem with large imagemaps generating no output (#2526) > > - mapwms.c: make version optional for GetCapabilities again (#2528) > > - support URN scheme for components of observed property elements (#2522) > > - Fixed gdImagePtr gdPImg memory leak in msSaveImageBufferGD() (#2525) > > - mapogcsos.c: handle invalid POST requests (#2521) > > - mapogcsos.c: handle ACCEPTVERSIONS parameter (#2515) > > - mapwcs.c/mapwcs11.c: s/neighbour/neighbor/g (#2518) > > - mapwms.c: relax FORMAT parameter restrictions for GetFeatureInfo (#2517) > > - mapwcs.c: support COVERAGE lists for DescribeCoverage (#2508) > > - mapwcs.c: fix lonLatEnvelope/@srsName (#2507) > > - mapwcs.c: omit VendorSpecificCapabilities (#2506) > > - mapwcs.c: test for either resx/resy OR width/height (#2505) > > - mapwcs.c: make GetCoverage demand one of TIME or BBOX (#2504) > > - mapwms.c: make GetLegendGraphic listen to TRANSPARENT in OUTPUTFORMAT > (#2494) > > - OWS: support updatesequence (#2384) > > - mapwms.c: test VERSION after service=WMS (#2475) > > - OWS: output Capabilities XML updateSequence if set (#2384) > > - mapwcs.c: better handling of REQUEST parameter (#2490) > > - mapwcs.c: point to correct exception schema (#2481) > > - mapows.c: add version negotiation (#996) > > - mapwfs.c: return default GML2 when invalid OUTPUTFORMAT passed (#2479) > > - mapowscommon.c: add OWS Common style version negotiation (#996) > > - mapwcs.c: better section parameter handling for CITE (#2485) > > - mapwfs.c: point to the correct schema for exceptions (#2480) > > - shp2img.c/shp2pdf.c: clean up usage text, check for invalid layers > (#2066) > > - completed implementation of RFC24 (#2442, #2032) > > - mapwcs.c: require VERSION parameter for DescribeCoverage and > GetCoverage (#2473) > > - mapwcs.c: change error token to MS_WCSERR instead of MS_WMSERR (#2474) > > - mapwcs.c: set exception MIME type to application/vnd.ogc.se_xml > for 1.0.0 (#2470) > > - mapwcs.c: Generate a decently formatted exception if an WCS XML POST > request > is received (#2476). > > - mapowscommon.c: support OWS Common 1.1.0 as well (#2071) > > - mapogcsos.c: support SOS 1.0.0 (#2246) > > - Implement mapObj.setCenter, mapObj.offsetExtent, mapObj.scaleExtent, > rectObj.getCenter at the SWIG API (#2346) > > - mapogcfilter.c: use USE_LIBXML2 in ifdefs (#2416) > > - clean up naming conventions of Shapefile API (#599) > > - use msComputeBounds() instead, since it's already in the codebase > (#2087) > > - set shapeObj bounds from WKT (#2087) > > - fixed issue where path following labels sometimes used the supplied > setting for position. In all cases with ANGLE FOLLOW we want to force > position MS_CC regardless of what is set in the mapfile. > > - enforce (-99 -99) to be the penup value for vector symbols (#1036) > > - Support for labeling features (polygon & line) prior to clipping. This > results in stable label positions regardless of map extent. (#2447) > > - Support for quantization and forced palette png output with RGBA images > (#2436) > > - SLD using a single BBOX filter should generate an SQL ststement for > oracle/postgis/ogr (#2450) > > - Accurate Calculation of legend size for WMS LegendURL (#2435) > > - Converted mapogr.cpp to use OGR C API instead of C++ classes to allow > GDAL/OGR updates without having to recompile MapServer (#545, #697) > > - add missing space on dashed polygon outlines with svg (#2429) > > - Restored behavior of MS 4.10 and made WMS STYLES parameter optional > again in GetMap and GetFeatureInfo requests (#2427) > > - Speed up forced palette rendering (#2422) > > - WMS GetFeatureInfo: honour FEATURE_COUNT for any INFO_FORMAT and > apply the FEATURE_COUNT per layer instead of globally (#2423, #1686) > > - enable soft outlines on truetype labels. This is triggered with a new > keyword OUTLINEWIDTH for the LABEL block (#2417) > > - fix clipping rectangle to take width as well as size into account > (#2411) > > - AGG: added and use a line and polygon adaptor to avoid copying shapeObj > points to an agg path_storage. avoids a few mallocs and a few copies. > > - fixed symbolsetObj not to set the SWIG immutable flag permanently > don't expose refcount and the symbol attributes (Ticket #2407) > > - fix for support of entity encoded text in angle follow text (#2403) > > - AGG: initial support for native computation of label sizes (#2357) > > - AGG: support text symbols specified by their character number (#2398) > > - AGG: fix angle orientation for various symbols > > - allow scientific notation for attributes binded to an int (#2394) > > - merge GD and AGG label cache drawing functions (#2390) > > - Enable AGG rendering of bitmap font labels instead of falling back to > GD (#2387) > > - clean up treatment of encoding and wrap caracter > > - Fix legend label placement for multiline labels (#2382) > > - enforce WRAP parameter in legend label (#2382) > > - AGG: pixel level simplification for line and polygon shapes (#2381) > > - fixed blue/green color swapping for space delimited strings bound to an > attribute. (bug 2378) > > - don't remove points that are checked as being colinear (#2366) > > - mapowscommon.c: fix namespace leak issues (#2375) > > - mapogcsos.c: add SWE DataBlock support (#2248) > > - mapogcsos.c: fix build warnings, namespace and schema pointers (#2248) > > - mappdf.c: support output in fastcgi case via msIO_fwrite() (#2406) > > - mapogcsos.c: Initial support for POST requests (#2379) and updated > msSOSDispatch() handling > > - mapogr.cpp: Use pooling api to ensure per-thread sharing of connections > only (#2408) > > - mapogcsos.c: change substituted variable from sensorid to procedure > (#2409) > > - maplibxml2.c: Initial implementation of libxml2 convenience functions > > - configure: Modified so libxml2 support is requested for WCS and SOS, > and is indicated by USE_LIBXML2 definition. Use @ALL_ENABLED@ in > DEFINEs and mapscriptvars generation. > > - mapresample.c: Fixed support for multi-band data in RAW mode for > bilinear > and nearest neighbour resamplers (#2364). > > - mapdraw.c: Improve error reporting if a raster layer requested in > a query map (#1842). > > - mapfile.c: add simple urn:ogc:def:crs:OGC::CRS84 support. > _______________________________________________ > 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/MapServer-5.2-Beta-1-Available-tp17788950p17858782.html Sent from the Mapserver - User mailing list archive at Nabble.com. From valerio.vianello at yahoo.it Mon Jun 16 01:03:31 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Mon, 16 Jun 2008 08:03:31 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map In-Reply-To: Message-ID: <981188.40340.qm@web27305.mail.ukl.yahoo.com> Thank you Your link is very useful. Best regards Valerio --- Sab 14/6/08, Tamas Szekeres ha scritto: Da: Tamas Szekeres Oggetto: Re: [mapserver-users] Show only one POI on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Sabato 14 giugno 2008, 19:03 Valerio, If you use mapserver CGI I wonder if the run-time substitution is applicable for you: http://mapserver.gis.umn.edu/docs/howto/runsub Best regards, Tamas 2008/6/14 valerio vianello : > Hi Tamas, > > thanks for the replay, > > I can set the FILTER into the map file but How can I change the FILTER value > from the template ? > > I need to change the point to show dynamically based on user selection. > > At the moment the only solution that I have found is to put each Poi in a > different layer using a filter in each layer to choose the Poi. So from the > template to change the Poi the user have to change the layer. > > But I hope to find a better solution. > > best regards, > Valerio > > --- Sab 14/6/08, Tamas Szekeres ha scritto: > > Da: Tamas Szekeres > Oggetto: Re: [mapserver-users] Show only one POI on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Sabato 14 giugno 2008, 16:24 > > Valerio, > > How about setting a FILTER based on the attributes of the layer so as > to select the single point to be rendered? > > Best regards, > > Tamas > > > 2008/6/13 valerio vianello : >> Hi, >> >> I have a map with some point of interest on top of it, these POIs are >> divided in three categories. In the map file I used three layers, one for >> each category and I could decide which kind of POIs shown on the map using >> the layers variable from the template file. But if I want to show only one >> POI on the map what I have to do ? >> >> 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 >> >> > > ________________________________ > 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 gis at vanbooth.com Mon Jun 16 05:20:17 2008 From: gis at vanbooth.com (Rob) Date: Mon, 16 Jun 2008 13:20:17 +0100 Subject: [mapserver-users] Mapscript BINDING constants Message-ID: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> Hi I'm trying to migrate from 4.8.6 to 5.0.2 and have a query regarding Mapscript constants. Given the change from LABELANGLEITEM to a binding on the Label, I'm struggling to see how this would work in Mapscript/Java. If I understand it correctly (and I'm not a Java developer by any means) to replace LABEL ANGLE [ATTRIBUTE] .... END I need a line like labelObj.setBinding(MS_LABEL_BINDING_ANGLE, "ATTRIBUTE"); However, there doesnt seem to be anything defining the MS_LABEL_BINDING_ANGLE constant anywhere for me to compile against. Do I need to build my own constants? MTIA Rob From valerio.vianello at yahoo.it Mon Jun 16 05:58:38 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Mon, 16 Jun 2008 12:58:38 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <981188.40340.qm@web27305.mail.ukl.yahoo.com> Message-ID: <273894.23836.qm@web27306.mail.ukl.yahoo.com> Hi Tamas, I have a bit issue ... Do you know how lock the variable value until the next changing ? Now I am able to show only one poi in the map but if I try to query it I have no results as response. I have done a lot of test and I think the problem is on variable value. after the page is loaded the value of parameter (EXPRESSION '%ccountry%' ) in? the map file lose its past value and so the mapserver cgi haven't reference to it anymore. any suggestion ? Best regards 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 szekerest at gmail.com Mon Jun 16 06:04:58 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 15:04:58 +0200 Subject: [mapserver-users] Mapscript BINDING constants In-Reply-To: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> References: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> Message-ID: Hi Rob, These constants haven`t been exposed to the SWIG interface, however I`m not aware of any compelling reason why not to do so. You can submit a ticket with this problem. Best regards, Tamas 2008/6/16 Rob : > Hi > > I'm trying to migrate from 4.8.6 to 5.0.2 and have a query regarding > Mapscript constants. > > Given the change from LABELANGLEITEM to a binding on the Label, I'm > struggling to see how this would work in Mapscript/Java. > > If I understand it correctly (and I'm not a Java developer by any > means) to replace > > LABEL > ANGLE [ATTRIBUTE] > .... > END > > > I need a line like > > labelObj.setBinding(MS_LABEL_BINDING_ANGLE, "ATTRIBUTE"); > > However, there doesnt seem to be anything defining the > MS_LABEL_BINDING_ANGLE constant anywhere for me to compile against. > Do I need to build my own constants? > > MTIA > > Rob > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gis at vanbooth.com Mon Jun 16 06:12:49 2008 From: gis at vanbooth.com (Rob) Date: Mon, 16 Jun 2008 14:12:49 +0100 Subject: [mapserver-users] Mapscript BINDING constants In-Reply-To: References: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> Message-ID: <2a955f950806160612g3187a64ep4ac22bdd7b396013@mail.gmail.com> I've raised Ticket #2643. In the meantime, how would I hack my way around this issue? At the end of the day, the JNI will be expecting some kind of integer value, but I have no way of knowing what that value is. 2008/6/16 Tamas Szekeres : > Hi Rob, > > These constants haven`t been exposed to the SWIG interface, however > I`m not aware of any compelling reason why not to do so. > You can submit a ticket with this problem. > > Best regards, > > Tamas > > > 2008/6/16 Rob : >> Hi >> >> I'm trying to migrate from 4.8.6 to 5.0.2 and have a query regarding >> Mapscript constants. >> >> Given the change from LABELANGLEITEM to a binding on the Label, I'm >> struggling to see how this would work in Mapscript/Java. >> >> If I understand it correctly (and I'm not a Java developer by any >> means) to replace >> >> LABEL >> ANGLE [ATTRIBUTE] >> .... >> END >> >> >> I need a line like >> >> labelObj.setBinding(MS_LABEL_BINDING_ANGLE, "ATTRIBUTE"); >> >> However, there doesnt seem to be anything defining the >> MS_LABEL_BINDING_ANGLE constant anywhere for me to compile against. >> Do I need to build my own constants? >> >> MTIA >> >> Rob >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From szekerest at gmail.com Mon Jun 16 06:24:43 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 15:24:43 +0200 Subject: [mapserver-users] Mapscript BINDING constants In-Reply-To: <2a955f950806160612g3187a64ep4ac22bdd7b396013@mail.gmail.com> References: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> <2a955f950806160612g3187a64ep4ac22bdd7b396013@mail.gmail.com> Message-ID: Rob, Added a patch that should be a fix for it: http://trac.osgeo.org/mapserver/attachment/ticket/2643/mapserver.h.patch Best regards, Tamas 2008/6/16 Rob : > I've raised Ticket #2643. > > In the meantime, how would I hack my way around this issue? At the > end of the day, the JNI will be expecting some kind of integer value, > but I have no way of knowing what that value is. > > 2008/6/16 Tamas Szekeres : >> Hi Rob, >> >> These constants haven`t been exposed to the SWIG interface, however >> I`m not aware of any compelling reason why not to do so. >> You can submit a ticket with this problem. >> >> Best regards, >> >> Tamas >> >> >> 2008/6/16 Rob : >>> Hi >>> >>> I'm trying to migrate from 4.8.6 to 5.0.2 and have a query regarding >>> Mapscript constants. >>> >>> Given the change from LABELANGLEITEM to a binding on the Label, I'm >>> struggling to see how this would work in Mapscript/Java. >>> >>> If I understand it correctly (and I'm not a Java developer by any >>> means) to replace >>> >>> LABEL >>> ANGLE [ATTRIBUTE] >>> .... >>> END >>> >>> >>> I need a line like >>> >>> labelObj.setBinding(MS_LABEL_BINDING_ANGLE, "ATTRIBUTE"); >>> >>> However, there doesnt seem to be anything defining the >>> MS_LABEL_BINDING_ANGLE constant anywhere for me to compile against. >>> Do I need to build my own constants? >>> >>> MTIA >>> >>> Rob >>> _______________________________________________ >>> 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 gis at vanbooth.com Mon Jun 16 08:28:47 2008 From: gis at vanbooth.com (Rob) Date: Mon, 16 Jun 2008 16:28:47 +0100 Subject: [mapserver-users] Mapscript BINDING constants In-Reply-To: References: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> <2a955f950806160612g3187a64ep4ac22bdd7b396013@mail.gmail.com> Message-ID: <2a955f950806160828i54055ecfi43e218be9f2724c7@mail.gmail.com> Many thanks Tamas. Can I ask another stupid question though? If its the mapserver.h, I'm guessing I need to recompile mapserver and mapscript in order to generate the MS_LABEL_BINDINGS in java. I've applied that patch to my code, and theres still no constant to compile my java against. MTIA Rob 2008/6/16 Tamas Szekeres : > Rob, > > Added a patch that should be a fix for it: > http://trac.osgeo.org/mapserver/attachment/ticket/2643/mapserver.h.patch > > Best regards, > > Tamas > From szekerest at gmail.com Mon Jun 16 10:18:14 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 19:18:14 +0200 Subject: [mapserver-users] Mapscript BINDING constants In-Reply-To: <2a955f950806160828i54055ecfi43e218be9f2724c7@mail.gmail.com> References: <2a955f950806160520k1ce6ea57u1bae072d139683ac@mail.gmail.com> <2a955f950806160612g3187a64ep4ac22bdd7b396013@mail.gmail.com> <2a955f950806160828i54055ecfi43e218be9f2724c7@mail.gmail.com> Message-ID: Rob, You need to regenerate and recompile the mapscript interface. You can see the required steps for various platforms at the mapserver buildbot web interface. http://buildbot.osgeo.org:8504/waterfall Best regards, Tamas 2008/6/16 Rob : > Many thanks Tamas. > > Can I ask another stupid question though? If its the mapserver.h, I'm > guessing I need to recompile mapserver and mapscript in order to > generate the MS_LABEL_BINDINGS in java. I've applied that patch to my > code, and theres still no constant to compile my java against. > > MTIA > > Rob > > 2008/6/16 Tamas Szekeres : >> Rob, >> >> Added a patch that should be a fix for it: >> http://trac.osgeo.org/mapserver/attachment/ticket/2643/mapserver.h.patch >> >> Best regards, >> >> Tamas >> > From BKenne at iso.com Mon Jun 16 10:36:24 2008 From: BKenne at iso.com (Kenne, Bryon K.) Date: Mon, 16 Jun 2008 13:36:24 -0400 Subject: [mapserver-users] Layer->Transform Message-ID: <3F4E4D643FA05D499A93FB483D68C30202AF9A4E@ISOEMAILP6.iso.com> Hopefully a quick question: If I set Transform to False, the result is the png (or tif) graphic is drawn in the upper left, as you would expect. How do I get it to draw in the lower left? I have attempted "false ll", "ll"...can't seem to get it to work. The graphic just disappears or the mapfile has parse error. Anybody have any suggestions? Sincerely, Bryon Kenne ISO - Risk Decision Services 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 * (201) 469-2525; FAX (201) 469-4123 * mailto:bkenne at iso.com Visit our web site at http://www.iso.com This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Leveille at mtq.gouv.qc.ca Mon Jun 16 10:46:10 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Mon, 16 Jun 2008 13:46:10 -0400 Subject: [mapserver-users] 64 bits version of MapServer Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> Hi, We've been using MapServer for a while. It has been used to produce maps for the "Inforouti?re", the official source of all the information needed to plan safe trips on Qu?bec's road network, whatever the season. It has been running on Windows 2003 (32 bits) for over a year. At the beginning, many "stress tests" were realised. We were able to generate around 12 maps / second. But now, due to the popularity of the site, this seems not to be enough in special occasions, such as during a snow storm. The bottle neck seems to be the CPU. One of the few options we were looking at is the possibility of using a 64 bits version of MapServer (on a 64 bits OS of course). My question is simple : has any one tested a 64 bits version ? Can I expect a better performance ? Is there a 64 bits version available for download (I've been using the MS4W Windows binary distribution version) ? Thanks in advance. ______________________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Jun 16 10:57:42 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 16 Jun 2008 13:57:42 -0400 Subject: [mapserver-users] 64 bits version of MapServer In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: <4856A996.8050702@pobox.com> L?veill? wrote: > Hi, > > We've been using MapServer for a while. It has been used to produce maps > for the "Inforouti?re", the official source of all the information > needed to plan safe trips on Qu?bec?s road network, whatever the season. > > It has been running on Windows 2003 (32 bits) for over a year. > At the beginning, many "stress tests" were realised. > We were able to generate around 12 maps / second. > But now, due to the popularity of the site, this seems not to be enough > in special occasions, such as during a snow storm. > The bottle neck seems to be the CPU. > > One of the few options we were looking at is the possibility of using a > 64 bits version of MapServer (on a 64 bits OS of course). > > My question is simple : has any one tested a 64 bits version ? Can I > expect a better performance ? Is there a 64 bits version available for > download (I've been using the MS4W Windows binary distribution version) ? James, I'm not aware of a 64bit MS4W, and generally you will have a hard time getting 64bit mapserver binaries. I am doubtful that moving to 64bit will noticably speed things up, though moving to a faster CPU or to a multi core system may help substantially. 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 szekerest at gmail.com Mon Jun 16 11:03:28 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 20:03:28 +0200 Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <273894.23836.qm@web27306.mail.ukl.yahoo.com> References: <981188.40340.qm@web27305.mail.ukl.yahoo.com> <273894.23836.qm@web27306.mail.ukl.yahoo.com> Message-ID: Valerio, I don`t think if anything is preserved across the subsequent requests in the cgi mapserver so you might have to apply the substitution on each request. However I`m not sure I could catch the problem exactly, do you have mapfile/URL examples? Best regards, Tamas 2008/6/16 valerio vianello : > Hi Tamas, > > I have a bit issue ... > Do you know how lock the variable value until the next changing ? > > Now I am able to show only one poi in the map but if I try to query it I > have no results as response. I have done a lot of test and I think the > problem is on variable value. after the page is loaded the value of > parameter > (EXPRESSION '%ccountry%' ) in the map file lose its past value and so the > mapserver cgi haven't reference to it anymore. > > any suggestion ? > > Best regards > Valerio. > > ________________________________ > Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua > opinione! From BKenne at iso.com Mon Jun 16 11:07:55 2008 From: BKenne at iso.com (Kenne, Bryon K.) Date: Mon, 16 Jun 2008 14:07:55 -0400 Subject: [mapserver-users] Layer->Transform Message-ID: <3F4E4D643FA05D499A93FB483D68C30202AF9AC0@ISOEMAILP6.iso.com> Hopefully a quick question: If I set Transform to False, the result is the png (or tif) graphic is drawn in the upper left, as you would expect. ?How do I get it to draw in the lower left? ?I have attempted "false ll", "ll"...can't seem to get it to work.? The graphic just disappears or the mapfile has parse error. Anybody have any suggestions? Sincerely, Bryon Kenne ISO - Risk Decision?Services? 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 6 (201) 469-2525; FAX (201)?469-4123 ((mailto:bkenne at iso.com Visit our web site at http://www.iso.com This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. From szekerest at gmail.com Mon Jun 16 11:16:36 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 20:16:36 +0200 Subject: [mapserver-users] 64 bits version of MapServer In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: James, The mapsever buildbot currently produces 64 bit binaries, you could download the results (for testing purposes) for both platforms using the following links: http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80-full/package/bin.zip However I`m not sure in that all of the required dependencies have been compiled in. Currently there`s no exact measures about the performance differences but I doubt if the x64 version has significant performance increment. Are you using the mapserver CGI, fast CGI or the scripting interface? Best regards, Tamas 2008/6/16 L?veill?, James : > Hi, > > We've been using MapServer for a while. It has been used to produce maps for > the "Inforouti?re", the official source of all the information needed to > plan safe trips on Qu?bec's road network, whatever the season. > > It has been running on Windows 2003 (32 bits) for over a year. > At the beginning, many "stress tests" were realised. > We were able to generate around 12 maps / second. > But now, due to the popularity of the site, this seems not to be enough in > special occasions, such as during a snow storm. > The bottle neck seems to be the CPU. > > One of the few options we were looking at is the possibility of using a 64 > bits version of MapServer (on a 64 bits OS of course). > > My question is simple : has any one tested a 64 bits version ? Can I expect > a better performance ? Is there a 64 bits version available for download > (I've been using the MS4W Windows binary distribution version) ? > > Thanks in advance. > > > > ______________________________________________________ > > 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 > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Mon Jun 16 11:31:32 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 20:31:32 +0200 Subject: [mapserver-users] Layer->Transform In-Reply-To: <3F4E4D643FA05D499A93FB483D68C30202AF9A4E@ISOEMAILP6.iso.com> References: <3F4E4D643FA05D499A93FB483D68C30202AF9A4E@ISOEMAILP6.iso.com> Message-ID: Hi, How about using the way described in: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-14 Best regards, Tamas 2008/6/16 Kenne, Bryon K. : > Hopefully a quick question: > > > > If I set Transform to False, the result is the png (or tif) graphic is drawn > in the upper left, as you would expect. How do I get it to draw in the > lower left? I have attempted "false ll", "ll"?can't seem to get it to > work. The graphic just disappears or the mapfile has parse error. > > > > Anybody have any suggestions? > > > > Sincerely, > > > > Bryon Kenne > > ISO - Risk Decision Services > 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 > ( (201) 469-2525; FAX (201) 469-4123 > + mailto:bkenne at iso.com > Visit our web site at http://www.iso.com > > > > > This email is intended for the recipient only. If you are not the intended > recipient please disregard, and do not use the information for any purpose. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jhevenor at rogers.com Mon Jun 16 11:25:20 2008 From: jhevenor at rogers.com (Josh Hevenor) Date: Mon, 16 Jun 2008 14:25:20 -0400 Subject: [mapserver-users] 64 bits version of MapServer In-Reply-To: <20080616180757.DB3E7E0165F@lists.osgeo.org> References: <20080616180757.DB3E7E0165F@lists.osgeo.org> Message-ID: <4856B010.8080709@rogers.com> Concerning 64bit MapServer, I found this old post http://lists.maptools.org/pipermail/ms4w-users/2007-December/000983.html Most of what I've read involves people compiling their own but I do remember a post to a 64bit binary...I just can't find it right now. Sorry. There's a win32 how-to in the documentation but no win64 document. http://mapserver.gis.umn.edu/docs/howto I have a client who is looking for a 64bit windows solution so I'd be interested in hearing if you find anything pre-compiled and/or a 64bit compile document. I'm assuming you expect performance gains from the increase in addressable memory and it sounds like you'll be doing some testing. I'm sure we'd all appreciate posting your results once you've run the new setup through its paces. Josh > Message: 3 > Date: Mon, 16 Jun 2008 13:46:10 -0400 > From: L?veill?, James > Subject: [mapserver-users] 64 bits version of MapServer > To: > Message-ID: > <2F86ED212F3E164EB9FBB2E68C67858E049964A7 at SINFRA0-EXC003.MTQ.MIN.INTRA> > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > We've been using MapServer for a while. It has been used to produce maps for > the "Inforouti?re", the official source of all the information needed to > plan safe trips on Qu?bec's road network, whatever the season. > > It has been running on Windows 2003 (32 bits) for over a year. > At the beginning, many "stress tests" were realised. > We were able to generate around 12 maps / second. > But now, due to the popularity of the site, this seems not to be enough in > special occasions, such as during a snow storm. > The bottle neck seems to be the CPU. > > One of the few options we were looking at is the possibility of using a 64 > bits version of MapServer (on a 64 bits OS of course). > > My question is simple : has any one tested a 64 bits version ? Can I expect > a better performance ? Is there a 64 bits version available for download > (I've been using the MS4W Windows binary distribution version) ? > > Thanks in advance. > > > > ______________________________________________________ > > 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 > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080616/257910e8/attachment-0001.html > > ------------------------------ > > Message: 4 > Date: Mon, 16 Jun 2008 13:57:42 -0400 > From: Frank Warmerdam > Subject: Re: [mapserver-users] 64 bits version of MapServer > To: James > Cc: mapserver-users at lists.osgeo.org > Message-ID: <4856A996.8050702 at pobox.com> > Content-Type: text/plain; charset=windows-1252; format=flowed > > L?veill? wrote: > >> Hi, >> >> We've been using MapServer for a while. It has been used to produce maps >> for the "Inforouti?re", the official source of all the information >> needed to plan safe trips on Qu?bec?s road network, whatever the season. >> >> It has been running on Windows 2003 (32 bits) for over a year. >> At the beginning, many "stress tests" were realised. >> We were able to generate around 12 maps / second. >> But now, due to the popularity of the site, this seems not to be enough >> in special occasions, such as during a snow storm. >> The bottle neck seems to be the CPU. >> >> One of the few options we were looking at is the possibility of using a >> 64 bits version of MapServer (on a 64 bits OS of course). >> >> My question is simple : has any one tested a 64 bits version ? Can I >> expect a better performance ? Is there a 64 bits version available for >> download (I've been using the MS4W Windows binary distribution version) ? >> > > James, > > I'm not aware of a 64bit MS4W, and generally you will have a hard time > getting 64bit mapserver binaries. I am doubtful that moving to 64bit > will noticably speed things up, though moving to a faster CPU or to a multi > core system may help substantially. > > Best regards, > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 6/16/2008 7:20 AM > From pspencer at dmsolutions.ca Mon Jun 16 11:51:05 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon, 16 Jun 2008 14:51:05 -0400 Subject: [mapserver-users] 64 bits version of MapServer In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: <3EE47088-0B4D-458E-B04E-946D29B9558A@dmsolutions.ca> James, Unless you have already done so, optimizing your mapfile and data will yield improvements in map rendering speed that would probably be more substantial than switching to 64 bit builds. Of course, under 100 ms per map draw doesn't sound too bad so you have probably implemented most optimizations already. The basic optimizations I can think of quickly are: * use tiled, indexed shape files for vector data and tiled/overviewed tif files for raster data * eliminate all unused attributes from the dbf files * use fastcgi * draw smaller maps Other optimizations might include: * use a faster operating system (linux) with a light-weight web server (lighttpd is typically faster than apache for instance) * use scale ranges to limit the data that has to be drawn at any given scale * precompute attribute values to avoid non-trivial class expressions * use RAM disks for your data, or at a minimum faster hard drives * using preset scales and simplifying/generalizing your data for each scale so you have the minimum amount of data to process * eliminate extraneous cartography (draw less) * eliminate extraneous data (that lies outside of the region of interest) * use a tiled client such as openlayers, prerender your static data into tiles and overlay only dynamically changing data using either map draws or vectors On 16-Jun-08, at 1:46 PM, L?veill?, James wrote: > Hi, > > We've been using MapServer for a while. It has been used to produce > maps for the "Inforouti?re", the official source of all the > information needed to plan safe trips on Qu?bec?s road network, > whatever the season. > > It has been running on Windows 2003 (32 bits) for over a year. > At the beginning, many "stress tests" were realised. > We were able to generate around 12 maps / second. > But now, due to the popularity of the site, this seems not to be > enough in special occasions, such as during a snow storm. > The bottle neck seems to be the CPU. > > One of the few options we were looking at is the possibility of > using a 64 bits version of MapServer (on a 64 bits OS of course). > > My question is simple : has any one tested a 64 bits version ? Can I > expect a better performance ? Is there a 64 bits version available > for download (I've been using the MS4W Windows binary distribution > version) ? > > Thanks in advance. > > > ______________________________________________________ > > 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 > > > > _______________________________________________ > 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 szekerest at gmail.com Mon Jun 16 11:51:45 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 20:51:45 +0200 Subject: [mapserver-users] 64 bits version of MapServer In-Reply-To: <4856B010.8080709@rogers.com> References: <20080616180757.DB3E7E0165F@lists.osgeo.org> <4856B010.8080709@rogers.com> Message-ID: Josh, I`m planning to add x64 packages for mapserver and gdal in the osgeo4w distribution but so far I didn`t have enough space in my timeline to put it together. Maybe the summer holiday time will be a good chance to do it ;-) Till then the buildbot binaries may provide a snapshot of the results: http://vbkto.dyndns.org:1080/mapserver/szekerest-vc80x64-full/package/bin.zip http://vbkto.dyndns.org:1080/gdal/szekerest-vc80x64-full/package/bin.zip Best regards, Tamas 2008/6/16 Josh Hevenor : > Concerning 64bit MapServer, I found this old post > > http://lists.maptools.org/pipermail/ms4w-users/2007-December/000983.html > > Most of what I've read involves people compiling their own but I do > remember a post to a 64bit binary...I just can't find it right now. > Sorry. There's a win32 how-to in the documentation but no win64 document. > > http://mapserver.gis.umn.edu/docs/howto > > I have a client who is looking for a 64bit windows solution so I'd be > interested in hearing if you find anything pre-compiled and/or a 64bit > compile document. > > I'm assuming you expect performance gains from the increase in > addressable memory and it sounds like you'll be doing some testing. I'm > sure we'd all appreciate posting your results once you've run the new > setup through its paces. > > Josh > > >> Message: 3 >> Date: Mon, 16 Jun 2008 13:46:10 -0400 >> From: L?veill?, James >> Subject: [mapserver-users] 64 bits version of MapServer >> To: >> Message-ID: >> <2F86ED212F3E164EB9FBB2E68C67858E049964A7 at SINFRA0-EXC003.MTQ.MIN.INTRA> >> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi, >> >> We've been using MapServer for a while. It has been used to produce maps for >> the "Inforouti?re", the official source of all the information needed to >> plan safe trips on Qu?bec's road network, whatever the season. >> >> It has been running on Windows 2003 (32 bits) for over a year. >> At the beginning, many "stress tests" were realised. >> We were able to generate around 12 maps / second. >> But now, due to the popularity of the site, this seems not to be enough in >> special occasions, such as during a snow storm. >> The bottle neck seems to be the CPU. >> >> One of the few options we were looking at is the possibility of using a 64 >> bits version of MapServer (on a 64 bits OS of course). >> >> My question is simple : has any one tested a 64 bits version ? Can I expect >> a better performance ? Is there a 64 bits version available for download >> (I've been using the MS4W Windows binary distribution version) ? >> >> Thanks in advance. >> >> >> >> ______________________________________________________ >> >> 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 >> >> >> >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080616/257910e8/attachment-0001.html >> >> ------------------------------ >> >> Message: 4 >> Date: Mon, 16 Jun 2008 13:57:42 -0400 >> From: Frank Warmerdam >> Subject: Re: [mapserver-users] 64 bits version of MapServer >> To: James >> Cc: mapserver-users at lists.osgeo.org >> Message-ID: <4856A996.8050702 at pobox.com> >> Content-Type: text/plain; charset=windows-1252; format=flowed >> >> L?veill? wrote: >> >>> Hi, >>> >>> We've been using MapServer for a while. It has been used to produce maps >>> for the "Inforouti?re", the official source of all the information >>> needed to plan safe trips on Qu?bec's road network, whatever the season. >>> >>> It has been running on Windows 2003 (32 bits) for over a year. >>> At the beginning, many "stress tests" were realised. >>> We were able to generate around 12 maps / second. >>> But now, due to the popularity of the site, this seems not to be enough >>> in special occasions, such as during a snow storm. >>> The bottle neck seems to be the CPU. >>> >>> One of the few options we were looking at is the possibility of using a >>> 64 bits version of MapServer (on a 64 bits OS of course). >>> >>> My question is simple : has any one tested a 64 bits version ? Can I >>> expect a better performance ? Is there a 64 bits version available for >>> download (I've been using the MS4W Windows binary distribution version) ? >>> >> >> James, >> >> I'm not aware of a 64bit MS4W, and generally you will have a hard time >> getting 64bit mapserver binaries. I am doubtful that moving to 64bit >> will noticably speed things up, though moving to a faster CPU or to a multi >> core system may help substantially. >> >> Best regards, >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 6/16/2008 7:20 AM >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From BKenne at iso.com Mon Jun 16 12:20:23 2008 From: BKenne at iso.com (Kenne, Bryon K.) Date: Mon, 16 Jun 2008 15:20:23 -0400 Subject: [mapserver-users] Layer->Transform In-Reply-To: References: <3F4E4D643FA05D499A93FB483D68C30202AF9A4E@ISOEMAILP6.iso.com> Message-ID: <3F4E4D643FA05D499A93FB483D68C30202B38F63@ISOEMAILP6.iso.com> No Luck. I am running the latest version of MS4W. Here is my mapfile (The layer 'logo' is at the very bottom of the file): # # Start of WMS Server map file # # NAME ISO_WMS_server STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym ## ESPG:4326 extents: -WGS84 EXTENT -182.52 14.397 -61.863 74.187 UNITS dd SHAPEPATH "../iso_data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "ISO Server" "wms_onlineresource" "http://i63157djc1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/iso_lo go.map" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wms_abstract" "Cool" END END PROJECTION "init=epsg:4326" END # # Start of reference map # REFERENCE IMAGE images/keymap.png ## ESPG:4326 extents: -WGS84 EXTENT -182.52 14.397 -61.863 74.187 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 200 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 5 STATUS ON END QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME Logo METADATA "wms_title" "Logo" END #SIZEUNITS pixels TRANSFORM FALSE DATA "la_logo.png" STATUS DEFAULT TYPE RASTER OFFSITE 0 0 0 END # Layer END # Map File -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Monday, June 16, 2008 2:32 PM To: Kenne, Bryon K. Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Layer->Transform Hi, How about using the way described in: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-14 Best regards, Tamas 2008/6/16 Kenne, Bryon K. : > Hopefully a quick question: > > > > If I set Transform to False, the result is the png (or tif) graphic is drawn > in the upper left, as you would expect. How do I get it to draw in the > lower left? I have attempted "false ll", "ll"...can't seem to get it to > work. The graphic just disappears or the mapfile has parse error. > > > > Anybody have any suggestions? > > > > Sincerely, > > > > Bryon Kenne > > ISO - Risk Decision Services > 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 > ( (201) 469-2525; FAX (201) 469-4123 > + mailto:bkenne at iso.com > Visit our web site at http://www.iso.com > > > > > This email is intended for the recipient only. If you are not the intended > recipient please disregard, and do not use the information for any purpose. > _______________________________________________ > mapserver-users mailing list > mapserver-users 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 This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. From szekerest at gmail.com Mon Jun 16 12:50:00 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 16 Jun 2008 21:50:00 +0200 Subject: [mapserver-users] Layer->Transform In-Reply-To: <3F4E4D643FA05D499A93FB483D68C30202B38F63@ISOEMAILP6.iso.com> References: <3F4E4D643FA05D499A93FB483D68C30202AF9A4E@ISOEMAILP6.iso.com> <3F4E4D643FA05D499A93FB483D68C30202B38F63@ISOEMAILP6.iso.com> Message-ID: I guess it doesn`t work with the raster layers. You should instead use a point layer with a pixmap symbol that referes to your logo image. Best regards, Tamas 2008/6/16 Kenne, Bryon K. : > No Luck. > > I am running the latest version of MS4W. Here is my mapfile (The layer > 'logo' is at the very bottom of the file): > > # > # Start of WMS Server map file > # > # > NAME ISO_WMS_server > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > ## ESPG:4326 extents: -WGS84 > EXTENT -182.52 14.397 -61.863 74.187 > UNITS dd > SHAPEPATH "../iso_data" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the > root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "ISO Server" > "wms_onlineresource" > "http://i63157djc1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/iso_lo > go.map" > "wms_srs" "EPSG:4326" > "wms_feature_info_mime_type" "text/html" > "wms_abstract" "Cool" > END > END > > PROJECTION > "init=epsg:4326" > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/keymap.png > ## ESPG:4326 extents: -WGS84 > EXTENT -182.52 14.397 -61.863 74.187 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 200 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STYLE HILITE > COLOR 255 0 0 > END > > > # > # Start of layer definitions > # > > > LAYER > NAME Logo > METADATA > "wms_title" "Logo" > END > #SIZEUNITS pixels > TRANSFORM FALSE > DATA "la_logo.png" > STATUS DEFAULT > TYPE RASTER > OFFSITE 0 0 0 > END # Layer > > END # Map File > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas > Szekeres > Sent: Monday, June 16, 2008 2:32 PM > To: Kenne, Bryon K. > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Layer->Transform > > Hi, > > How about using the way described in: > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-14 > > > Best regards, > > Tamas > > > 2008/6/16 Kenne, Bryon K. : >> Hopefully a quick question: >> >> >> >> If I set Transform to False, the result is the png (or tif) graphic is > drawn >> in the upper left, as you would expect. How do I get it to draw in > the >> lower left? I have attempted "false ll", "ll"...can't seem to get it > to >> work. The graphic just disappears or the mapfile has parse error. >> >> >> >> Anybody have any suggestions? >> >> >> >> Sincerely, >> >> >> >> Bryon Kenne >> >> ISO - Risk Decision Services >> 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 >> ( (201) 469-2525; FAX (201) 469-4123 >> + mailto:bkenne at iso.com >> Visit our web site at http://www.iso.com >> >> >> >> >> This email is intended for the recipient only. If you are not the > intended >> recipient please disregard, and do not use the information for any > purpose. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users 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 > > This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bmwyss at gmail.com Mon Jun 16 14:04:18 2008 From: bmwyss at gmail.com (ben wyss) Date: Mon, 16 Jun 2008 23:04:18 +0200 Subject: [mapserver-users] WMS for Google Earth Message-ID: <670a3d3e0806161404i560723a7r61d41c7cbb74dd89@mail.gmail.com> Hello, I am trying to develop WMS to be compatible with Google Earth. My map file seems to return a healthy XML file (no errors, and works in Cartoweb), but it will not project (at all) in Google Earth? Can someone direct me toward a solution or documentation on this subject? My XML file looks like this: Thanks, Ben ]> OGC:WMS Quakeloss2: Boumerdes - Goran application/vnd.ogc.wms_xml image/gif image/png image/png; mode=24bit image/jpeg image/wbmp image/tiff image/svg+xml text/plain application/vnd.ogc.gml text/xml image/gif image/png image/png; mode=24bit image/jpeg image/wbmp text/xml application/vnd.ogc.se_xml application/vnd.ogc.se_inimage application/vnd.ogc.se_blank QL2_WMS Quakeloss2: Boumerdes - Goran EPSG:4326 EPSG:4269 damage Damage and Losses EPSG:4326 EPSG:4269 -------------- next part -------------- An HTML attachment was scrubbed... URL: From henric at ernstson.nu Mon Jun 16 15:52:16 2008 From: henric at ernstson.nu (Henric Ernstson) Date: Tue, 17 Jun 2008 00:52:16 +0200 Subject: SV: [mapserver-users] to large files? or In-Reply-To: <94992600-D981-41D2-B328-E2E67692F933@gatewaygeomatics.com> Message-ID: Hi list and Jeff I have looked at my app and my map-file eny one out there knowing any thing about chameleon line 215 say $this->oMap = ms_newMapObj($szMapFile, $szMapFilePath); and that give me problem using large datasets. -----Ursprungligt meddelande----- Fran: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org]For Jeff McKenna Skickat: den 16 juni 2008 00:29 Till: Mapserver-users Amne: Re: [mapserver-users] to large files? or MapServer (through the GDAL library) handles raster files of that size very well. To test your mapfile I would: 1) open a command prompt and execute c:\ms4w\setenv.bat) 2) cd into your map folder 3) test the mapfile with a shp2img command: shp2img -m base3_b.map -o test.png -map_debug 3 A png should be produced of your map, or an error message should be displayed with a line number. If shp2img gives no error and produces a valid map image, then it is a problem on the application side. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 15-Jun-08, at 2:46 PM, Henric Ernstson wrote: > I have a functional chameleon app. I use many raster-data set and > shp-files. > No I get problem with some new rasterdata that I use. I get the > following > error. .. .. > Yes I have added some wery large dataset (>290 Meg per rasterfile)... > > > Warning: [MapServer Error]: getString(): Parsing error near (8): > (line 126) > in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on > line 215 > > Warning: Failed to open map file > C:\ms4w\apps\chameleon\samples\htdocs\/../map/base3_b.map in > C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line > 215 > > Fatal error: Call to a member function set() on a non-object in > C:\ms4w\apps\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on > line 197 > _______________________________________________ > 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 valerio.vianello at yahoo.it Mon Jun 16 22:36:37 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Tue, 17 Jun 2008 05:36:37 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <981188.40340.qm@web27305.mail.ukl.yahoo.com> Message-ID: <477993.86108.qm@web27302.mail.ukl.yahoo.com> Hi Tamas, I have a bit issue ... Do you know how lock the variable value until the next changing ? Now I am able to show only one poi in the map but if I try to query it I have no results as response. I have done a lot of test and I think the problem is on variable value. after the page is loaded the value of parameter (EXPRESSION '%ccountry%' ) in? the map file lose its past value and so the mapserver cgi haven't reference to it anymore. any suggestion ? Best regards 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 valerio.vianello at yahoo.it Mon Jun 16 23:04:05 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Tue, 17 Jun 2008 06:04:05 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map In-Reply-To: Message-ID: <789874.6764.qm@web27304.mail.ukl.yahoo.com> Hi Tomas, My demo is on my local machine for now...but I will show you part of the map file and template file. this is the layer in which i use the variable the map file is called "map1.map" # Start of LAYER DEFINITIONS --------------------------------------------- ? LAYER? #show single poi ??? NAME???????? floor_1_Show_Pois ??? DATA??????? POIs ??? STATUS?????? OFF ??? TYPE???????? POINT ??? CLASSITEM "country" ??? FILTERITEM 'floor' ??? FILTER 'f.1'??? ??? LABELITEM "name" ??? TOLERANCE 7 ??? CLASS ????? NAME?????? 'single_poi' ????? EXPRESSION '%ccountry%' ????? TEMPLATE '../templates/pois.html' ????? STYLE ??? ? COLOR??????? 0 0 0 ????????? SYMBOL '../symbols/flag_blue.gif' ????? END ????? LABEL ??????? COLOR 0 0 0 ?????? TYPE BITMAP ??????? SIZE MEDIUM ??????? ANTIALIAS TRUE ??????? POSITION LC ??????? FORCE TRUE ??????? PARTIALS FALSE ??????? BUFFER 4 ????? END # end of label ??? END #CLASS? ? END #? layer Pois with label? #end --------------------------------------------- when I click on same point in the map using mapserver query mode a new page is loaded where there is this link to reload the same map file to show only one pois: Show on Section the page is loaded correct but if I try for example to query to poi I have non response or if I zoom in or zoom out into the map the poi disappears. I tried to use the field in the template but the value of [ccountry is replaced only the first time with the correct value then its value become the string "[ccountry]"... any suggestions ? best regards Valerio --- Lun 16/6/08, Tamas Szekeres ha scritto: Da: Tamas Szekeres Oggetto: Re: [mapserver-users] Show only one POI on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Luned? 16 giugno 2008, 20:03 Valerio, I don`t think if anything is preserved across the subsequent requests in the cgi mapserver so you might have to apply the substitution on each request. However I`m not sure I could catch the problem exactly, do you have mapfile/URL examples? Best regards, Tamas 2008/6/16 valerio vianello : > Hi Tamas, > > I have a bit issue ... > Do you know how lock the variable value until the next changing ? > > Now I am able to show only one poi in the map but if I try to query it I > have no results as response. I have done a lot of test and I think the > problem is on variable value. after the page is loaded the value of > parameter > (EXPRESSION '%ccountry%' ) in the map file lose its past value and so the > mapserver cgi haven't reference to it anymore. > > any suggestion ? > > Best regards > Valerio. > > ________________________________ > 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 valerio.vianello at yahoo.it Tue Jun 17 00:37:35 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Tue, 17 Jun 2008 07:37:35 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map Message-ID: <418928.52060.qm@web27303.mail.ukl.yahoo.com> Hi Tomas, I have found a first solution to my problem. I used the cookies to store the variable value end I update the cookie value only when the variable change. and then in a javascript I update the value of the post field before submit the page. I'm searching for other solution that don't use cookies... thanks Valerio --- Mar 17/6/08, valerio vianello ha scritto: Da: valerio vianello Oggetto: Re: [mapserver-users] Show only one POI on the map A: "Tamas Szekeres" Cc: "mapserver" Data: Marted? 17 giugno 2008, 08:04 Hi Tomas, My demo is on my local machine for now...but I will show you part of the map file and template file. this is the layer in which i use the variable the map file is called "map1.map" # Start of LAYER DEFINITIONS --------------------------------------------- ? LAYER? #show single poi ??? NAME???????? floor_1_Show_Pois ??? DATA??????? POIs ??? STATUS?????? OFF ??? TYPE???????? POINT ??? CLASSITEM "country" ??? FILTERITEM 'floor' ??? FILTER 'f.1'??? ??? LABELITEM "name" ??? TOLERANCE 7 ??? CLASS ????? NAME?????? 'single_poi' ????? EXPRESSION '%ccountry%' ????? TEMPLATE '../templates/pois.html' ????? STYLE ??? ? COLOR??????? 0 0 0 ????????? SYMBOL '../symbols/flag_blue.gif' ????? END ????? LABEL ??????? COLOR 0 0 0 ?????? TYPE BITMAP ??????? SIZE MEDIUM ??????? ANTIALIAS TRUE ??????? POSITION LC ??????? FORCE TRUE ??????? PARTIALS FALSE ??????? BUFFER 4 ????? END # end of label ??? END #CLASS? ? END #? layer Pois with label? #end --------------------------------------------- when I click on same point in the map using mapserver query mode a new page is loaded where there is this link to reload the same map file to show only one pois: Show on Section the page is loaded correct but if I try for example to query to poi I have non response or if I zoom in or zoom out into the map the poi disappears. I tried to use the field in the template but the value of [ccountry is replaced only the first time with the correct value then its value become the string "[ccountry]"... any suggestions ? best regards Valerio --- Lun 16/6/08, Tamas Szekeres ha scritto: Da: Tamas Szekeres Oggetto: Re: [mapserver-users] Show only one POI on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Luned? 16 giugno 2008, 20:03 Valerio, I don`t think if anything is preserved across the subsequent requests in the cgi mapserver so you might have to apply the substitution on each request. However I`m not sure I could catch the problem exactly, do you have mapfile/URL examples? Best regards, Tamas 2008/6/16 valerio vianello : > Hi Tamas, > > I have a bit issue ... > Do you know how lock the variable value until the next changing ? > > Now I am able to show only one poi in the map but if I try to query it I > have no results as response. I have done a lot of test and I think the > problem is on variable value. after the page is loaded the value of > parameter > (EXPRESSION '%ccountry%' ) in the map file lose its past value and so the > mapserver cgi haven't reference to it anymore. > > any suggestion ? > > Best regards > Valerio. > > ________________________________ > 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! ___________________________________ 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 hanscastorp76 at yahoo.es Tue Jun 17 00:57:15 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 17 Jun 2008 07:57:15 +0000 (GMT) Subject: [mapserver-users] Show only one POI on the map Message-ID: <425408.50016.qm@web25901.mail.ukl.yahoo.com> Hi Valerio, Do you know how to do the same (runtime variable substitution) using Mapscript instead of using the url?? Thanks in advance. ________________________________ De:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de valerio vianello Enviado el: martes, 17 de junio de 2008 9:38 Para: Tamas Szekeres CC: mapserver Asunto: Re: [mapserver-users] Show only one POI on the map Hi Tomas, I have found a first solution to my problem. I used the cookies to store the variable value end I update the cookie value only when the variable change. and then in a javascript I update the value of the post field before submit the page. I'm searching for other solution that don't use cookies... thanks Valerio --- Mar 17/6/08, valerio vianello ha scritto: Da: valerio vianello Oggetto: Re: [mapserver-users] Show only one POI on the map A: "Tamas Szekeres" Cc: "mapserver" Data: Marted? 17 giugno 2008, 08:04 Hi Tomas, My demo is on my local machine for now...but I will show you part of the map file and template file. this is the layer in which i use the variable the map file is called "map1.map" # Start of LAYER DEFINITIONS --------------------------------------------- LAYER #show single poi NAME floor_1_Show_Pois DATA POIs STATUS OFF TYPE POINT CLASSITEM "country" FILTERITEM 'floor' FILTER 'f.1' LABELITEM "name" TOLERANCE 7 CLASS NAME 'single_poi' EXPRESSION '%ccountry%' TEMPLATE '../templates/pois.html' STYLE COLOR 0 0 0 SYMBOL '../symbols/flag_blue.gif' END LABEL COLOR 0 0 0 TYPE BITMAP SIZE MEDIUM ANTIALIAS TRUE POSITION LC FORCE TRUE PARTIALS FALSE BUFFER 4 END # end of label END #CLASS END # layer Pois with label #end --------------------------------------------- when I click on same point in the map using mapserver query mode a new page is loaded where there is this link to reload the same map file to show only one pois: Show on Section the page is loaded correct but if I try for example to query to poi I have non response or if I zoom in or zoom out into the map the poi disappears. I tried to use the field in the template but the value of [ccountry is replaced only the first time with the correct value then its value become the string "[ccountry]"... any suggestions ? best regards Valerio --- Lun 16/6/08, Tamas Szekeres ha scritto: Da: Tamas Szekeres Oggetto: Re: [mapserver-users] Show only one POI on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Luned? 16 giugno 2008, 20:03 Valerio, I don`t think if anything is preserved across the subsequent requests in the cgi mapserver so you might have to apply the substitution on each request. However I`m not sure I could catch the problem exactly, do you have mapfile/URL examples? Best regards, Tamas 2008/6/16 valerio vianello : > Hi Tamas, > > I have a bit issue ... > Do you know how lock the variable value until the next changing ? > > Now I am able to show only one poi in the map but if I try to query it I > have no results as response. I have done a lot of test and I think the > problem is on variable value. after the page is loaded the value of > parameter > (EXPRESSION '%ccountry%' ) in the map file lose its past value and so the > mapserver cgi haven't reference to it anymore. > > any suggestion ? > > Best regards > Valerio. > > ________________________________ > 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! ________________________________ Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione! No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.3.0/1505 - Release Date: 16/06/2008 7:20 ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Jun 17 03:38:18 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 17 Jun 2008 12:38:18 +0200 Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <418928.52060.qm@web27303.mail.ukl.yahoo.com> References: <418928.52060.qm@web27303.mail.ukl.yahoo.com> Message-ID: Valerio, It`s somewhat application dependent how you preserve the client state and mostly out of scope for the mapserver CGI app. You could probably use some scripting at the server or the client side to store the state between the subsequent requests. To achieve a higher level of customization you could use MapScript at the server side. Best regards, Tamas 2008/6/17 valerio vianello : > Hi Tomas, > > I have found a first solution to my problem. > > I used the cookies to store the variable value end I update the cookie value > only when the variable change. > > and then in a javascript I update the value of the post field before submit > the page. > > I'm searching for other solution that don't use cookies... > > thanks > Valerio > > --- Mar 17/6/08, valerio vianello ha scritto: > > Da: valerio vianello > Oggetto: Re: [mapserver-users] Show only one POI on the map > A: "Tamas Szekeres" > Cc: "mapserver" > Data: Marted? 17 giugno 2008, 08:04 > > Hi Tomas, > > My demo is on my local machine for now...but I will show you part of the map > file and template file. > > this is the layer in which i use the variable the map file is called > "map1.map" > # Start of LAYER DEFINITIONS --------------------------------------------- > LAYER #show single poi > NAME floor_1_Show_Pois > DATA POIs > STATUS OFF > TYPE POINT > CLASSITEM "country" > FILTERITEM 'floor' > FILTER 'f.1' > LABELITEM "name" > TOLERANCE 7 > > CLASS > NAME 'single_poi' > EXPRESSION '%ccountry%' > TEMPLATE '../templates/pois.html' > STYLE > COLOR 0 0 0 > SYMBOL '../symbols/flag_blue.gif' > END > LABEL > COLOR 0 0 0 > TYPE BITMAP > SIZE MEDIUM > ANTIALIAS TRUE > POSITION LC > FORCE TRUE > PARTIALS FALSE > BUFFER 4 > END # end of label > END #CLASS > END # layer Pois with label > #end --------------------------------------------- > > when I click on same point in the map using mapserver query mode a new page > is loaded where there is this link to reload the same map file to show only > one pois: > > Show on > Section > > the page is loaded correct but if I try for example to query to poi I have > non response or if I zoom in or zoom out into the map the poi disappears. > > I tried to use the field in the template > > but the value of [ccountry is replaced only the first time with the correct > value then its value become the string "[ccountry]"... > > any suggestions ? > > best regards > Valerio > > > > > --- Lun 16/6/08, Tamas Szekeres ha scritto: > > Da: Tamas Szekeres > Oggetto: Re: [mapserver-users] Show only one POI on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Luned? 16 giugno 2008, 20:03 > > Valerio, > > I don`t think if anything is preserved across the subsequent requests > in the cgi mapserver so you might have to apply the substitution on > each request. > However I`m not sure I could catch the problem exactly, do you have > mapfile/URL examples? > > Best regards, > > Tamas > > > 2008/6/16 valerio vianello : >> Hi Tamas, >> >> I have a bit issue > > ... >> Do you know how lock the variable value until the next changing ? >> >> Now I am able to show only one poi in the map but if I try to query it I >> have no results as response. I have done a lot of test and I think the >> problem is on variable value. after the page is loaded the value of >> parameter >> (EXPRESSION '%ccountry%' ) in the map file lose its past value > and so the >> mapserver cgi haven't reference to it anymore. >> >> any suggestion ? >> >> Best regards >> Valerio. >> >> ________________________________ >> 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! > > ________________________________ > Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua > opinione! From szekerest at gmail.com Tue Jun 17 03:42:01 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 17 Jun 2008 12:42:01 +0200 Subject: [mapserver-users] Show only one POI on the map In-Reply-To: <425408.50016.qm@web25901.mail.ukl.yahoo.com> References: <425408.50016.qm@web25901.mail.ukl.yahoo.com> Message-ID: Hi, If you use MapScript you probably use the object model (by creating mapObj at first) and assign values to object properties instead of using the run-time substitution. You should probably use custom parameters in the request URLs to communicate between the server and the client side. Best regards, Tamas 2008/6/17 Hans Castorp : > Hi Valerio, > > > > Do you know how to do the same (runtime variable substitution) using > Mapscript instead of using the url?? > > > > Thanks in advance. > > > > ________________________________ > > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de valerio > vianello > Enviado el: martes, 17 de junio de 2008 9:38 > Para: Tamas Szekeres > CC: mapserver > Asunto: Re: [mapserver-users] Show only one POI on the map > > > > Hi Tomas, > > I have found a first solution to my problem. > > I used the cookies to store the variable value end I update the cookie value > only when the variable change. > > and then in a javascript I update the value of the post field before submit > the page. > > I'm searching for other solution that don't use cookies... > > thanks > Valerio > > --- Mar 17/6/08, valerio vianello ha scritto: > > Da: valerio vianello > Oggetto: Re: [mapserver-users] Show only one POI on the map > A: "Tamas Szekeres" > Cc: "mapserver" > Data: Marted? 17 giugno 2008, 08:04 > > Hi Tomas, > > My demo is on my local machine for now...but I will show you part of the map > file and template file. > > this is the layer in which i use the variable the map file is called > "map1.map" > # Start of LAYER DEFINITIONS --------------------------------------------- > LAYER #show single poi > NAME floor_1_Show_Pois > DATA POIs > STATUS OFF > TYPE POINT > CLASSITEM "country" > FILTERITEM 'floor' > FILTER 'f.1' > LABELITEM "name" > TOLERANCE 7 > > CLASS > NAME 'single_poi' > EXPRESSION '%ccountry%' > TEMPLATE '../templates/pois.html' > STYLE > COLOR 0 0 0 > SYMBOL '../symbols/flag_blue.gif' > END > LABEL > COLOR 0 0 0 > TYPE BITMAP > SIZE MEDIUM > ANTIALIAS TRUE > POSITION LC > FORCE TRUE > PARTIALS FALSE > BUFFER 4 > END # end of label > END #CLASS > END # layer Pois with label > #end --------------------------------------------- > > when I click on same point in the map using mapserver query mode a new page > is loaded where there is this link to reload the same map file to show only > one pois: > > Show on > Section > > the page is loaded correct but if I try for example to query to poi I have > non response or if I zoom in or zoom out into the map the poi disappears. > > I tried to use the field in the template > > but the value of [ccountry is replaced only the first time with the correct > value then its value become the string "[ccountry]"... > > any suggestions ? > > best regards > Valerio > > > > > --- Lun 16/6/08, Tamas Szekeres ha scritto: > > Da: Tamas Szekeres > Oggetto: Re: [mapserver-users] Show only one POI on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Luned? 16 giugno 2008, 20:03 > > Valerio, > > > > > > > > > > > > I don`t think if anything is preserved across the subsequent requests > > > > > > in the cgi mapserver so you might have to apply the substitution on > > > > > > each request. > > > > > > However I`m not sure I could catch the problem exactly, do you have > > > > > > > mapfile/URL examples? > > > > > > > > > > > > Best regards, > > > > > > > > > > > > Tamas > > > > > > > > > > > > > > > > > > 2008/6/16 valerio vianello : > > > > > >> Hi Tamas, > > > > > >> > > > > > >> I have a bit issue > > > > > > > > > > > > > > ... > > > > > > >> Do you know how lock the variable value until the next changing ? > > > > > >> > > > > > >> Now I am able to show only one poi in the map but if I try to query it I > > > > > >> have no results as response. I have done a lot of test and I think the > > > > > >> problem is on variable value. after the page is loaded the value of > > > > > >> parameter > > > > > >> (EXPRESSION '%ccountry%' ) in the map file lose its past value > > > > > > and so the > > > > > >> mapserver cgi haven't reference to it anymore. > > > > > >> > > > > > >> any suggestion ? > > > > > >> > > > > > >> Best regards > > > > > > >> Valerio. > > > > > >> > > > > > >> ________________________________ > > > > > >> 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! > > > > ________________________________ > > Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua > opinione! > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 270.3.0/1505 - Release Date: 16/06/2008 > 7:20 > > ________________________________ > Enviado desde Correo Yahoo! > La bandeja de entrada m?s inteligente. > From jmckenna at gatewaygeomatics.com Tue Jun 17 06:00:06 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 17 Jun 2008 09:00:06 -0400 Subject: SV: [mapserver-users] to large files? or In-Reply-To: References: Message-ID: <67100F60-0B46-4065-9775-D2482F2B3476@gatewaygeomatics.com> I would follow the instructions that I provided in the previous post to make sure it is not a problem with your .map file. Once you have ruled that out, then you know it must be a problem with your Chameleon settings. (if that is the case, then you should use the Chameleon mailing list for this question) You might also want to try your Chameleon application with another mapfile. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 16-Jun-08, at 6:52 PM, Henric Ernstson wrote: > Hi list and Jeff I have looked at my app and my map-file > > eny one out there knowing any thing about chameleon line 215 > say > $this->oMap = ms_newMapObj($szMapFile, $szMapFilePath); > > and that give me problem using large datasets. > > > > > -----Ursprungligt meddelande----- > Fran: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org]For Jeff McKenna > Skickat: den 16 juni 2008 00:29 > Till: Mapserver-users > Amne: Re: [mapserver-users] to large files? or > > > MapServer (through the GDAL library) handles raster files of that size > very well. To test your mapfile I would: > > 1) open a command prompt and execute c:\ms4w\setenv.bat) > 2) cd into your map folder > 3) test the mapfile with a shp2img command: > shp2img -m base3_b.map -o test.png -map_debug 3 > > A png should be produced of your map, or an error message should be > displayed with a line number. > > If shp2img gives no error and produces a valid map image, then it is a > problem on the application side. > > --- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > On 15-Jun-08, at 2:46 PM, Henric Ernstson wrote: > >> I have a functional chameleon app. I use many raster-data set and >> shp-files. >> No I get problem with some new rasterdata that I use. I get the >> following >> error. .. .. >> Yes I have added some wery large dataset (>290 Meg per rasterfile)... >> >> >> Warning: [MapServer Error]: getString(): Parsing error near (8): >> (line 126) >> in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on >> line 215 >> >> Warning: Failed to open map file >> C:\ms4w\apps\chameleon\samples\htdocs\/../map/base3_b.map in >> C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line >> 215 >> >> Fatal error: Call to a member function set() on a non-object in >> C:\ms4w\apps\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on >> line 197 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mark_brooks at ncsu.edu Tue Jun 17 07:50:22 2008 From: mark_brooks at ncsu.edu (Mark Brooks) Date: Tue, 17 Jun 2008 10:50:22 -0400 Subject: [mapserver-users] find max value in mapfile? Message-ID: <4857CF2E.5080803@ncsu.edu> We have a shapefile of type 'point'. Is there a way to find the maximum value of all points in this shapefile? It would be cool to be able to do this in the mapfile. We're using PHP mapscript and want to create a dynamic color ramp based on the max/min values of the shapefile. Mark From c.pelliconi at sis-ter.it Tue Jun 17 08:26:05 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Tue, 17 Jun 2008 17:26:05 +0200 Subject: [mapserver-users] find max value in mapfile? In-Reply-To: <4857CF2E.5080803@ncsu.edu> References: <4857CF2E.5080803@ncsu.edu> Message-ID: <4857D78D.6060401@sis-ter.it> Hi Mark. I'd like to help you, but I nedd more infos. Can you define exactly what do you mean with "find the maximum value of all points in this shapefile" ? Are you looking for the max value in attribute table? Or are you looking for the number of objects n the shape? Regards, Carlo Mark Brooks ha scritto: > We have a shapefile of type 'point'. Is there a way to find the maximum > value of all points in this shapefile? It would be cool to be able to > do this in the mapfile. We're using PHP mapscript and want to create a > dynamic color ramp based on the max/min values of the shapefile. > > Mark > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From gis at vanbooth.com Tue Jun 17 08:44:17 2008 From: gis at vanbooth.com (Rob) Date: Tue, 17 Jun 2008 16:44:17 +0100 Subject: [mapserver-users] 64 bits version of MapServer In-Reply-To: References: <20080616180757.DB3E7E0165F@lists.osgeo.org> <4856B010.8080709@rogers.com> Message-ID: <2a955f950806170844p75b905fbp683792cf7e863c7b@mail.gmail.com> We're running on 64 bit AIX, but I can't say that we've spotted any noticeable difference from running the 32 bit binaries on the same server. From Steve.Lime at dnr.state.mn.us Tue Jun 17 08:45:15 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Jun 2008 10:45:15 -0500 Subject: [MAPSERVER-USERS] MapServer 5.2 Beta 1 Available In-Reply-To: <17858782.post@talk.nabble.com> References: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> <17858782.post@talk.nabble.com> Message-ID: <485795BB.5157.008F.0@dnr.state.mn.us> I doubt it though I guess it would really help us get things tested given the popularity of the Windows distribution. There's another beta due out shortly so perhaps for that one. As a reminder, we are interested in ANY feedback if you've tried the beta. A thumbs up helps us too! Steve >>> On 6/16/2008 at 1:47 AM, in message <17858782.post at talk.nabble.com>, P?l Kristensen wrote: > Hi! > > Will there be a MS4W release with containing MapServer 5.2 Beta 1? > > Regards, > P?l Kristensen > > > > Steve Lime wrote: >> >> Hi folks: MapServer 5.2 Beta 1 has just been released. The source package >> is available for download at: >> >> http://mapserver.gis.umn.edu/download/beta >> >> The list of changes/fixes since 5.0 can be found at the end this message. >> This is a significant release so >> we need your help in testing. 5.2 should compatible with any 5.0 >> applications/mapfiles so it should be >> relatively easy for folks to test. Please let us know how it goes! >> >> The plan is to have 2 beta releases, two release candidates with a final >> release the first week in July. >> More details can be found in the 5.2 release plan at: >> >> >> > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_ > plan/ >> >> Steve >> >> Version 5.2.0-beta1 (2008-06-11): >> --------------------------------- >> >> - WMS/WFS layers can now specify a proxy servert (#571) >> >> - mapwmslayer.c: set QUERY_LAYERS correctly (#2001) >> >> - mapwcs.c: handle PARAMETER values correctly (#2509) >> >> - SOS: fix various memory leaks (#2412) >> >> - mapwcs.c: advertise temporal support in GetCapabilities (#2487) >> >> - Fixed flaw in findTag() in maptemplate.c that prevented multiple tags >> on the same line being processed under certain conditions. (#2633) >> >> - Return results even when extents are missing (#2420) >> >> - Avoid displaying OGR connection strings in error messages (#2629) >> >> - WCS: respect wcs_name metadata for GetCoverage and DescribeCoverage >> requests (#2036) >> >> - CGI: added -nh option to allow for the suppression of content headers >> from >> the command line (#2594) >> >> - PostGIS: fix postgis idle-in-transaction problem (#2626) >> >> - AGG: enable ellipse symbol rotation for POINT/ANNOTATION layers (#2617) >> >> - RFC36: add more extensions to support templates (#2576) >> >> - AGG: allow dashed hatch symbols (#2614) >> >> - AGG: enable offset lines of type x -99 (#2588) >> >> - AGG: use an agg specific label size calculation function where >> possible (#2357) >> >> - 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) >> >> - Tiling API (RFC 43) mode=tile, tilemode=spheremerc, tile=x y zoom >> (#2581) >> >> - Remove C++-style comments and most other warnings thrown by -pedantic >> (#2598) >> >> - Fix PostGIS transaction behavior in fcgi situations (#2497, #2613) >> >> - Improve performance for large shape files (#2282) >> >> - encode WMS parameters correctly (#1296) >> >> - Added alignment option within a scalebar (#2468) >> >> - RFC-42 HTTP Cookie Forwarding (#2566) >> >> - Fixed handling of encrypted connection strings in postgis driver (#2563) >> >> - mapagg.cpp: AGG: add opacity at the style level (#1155) >> >> - mapwms.c: add Cache-Control max-age HTTP header support (#2551) >> >> - mapogcsos.c: support URI encoded procedures correctly (#2547) >> >> - Added support for EMPTY template with WMS GetFeatureInfo (#546) >> >> - Throw an exception if the WCS request does not overlap layer (#2503) >> >> - Acquire TLOCK_PROJ for pj_transform() calls (#2533). >> >> - Fixed problem with large imagemaps generating no output (#2526) >> >> - mapwms.c: make version optional for GetCapabilities again (#2528) >> >> - support URN scheme for components of observed property elements (#2522) >> >> - Fixed gdImagePtr gdPImg memory leak in msSaveImageBufferGD() (#2525) >> >> - mapogcsos.c: handle invalid POST requests (#2521) >> >> - mapogcsos.c: handle ACCEPTVERSIONS parameter (#2515) >> >> - mapwcs.c/mapwcs11.c: s/neighbour/neighbor/g (#2518) >> >> - mapwms.c: relax FORMAT parameter restrictions for GetFeatureInfo (#2517) >> >> - mapwcs.c: support COVERAGE lists for DescribeCoverage (#2508) >> >> - mapwcs.c: fix lonLatEnvelope/@srsName (#2507) >> >> - mapwcs.c: omit VendorSpecificCapabilities (#2506) >> >> - mapwcs.c: test for either resx/resy OR width/height (#2505) >> >> - mapwcs.c: make GetCoverage demand one of TIME or BBOX (#2504) >> >> - mapwms.c: make GetLegendGraphic listen to TRANSPARENT in OUTPUTFORMAT >> (#2494) >> >> - OWS: support updatesequence (#2384) >> >> - mapwms.c: test VERSION after service=WMS (#2475) >> >> - OWS: output Capabilities XML updateSequence if set (#2384) >> >> - mapwcs.c: better handling of REQUEST parameter (#2490) >> >> - mapwcs.c: point to correct exception schema (#2481) >> >> - mapows.c: add version negotiation (#996) >> >> - mapwfs.c: return default GML2 when invalid OUTPUTFORMAT passed (#2479) >> >> - mapowscommon.c: add OWS Common style version negotiation (#996) >> >> - mapwcs.c: better section parameter handling for CITE (#2485) >> >> - mapwfs.c: point to the correct schema for exceptions (#2480) >> >> - shp2img.c/shp2pdf.c: clean up usage text, check for invalid layers >> (#2066) >> >> - completed implementation of RFC24 (#2442, #2032) >> >> - mapwcs.c: require VERSION parameter for DescribeCoverage and >> GetCoverage (#2473) >> >> - mapwcs.c: change error token to MS_WCSERR instead of MS_WMSERR (#2474) >> >> - mapwcs.c: set exception MIME type to application/vnd.ogc.se_xml >> for 1.0.0 (#2470) >> >> - mapwcs.c: Generate a decently formatted exception if an WCS XML POST >> request >> is received (#2476). >> >> - mapowscommon.c: support OWS Common 1.1.0 as well (#2071) >> >> - mapogcsos.c: support SOS 1.0.0 (#2246) >> >> - Implement mapObj.setCenter, mapObj.offsetExtent, mapObj.scaleExtent, >> rectObj.getCenter at the SWIG API (#2346) >> >> - mapogcfilter.c: use USE_LIBXML2 in ifdefs (#2416) >> >> - clean up naming conventions of Shapefile API (#599) >> >> - use msComputeBounds() instead, since it's already in the codebase >> (#2087) >> >> - set shapeObj bounds from WKT (#2087) >> >> - fixed issue where path following labels sometimes used the supplied >> setting for position. In all cases with ANGLE FOLLOW we want to force >> position MS_CC regardless of what is set in the mapfile. >> >> - enforce (-99 -99) to be the penup value for vector symbols (#1036) >> >> - Support for labeling features (polygon & line) prior to clipping. This >> results in stable label positions regardless of map extent. (#2447) >> >> - Support for quantization and forced palette png output with RGBA images >> (#2436) >> >> - SLD using a single BBOX filter should generate an SQL ststement for >> oracle/postgis/ogr (#2450) >> >> - Accurate Calculation of legend size for WMS LegendURL (#2435) >> >> - Converted mapogr.cpp to use OGR C API instead of C++ classes to allow >> GDAL/OGR updates without having to recompile MapServer (#545, #697) >> >> - add missing space on dashed polygon outlines with svg (#2429) >> >> - Restored behavior of MS 4.10 and made WMS STYLES parameter optional >> again in GetMap and GetFeatureInfo requests (#2427) >> >> - Speed up forced palette rendering (#2422) >> >> - WMS GetFeatureInfo: honour FEATURE_COUNT for any INFO_FORMAT and >> apply the FEATURE_COUNT per layer instead of globally (#2423, #1686) >> >> - enable soft outlines on truetype labels. This is triggered with a new >> keyword OUTLINEWIDTH for the LABEL block (#2417) >> >> - fix clipping rectangle to take width as well as size into account >> (#2411) >> >> - AGG: added and use a line and polygon adaptor to avoid copying shapeObj >> points to an agg path_storage. avoids a few mallocs and a few copies. >> >> - fixed symbolsetObj not to set the SWIG immutable flag permanently >> don't expose refcount and the symbol attributes (Ticket #2407) >> >> - fix for support of entity encoded text in angle follow text (#2403) >> >> - AGG: initial support for native computation of label sizes (#2357) >> >> - AGG: support text symbols specified by their character number (#2398) >> >> - AGG: fix angle orientation for various symbols >> >> - allow scientific notation for attributes binded to an int (#2394) >> >> - merge GD and AGG label cache drawing functions (#2390) >> >> - Enable AGG rendering of bitmap font labels instead of falling back to >> GD (#2387) >> >> - clean up treatment of encoding and wrap caracter >> >> - Fix legend label placement for multiline labels (#2382) >> >> - enforce WRAP parameter in legend label (#2382) >> >> - AGG: pixel level simplification for line and polygon shapes (#2381) >> >> - fixed blue/green color swapping for space delimited strings bound to an >> attribute. (bug 2378) >> >> - don't remove points that are checked as being colinear (#2366) >> >> - mapowscommon.c: fix namespace leak issues (#2375) >> >> - mapogcsos.c: add SWE DataBlock support (#2248) >> >> - mapogcsos.c: fix build warnings, namespace and schema pointers (#2248) >> >> - mappdf.c: support output in fastcgi case via msIO_fwrite() (#2406) >> >> - mapogcsos.c: Initial support for POST requests (#2379) and updated >> msSOSDispatch() handling >> >> - mapogr.cpp: Use pooling api to ensure per-thread sharing of connections >> only (#2408) >> >> - mapogcsos.c: change substituted variable from sensorid to procedure >> (#2409) >> >> - maplibxml2.c: Initial implementation of libxml2 convenience functions >> >> - configure: Modified so libxml2 support is requested for WCS and SOS, >> and is indicated by USE_LIBXML2 definition. Use @ALL_ENABLED@ in >> DEFINEs and mapscriptvars generation. >> >> - mapresample.c: Fixed support for multi-band data in RAW mode for >> bilinear >> and nearest neighbour resamplers (#2364). >> >> - mapdraw.c: Improve error reporting if a raster layer requested in >> a query map (#1842). >> >> - mapfile.c: add simple urn:ogc:def:crs:OGC::CRS84 support. >> _______________________________________________ >> 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/MapServer-5.2-Beta-1-Available-tp17788950p17858782.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 jmckenna at gatewaygeomatics.com Tue Jun 17 09:04:04 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 17 Jun 2008 12:04:04 -0400 Subject: [MAPSERVER-USERS] MapServer 5.2 Beta 1 Available In-Reply-To: <485795BB.5157.008F.0@dnr.state.mn.us> References: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> <17858782.post@talk.nabble.com> <485795BB.5157.008F.0@dnr.state.mn.us> Message-ID: <1D477FFD-8253-470A-8DDE-D14E5871C420@gatewaygeomatics.com> On 17-Jun-08, at 11:45 AM, Steve Lime wrote: > I doubt it though I guess it would really help us get things tested > given the popularity of > the Windows distribution. There's another beta due out shortly so > perhaps for that one. > I'm good for that plan Steve. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From clement.monier at v-trafic.com Tue Jun 17 09:30:44 2008 From: clement.monier at v-trafic.com (Monier Clement) Date: Tue, 17 Jun 2008 18:30:44 +0200 Subject: [MAPSERVER-USERS] MapServer 5.2 Beta 1 Available In-Reply-To: <17858782.post@talk.nabble.com> Message-ID: <009301c8d097$80cce590$a264a8c0@mm.fr> That would be great because this MS5.2 release seems to give real great improvements ! As a windows user, I'm going to try to compile the source's release in order to run some tests and give you some feedback. I'm still looking forward to downloading the next beta ms4w release. Thanks for this great job ! Regards, Clem -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de P?l Kristensen Envoy? : lundi 16 juin 2008 08:47 ? : mapserver-users at lists.osgeo.org Objet : Re: [MAPSERVER-USERS] MapServer 5.2 Beta 1 Available Hi! Will there be a MS4W release with containing MapServer 5.2 Beta 1? Regards, P?l Kristensen Steve Lime wrote: > > Hi folks: MapServer 5.2 Beta 1 has just been released. The source > package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.0 can be found at the end this message. > This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 > applications/mapfiles so it should be relatively easy for folks to > test. Please let us know how it goes! > > The plan is to have 2 beta releases, two release candidates with a > final release the first week in July. > More details can be found in the 5.2 release plan at: > > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/r > elease_plan/ > > Steve > > Version 5.2.0-beta1 (2008-06-11): > --------------------------------- > > - WMS/WFS layers can now specify a proxy servert (#571) > > - mapwmslayer.c: set QUERY_LAYERS correctly (#2001) > > - mapwcs.c: handle PARAMETER values correctly (#2509) > > - SOS: fix various memory leaks (#2412) > > - mapwcs.c: advertise temporal support in GetCapabilities (#2487) > > - Fixed flaw in findTag() in maptemplate.c that prevented multiple tags > on the same line being processed under certain conditions. (#2633) > > - Return results even when extents are missing (#2420) > > - Avoid displaying OGR connection strings in error messages (#2629) > > - WCS: respect wcs_name metadata for GetCoverage and DescribeCoverage > requests (#2036) > > - CGI: added -nh option to allow for the suppression of content > headers from > the command line (#2594) > > - PostGIS: fix postgis idle-in-transaction problem (#2626) > > - AGG: enable ellipse symbol rotation for POINT/ANNOTATION layers > (#2617) > > - RFC36: add more extensions to support templates (#2576) > > - AGG: allow dashed hatch symbols (#2614) > > - AGG: enable offset lines of type x -99 (#2588) > > - AGG: use an agg specific label size calculation function where > possible (#2357) > > - 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) > > - Tiling API (RFC 43) mode=tile, tilemode=spheremerc, tile=x y zoom > (#2581) > > - Remove C++-style comments and most other warnings thrown by > -pedantic > (#2598) > > - Fix PostGIS transaction behavior in fcgi situations (#2497, #2613) > > - Improve performance for large shape files (#2282) > > - encode WMS parameters correctly (#1296) > > - Added alignment option within a scalebar (#2468) > > - RFC-42 HTTP Cookie Forwarding (#2566) > > - Fixed handling of encrypted connection strings in postgis driver > (#2563) > > - mapagg.cpp: AGG: add opacity at the style level (#1155) > > - mapwms.c: add Cache-Control max-age HTTP header support (#2551) > > - mapogcsos.c: support URI encoded procedures correctly (#2547) > > - Added support for EMPTY template with WMS GetFeatureInfo (#546) > > - Throw an exception if the WCS request does not overlap layer (#2503) > > - Acquire TLOCK_PROJ for pj_transform() calls (#2533). > > - Fixed problem with large imagemaps generating no output (#2526) > > - mapwms.c: make version optional for GetCapabilities again (#2528) > > - support URN scheme for components of observed property elements > (#2522) > > - Fixed gdImagePtr gdPImg memory leak in msSaveImageBufferGD() (#2525) > > - mapogcsos.c: handle invalid POST requests (#2521) > > - mapogcsos.c: handle ACCEPTVERSIONS parameter (#2515) > > - mapwcs.c/mapwcs11.c: s/neighbour/neighbor/g (#2518) > > - mapwms.c: relax FORMAT parameter restrictions for GetFeatureInfo > (#2517) > > - mapwcs.c: support COVERAGE lists for DescribeCoverage (#2508) > > - mapwcs.c: fix lonLatEnvelope/@srsName (#2507) > > - mapwcs.c: omit VendorSpecificCapabilities (#2506) > > - mapwcs.c: test for either resx/resy OR width/height (#2505) > > - mapwcs.c: make GetCoverage demand one of TIME or BBOX (#2504) > > - mapwms.c: make GetLegendGraphic listen to TRANSPARENT in > OUTPUTFORMAT > (#2494) > > - OWS: support updatesequence (#2384) > > - mapwms.c: test VERSION after service=WMS (#2475) > > - OWS: output Capabilities XML updateSequence if set (#2384) > > - mapwcs.c: better handling of REQUEST parameter (#2490) > > - mapwcs.c: point to correct exception schema (#2481) > > - mapows.c: add version negotiation (#996) > > - mapwfs.c: return default GML2 when invalid OUTPUTFORMAT passed > (#2479) > > - mapowscommon.c: add OWS Common style version negotiation (#996) > > - mapwcs.c: better section parameter handling for CITE (#2485) > > - mapwfs.c: point to the correct schema for exceptions (#2480) > > - shp2img.c/shp2pdf.c: clean up usage text, check for invalid layers > (#2066) > > - completed implementation of RFC24 (#2442, #2032) > > - mapwcs.c: require VERSION parameter for DescribeCoverage and > GetCoverage (#2473) > > - mapwcs.c: change error token to MS_WCSERR instead of MS_WMSERR > (#2474) > > - mapwcs.c: set exception MIME type to application/vnd.ogc.se_xml > for 1.0.0 (#2470) > > - mapwcs.c: Generate a decently formatted exception if an WCS XML POST > request > is received (#2476). > > - mapowscommon.c: support OWS Common 1.1.0 as well (#2071) > > - mapogcsos.c: support SOS 1.0.0 (#2246) > > - Implement mapObj.setCenter, mapObj.offsetExtent, mapObj.scaleExtent, > rectObj.getCenter at the SWIG API (#2346) > > - mapogcfilter.c: use USE_LIBXML2 in ifdefs (#2416) > > - clean up naming conventions of Shapefile API (#599) > > - use msComputeBounds() instead, since it's already in the codebase > (#2087) > > - set shapeObj bounds from WKT (#2087) > > - fixed issue where path following labels sometimes used the supplied > setting for position. In all cases with ANGLE FOLLOW we want to force > position MS_CC regardless of what is set in the mapfile. > > - enforce (-99 -99) to be the penup value for vector symbols (#1036) > > - Support for labeling features (polygon & line) prior to clipping. > This results in stable label positions regardless of map extent. > (#2447) > > - Support for quantization and forced palette png output with RGBA images > (#2436) > > - SLD using a single BBOX filter should generate an SQL ststement for > oracle/postgis/ogr (#2450) > > - Accurate Calculation of legend size for WMS LegendURL (#2435) > > - Converted mapogr.cpp to use OGR C API instead of C++ classes to allow > GDAL/OGR updates without having to recompile MapServer (#545, #697) > > - add missing space on dashed polygon outlines with svg (#2429) > > - Restored behavior of MS 4.10 and made WMS STYLES parameter optional > again in GetMap and GetFeatureInfo requests (#2427) > > - Speed up forced palette rendering (#2422) > > - WMS GetFeatureInfo: honour FEATURE_COUNT for any INFO_FORMAT and > apply the FEATURE_COUNT per layer instead of globally (#2423, #1686) > > - enable soft outlines on truetype labels. This is triggered with a new > keyword OUTLINEWIDTH for the LABEL block (#2417) > > - fix clipping rectangle to take width as well as size into account > (#2411) > > - AGG: added and use a line and polygon adaptor to avoid copying shapeObj > points to an agg path_storage. avoids a few mallocs and a few copies. > > - fixed symbolsetObj not to set the SWIG immutable flag permanently > don't expose refcount and the symbol attributes (Ticket #2407) > > - fix for support of entity encoded text in angle follow text (#2403) > > - AGG: initial support for native computation of label sizes (#2357) > > - AGG: support text symbols specified by their character number > (#2398) > > - AGG: fix angle orientation for various symbols > > - allow scientific notation for attributes binded to an int (#2394) > > - merge GD and AGG label cache drawing functions (#2390) > > - Enable AGG rendering of bitmap font labels instead of falling back to > GD (#2387) > > - clean up treatment of encoding and wrap caracter > > - Fix legend label placement for multiline labels (#2382) > > - enforce WRAP parameter in legend label (#2382) > > - AGG: pixel level simplification for line and polygon shapes (#2381) > > - fixed blue/green color swapping for space delimited strings bound to an > attribute. (bug 2378) > > - don't remove points that are checked as being colinear (#2366) > > - mapowscommon.c: fix namespace leak issues (#2375) > > - mapogcsos.c: add SWE DataBlock support (#2248) > > - mapogcsos.c: fix build warnings, namespace and schema pointers > (#2248) > > - mappdf.c: support output in fastcgi case via msIO_fwrite() (#2406) > > - mapogcsos.c: Initial support for POST requests (#2379) and updated > msSOSDispatch() handling > > - mapogr.cpp: Use pooling api to ensure per-thread sharing of connections > only (#2408) > > - mapogcsos.c: change substituted variable from sensorid to procedure > (#2409) > > - maplibxml2.c: Initial implementation of libxml2 convenience > functions > > - configure: Modified so libxml2 support is requested for WCS and SOS, > and is indicated by USE_LIBXML2 definition. Use @ALL_ENABLED@ in > DEFINEs and mapscriptvars generation. > > - mapresample.c: Fixed support for multi-band data in RAW mode for > bilinear > and nearest neighbour resamplers (#2364). > > - mapdraw.c: Improve error reporting if a raster layer requested in > a query map (#1842). > > - mapfile.c: add simple urn:ogc:def:crs:OGC::CRS84 support. > _______________________________________________ > 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/MapServer-5.2-Beta-1-Available-tp17788950p17858782.htm l 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 mapcollect at gmx.net Tue Jun 17 11:26:33 2008 From: mapcollect at gmx.net (HarryS) Date: Tue, 17 Jun 2008 11:26:33 -0700 (PDT) Subject: [MAPSERVER-USERS] 64 bits version of MapServer In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: <17932109.post@talk.nabble.com> Could a 64 bit version speed up rendering of large images ? I am using Mapserver (32 Bit Windows and Linux) to export large images (e.g. 20.000x10.000 pixel and larger) and this takes very long. Shouldn't a 64 bit version have better performance when handling big datasets/files ?? Harry Schmidt -- View this message in context: http://www.nabble.com/64-bits-version-of-MapServer-tp17869767p17932109.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Tue Jun 17 11:45:04 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 17 Jun 2008 14:45:04 -0400 Subject: [MAPSERVER-USERS] 64 bits version of MapServer In-Reply-To: <17932109.post@talk.nabble.com> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> <17932109.post@talk.nabble.com> Message-ID: <48580630.4010208@pobox.com> HarryS wrote: > Could a 64 bit version speed up rendering of large images ? > > I am using Mapserver (32 Bit Windows and Linux) to export large images (e.g. > 20.000x10.000 pixel and larger) and this takes very long. Shouldn't a 64 bit > version have better performance when handling big datasets/files ?? Harry, Generally speaking 64bit builds are not going to be faster for image handling. Most image handling comes down to byte-by-byte copies with some computation. Masking a byte out of 64bit memory word is no faster than masking it out of a 32bit memory word. What 64bit will give you is the opportunity to use huge buffers or address huge images in memory. This is rarely the limiting factor, but when it is having a 64bit build is nice. 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 szekerest at gmail.com Tue Jun 17 12:51:57 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 17 Jun 2008 21:51:57 +0200 Subject: [mapserver-users] find max value in mapfile? In-Reply-To: <4857CF2E.5080803@ncsu.edu> References: <4857CF2E.5080803@ncsu.edu> Message-ID: Mark, By using the OGR SQL syntax you can utilize various `summarization operators` like MIN and MAX for example: http://www.gdal.org/ogr/ogr_sql.html You can use -sql commandline option of ogrinfo to invoke the SQL based query. Best regards, Tamas 2008/6/17 Mark Brooks : > We have a shapefile of type 'point'. Is there a way to find the maximum > value of all points in this shapefile? It would be cool to be able to > do this in the mapfile. We're using PHP mapscript and want to create a > dynamic color ramp based on the max/min values of the shapefile. > > Mark > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jason.p.pickering at gmail.com Tue Jun 17 13:13:53 2008 From: jason.p.pickering at gmail.com (Jason Pickering) Date: Tue, 17 Jun 2008 22:13:53 +0200 Subject: [MAPSERVER-USERS] 64 bits version of MapServer In-Reply-To: <48580630.4010208@pobox.com> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> <17932109.post@talk.nabble.com> <48580630.4010208@pobox.com> Message-ID: <244b6a540806171313h22546348s1910c7438d3cac68@mail.gmail.com> In my experience, massive performance gains can be realized by intelligent caching and load balancing. . One need only to look to Google. Their layers are not rendered dynamically, but are cached and load balanced (of course on a massive scale). I am not convinced moving to a 64 bit architecture would offer significant performance gains, when compared to optimization of your map file (mentioned earlier), proper indexing and optimization of your spatial database backend (if appropriate), caching with something like TileCache or Geowebcache or similar caching mechanism, implementation of multiple redundant servers with an appropriate load balancing scheme , and possible mosaicing of large images might be a better solution for you. My two cents anyway.. On Tue, Jun 17, 2008 at 8:45 PM, Frank Warmerdam wrote: > HarryS wrote: >> >> Could a 64 bit version speed up rendering of large images ? >> >> I am using Mapserver (32 Bit Windows and Linux) to export large images >> (e.g. >> 20.000x10.000 pixel and larger) and this takes very long. Shouldn't a 64 >> bit >> version have better performance when handling big datasets/files ?? > > Harry, > > Generally speaking 64bit builds are not going to be faster for image > handling. Most image handling comes down to byte-by-byte copies with > some computation. Masking a byte out of 64bit memory word is no faster > than masking it out of a 32bit memory word. > > What 64bit will give you is the opportunity to use huge buffers or > address huge images in memory. This is rarely the limiting factor, but > when it is having a 64bit build is nice. > > 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 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From elvehjem at runestone.net Tue Jun 17 16:39:16 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Tue, 17 Jun 2008 18:39:16 -0500 Subject: [mapserver-users] Label display Message-ID: <116301c8d0d3$6136fe50$6400a8c0@Kens> Hi, I'm using a program generated query to fetch a transparent PNG file of about 1600 pixels square from a streets & roads database in Iowa. A sample URL is pasted below my sig lines. It works great, but the problem is that the features from a different layer (aerial photo) in which I am interested will usually be within the center 1/4 of the picture, and it usually gets cropped to center on that feature, which blows away some of my labels. Is there any way to force the labels closer to the (x,y) center of the returned PNG file while still following along whatever feature they are identifying? That is to say, if there is one on a north/south road, we'd like it to be nearer the Y center of the pic, and if one is on an east/west road, then have it be closer to the X center of the picture. Any magic we can invoke to do *that*???? Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvehjem at runestone.net Tue Jun 17 20:07:46 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Tue, 17 Jun 2008 22:07:46 -0500 Subject: [mapserver-users] Label display References: <116301c8d0d3$6136fe50$6400a8c0@Kens> Message-ID: <118801c8d0f0$7f04ab40$6400a8c0@Kens> OK, so here's that URL I forgot to include... http://ortho.gis.iastate.edu/wmsconnector/com.esri.wms.Esrimap?&REQUEST=getmap&bbox=452711,4684970,453211,4685470&srs=epsg:26915&version=1.1.1&service=WMS&LAYERS=Iowa%20Roads%20E911,Midwest%20Highways,Cities,Counties&width=500&HEIGHT=500&FORMAT=PNG&TRANSPARENT=TRUE&servicename=transportation_midwest&SLD=http://ortho.gis.iastate.edu/sld/Iowa_Roads_E911_X3Font.xml Ken ----- Original Message ----- From: Ken S. Elvehjem To: mapserver-users at lists.osgeo.org Sent: Tuesday, June 17, 2008 6:39 PM Subject: [mapserver-users] Label display Hi, I'm using a program generated query to fetch a transparent PNG file of about 1600 pixels square from a streets & roads database in Iowa. A sample URL is pasted below my sig lines. It works great, but the problem is that the features from a different layer (aerial photo) in which I am interested will usually be within the center 1/4 of the picture, and it usually gets cropped to center on that feature, which blows away some of my labels. Is there any way to force the labels closer to the (x,y) center of the returned PNG file while still following along whatever feature they are identifying? That is to say, if there is one on a north/south road, we'd like it to be nearer the Y center of the pic, and if one is on an east/west road, then have it be closer to the X center of the picture. Any magic we can invoke to do *that*???? Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c ------------------------------------------------------------------------------ _______________________________________________ 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 pvoudouris at gaiocorp.com Wed Jun 18 00:17:17 2008 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Wed, 18 Jun 2008 10:17:17 +0300 Subject: [mapserver-users] PointM shapefile not displaying outside its extent In-Reply-To: <003201c8cd21$ef945630$cebd0290$@com> References: <003201c8cd21$ef945630$cebd0290$@com> Message-ID: <001b01c8d113$596675d0$0c336170$@com> Anyone? Please? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pano Voudouris Sent: ?????????, 13 ??????? 2008 9:52 ?? To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PointM shapefile not displaying outside its extent Hi All, I have a pointM shapefile that justs refuse to display as soon as I pan the map (same scale) so part of the shapes go beyond the map extent. It will only display if all points are within the view window. I dropped and recreated the spatial index, used the shptree to create the *qix file but all to no avail. I have stripped down the layer to the bare basics. The entry in the mapfile is: LAYER NAME "DEFS" STATUS DEFAULT TYPE POINT DATA defects2 METADATA WMS_TITLE "defects" END #end metadata CLASS STYLE SYMBOL "point" SIZE 12 COLOR 0 170 0 #MAXSIZE 100 #MINSIZE 50 END END END I only managed to display it after I converted it to simple points (not PointM). Is this some sort of limitation in Mapserver? It can display PolylineM w/out any problems. Thanks in anticipation, Pano -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapcollect at gmx.net Wed Jun 18 01:29:38 2008 From: mapcollect at gmx.net (HarryS) Date: Wed, 18 Jun 2008 01:29:38 -0700 (PDT) Subject: [MAPSERVER-USERS] 64 bits version of MapServer In-Reply-To: <244b6a540806171313h22546348s1910c7438d3cac68@mail.gmail.com> References: <2F86ED212F3E164EB9FBB2E68C67858E049964A7@SINFRA0-EXC003.MTQ.MIN.INTRA> <17932109.post@talk.nabble.com> <48580630.4010208@pobox.com> <244b6a540806171313h22546348s1910c7438d3cac68@mail.gmail.com> Message-ID: <17965476.post@talk.nabble.com> jpickeri wrote: > > ..., caching with something like > TileCache or Geowebcache or similar caching mechanism, implementation > of multiple redundant servers with an appropriate load balancing > scheme , and possible mosaicing of large images might be a better > solution for you. My two cents anyway.. > > I am using TileCache with modPython. Has anybody made a performance test with TileCache and Geowebcache ?? Harry -- View this message in context: http://www.nabble.com/64-bits-version-of-MapServer-tp17869767p17965476.html Sent from the Mapserver - User mailing list archive at Nabble.com. From valerio.vianello at yahoo.it Wed Jun 18 02:24:33 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Wed, 18 Jun 2008 09:24:33 +0000 (GMT) Subject: [mapserver-users] using vector data format Message-ID: <434719.73455.qm@web27305.mail.ukl.yahoo.com> Dear all, I tried without success to use a dwg file as data input for a layer into the mapfile. My goal is to use a vector data to build the main layer of the map so that when the map is "resize" the image quality will be good at every size. Mapserver give me this error "File not found or unsupported format." and my test map file is this: MAP ? IMAGETYPE????? PNG? ? ? EXTENT???????? 24.914925 60.162912 24.917090 60.164152?? ? SIZE?????????? 300 200 ? SHAPEPATH????? "/var/www/" ? IMAGECOLOR???? 255 255 255 ? WEB ??? TEMPLATE? 'test.html'? ??? IMAGEPATH '/var/www/tmp/data_tmp/' ??? IMAGEURL? '/tmp/data_tmp/' ? END ?# Start of LAYER DEFINITIONS ----------------------------------------------------------- LAYER ?? NAME "test" ?? TYPE POLYGON ?? CONNECTIONTYPE OGR ?? CONNECTION "/var/www/demo1/images/b1_f2.dwg" ?? STATUS DEFAULT ?? CLASS ?? END END END any suggetsion ? 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 mikesaunt at gmail.com Wed Jun 18 04:35:28 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Wed, 18 Jun 2008 12:35:28 +0100 Subject: [mapserver-users] LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer Message-ID: <5a9686e80806180435v26e87194o495e89a7d1582714@mail.gmail.com> Hi All We're trying to get an annotation layer from MapInfo format (text only now lines, points etc to follow) to render but to use the angle stored in the MapInfo feature (not from an attribute column) - we used to be able to use LABELANGLEITEM "OGR:LabelAngle" in v4 but v5 seems to have us stumped as the bindings seem to only work against fields names We also found the below in the OGR help but I can't seem to find the correct syntax Special OGR:Label* attributes Posted by Daniel Morissette at 2007-09-13 07:40 This should probably be added to the docs: When using CONNECTIONTYPE OGR, there are special attributes called OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as LABELITEM, ANGLE and SIZE in the label definition for your annotation layer. You can use that as an alternative to using STYLEITEM AUTO.H Anyone able to help us? Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvehjem at runestone.net Wed Jun 18 05:21:19 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Wed, 18 Jun 2008 07:21:19 -0500 Subject: [mapserver-users] Label display References: <116301c8d0d3$6136fe50$6400a8c0@Kens> <118801c8d0f0$7f04ab40$6400a8c0@Kens> <25de2c7c0806172042i3898f9f4s6739b96bac77be38@mail.gmail.com> Message-ID: <11ea01c8d13d$d3d0dcf0$6400a8c0@Kens> From: "Ken S. Elvehjem" To: "TC Haddad" Subject: Re: [mapserver-users] Label display Date: Wednesday, June 18, 2008 7:15 AM TC, Yes, I don't have any control over that. Yet. The I-35 symbol and text are not issues, in this case, because they are closer to the center of the picture. My center coordinates are selected from a list of land survey plots... in the north central US, the land was surveyed in plots of 1 square mile -- 640 acres. The bulk of the individual fields in which I am interested (like 99.1%) will fall within the boundaries of that square mile, or section, to use the survey word. However, the maps we create are used for navigating to the "correct" field by field crews, and we have found that the operator in the office that creates them is much happier (and more accurate) if they can see a margin around that section for context & landmarks. We try to have approximately 1/2 mile all the way around. This operator draws in boundaries (using software I've written for the purpose) to mark the fields of interest, some of which extend past the edge of the section. Then, so as to have a larger picture in the field, the picture is cropped some to get rid of some of the border. Unfortunately, some of the roads begin at the section boundary and extend toward the edge of the picture, and those labels are then placed somewhere between the edge of the section and the edge of the picture, and these may end up missing from the final product. The operator can put in those labels manually, but the whole point was to automate the process... Sincerely, Ken ----- Original Message ----- From: TC Haddad To: Ken S. Elvehjem Sent: Tuesday, June 17, 2008 10:42 PM Subject: Re: [mapserver-users] Label display looks like it *is* happening for your highway symbol (which is drawn first).. The problem is that the next label (the "I-35" text) on the vertical line is drawn to avoid the one that is already on the line. No way to stop that I think... do you always have both sets of labels drawing? On Tue, Jun 17, 2008 at 8:07 PM, Ken S. Elvehjem wrote: OK, so here's that URL I forgot to include... http://ortho.gis.iastate.edu/wmsconnector/com.esri.wms.Esrimap?&REQUEST=getmap&bbox=452711,4684970,453211,4685470&srs=epsg:26915&version=1.1.1&service=WMS&LAYERS=Iowa%20Roads%20E911,Midwest%20Highways,Cities,Counties&width=500&HEIGHT=500&FORMAT=PNG&TRANSPARENT=TRUE&servicename=transportation_midwest&SLD=http://ortho.gis.iastate.edu/sld/Iowa_Roads_E911_X3Font.xml Ken ----- Original Message ----- From: Ken S. Elvehjem To: mapserver-users at lists.osgeo.org Sent: Tuesday, June 17, 2008 6:39 PM Subject: [mapserver-users] Label display Hi, I'm using a program generated query to fetch a transparent PNG file of about 1600 pixels square from a streets & roads database in Iowa. A sample URL is pasted below my sig lines. It works great, but the problem is that the features from a different layer (aerial photo) in which I am interested will usually be within the center 1/4 of the picture, and it usually gets cropped to center on that feature, which blows away some of my labels. Is there any way to force the labels closer to the (x,y) center of the returned PNG file while still following along whatever feature they are identifying? That is to say, if there is one on a north/south road, we'd like it to be nearer the Y center of the pic, and if one is on an east/west road, then have it be closer to the X center of the picture. Any magic we can invoke to do *that*???? Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c -------------------------------------------------------------------------- _______________________________________________ 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 ----- Original Message ----- From: TC Haddad To: Ken S. Elvehjem Sent: Tuesday, June 17, 2008 10:42 PM Subject: Re: [mapserver-users] Label display looks like it *is* happening for your highway symbol (which is drawn first).. The problem is that the next label (the "I-35" text) on the vertical line is drawn to avoid the one that is already on the line. No way to stop that I think... do you always have both sets of labels drawing? On Tue, Jun 17, 2008 at 8:07 PM, Ken S. Elvehjem wrote: OK, so here's that URL I forgot to include... http://ortho.gis.iastate.edu/wmsconnector/com.esri.wms.Esrimap?&REQUEST=getmap&bbox=452711,4684970,453211,4685470&srs=epsg:26915&version=1.1.1&service=WMS&LAYERS=Iowa%20Roads%20E911,Midwest%20Highways,Cities,Counties&width=500&HEIGHT=500&FORMAT=PNG&TRANSPARENT=TRUE&servicename=transportation_midwest&SLD=http://ortho.gis.iastate.edu/sld/Iowa_Roads_E911_X3Font.xml Ken ----- Original Message ----- From: Ken S. Elvehjem To: mapserver-users at lists.osgeo.org Sent: Tuesday, June 17, 2008 6:39 PM Subject: [mapserver-users] Label display Hi, I'm using a program generated query to fetch a transparent PNG file of about 1600 pixels square from a streets & roads database in Iowa. A sample URL is pasted below my sig lines. It works great, but the problem is that the features from a different layer (aerial photo) in which I am interested will usually be within the center 1/4 of the picture, and it usually gets cropped to center on that feature, which blows away some of my labels. Is there any way to force the labels closer to the (x,y) center of the returned PNG file while still following along whatever feature they are identifying? That is to say, if there is one on a north/south road, we'd like it to be nearer the Y center of the pic, and if one is on an east/west road, then have it be closer to the X center of the picture. Any magic we can invoke to do *that*???? Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c -------------------------------------------------------------------------- _______________________________________________ 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 pal.kristensen at statkart.no Wed Jun 18 06:03:52 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 18 Jun 2008 06:03:52 -0700 (PDT) Subject: [MAPSERVER-USERS] MapServer 5.2 Beta 1 Available In-Reply-To: <1D477FFD-8253-470A-8DDE-D14E5871C420@gatewaygeomatics.com> References: <48500F8F0200008F00018A58@co5.dnr.state.mn.us> <17858782.post@talk.nabble.com> <485795BB.5157.008F.0@dnr.state.mn.us> <1D477FFD-8253-470A-8DDE-D14E5871C420@gatewaygeomatics.com> Message-ID: <17982236.post@talk.nabble.com> Hi! Great! I think that a MS4W, MS beta 2, distribution would make it easier for a great deal of people to participate with beta testing. Regards, P?l Kristensen Jeff McKenna-3 wrote: > > On 17-Jun-08, at 11:45 AM, Steve Lime wrote: > >> I doubt it though I guess it would really help us get things tested >> given the popularity of >> the Windows distribution. There's another beta due out shortly so >> perhaps for that one. >> > > I'm good for that plan Steve. > > > --- > 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/MapServer-5.2-Beta-1-Available-tp17788950p17982236.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Jun 18 06:01:45 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 18 Jun 2008 16:01:45 +0300 Subject: VS: [mapserver-users] using vector data format References: <434719.73455.qm@web27305.mail.ukl.yahoo.com> Message-ID: Hi, Your problem is that Mapserver does not support AutoCAD dwg file format. You need to convert it first to some supported format, which are listed at http://gdal.org/ogr/ogr_formats.html -Jukka Rahkonen. -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: valerio vianello L?hetetty: ke 18.6.2008 12:24 Vastaanottaja: mapserver Aihe: [mapserver-users] using vector data format Dear all, I tried without success to use a dwg file as data input for a layer into the mapfile. My goal is to use a vector data to build the main layer of the map so that when the map is "resize" the image quality will be good at every size. Mapserver give me this error "File not found or unsupported format." and my test map file is this: MAP IMAGETYPE PNG EXTENT 24.914925 60.162912 24.917090 60.164152 SIZE 300 200 SHAPEPATH "/var/www/" IMAGECOLOR 255 255 255 WEB TEMPLATE 'test.html' IMAGEPATH '/var/www/tmp/data_tmp/' IMAGEURL '/tmp/data_tmp/' END # Start of LAYER DEFINITIONS ----------------------------------------------------------- LAYER NAME "test" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "/var/www/demo1/images/b1_f2.dwg" STATUS DEFAULT CLASS END END END any suggetsion ? Thanks Valerio ___________________________________ Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione! http://www.ymailblogit.com/blog/ From valerio.vianello at yahoo.it Wed Jun 18 06:32:35 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Wed, 18 Jun 2008 13:32:35 +0000 (GMT) Subject: R: VS: [mapserver-users] using vector data format In-Reply-To: Message-ID: <901477.53449.qm@web27303.mail.ukl.yahoo.com> Hi Jukka, I took the list from http://mapserver.gis.umn.edu/docs/howto/ogr_howto and there autocad format is present among supported vector format. maybe that list isn't updated :S. Anyhow my problem is that my start image is a svg file and I used a software to convert it in autocad format. Do you know a software to convert svg file in another vector format supported by mapserver ? thanks Valerio --- Mer 18/6/08, Rahkonen Jukka ha scritto: Da: Rahkonen Jukka Oggetto: VS: [mapserver-users] using vector data format A: valerio.vianello at yahoo.it, "mapserver" Data: Mercoled? 18 giugno 2008, 15:01 Hi, Your problem is that Mapserver does not support AutoCAD dwg file format. You need to convert it first to some supported format, which are listed at http://gdal.org/ogr/ogr_formats.html -Jukka Rahkonen. -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: valerio vianello L?hetetty: ke 18.6.2008 12:24 Vastaanottaja: mapserver Aihe: [mapserver-users] using vector data format Dear all, I tried without success to use a dwg file as data input for a layer into the mapfile. My goal is to use a vector data to build the main layer of the map so that when the map is "resize" the image quality will be good at every size. Mapserver give me this error "File not found or unsupported format." and my test map file is this: MAP IMAGETYPE PNG EXTENT 24.914925 60.162912 24.917090 60.164152 SIZE 300 200 SHAPEPATH "/var/www/" IMAGECOLOR 255 255 255 WEB TEMPLATE 'test.html' IMAGEPATH '/var/www/tmp/data_tmp/' IMAGEURL '/tmp/data_tmp/' END # Start of LAYER DEFINITIONS ----------------------------------------------------------- LAYER NAME "test" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "/var/www/demo1/images/b1_f2.dwg" STATUS DEFAULT CLASS END END END any suggetsion ? Thanks Valerio ___________________________________ Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione! http://www.ymailblogit.com/blog/ ___________________________________ 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 Wed Jun 18 06:56:37 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Wed, 18 Jun 2008 15:56:37 +0200 Subject: R: VS: [mapserver-users] using vector data format In-Reply-To: <901477.53449.qm@web27303.mail.ukl.yahoo.com> References: <901477.53449.qm@web27303.mail.ukl.yahoo.com> Message-ID: <9771eb540806180656va6cbec6s8dd2c9737b2f2984@mail.gmail.com> Hi. I don't know if that can help but maby its a 14 version dwg the dwg you need. I work with Autocad Map and most symple version of dwg its the 14 dwg. but Any way if thants not work try with Dxf format. 2008/6/18 valerio vianello : > Hi Jukka, > > I took the list from http://mapserver.gis.umn.edu/docs/howto/ogr_howto and > there > autocad format is present among supported vector format. maybe that list > isn't updated :S. > > Anyhow my problem is that my start image is a svg file and I used a > software to convert it in autocad format. > > Do you know a software to convert svg file in another vector format > supported by mapserver ? > > thanks > Valerio > > --- *Mer 18/6/08, Rahkonen Jukka * ha scritto: > > Da: Rahkonen Jukka > Oggetto: VS: [mapserver-users] using vector data format > A: valerio.vianello at yahoo.it, "mapserver" > > Data: Mercoled? 18 giugno 2008, 15:01 > > Hi, > > Your problem is that Mapserver does not support AutoCAD dwg file format. You > need to convert it first to some supported format, which are listed at > http://gdal.org/ogr/ogr_formats.html > > -Jukka Rahkonen. > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: valerio > vianello > L?hetetty: ke 18.6.2008 12:24 > Vastaanottaja: mapserver > Aihe: [mapserver-users] using vector data format > > Dear all, > > I tried without success to use a dwg file as data input for a layer into the > mapfile. > > My goal is to use a vector data to build the main layer of the map so that when > the map is "resize" the image quality will be good at every size. > > Mapserver give me this error "File not found or unsupported > format." > and my test map file is this: > > MAP > > IMAGETYPE PNG > > > EXTENT 24.914925 60.162912 > 24.917090 60.164152 > > SIZE 300 200 > SHAPEPATH "/var/www/" > > IMAGECOLOR 255 255 255 > > WEB > TEMPLATE 'test.html' > IMAGEPATH '/var/www/tmp/data_tmp/' > IMAGEURL '/tmp/data_tmp/' > END > # Start of LAYER DEFINITIONS > ----------------------------------------------------------- > LAYER > NAME "test" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "/var/www/demo1/images/b1_f2.dwg" > STATUS DEFAULT > CLASS > END > END > > END > > any suggetsion ? > > Thanks > > Valerio > > > > ___________________________________ > Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli... e la tua opinione! > http://www.ymailblogit.com/blog/ > > > ------------------------------ > 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 szekerest at gmail.com Wed Jun 18 07:02:08 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 18 Jun 2008 16:02:08 +0200 Subject: [mapserver-users] LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer In-Reply-To: <5a9686e80806180435v26e87194o495e89a7d1582714@mail.gmail.com> References: <5a9686e80806180435v26e87194o495e89a7d1582714@mail.gmail.com> Message-ID: Hi, According to http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT You have to use in your mapfile something like: LABEL ... ANGLE [OGR:LabelAngle] END Best regards, Tamas 2008/6/18 Mike Saunt : > Hi All > > We're trying to get an annotation layer from MapInfo format (text only now > lines, points etc to follow) to render but to use the angle stored in the > MapInfo feature (not from an attribute column) - we used to be able to use > LABELANGLEITEM "OGR:LabelAngle" in v4 but v5 seems to have us stumped as the > bindings seem to only work against fields names > > We also found the below in the OGR help but I can't seem to find the correct > syntax > > Special OGR:Label* attributes > > Posted by Daniel Morissette at 2007-09-13 07:40 > This should probably be added to the docs: > > When using CONNECTIONTYPE OGR, there are special attributes called > OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as > LABELITEM, ANGLE and SIZE in the label definition for your annotation layer. > You can use that as an alternative to using STYLEITEM AUTO.H > > > > > Anyone able to help us? > > Cheers > Mike > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mikesaunt at gmail.com Wed Jun 18 07:31:39 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Wed, 18 Jun 2008 15:31:39 +0100 Subject: [mapserver-users] LABELANGLEITEM in MS 5.0 using OGR:LabelAngle for annotation layer In-Reply-To: References: <5a9686e80806180435v26e87194o495e89a7d1582714@mail.gmail.com> Message-ID: <5a9686e80806180731s2bba02bbm6de3e36d2d6fb28a@mail.gmail.com> Hi Tamas Thanks for the reply - that causes MapServer to bomb out with a GPF - I'm running 5.0.0 on Windows (MS4W compilation but through IIS) Anyone else any ideas? Kind regards Mike 2008/6/18 Tamas Szekeres : > Hi, > > According to > > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT > > You have to use in your mapfile something like: > > LABEL > ... > ANGLE [OGR:LabelAngle] > END > > Best regards, > > Tamas > > 2008/6/18 Mike Saunt : > > Hi All > > > > We're trying to get an annotation layer from MapInfo format (text only > now > > lines, points etc to follow) to render but to use the angle stored in the > > MapInfo feature (not from an attribute column) - we used to be able to > use > > LABELANGLEITEM "OGR:LabelAngle" in v4 but v5 seems to have us stumped as > the > > bindings seem to only work against fields names > > > > We also found the below in the OGR help but I can't seem to find the > correct > > syntax > > > > Special OGR:Label* attributes > > > > Posted by Daniel Morissette at 2007-09-13 07:40 > > This should probably be added to the docs: > > > > When using CONNECTIONTYPE OGR, there are special attributes called > > OGR:LabelText, OGR:LabelAngle and OGR:LabelSize that can be used as > > LABELITEM, ANGLE and SIZE in the label definition for your annotation > layer. > > You can use that as an alternative to using STYLEITEM AUTO.H > > > > > > > > > > Anyone able to help us? > > > > Cheers > > Mike > > > > > > _______________________________________________ > > 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 warmerdam at pobox.com Wed Jun 18 07:55:58 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 18 Jun 2008 10:55:58 -0400 Subject: [mapserver-users] using vector data format In-Reply-To: <434719.73455.qm@web27305.mail.ukl.yahoo.com> References: <434719.73455.qm@web27305.mail.ukl.yahoo.com> Message-ID: <485921FE.4010409@pobox.com> valerio vianello wrote: > Dear all, > > I tried without success to use a dwg file as data input for a layer into > the mapfile. > > My goal is to use a vector data to build the main layer of the map so > that when the map is "resize" the image quality will be good at every size. > > Mapserver give me this error "File not found or unsupported format." > and my test map file is this: Valerio, MapServer (and OGR) do not support reading DWG files. You will need to find some mechanism to translate the files to another format that is supported. This can be accomplished with the FME software from Safe Software though that isn't open source. 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 Wed Jun 18 08:07:27 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 18 Jun 2008 11:07:27 -0400 Subject: [mapserver-users] PointM shapefile not displaying outside its extent In-Reply-To: <001b01c8d113$596675d0$0c336170$@com> References: <003201c8cd21$ef945630$cebd0290$@com> <001b01c8d113$596675d0$0c336170$@com> Message-ID: <485924AF.2060409@pobox.com> Pano, I would suggest you file a ticket with all the details to reproduce the problem in a minimal way. It is not at all obvious to me why this would happen. Best regards, Pano Voudouris wrote: > Anyone? Please? ... > > Hi All, > > I have a pointM shapefile that justs refuse to display as soon as I pan > the map (same scale) so part of the shapes go beyond the map extent. It > will only display if all points are within the view window. I dropped > and recreated the spatial index, used the shptree to create the *qix > file but all to no avail. I have stripped down the layer to the bare > basics. The entry in the mapfile is: > > > > LAYER > > NAME "DEFS" > > STATUS DEFAULT > > TYPE POINT > > DATA defects2 > > METADATA > > WMS_TITLE "defects" > > END #end metadata > > CLASS > > STYLE > > SYMBOL "point" > > SIZE 12 > > COLOR 0 170 0 > > #MAXSIZE 100 > > #MINSIZE 50 > > END > > END > > END > > > > > > I only managed to display it after I converted it to simple points (not > PointM). Is this some sort of limitation in Mapserver? It can display > PolylineM w/out any problems? > > > > Thanks in anticipation, > > Pano > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------+-------------------------------------- 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 pcreso at pcreso.com Wed Jun 18 11:10:11 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 18 Jun 2008 11:10:11 -0700 (PDT) Subject: [mapserver-users] using vector data format In-Reply-To: <485921FE.4010409@pobox.com> Message-ID: <915271.39149.qm@web33203.mail.mud.yahoo.com> Valerio, These guys have some cheapish (non OS) Windows based tools for working with dwg files, including their CAD converter which may do what you need. http://www.dwgtool.com/ HTH, Brent Wood From BLC at JUB.com Wed Jun 18 17:01:09 2008 From: BLC at JUB.com (Bruce Cheney) Date: Wed, 18 Jun 2008 18:01:09 -0600 Subject: [mapserver-users] National basemap data - WMS service In-Reply-To: <915271.39149.qm@web33203.mail.mud.yahoo.com> References: <485921FE.4010409@pobox.com> <915271.39149.qm@web33203.mail.mud.yahoo.com> Message-ID: I have been trying to hunt down a good US national basemap to use through mapserver, preferably a WMS service (unless there is a better option). Alternatively I am also looking to put together our own national basemap to use. I assume some of you have already been down this road so maybe can help. Here is where I have made it so far but I am struggling to find the good solution. Google, Yahoo, etc would require an annual fee (not cheap) to connect to their data (because parts of our site would make money even if it is not the maps). I am still trying to find out if they will give permission to connect as a WMS service. From this user group I get the impression that that might not happen. If we couldn't use WMS then we would have to connect through something like openlayers (still requiring the annual fee from the provider). If we try to create our own basemap, so far TIGER looks like it has the most accurate roads, water features, etc. But the data all is chunked out by the county. That could get hairy to put together in one and troublesome to load the proper layers if left separate. Not to mention the size might require a small server farm. Is there a better WMS connection we could use? Is there a better basemap option? Is there a way to connect to OpenStreetMap (I couldn't find one)? Will I have hair left when I solve this problem? Thanks all for any help you can give. From Steve.Lime at dnr.state.mn.us Wed Jun 18 21:00:22 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 18 Jun 2008 23:00:22 -0500 Subject: [mapserver-users] MapServer 5.2 Beta 2 Available Message-ID: <485993860200008F00018CC2@co5.dnr.state.mn.us> Hi folks: MapServer 5.2 Beta 2 has just been released. The source package is available for download at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since 5.2-beta1 can be found at the end this message. This is a significant release so we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be relatively easy for folks to test. Please let us know how it goes! The plan is now to have 3 beta releases, 1 release candidate with a final release the first week in July. More details can be found in the 5.2 release plan at: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ Steve Version 5.2.0-beta2 (2008-06-18): --------------------------------- - Fixed possible buffer overrun with Oracle Spatial driver (#2572) - mapogcsos.c: support srsName in GetObservation (#2414) - Filter Encoding: Modify DWithin definition (#2564) - Added webObj legendformat and browseformat mapping in PHP MapScript (#2309) - Removed static buffer size limit in msIO_*printf() functions (#2214) - Fixed libiconv detection in configure for OSX 10.5 64 bit (#2396) - mapstring.c: possible buffer overflow in msGetPath (#2649) - maputil.c: Correct expression evaluation with text containing apostrophes (#2641) - mapwfs.c: Possibly generate an error message when applying filter encoding (#2444) - Added MS_LABEL_BINDING constants for SWIG MapScript (#2643) - mapogcsos.c: fix POST support (#2379) - maplibxml2.c: helper functions XML POST fix (#2379) - mapwfs.c: fix segfault when srsName is not passed on BBOX Filter (#2644) - mapwfs.c: do not return error for empty query results (#2444) - Remove C++-style comments and most other warnings thrown by -pedantic (#2598) - mapwfs.c/mapwfs11.c: set GML MIME type correctly - mapogcsos.c: advertise supported SRS list via MAP.WEB.METADATA.sos_srs (#2414) - mapwfs.c: set layer extent to map extent for default GetFeature requests with no spatial predicates (#1287) From pal.kristensen at statkart.no Thu Jun 19 01:00:05 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 19 Jun 2008 01:00:05 -0700 (PDT) Subject: [MAPSERVER-USERS] MapServer 5.2 Beta 2 Available In-Reply-To: <485993860200008F00018CC2@co5.dnr.state.mn.us> References: <485993860200008F00018CC2@co5.dnr.state.mn.us> Message-ID: <17999325.post@talk.nabble.com> Hi! Great! Will make a build today and start testing. Do I have to use the --with-experimental_png to include the qunatize support for AGG output, or is this functionality now included as default? Regards, P?l Kristensen Steve Lime wrote: > > Hi folks: MapServer 5.2 Beta 2 has just been released. The source package > is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.2-beta1 can be found at the end this > message. This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 > applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is now to have 3 beta releases, 1 release candidate with a final > release the first week in July. > More details can be found in the 5.2 release plan at: > > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > > Version 5.2.0-beta2 (2008-06-18): > --------------------------------- > > - Fixed possible buffer overrun with Oracle Spatial driver (#2572) > > - mapogcsos.c: support srsName in GetObservation (#2414) > > - Filter Encoding: Modify DWithin definition (#2564) > > - Added webObj legendformat and browseformat mapping in PHP MapScript > (#2309) > > - Removed static buffer size limit in msIO_*printf() functions (#2214) > > - Fixed libiconv detection in configure for OSX 10.5 64 bit (#2396) > > - mapstring.c: possible buffer overflow in msGetPath (#2649) > > - maputil.c: Correct expression evaluation with text containing > apostrophes (#2641) > > - mapwfs.c: Possibly generate an error message when applying filter > encoding (#2444) > > - Added MS_LABEL_BINDING constants for SWIG MapScript (#2643) > > - mapogcsos.c: fix POST support (#2379) > > - maplibxml2.c: helper functions XML POST fix (#2379) > > - mapwfs.c: fix segfault when srsName is not passed on BBOX Filter (#2644) > > - mapwfs.c: do not return error for empty query results (#2444) > > - Remove C++-style comments and most other warnings thrown by -pedantic > (#2598) > > - mapwfs.c/mapwfs11.c: set GML MIME type correctly > > - mapogcsos.c: advertise supported SRS list via > MAP.WEB.METADATA.sos_srs (#2414) > > - mapwfs.c: set layer extent to map extent for default > GetFeature requests with no spatial predicates (#1287) > _______________________________________________ > 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/MapServer-5.2-Beta-2-Available-tp17996897p17999325.html Sent from the Mapserver - User mailing list archive at Nabble.com. From scala at itc.cnr.it Thu Jun 19 02:21:08 2008 From: scala at itc.cnr.it (Paolo L. Scala) Date: Thu, 19 Jun 2008 11:21:08 +0200 Subject: [mapserver-users] SVG symbols Message-ID: <485A2504.9050209@itc.cnr.it> Hello everyone! I'm using MapServer with the pmapper framework to publish maps composed in Quantum GIS, which uses SVG symbols. Are there any projects about MapServer supporting SVG symbols? Thanks all! From jaframe at net-yan.com Thu Jun 19 05:39:16 2008 From: jaframe at net-yan.com (Tony Frame) Date: Thu, 19 Jun 2008 20:39:16 +0800 Subject: [mapserver-users] MapServer 5.2 Beta 2 Available In-Reply-To: <485993860200008F00018CC2@co5.dnr.state.mn.us> References: <485993860200008F00018CC2@co5.dnr.state.mn.us> Message-ID: <1213879156.13647.15.camel@linux01> On Wed, 2008-06-18 at 23:00 -0500, Steve Lime wrote: > Hi folks: MapServer 5.2 Beta 2 has just been released. The source package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.2-beta1 can be found at the end this message. This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is now to have 3 beta releases, 1 release candidate with a final release the first week in July. > More details can be found in the 5.2 release plan at: > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > I've tried both 5.2.0-beta1 and 5.2.0-beta2 and have the same problem - everything works fine except no map image is generated. Ref map and scale bar images are generated fine - just the main map image never appears. Same map file works fine with 5.0.3. Details of config / system are as follow : OS : Fedora 9 Arch : same result on I386 and X86_64 Config options : --with-ogr --with-gdal --with-agg --with-freetype --with-proj Method of use : cgi Image format : png Nothing unusual reported in mapserver log file, httpd logs or selinux logs. shp2img generates the map image from the map file without any problems. Its also not a path reference problem - the map image never appears in the tmp directory but both the ref map and scale bar images do. Regards Tony From john at hydroplexus.com Thu Jun 19 06:39:34 2008 From: john at hydroplexus.com (John Metta) Date: Thu, 19 Jun 2008 06:39:34 -0700 Subject: [mapserver-users] Google Terrain WMS example In-Reply-To: <1213879156.13647.15.camel@linux01> References: <485993860200008F00018CC2@co5.dnr.state.mn.us> <1213879156.13647.15.camel@linux01> Message-ID: <485A6196.70000@hydroplexus.com> Greetings, I'm a hydrologist climbing the MapServer learning curve (book is coming in the mail), so am fairly new. Does someone have a Google Terrain example similiar to the angling-technologies one found in the gallery? http://mapper.angling-technologies.com/interface.php While eventually, I'd like something similar to their full-screen look, I'm not looking for all the glitzy javascript. Right now, I'm just trying figure out how to grab that shaded terrain via WMS. I have a Google API number. Thanks. -John From mschulz at webgis.de Thu Jun 19 07:16:07 2008 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 19 Jun 2008 16:16:07 +0200 Subject: [mapserver-users] Legend / GetLegendgraphic with truetype symbols Message-ID: Hi, just experimenting with the new 5.2 beta 2. It works very nice. Especially problems when using truetype fonts with agg have vanished. Great! One problem, that i observe also in the 5.0 versions and that i need to solve: when using truetype characters as point symbols and setting sizeunits to meters and adjusting the size values so that it looks good on the map, the key images of the legend only show a tiny little spot, where this symbol gets rendered. It seems to use a default (?) size value (probably set for sizeunits pixel) to display the legend symbol, but in meter sizeunits this doesn't make sense. Has anyone already overcome this problem? Cheers, Michael -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From roybraam at b3partners.nl Thu Jun 19 07:26:18 2008 From: roybraam at b3partners.nl (Roy Braam) Date: Thu, 19 Jun 2008 16:26:18 +0200 Subject: [mapserver-users] Google Terrain WMS example In-Reply-To: 485A6196.70000@hydroplexus.com Message-ID: <20080619142618.53ac398a@kmail.b3partners.nl> John, I don't think it's done with mapserver, its done on the client side. The page http://mapper.angling-technologies.com/interface.php uses openlayers (http://openlayers.org/) as client side. Met vriendelijke groet, Roy Braam B3partners BV 030 214 2082 06 21844955 _____ From: John Metta [mailto:john at hydroplexus.com] To: mapserver-users at lists.osgeo.org Sent: Thu, 19 Jun 2008 15:39:34 +0200 Subject: [mapserver-users] Google Terrain WMS example Greetings, I'm a hydrologist climbing the MapServer learning curve (book is coming in the mail), so am fairly new. Does someone have a Google Terrain example similiar to the angling-technologies one found in the gallery? http://mapper.angling-technologies.com/interface.php While eventually, I'd like something similar to their full-screen look, I'm not looking for all the glitzy javascript. Right now, I'm just trying figure out how to grab that shaded terrain via WMS. I have a Google API number. Thanks. -John _______________________________________________ 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 jjschlafley at yahoo.com Thu Jun 19 08:07:38 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Thu, 19 Jun 2008 08:07:38 -0700 (PDT) Subject: [mapserver-users] ShapeObj Class toWkt() PRECISION Message-ID: <842311.44614.qm@web52309.mail.re2.yahoo.com> Does anyone know if you can change the?PRECISION of the geometry returned from the toWkt() method in the ShapeObj class? -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at hydroplexus.com Thu Jun 19 08:25:05 2008 From: john at hydroplexus.com (John Metta) Date: Thu, 19 Jun 2008 08:25:05 -0700 Subject: [mapserver-users] Google Terrain WMS example In-Reply-To: <20080619142618.53ac398a@kmail.b3partners.nl> References: <20080619142618.53ac398a@kmail.b3partners.nl> Message-ID: <485A7A51.3030808@hydroplexus.com> My my, that is something else. It explains why I was having such a hard time figuring out how to make that work in MapServer. While I haven't had time to grab it and play, I'm quite amazed at OpenLayers can do! It looks like the combination of that and MapServer will make this project easier than I thought. The learning curve is as steep as anything, but it seems like once you're at the top, the world is at your fingertips. Thanks, -J (Yes, that was something of an intentional pun) Roy Braam wrote: > John, > > I don't think it's done with mapserver, its done on the client side. The > page http://mapper.angling-technologies.com/interface.php > uses openlayers (http://openlayers.org/) as client side. > > Met vriendelijke groet, > > Roy Braam > B3partners BV > 030 214 2082 > 06 21844955 > > ------------------------------------------------------------------------ > *From:* John Metta [mailto:john at hydroplexus.com] > *To:* mapserver-users at lists.osgeo.org > *Sent:* Thu, 19 Jun 2008 15:39:34 +0200 > *Subject:* [mapserver-users] Google Terrain WMS example > > Greetings, > > I'm a hydrologist climbing the MapServer learning curve (book is coming > in the mail), so am fairly new. > > Does someone have a Google Terrain example similiar to the > angling-technologies one found in the gallery? > > http://mapper.angling-technologies.com/interface.php > > While eventually, I'd like something similar to their full-screen look, > I'm not looking for all the glitzy javascript. Right now, I'm just > trying figure out how to grab that shaded terrain via WMS. > > I have a Google API number. > > Thanks. > > -John > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From percyd at pdx.edu Thu Jun 19 09:10:56 2008 From: percyd at pdx.edu (percy) Date: Thu, 19 Jun 2008 09:10:56 -0700 Subject: [mapserver-users] National basemap data - WMS service In-Reply-To: References: <485921FE.4010409@pobox.com> <915271.39149.qm@web33203.mail.mud.yahoo.com> Message-ID: <485A8510.3010801@pdx.edu> You might be able to get what you need from the USGS' National Map http://nationalmap.gov/ Depends on what scale you need... Cheers, Percy Bruce Cheney wrote: > I have been trying to hunt down a good US national basemap to use > through mapserver, preferably a WMS service (unless there is a better > option). Alternatively I am also looking to put together our own > national basemap to use. I assume some of you have already been down > this road so maybe can help. > > Here is where I have made it so far but I am struggling to find the good > solution. Google, Yahoo, etc would require an annual fee (not cheap) to > connect to their data (because parts of our site would make money even > if it is not the maps). I am still trying to find out if they will give > permission to connect as a WMS service. From this user group I get the > impression that that might not happen. If we couldn't use WMS then we > would have to connect through something like openlayers (still requiring > the annual fee from the provider). > > If we try to create our own basemap, so far TIGER looks like it has the > most accurate roads, water features, etc. But the data all is chunked > out by the county. That could get hairy to put together in one and > troublesome to load the proper layers if left separate. Not to mention > the size might require a small server farm. > > Is there a better WMS connection we could use? > Is there a better basemap option? > Is there a way to connect to OpenStreetMap (I couldn't find one)? > Will I have hair left when I solve this problem? > > Thanks all for any help you can give. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From jaframe at net-yan.com Thu Jun 19 09:47:30 2008 From: jaframe at net-yan.com (Tony Frame) Date: Fri, 20 Jun 2008 00:47:30 +0800 Subject: [mapserver-users] WMS for Google Earth References: <670a3d3e0806161404i560723a7r61d41c7cbb74dd89@mail.gmail.com> Message-ID: <046819E581A4429799C0DDE7998E55CD@TINY2GHZ> ----- Original Message ----- From: ben wyss To: mapserver-users at lists.osgeo.org Sent: Tuesday, 17 June, 2008 5:04 AM Subject: [mapserver-users] WMS for Google Earth Hello, I am trying to develop WMS to be compatible with Google Earth. My map file seems to return a healthy XML file (no errors, and works in Cartoweb), but it will not project (at all) in Google Earth? Can someone direct me toward a solution or documentation on this subject? My XML file looks like this: Thanks, Ben Ben, If you try to access your xlink:href : http://quakeloss.ethz.ch/cgi-bin/mapserv?map=QL2WMS_22.map& you'll see the message : msLoadMap(): Unable to access file. (QL2WMS_22.map) Full path to your map file needs to be specified eg on a Fedora / RH system you'd need something like http://quakeloss.ethz.ch/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Fhtml%2FMyApplicationMapfileDirectory%2FQL2WMS_22.map& This is probably set in WEB METADATA section of your map file as "wms_onlineresource". I've got something like this to work in Google Earth by adding an "Image Overlay" and setting "WMS Parameters" under the Refresh tab. Add the xlink:href above (with the correct map file path) to the WMS Server box - if all is correct you should get a list of layers you can add, if not you'll get an error message something like "Get capabilities failed". Google Earth seems to always set a default image WIDTH and HEIGHT to 500 x 500 which may not be appropriate if the map window is not square - once you've setup the WMS server succesfully you can change these in the link box under "Properties" of the overlay. Or save to a *.kml file and edit the parameters in the file and reload in Google Earth. The auto refresh in Google Earth seems a bit flaky ... sometimes needs a manual "kick" to get it going the first time and theen seems ok thereafter. Other problem I've had is that on Linux GE doesn't seem to be able to access mapserver using https. GE from windows pops up an authentication / certificate warning box and then connects to the same https server without any problems. Hope this helps Regards Tony From samnyoung at hotmail.com Thu Jun 19 09:58:48 2008 From: samnyoung at hotmail.com (Sam Young) Date: Thu, 19 Jun 2008 08:58:48 -0800 Subject: [mapserver-users] phpmapscript with postgis Message-ID: I am trying to develop a map application with php mapscript and postgis. I can map my postgis data in a standard map file and the php mapscript generates a map file on a shape file. However, when I try to generate a php mapscript map I get a blank screen. There are no error messages but the data doesn't display. My php file is shown below. Does anyone have any suggestions? Thanks, Sam setSize(256,256); $oMap->web->set(imagepath,"/ms4w/tmp/ms_tmp/"); $oMap->web->set(imageurl,"/ms_tmp/"); // Set the geographic extents of the map. $oMap->setExtent(1543790,718550,1560340,750790); // Create a data layer and associate it with the map. // This is the raster layer showing some cloud imagery $oLayerRoads = ms_newLayerObj($oMap); $oLayerRoads->set( "name", "roads"); $oLayerRoads->set( "type", MS_LAYER_LINE); $oLayerRoads->set( "status", MS_DEFAULT); $oLayerRoads->set( "connectiontype", "postgis"); $oLayerRoads->set( "connection", "dbname=gisdb user=user password=password host=localhost port=5432"); $oLayerRoads->set( "data", "the_geom from (select * from roads) as foo using unique gid using SRID=2242"); // Create a class object to set feature drawing styles. $oMapClass = ms_newClassObj($oLayerRoads); // Create a style object defining how to draw features $oRoadsStyle = ms_newStyleObj($oMapClass); $oRoadsStyle->color->setRGB(255,0,0); // Create label settings for drawing text labels $oMapClass->label->set( "position", MS_AUTO); $oMapClass->label->color->setRGB(250,0,0); $oMapClass->label->outlinecolor->setRGB(255,255,255); // Render the map into an image object $oMapImage = $oMap->draw(); $image_url=$oMapImage->saveWebImage(); ?> alt="Map" /> _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vendi_aja at yahoo.com Thu Jun 19 20:44:47 2008 From: vendi_aja at yahoo.com (vendi aja) Date: Thu, 19 Jun 2008 20:44:47 -0700 (PDT) Subject: [mapserver-users] Problem with mapserver&GML Message-ID: <298558.2228.qm@web58413.mail.re3.yahoo.com> Hi all, im kind a newb here, what i want to ask is, is there any way for mapserver to Access it data from GML.. sample would be much appreciate... thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Jun 19 21:07:49 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Thu, 19 Jun 2008 22:07:49 -0600 Subject: [mapserver-users] Problem with mapserver&GML In-Reply-To: <298558.2228.qm@web58413.mail.re3.yahoo.com> References: <298558.2228.qm@web58413.mail.re3.yahoo.com> Message-ID: <485B2D15.2090503@hostgis.com> vendi aja wrote: > Hi all, im kind a newb here, what i want to ask is, is there any way for > mapserver to Access it data from GML.. sample would be much > appreciate... thanks in advance Sure. If it's a remote WFS server, read the "WFS Clients" documentation on the website. If it's a GML file, use a OGR data source to connect to it; again, that's documented on the website. http://mapserver.gis.umn.edu/docs/howto/wfs_client http://mapserver.gis.umn.edu/docs/howto/ogr_howto -- 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 Jukka.Rahkonen at mmmtike.fi Thu Jun 19 23:55:29 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 20 Jun 2008 09:55:29 +0300 Subject: [mapserver-users] Problem with mapserver&GML References: <298558.2228.qm@web58413.mail.re3.yahoo.com> <485B2D15.2090503@hostgis.com> Message-ID: L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Gregor Mosheh > vendi aja wrote: >> Hi all, im kind a newb here, what i want to ask is, is there any way for >> mapserver to Access it data from GML.. sample would be much >> appreciate... thanks in advance > Sure. If it's a remote WFS server, read the "WFS Clients" documentation > on the website. If it's a GML file, use a OGR data source to connect to > it; again, that's documented on the website. > http://mapserver.gis.umn.edu/docs/howto/wfs_client > http://mapserver.gis.umn.edu/docs/howto/ogr_howto Hi, By the way, the latter link has not working links referring to old gdal.maptools.org. -Jukka Rahkonen- From szekerest at gmail.com Fri Jun 20 02:12:19 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 20 Jun 2008 11:12:19 +0200 Subject: [mapserver-users] Legend / GetLegendgraphic with truetype symbols In-Reply-To: References: Message-ID: Michael, I`m not sure if it is related, but there`s a bug about how the legend image should be rendered for the annotations, but this hasn`t been implemented yet. http://trac.osgeo.org/mapserver/ticket/1523 Do you have further expectations how the legend should look like in this case? How your mapfile looks like? I`m tending to take over this bug and implement something for 5.2 this week. Best regards, Tamas 2008/6/19 Michael Schulz : > Hi, > > just experimenting with the new 5.2 beta 2. It works very nice. > Especially problems when using truetype fonts with agg have vanished. > Great! > > One problem, that i observe also in the 5.0 versions and that i need > to solve: when using truetype characters as point symbols and setting > sizeunits to meters and adjusting the size values so that it looks > good on the map, the key images of the legend only show a tiny little > spot, where this symbol gets rendered. It seems to use a default (?) > size value (probably set for sizeunits pixel) to display the legend > symbol, but in meter sizeunits this doesn't make sense. Has anyone > already overcome this problem? > > Cheers, Michael > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > In den Weihermatten 66 > 79108 Freiburg > > Tel +49 (0)761 556959-5 > Fax +49 (0)761 556959-6 > > http://www.webgis.de / http://www.zopecms.de > ----------------------------------------------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mschulz at webgis.de Fri Jun 20 03:22:13 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 20 Jun 2008 12:22:13 +0200 Subject: [mapserver-users] Legend / GetLegendgraphic with truetype symbols In-Reply-To: References: Message-ID: Hi Tamas, thanks for your answer. I don't have the mapfile at hand, but it breaks down to symbol for a point defined as a truetype character, but the layer has sizeunits meters defined. So, the only problem is (that's why i tend not to call it a bug) that the legend symbol should not take the sizeunits meters into account, because it actually does't make sense for the legend... In the described case the legend would be perfect if it just could take the symbol character and size appropriate for the legend key size. Cheers, Michael 2008/6/20 Tamas Szekeres : > Michael, > > I`m not sure if it is related, but there`s a bug about how the legend > image should be rendered for the annotations, but this hasn`t been > implemented yet. > http://trac.osgeo.org/mapserver/ticket/1523 > Do you have further expectations how the legend should look like in > this case? How your mapfile looks like? > I`m tending to take over this bug and implement something for 5.2 this week. > > Best regards, > Tamas > > > > 2008/6/19 Michael Schulz : >> Hi, >> >> just experimenting with the new 5.2 beta 2. It works very nice. >> Especially problems when using truetype fonts with agg have vanished. >> Great! >> >> One problem, that i observe also in the 5.0 versions and that i need >> to solve: when using truetype characters as point symbols and setting >> sizeunits to meters and adjusting the size values so that it looks >> good on the map, the key images of the legend only show a tiny little >> spot, where this symbol gets rendered. It seems to use a default (?) >> size value (probably set for sizeunits pixel) to display the legend >> symbol, but in meter sizeunits this doesn't make sense. Has anyone >> already overcome this problem? >> >> Cheers, Michael >> >> -- >> ----------------------------------------------------------- >> Michael Schulz >> mschulz at webgis.de >> >> in medias res >> Gesellschaft f?r Informationstechnologie mbH >> >> In den Weihermatten 66 >> 79108 Freiburg >> >> Tel +49 (0)761 556959-5 >> Fax +49 (0)761 556959-6 >> >> http://www.webgis.de / http://www.zopecms.de >> ----------------------------------------------------------- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From szekerest at gmail.com Fri Jun 20 03:35:25 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 20 Jun 2008 12:35:25 +0200 Subject: [mapserver-users] Legend / GetLegendgraphic with truetype symbols In-Reply-To: References: Message-ID: Michael, As far as I can see your issue is not related to my original problem, but I`ll make some tests in the weekend to see what`s going on behind the scenes. Best regards, Tamas 2008/6/20 Michael Schulz : > Hi Tamas, > > thanks for your answer. > > I don't have the mapfile at hand, but it breaks down to symbol for a > point defined as a truetype character, but the layer has sizeunits > meters defined. So, the only problem is (that's why i tend not to call > it a bug) that the legend symbol should not take the sizeunits meters > into account, because it actually does't make sense for the legend... > In the described case the legend would be perfect if it just could > take the symbol character and size appropriate for the legend key > size. > > Cheers, Michael > > 2008/6/20 Tamas Szekeres : >> Michael, >> >> I`m not sure if it is related, but there`s a bug about how the legend >> image should be rendered for the annotations, but this hasn`t been >> implemented yet. >> http://trac.osgeo.org/mapserver/ticket/1523 >> Do you have further expectations how the legend should look like in >> this case? How your mapfile looks like? >> I`m tending to take over this bug and implement something for 5.2 this week. >> >> Best regards, >> Tamas >> >> >> >> 2008/6/19 Michael Schulz : >>> Hi, >>> >>> just experimenting with the new 5.2 beta 2. It works very nice. >>> Especially problems when using truetype fonts with agg have vanished. >>> Great! >>> >>> One problem, that i observe also in the 5.0 versions and that i need >>> to solve: when using truetype characters as point symbols and setting >>> sizeunits to meters and adjusting the size values so that it looks >>> good on the map, the key images of the legend only show a tiny little >>> spot, where this symbol gets rendered. It seems to use a default (?) >>> size value (probably set for sizeunits pixel) to display the legend >>> symbol, but in meter sizeunits this doesn't make sense. Has anyone >>> already overcome this problem? >>> >>> Cheers, Michael >>> >>> -- >>> ----------------------------------------------------------- >>> Michael Schulz >>> mschulz at webgis.de >>> >>> in medias res >>> Gesellschaft f?r Informationstechnologie mbH >>> >>> In den Weihermatten 66 >>> 79108 Freiburg >>> >>> Tel +49 (0)761 556959-5 >>> Fax +49 (0)761 556959-6 >>> >>> http://www.webgis.de / http://www.zopecms.de >>> ----------------------------------------------------------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > In den Weihermatten 66 > 79108 Freiburg > > Tel +49 (0)761 556959-5 > Fax +49 (0)761 556959-6 > > http://www.webgis.de / http://www.zopecms.de > ----------------------------------------------------------- > From Laurent.Saez at developpement-durable.gouv.fr Fri Jun 20 03:35:19 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Fri, 20 Jun 2008 12:35:19 +0200 Subject: [mapserver-users] VRT into a symbol definition Message-ID: <485B87E7.8030803@developpement-durable.gouv.fr> Hi list, I've tried to use VRT files into a symbol definition, but it doesn't work. It will be fine. I've to reproduce MapInfo? hatches. MapInfo? uses raster to make hatches. I've recovered all the raster. But I need to reproduce all front colors and all background colors. So, I've tried to make VRT files instead of generating all real raster files. It seems to be not possible... So I've had to make thousands real raster files. I've written few lines code to make all vrt files and I've used gdal_translate to make all real raster files. Is there a solution to use VRT file into a symbol definition ? Thanks for help From szekerest at gmail.com Fri Jun 20 05:01:46 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 20 Jun 2008 14:01:46 +0200 Subject: [mapserver-users] VRT into a symbol definition In-Reply-To: <485B87E7.8030803@developpement-durable.gouv.fr> References: <485B87E7.8030803@developpement-durable.gouv.fr> Message-ID: I believe you can only specify real raster files to define pixmap symbols the VRT files can only be processed by the GDAL driver like drawing raster layers. Do you have an exact algorithm to assign mapserver symbol definitions to the mapinfo symbol specification. I wonder if the STYLEITEM "AUTO" option could be extended for this case. For more information see: http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#styleitem-auto-rendering-layers-using-style-information-from-the-ogr-file Best regards, Tamas 2008/6/20 "SAEZ Laurent - CETE M?diterr./DI/ETER" : > Hi list, > > I've tried to use VRT files into a symbol definition, but it doesn't work. > It will be fine. > I've to reproduce MapInfo(R) hatches. MapInfo(R) uses raster to make hatches. > I've recovered all the raster. But I need to reproduce all front colors and > all background colors. > So, I've tried to make VRT files instead of generating all real raster > files. It seems to be not possible... > So I've had to make thousands real raster files. I've written few lines code > to make all vrt files and I've used gdal_translate to make all real raster > files. > Is there a solution to use VRT file into a symbol definition ? > > Thanks for help > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Fri Jun 20 05:40:49 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 Jun 2008 08:40:49 -0400 Subject: [mapserver-users] Problem with mapserver&GML In-Reply-To: References: <298558.2228.qm@web58413.mail.re3.yahoo.com> <485B2D15.2090503@hostgis.com> Message-ID: On 20-Jun-08, at 2:55 AM, Rahkonen Jukka wrote: >> > >> http://mapserver.gis.umn.edu/docs/howto/wfs_client > >> http://mapserver.gis.umn.edu/docs/howto/ogr_howto > > Hi, > > By the way, the latter link has not working links referring to old > gdal.maptools.org. > Jukka, I have fixed the links in the OGR Howto document. In the future if you (or anyone) notices any problems with documents please create a ticket through the MapServer Trac instance[1], using the "MapServer Documentation" component. thanks. [1] http://trac.osgeo.org/mapserver/ -jeff --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From fluyoz at hotmail.com Fri Jun 20 11:23:22 2008 From: fluyoz at hotmail.com (Fernando Javier Luyo Zegarra) Date: Fri, 20 Jun 2008 13:23:22 -0500 Subject: [mapserver-users] Problems with Satellite Image (raster) Message-ID: Hello Friends I have a satellite image TIFF I want to add a layer of our Webmap, but I presents an image blurred and I want to improve it. Attached as an image is displayed in the Webmap and another with MapInfo. In mapfile I have this code: LAYER NAME LIMA_1 DATA "Lima\Lima\o_Scena_001_8b_C2_1.tif" STATUS DEFAULT TYPE RASTER PROCESSING "SCALE=AUTO" PROJECTION "init=epsg:32718" END END That parameter I needed to improve the image display?Excuse my English Greetings from PeruFernando Luyo ********************************************************************** Hola Amigos Tengo una imagen satelital TIFF que quiero agregar a una capa de nuestro webmap,pero me presenta una imagen difusa y quiero mejorarla. Adjunto una imagen de como se visualiza en el webmap y otra con el mapinfo. En el mapfile tengo este codigo : LAYER NAME LIMA_1 DATA "Lima\Lima\o_Scena_001_8b_C2_1.tif" STATUS DEFAULT TYPE RASTER PROCESSING "SCALE=AUTO" PROJECTION "init=epsg:32718" END END Que par?metro me falta para mejorar la visualizaci?n de la imagen? Disculpen mi ingles Saludos desde el Per? Fernando Luyo _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Jun 21 07:44:10 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 21 Jun 2008 09:44:10 -0500 Subject: [mapserver-users] New list us_tiger Message-ID: <485D13BA.1010103@swoodbridge.com> Hello all, Sorry for the cross postings but I want to let people know that I have created a new list that you might be interested in: us_tiger list was created for discussions regarding the US Census Tiger data and how to use and manipulate it. This list, despite its name, also welcomes discussion of similar national data set for other countries. You can subscribe here: http://lists.osgeo.org/mailman/listinfo/us_tiger Please send a message after you have subscribed with a short intro and include what you are doing or would like to do with the Tiger data. Best regards, -Stephen Woodbridge From woodbri at swoodbridge.com Sat Jun 21 08:30:22 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 21 Jun 2008 10:30:22 -0500 Subject: [mapserver-users] us_tiger moving to geodata list Message-ID: <485D1E8E.2060405@swoodbridge.com> Hi all, OK, is seems that we already have a list for these discussions and I have been asked to move the discussion over to geodata list. So, if you are not subscribed to the geodata list and want to talk about Tiger data please join us at: http://lists.osgeo.org/mailman/listinfo/geodata I will be closing the us_tiger list. Sorry for the noise and confusion. -Steve From Steve.Lime at dnr.state.mn.us Sat Jun 21 09:14:31 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sat, 21 Jun 2008 11:14:31 -0500 Subject: [mapserver-users] MapServer 5.2 Beta 2 Available Message-ID: <485CE2980200008F00018E18@co5.dnr.state.mn.us> Tony/all: This has been fixed in the main trunk. I had mucked up parameter order in calls to a generalized image generation function. This effectively broke mode=BROWSE applications. Testing of other functions in beta 2 would still be helpful! Beta3 will be out on Wed. Appreciate the report! Steve >>> Tony Frame 06/19/08 7:40 AM >>> On Wed, 2008-06-18 at 23:00 -0500, Steve Lime wrote: > Hi folks: MapServer 5.2 Beta 2 has just been released. The source package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.2-beta1 can be found at the end this message. This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is now to have 3 beta releases, 1 release candidate with a final release the first week in July. > More details can be found in the 5.2 release plan at: > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > I've tried both 5.2.0-beta1 and 5.2.0-beta2 and have the same problem - everything works fine except no map image is generated. Ref map and scale bar images are generated fine - just the main map image never appears. Same map file works fine with 5.0.3. Details of config / system are as follow : OS : Fedora 9 Arch : same result on I386 and X86_64 Config options : --with-ogr --with-gdal --with-agg --with-freetype --with-proj Method of use : cgi Image format : png Nothing unusual reported in mapserver log file, httpd logs or selinux logs. shp2img generates the map image from the map file without any problems. Its also not a path reference problem - the map image never appears in the tmp directory but both the ref map and scale bar images do. Regards Tony From bmwyss at gmail.com Sat Jun 21 09:39:41 2008 From: bmwyss at gmail.com (ben wyss) Date: Sat, 21 Jun 2008 17:39:41 +0100 Subject: [mapserver-users] Getmap request in Google earth Message-ID: <670a3d3e0806210939y39eea49eoc9e32e66772ff87f@mail.gmail.com> I am trying to call a WMS into Google Earth with a Getmap request, I am getting the error: missing required parameter STYLES However my URL contains a 'Styles' parameter? http://quakeloss.ethz.ch/cgi-bin/mapserv?map=/tmp/ms_tmp/test2.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getmap&SRS=EPSG:4326&WIDTH=600&HEIGHT=600&LAYERS=test&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=default&BBOX=-180,-90,180,90& I have found that Google Earth is rewriting my Getmap request, from the above request to a similar request that is missing a Styles parameter (it changes the bbox aswell), does anyone have any idea of how to call a Getmap request in Google Earth? Or to get around this error? -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Jun 22 13:59:45 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 23 Jun 2008 08:59:45 +1200 Subject: [mapserver-users] Getmap request in Google earth In-Reply-To: <670a3d3e0806210939y39eea49eoc9e32e66772ff87f@mail.gmail.com> References: <670a3d3e0806210939y39eea49eoc9e32e66772ff87f@mail.gmail.com> Message-ID: <485F6600.379F.0037.0@asurequality.com> Hi Ben Just use "STYLES=" with no values. Cheers, Robert Sanson >>> "ben wyss" 22/06/2008 4:39 a.m. >>> I am trying to call a WMS into Google Earth with a Getmap request, I am getting the error: missing required parameter STYLES However my URL contains a 'Styles' parameter? http://quakeloss.ethz.ch/cgi-bin/mapserv?map=/tmp/ms_tmp/test2.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getmap&SRS=EPSG:4326&WIDTH=600&HEIGHT=600&LAYERS=test&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=default&BBOX=-180,-90,180,90& I have found that Google Earth is rewriting my Getmap request, from the above request to a similar request that is missing a Styles parameter (it changes the bbox aswell), does anyone have any idea of how to call a Getmap request in Google Earth? Or to get around this error? Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ 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 Ying.Zhao1 at cn.flextronics.com Mon Jun 23 02:11:02 2008 From: Ying.Zhao1 at cn.flextronics.com (Zhao Ying (CDU)) Date: Mon, 23 Jun 2008 17:11:02 +0800 Subject: [mapserver-users] php fails on MS4W and Apache Message-ID: <3E5D24E6E4144A4590AC2B152F72F050044186C1@ASHKGEX2.asia.ad.flextronics.com> Greetings, I'm trying to test my PHP MapScript environment on MS4W. Unfortunately, each time I run the following php file on the apache server within MS4W, a same error message is always thrown: -- Error Message: Fatal error: Call to undefined function ms_newMapObj() in C:\ms4w\Apache\htdocs\phpms_hello.php on line 7 -- PHP file: phpms_hello.php This example is from chapter8, book however, according to the author, this example is expected to be run a Linux version mapserver (I guess so), so I'm under the assumption that all configuration procedures described in this book before running this example won't work for MS4W. draw(); $image->saveImage("/ms4w/tmp/ms_tmp/".$image_name); ?> PHP MapScript Hello World
Did I miss some configurations for MS4W to work with php or something? Thanks!!! Jeff. Chengdu, China 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 jmckenna at gatewaygeomatics.com Mon Jun 23 06:31:21 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Jun 2008 09:31:21 -0400 Subject: [mapserver-users] php fails on MS4W and Apache In-Reply-To: <3E5D24E6E4144A4590AC2B152F72F050044186C1@ASHKGEX2.asia.ad.flextronics.com> References: <3E5D24E6E4144A4590AC2B152F72F050044186C1@ASHKGEX2.asia.ad.flextronics.com> Message-ID: <6D58FEE2-30AE-400C-94FF-2A7CD2A4BAE9@gatewaygeomatics.com> You must dynamically load the PHPMapscript module in your PHP script, with MS4W. See the example script in /ms4w/Apache/htdocs/quickmap.php -jeff --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 23-Jun-08, at 5:11 AM, Zhao Ying (CDU) wrote: > Greetings, > > I?m trying to test my PHP MapScript environment on MS4W. > Unfortunately, each time I run the following php file on the apache > server within MS4W, a same > error message is always thrown: > > -- Error Message: > Fatal error: Call to undefined function ms_newMapObj() in C:\ms4w > \Apache\htdocs\phpms_hello.php on line 7 > > -- PHP file: phpms_hello.php > This example is from chapter8, book Source GIS Development Aug 2005> > however, according to the author, this example is expected to be run > a Linux version mapserver (I guess so), > so I?m under the assumption that all configuration procedures > described in this book before running this example > won?t work for MS4W. > > > // 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/test2/hello.map"); > > // Create an image of the map and save it to disk > $image=$map->draw(); > $image->saveImage("/ms4w/tmp/ms_tmp/".$image_name); > ?> > > > PHP MapScript Hello World > >
> src="/tmp/"> >
> > > > > Did I miss some configurations for MS4W to work with php or something? > Thanks!!! > > Jeff. > Chengdu, China > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Mon Jun 23 06:18:52 2008 From: havard.tveite at umb.no (=?ISO-8859-1?Q?H=E5vard_Tveite?=) Date: Mon, 23 Jun 2008 15:18:52 +0200 Subject: [mapserver-users] MapServer 5.2 Beta 2 Available In-Reply-To: <1213879156.13647.15.camel@linux01> References: <485993860200008F00018CC2@co5.dnr.state.mn.us> <1213879156.13647.15.camel@linux01> Message-ID: <485FA2BC.8000608@umb.no> I had the same problem, and it turned out to be a bug (http://trac.osgeo.org/mapserver/ticket/2655), which is now resolved, so it should be OK in the upcoming beta 3. H?vard Tony Frame wrote: > On Wed, 2008-06-18 at 23:00 -0500, Steve Lime wrote: >> Hi folks: MapServer 5.2 Beta 2 has just been released. The source package is available for download at: >> >> http://mapserver.gis.umn.edu/download/beta >> >> The list of changes/fixes since 5.2-beta1 can be found at the end this message. This is a significant release so >> we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be >> relatively easy for folks to test. Please let us know how it goes! >> >> The plan is now to have 3 beta releases, 1 release candidate with a final release the first week in July. >> More details can be found in the 5.2 release plan at: >> >> http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ >> >> Steve >> > I've tried both 5.2.0-beta1 and 5.2.0-beta2 and have the same problem - > everything works fine except no map image is generated. Ref map and > scale bar images are generated fine - just the main map image never > appears. Same map file works fine with 5.0.3. Details of config / system > are as follow : > > OS : Fedora 9 > Arch : same result on I386 and X86_64 > Config options : --with-ogr --with-gdal --with-agg --with-freetype > --with-proj > Method of use : cgi > Image format : png > > Nothing unusual reported in mapserver log file, httpd logs or selinux > logs. > > shp2img generates the map image from the map file without any problems. > Its also not a path reference problem - the map image never appears in > the tmp directory but both the ref map and scale bar images do. > > Regards > Tony From gwall at firstbasesolutions.com Mon Jun 23 07:03:33 2008 From: gwall at firstbasesolutions.com (Gord Wall) Date: Mon, 23 Jun 2008 10:03:33 -0400 Subject: [mapserver-users] Label Angle with MapScript 5 Message-ID: <485FAD35.30906@firstbasesolutions.com> I am using the MapScript API (php_mapscript_5000.so) to generate a map file, but am running into some problems when trying to set the label angle properties. I can set the angle to a float using: $oMsClass->label->set("angle", 45); Output: ANGLE 45.000000 Setting the autoangle using $oMsClass->label->set("autoangle", MS_TRUE); Output: ANGLE AUTO If i attempt to set the angle to a string using $oMsClass->label->set("angle", "follow") Which can be done directly in a mapfile (ANGLE follow) Output: ANGLE 0.000000 (seems the string is being converted to float, which IS what the angle property expects) But when I want to set the autofollow property using $oMsClass->label-set("autofollow", MS_TRUE); I get the error "Fatal error: Property 'autofollow' does not exist in this object" The documentation on the website for the API is for version 4.10. I can't seem to find any docs for version 5. Is anybody able to point me to updated docs or help me with this specific issue. Gord From gwall at firstbasesolutions.com Mon Jun 23 06:38:22 2008 From: gwall at firstbasesolutions.com (Gord Wall) Date: Mon, 23 Jun 2008 09:38:22 -0400 Subject: [mapserver-users] Label Angle with MapScript 5 Message-ID: <485FA74E.1010409@firstbasesolutions.com> I am using the MapScript API (php_mapscript_5000.so) to generate a map file, but am running into some problems when trying to set the label angle properties. I can set the angle to a float using: $oMsClass->label->set("angle", 45); Output: ANGLE 45.000000 Setting the autoangle using $oMsClass->label->set("autoangle", MS_TRUE); Output: ANGLE AUTO If i attempt to set the angle to a string using $oMsClass->label->set("angle", "follow") Which can be done directly in a mapfile (ANGLE follow) Output: ANGLE 0.000000 (seems the string is being converted to float, which IS what the angle property expects) But when I want to set the autofollow property using $oMsClass->label-set("autofollow", MS_TRUE); I get the error "Fatal error: Property 'autofollow' does not exist in this object" The documentation on the website for the API is for version 4.10. I can't seem to find any docs for version 5. Is anybody able to point me to updated docs or help me with this specific issue. Gord From dario.depascalis at gmail.com Mon Jun 23 08:39:01 2008 From: dario.depascalis at gmail.com (dario de pascalis) Date: Mon, 23 Jun 2008 17:39:01 +0200 Subject: [mapserver-users] SLD + mapserver + openlayers Message-ID: <49d4375b0806230839m2f6bcc7dx958a179bbca6d056@mail.gmail.com> Hi, I have used Mapserver like WMS. Openlayer gets wms url http://localhost:8080/cgi-bin/mapserv.exe?MAP=/ms4w/apps/tutorial/htdocs/example1-9bis.mapand draws the map. Is possible to include this SLD file (see attachment) in mapserver? I would use this SLD to see the street name when I zoom map. Thanks -- Dario De Pascalis -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example1-9bis.xml Type: text/xml Size: 545 bytes Desc: not available URL: From marco.foi at unimi.it Mon Jun 23 08:28:07 2008 From: marco.foi at unimi.it (Marco Foi) Date: Mon, 23 Jun 2008 17:28:07 +0200 Subject: [mapserver-users] Mapscript: does drawQuery() affects draw() In-Reply-To: <485FAD35.30906@firstbasesolutions.com> References: <485FAD35.30906@firstbasesolutions.com> Message-ID: <200806231528.m5NFS9EZ006713@rs17.serv.uniurb.it> Hi all! I'm trying to display the result of a queryByPoint in a second map different from the one clicked by the user, while keeping the main map completely unaltered.... ..but it changes after the$map->$draw() !!! Here is the code After doing something like: $res = $layer->queryByPoint(...) if do a typical: $image=$map->draw(); $image_url=$image->saveWebImage(); than a $image_from_query=$map->drawQuery(); $image_from_query_url=$image_from_query->saveWebImage(); the query picture has the right result in it while the main map image $image_url has changed its bounding box from the previous extent (before the click of the user that triggered the queryByPoint action) to the one shown by the $image_from_query_url (the only difference is that there is no HILITE) I don't want the main image to change; just accept a click. How can I do that? Thanks. Marco Foi From Bob.Basques at ci.stpaul.mn.us Mon Jun 23 10:20:58 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 23 Jun 2008 12:20:58 -0500 Subject: [mapserver-users] Testing of 5.2 B2 (so far so good) Message-ID: <485F952A.163B.00A8.0@ci.stpaul.mn.us> Steve (L), So far so good with the upgrade, we're running all internally on 5.2 B2 at the moment. . . . . bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From justcallmejay at gmail.com Mon Jun 23 13:30:40 2008 From: justcallmejay at gmail.com (JayDub) Date: Mon, 23 Jun 2008 13:30:40 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file Message-ID: <18077780.post@talk.nabble.com> Hi all, I'm having a severe problem with MapServer. It seems to only be searching PARTS of a dbf file. Have a look at my layer. LAYER NAME "AllFaculties" DATA '/home/jolly/web/shps/campus/mit/buildings.shp' TRANSFORM true CLASSITEM 'Name' TYPE polygon GROUP "AllFaculties" METADATA "queryable" "true" "searchfield" "Name" "fields" "Name:name,Category:cat" END # METADATA CLASS TEMPLATE "template.html" END # CLASS END # LAYER Simple and to the point... some how there are records in the dbf file that I can't reach via search. I'm using kamap's search script that basically uses mapscript's queryByAttributes(.....) to get results. Id Category Name 0 Residence/Hall Karma Hall 0 Residence/Hall Terry Hall Above is an extract of my dbf file... Mapserver finds the first record but does not find the 2nd record. And that's generally how it is with my dbf file. It'll find a record here and then not find a couple that follow after, then it's able to find records that follow after. Hope some one can help... coz this project was due 3 fridays ago and my boss is a lil... perturbed (to be MOST diplomatic, and naive) -- View this message in context: http://www.nabble.com/Mapserver-does-partial-search-of-dbf-file-tp18077780p18077780.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Jun 23 13:54:41 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 23 Jun 2008 15:54:41 -0500 Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file In-Reply-To: <18077780.post@talk.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBE3B@s-sp22.pca.state.mn.us> Do the missing features fall outside of the extent defined in the map file? If they are not within the exent, they won't be returned by an item query (at least that is the way that it worked some time ago...) David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of JayDub Sent: Monday, June 23, 2008 3:31 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file Hi all, I'm having a severe problem with MapServer. It seems to only be searching PARTS of a dbf file. Have a look at my layer. LAYER NAME "AllFaculties" DATA '/home/jolly/web/shps/campus/mit/buildings.shp' TRANSFORM true CLASSITEM 'Name' TYPE polygon GROUP "AllFaculties" METADATA "queryable" "true" "searchfield" "Name" "fields" "Name:name,Category:cat" END # METADATA CLASS TEMPLATE "template.html" END # CLASS END # LAYER Simple and to the point... some how there are records in the dbf file that I can't reach via search. I'm using kamap's search script that basically uses mapscript's queryByAttributes(.....) to get results. Id Category Name 0 Residence/Hall Karma Hall 0 Residence/Hall Terry Hall Above is an extract of my dbf file... Mapserver finds the first record but does not find the 2nd record. And that's generally how it is with my dbf file. It'll find a record here and then not find a couple that follow after, then it's able to find records that follow after. Hope some one can help... coz this project was due 3 fridays ago and my boss is a lil... perturbed (to be MOST diplomatic, and naive) -- View this message in context: http://www.nabble.com/Mapserver-does-partial-search-of-dbf-file-tp180777 80p18077780.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 haak at agintegrated.com Mon Jun 23 14:07:29 2008 From: haak at agintegrated.com (osprey44) Date: Mon, 23 Jun 2008 14:07:29 -0700 (PDT) Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer Message-ID: <18078514.post@talk.nabble.com> I have a particular layer in which I cannot seem to display the labels. The shape displays correctly. I have tried multiple columns to use as the label, but all do not show. Below is the specific chunk of the map file: LAYER NAME "field" TYPE POLYGON STATUS ON CONNECTION "user=web password=apacheweb08 dbname=base_dev host=localhost port=5432" CONNECTIONTYPE postgis DATA "field_boundary from (select fb.field_id as field_id, fb.field_id as OID, fb.field_boundary as field_boundary, fb.acres as acres, f.field_name as field_name from field_boundary fb, fields f where fb.field_id=f.field_id) as field_boundary" FILTER "field_id in ('50204')" LABELITEM "field_name" CLASS STYLE OUTLINECOLOR 255 0 0 COLOR -1 -1 -1 WIDTH 3 END LABEL TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 0 0 0 POSITION AUTO END END PROJECTION "init=epsg:4326" END DEBUG ON END http://www.nabble.com/file/p18078514/fieldMap.jpg -- View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18078514.html Sent from the Mapserver - User mailing list archive at Nabble.com. From justcallmejay at gmail.com Mon Jun 23 14:09:47 2008 From: justcallmejay at gmail.com (JayDub) Date: Mon, 23 Jun 2008 14:09:47 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBE3B@s-sp22.pca.state.mn.us> References: <18077780.post@talk.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5021FBE3B@s-sp22.pca.state.mn.us> Message-ID: <18078557.post@talk.nabble.com> Nope, they don't fall outside the extent because they show up on the map. So I'm paRetty sure they don't fall outside the extent. Thanks for the suggestion tho Fawcett, David wrote: > > Do the missing features fall outside of the extent defined in the map > file? If they are not within the exent, they won't be returned by an > item query (at least that is the way that it worked some time ago...) > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of JayDub > Sent: Monday, June 23, 2008 3:31 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file > > > > Hi all, I'm having a severe problem with MapServer. It seems to only be > searching PARTS of a dbf file. Have a look at my layer. > > LAYER > NAME "AllFaculties" > DATA '/home/jolly/web/shps/campus/mit/buildings.shp' > TRANSFORM true > CLASSITEM 'Name' > TYPE polygon > GROUP "AllFaculties" > METADATA > "queryable" "true" > "searchfield" "Name" > "fields" "Name:name,Category:cat" > END # METADATA > CLASS > TEMPLATE "template.html" > END # CLASS > END # LAYER > > > Simple and to the point... some how there are records in the dbf file > that I can't reach via search. I'm using kamap's search script that > basically uses mapscript's queryByAttributes(.....) to get results. > Id Category Name > 0 Residence/Hall Karma Hall > 0 Residence/Hall Terry Hall > Above is an extract of my dbf file... Mapserver finds the first record > but does not find the 2nd record. And that's generally how it is with my > dbf file. It'll find a record here and then not find a couple that > follow after, then it's able to find records that follow after. > Hope some one can help... coz this project was due 3 fridays ago and my > boss is a lil... perturbed (to be MOST diplomatic, and naive) > > > -- > View this message in context: > http://www.nabble.com/Mapserver-does-partial-search-of-dbf-file-tp180777 > 80p18077780.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/Mapserver-does-partial-search-of-dbf-file-tp18077780p18078557.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Jun 23 14:19:13 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Jun 2008 17:19:13 -0400 Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file In-Reply-To: <18077780.post@talk.nabble.com> References: <18077780.post@talk.nabble.com> Message-ID: <44DF99DD-6F90-4C9C-ACF4-8010E61B3671@gatewaygeomatics.com> I would also try ogrinfo to see how GDAL reads your shapefile: ogrinfo buildings.shp buildings -summary - use that to see if the feature count is correct ogrinfo buildings.shp buildings - use that to see the individual records --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 23-Jun-08, at 4:30 PM, JayDub wrote: > > Hi all, I'm having a severe problem with MapServer. It seems to only > be > searching PARTS of a dbf file. Have a look at my layer. > > LAYER > NAME "AllFaculties" > DATA '/home/jolly/web/shps/campus/mit/buildings.shp' > TRANSFORM true > CLASSITEM 'Name' > TYPE polygon > GROUP "AllFaculties" > METADATA > "queryable" "true" > "searchfield" "Name" > "fields" "Name:name,Category:cat" > END # METADATA > CLASS > TEMPLATE "template.html" > END # CLASS > END # LAYER > > > Simple and to the point... some how there are records in the dbf > file that I > can't reach via search. I'm using kamap's search script that > basically uses > mapscript's queryByAttributes(.....) to get results. > Id Category Name > 0 Residence/Hall Karma Hall > 0 Residence/Hall Terry Hall > Above is an extract of my dbf file... Mapserver finds the first > record but > does not find the 2nd record. And that's generally how it is with my > dbf > file. It'll find a record here and then not find a couple that > follow after, > then it's able to find records that follow after. > Hope some one can help... coz this project was due 3 fridays ago and > my boss > is a lil... perturbed (to be MOST diplomatic, and naive) > > > -- > View this message in context: http://www.nabble.com/Mapserver-does-partial-search-of-dbf-file-tp18077780p18077780.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 pramsey at cleverelephant.ca Mon Jun 23 14:27:52 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 23 Jun 2008 14:27:52 -0700 Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <18078514.post@talk.nabble.com> References: <18078514.post@talk.nabble.com> Message-ID: <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> You're restricting your result to field_in of 50204. Does that record have values for the field_name? On Jun 23, 2008, at 2:07 PM, osprey44 wrote: > > I have a particular layer in which I cannot seem to display the > labels. The > shape displays correctly. I have tried multiple columns to use as the > label, but all do not show. Below is the specific chunk of the map > file: > > LAYER > NAME "field" > TYPE POLYGON > STATUS ON > CONNECTION "user=web password=apacheweb08 dbname=base_dev > host=localhost > port=5432" > CONNECTIONTYPE postgis > DATA "field_boundary from (select fb.field_id as field_id, > fb.field_id as > OID, fb.field_boundary as field_boundary, fb.acres as acres, > f.field_name as > field_name from field_boundary fb, fields f where > fb.field_id=f.field_id) as > field_boundary" > FILTER "field_id in ('50204')" > LABELITEM "field_name" > CLASS > STYLE > OUTLINECOLOR 255 0 0 > COLOR -1 -1 -1 > WIDTH 3 > END > LABEL > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS TRUE > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > POSITION AUTO > END > END > PROJECTION > "init=epsg:4326" > END > DEBUG ON > END > http://www.nabble.com/file/p18078514/fieldMap.jpg > -- > View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18078514.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 Ramsey pramsey at cleverelephant.ca +1 250 885 0632 From haak at agintegrated.com Mon Jun 23 14:35:43 2008 From: haak at agintegrated.com (osprey44) Date: Mon, 23 Jun 2008 14:35:43 -0700 (PDT) Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> References: <18078514.post@talk.nabble.com> <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> Message-ID: <18079028.post@talk.nabble.com> Yes, that particular ID should return a name of "Madison". Also, I attempted to use acres and that column also has a value. I have labeled layers that have come from shapefiles in nearly the same manner (minus the postgis connection), and their labels print properly. Paul Ramsey-3 wrote: > > You're restricting your result to field_in of 50204. Does that record > have values for the field_name? > > On Jun 23, 2008, at 2:07 PM, osprey44 wrote: > >> >> I have a particular layer in which I cannot seem to display the >> labels. The >> shape displays correctly. I have tried multiple columns to use as the >> label, but all do not show. Below is the specific chunk of the map >> file: >> >> LAYER >> NAME "field" >> TYPE POLYGON >> STATUS ON >> CONNECTION "user=web password=apacheweb08 dbname=base_dev >> host=localhost >> port=5432" >> CONNECTIONTYPE postgis >> DATA "field_boundary from (select fb.field_id as field_id, >> fb.field_id as >> OID, fb.field_boundary as field_boundary, fb.acres as acres, >> f.field_name as >> field_name from field_boundary fb, fields f where >> fb.field_id=f.field_id) as >> field_boundary" >> FILTER "field_id in ('50204')" >> LABELITEM "field_name" >> CLASS >> STYLE >> OUTLINECOLOR 255 0 0 >> COLOR -1 -1 -1 >> WIDTH 3 >> END >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 10 >> ANTIALIAS TRUE >> COLOR 0 0 0 >> OUTLINECOLOR 0 0 0 >> POSITION AUTO >> END >> END >> PROJECTION >> "init=epsg:4326" >> END >> DEBUG ON >> END >> http://www.nabble.com/file/p18078514/fieldMap.jpg >> -- >> View this message in context: >> http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18078514.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 Ramsey > pramsey at cleverelephant.ca > +1 250 885 0632 > > _______________________________________________ > 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/No-Labels-on-PostGIS-Layer-tp18078514p18079028.html Sent from the Mapserver - User mailing list archive at Nabble.com. From justcallmejay at gmail.com Mon Jun 23 15:36:50 2008 From: justcallmejay at gmail.com (JayDub) Date: Mon, 23 Jun 2008 15:36:50 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file In-Reply-To: <44DF99DD-6F90-4C9C-ACF4-8010E61B3671@gatewaygeomatics.com> References: <18077780.post@talk.nabble.com> <44DF99DD-6F90-4C9C-ACF4-8010E61B3671@gatewaygeomatics.com> Message-ID: <18079939.post@talk.nabble.com> Thanks for that... Hmmm... ALL the records are shown using ogrinfo. I used the "ogrinfo buildings.shp buildings" command along with grep and was able to find all the records I could not find using the queryByAttributes method. What next then? :-( Any other suggestions on why queryByAttributes could be not returning partial results for such a simple layer? Jeff McKenna-3 wrote: > > I would also try ogrinfo to see how GDAL reads your shapefile: > > ogrinfo buildings.shp buildings -summary > > - use that to see if the feature count is correct > > ogrinfo buildings.shp buildings > > - use that to see the individual records > > --- > -- View this message in context: http://www.nabble.com/Mapserver-does-partial-search-of-dbf-file-tp18077780p18079939.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Mon Jun 23 15:49:56 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Jun 2008 18:49:56 -0400 Subject: [MAPSERVER-USERS] Mapserver does partial search of dbf file In-Reply-To: <18079939.post@talk.nabble.com> References: <18077780.post@talk.nabble.com> <44DF99DD-6F90-4C9C-ACF4-8010E61B3671@gatewaygeomatics.com> <18079939.post@talk.nabble.com> Message-ID: <4FC773F3-B1BB-4ACA-B43D-8EDF55BF2062@gatewaygeomatics.com> Next: - use shp2img to produce a map image of the full extents of the map shp2img -m your.map -o test.png -map_debug 3 - if the missing records in your search are displayed on that map image, then you know it is a problem with your application...which in your case is a ka-map search script, and you would then take this problem to the ka-map mailing list --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 23-Jun-08, at 6:36 PM, JayDub wrote: > > Thanks for that... Hmmm... ALL the records are shown using ogrinfo. > I used > the "ogrinfo buildings.shp buildings" command along with grep and > was able > to find all the records I could not find using the queryByAttributes > method. > What next then? :-( > Any other suggestions on why queryByAttributes could be not returning > partial results for such a simple layer? > > > > > Jeff McKenna-3 wrote: >> >> I would also try ogrinfo to see how GDAL reads your shapefile: >> >> ogrinfo buildings.shp buildings -summary >> >> - use that to see if the feature count is correct >> >> ogrinfo buildings.shp buildings >> >> - use that to see the individual records >> >> --- >> > From pramsey at cleverelephant.ca Mon Jun 23 16:28:30 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 23 Jun 2008 16:28:30 -0700 Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <18079028.post@talk.nabble.com> References: <18078514.post@talk.nabble.com> <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> <18079028.post@talk.nabble.com> Message-ID: <30fe546d0806231628l4c58cfdfy4065ed230e8a889c@mail.gmail.com> Work it back to basics. Does it work without the join? There's nothing obviously wrong with your map entry, that I can eyeball. P On Mon, Jun 23, 2008 at 2:35 PM, osprey44 wrote: > > Yes, that particular ID should return a name of "Madison". Also, I attempted > to use acres and that column also has a value. I have labeled layers that > have come from shapefiles in nearly the same manner (minus the postgis > connection), and their labels print properly. > > > > > Paul Ramsey-3 wrote: >> >> You're restricting your result to field_in of 50204. Does that record >> have values for the field_name? >> >> On Jun 23, 2008, at 2:07 PM, osprey44 wrote: >> >>> >>> I have a particular layer in which I cannot seem to display the >>> labels. The >>> shape displays correctly. I have tried multiple columns to use as the >>> label, but all do not show. Below is the specific chunk of the map >>> file: >>> >>> LAYER >>> NAME "field" >>> TYPE POLYGON >>> STATUS ON >>> CONNECTION "user=web password=apacheweb08 dbname=base_dev >>> host=localhost >>> port=5432" >>> CONNECTIONTYPE postgis >>> DATA "field_boundary from (select fb.field_id as field_id, >>> fb.field_id as >>> OID, fb.field_boundary as field_boundary, fb.acres as acres, >>> f.field_name as >>> field_name from field_boundary fb, fields f where >>> fb.field_id=f.field_id) as >>> field_boundary" >>> FILTER "field_id in ('50204')" >>> LABELITEM "field_name" >>> CLASS >>> STYLE >>> OUTLINECOLOR 255 0 0 >>> COLOR -1 -1 -1 >>> WIDTH 3 >>> END >>> LABEL >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 10 >>> ANTIALIAS TRUE >>> COLOR 0 0 0 >>> OUTLINECOLOR 0 0 0 >>> POSITION AUTO >>> END >>> END >>> PROJECTION >>> "init=epsg:4326" >>> END >>> DEBUG ON >>> END >>> http://www.nabble.com/file/p18078514/fieldMap.jpg >>> -- >>> View this message in context: >>> http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18078514.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 Ramsey >> pramsey at cleverelephant.ca >> +1 250 885 0632 >> >> _______________________________________________ >> 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/No-Labels-on-PostGIS-Layer-tp18078514p18079028.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 stewart.nimmo at virtually-here.com Mon Jun 23 18:02:27 2008 From: stewart.nimmo at virtually-here.com (Stewart Nimmo) Date: Mon, 23 Jun 2008 18:02:27 -0700 Subject: [mapserver-users] Changing map center in a template Message-ID: I am working in the limited wml template environment and trying to create panning controls by reassigning the center of the map with 'mapx" and "mapy" variables. However I get error "Requested item could not be loaded (code 502)" when reassigning these variables. Any thoughts on how to change the center of the map view. Regards sfn Stewart Nimmo 604-922-7896 off 604-551-6564 mob stewart.nimmo at virtually-here.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From haak at agintegrated.com Mon Jun 23 18:31:40 2008 From: haak at agintegrated.com (osprey44) Date: Mon, 23 Jun 2008 18:31:40 -0700 (PDT) Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <30fe546d0806231628l4c58cfdfy4065ed230e8a889c@mail.gmail.com> References: <18078514.post@talk.nabble.com> <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> <18079028.post@talk.nabble.com> <30fe546d0806231628l4c58cfdfy4065ed230e8a889c@mail.gmail.com> Message-ID: <18081915.post@talk.nabble.com> Paul, I originally started with just trying to view acres, which lives in field_boundary table which has the geometry. To triple check, I just removed reference to the field table and changed the labelitem to "acres". Still no joy. Is there any special DB setting that is required to return the label query data; similar to what needs to be done to utilize the geometry columns? Chris Work it back to basics. Does it work without the join? There's nothing obviously wrong with your map entry, that I can eyeball. P On Mon, Jun 23, 2008 at 2:35 PM, osprey44 wrote: > > Yes, that particular ID should return a name of "Madison". Also, I > attempted > to use acres and that column also has a value. I have labeled layers that > have come from shapefiles in nearly the same manner (minus the postgis > connection), and their labels print properly. -- View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18081915.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Ying.Zhao1 at cn.flextronics.com Mon Jun 23 20:01:35 2008 From: Ying.Zhao1 at cn.flextronics.com (Zhao Ying (CDU)) Date: Tue, 24 Jun 2008 11:01:35 +0800 Subject: [mapserver-users] php fails on MS4W and Apache In-Reply-To: <6D58FEE2-30AE-400C-94FF-2A7CD2A4BAE9@gatewaygeomatics.com> References: <3E5D24E6E4144A4590AC2B152F72F050044186C1@ASHKGEX2.asia.ad.flextronics.com> <6D58FEE2-30AE-400C-94FF-2A7CD2A4BAE9@gatewaygeomatics.com> Message-ID: <3E5D24E6E4144A4590AC2B152F72F0500444C9C8@ASHKGEX2.asia.ad.flextronics.com> Thank you! I?ve tried, it works quite well. But according to my book, to force Apache to load the CGI version of PHP, user must add the following lines in the Apache config file httpd.conf: AddHandler php-script .php Action php-script /cgi-bin/php Then delete the reference to .php from the AddType line (if it exists), so it looks like this: AddType application/x-httpd-php .html .phtml ? By removing .php from the AddType directive, files with this extension will use the CGI version of PHP even if the environment contains a DSO version. If you don?t remove the reference, then Apache will continue to use the DSO version of PHP to handle documents of type php. ? -- from book My Questions are: 1. Does the procedures described above are required for MS4W? (The book author did the illustration on the Linux version of mapserver, I guess so). 2. That loading the PHP Mapscript module in my PHP script dynamically does work, but does that mean my server has to load this module repeatedly for every web client request? Is there a better solution that apache will load PHP Mapscipt module automatically whenever starting? Jeff Zhao, Chengdu, China ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 2008?6?23? 21:31 To: Mapserver-users Subject: Re: [mapserver-users] php fails on MS4W and Apache You must dynamically load the PHPMapscript module in your PHP script, with MS4W. See the example script in /ms4w/Apache/htdocs/quickmap.php -jeff --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 23-Jun-08, at 5:11 AM, Zhao Ying (CDU) wrote: Greetings, I?m trying to test my PHP MapScript environment on MS4W. Unfortunately, each time I run the following php file on the apache server within MS4W, a same error message is always thrown: -- Error Message: Fatal error: Call to undefined function ms_newMapObj() in C:\ms4w\Apache\htdocs\phpms_hello.php on line 7 -- PHP file: phpms_hello.php This example is from chapter8, book however, according to the author, this example is expected to be run a Linux version mapserver (I guess so), so I?m under the assumption that all configuration procedures described in this book before running this example won?t work for MS4W. draw(); $image->saveImage("/ms4w/tmp/ms_tmp/".$image_name); ?> PHP MapScript Hello World
Did I miss some configurations for MS4W to work with php or something? Thanks!!! Jeff. Chengdu, China 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 jmckenna at gatewaygeomatics.com Mon Jun 23 20:15:15 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Jun 2008 23:15:15 -0400 Subject: [mapserver-users] php fails on MS4W and Apache In-Reply-To: <3E5D24E6E4144A4590AC2B152F72F0500444C9C8@ASHKGEX2.asia.ad.flextronics.com> References: <3E5D24E6E4144A4590AC2B152F72F050044186C1@ASHKGEX2.asia.ad.flextronics.com> <6D58FEE2-30AE-400C-94FF-2A7CD2A4BAE9@gatewaygeomatics.com> <3E5D24E6E4144A4590AC2B152F72F0500444C9C8@ASHKGEX2.asia.ad.flextronics.com> Message-ID: <87948020-008F-48AF-8B6B-EFEA97406AEE@gatewaygeomatics.com> On 23-Jun-08, at 11:01 PM, Zhao Ying (CDU) wrote: > > Thank you! I?ve tried, it works quite well. > > But according to my book, to force Apache to load the CGI version of > PHP, user must add the following lines in the Apache config file > httpd.conf: > > AddHandler php-script .php > Action php-script /cgi-bin/php > > Then delete the reference to .php from the AddType line (if it > exists), so it looks like this: > AddType application/x-httpd-php .html .phtml > > ? > By removing .php from the AddType directive, files with this > extension will use the CGI version > of PHP even if the environment contains a DSO version. If you don?t > remove the reference, > then Apache will continue to use the DSO version of PHP to handle > documents of type php. ? > > -- from book > > > My Questions are: > > 1. Does the procedures described above are required for MS4W? > (The book author > did the illustration on the Linux version of mapserver, I guess so). not required, as MS4W's apache is already configured for PHP use. > > 2. That loading the PHP Mapscript module in my PHP script > dynamically does work, > but does that mean my server has to load this module repeatedly for > every web client > request? Is there a better solution that apache will load PHP > Mapscipt module automatically > whenever starting? > To load the module automatically: - add the following line around line#650 of /Apache/cgi-bin/php.ini: extension=php_mapscript.dll - then restart apache --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Mon Jun 23 20:31:48 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 23 Jun 2008 20:31:48 -0700 Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <18081915.post@talk.nabble.com> References: <18078514.post@talk.nabble.com> <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> <18079028.post@talk.nabble.com> <30fe546d0806231628l4c58cfdfy4065ed230e8a889c@mail.gmail.com> <18081915.post@talk.nabble.com> Message-ID: <30fe546d0806232031y485c17edlc3990cb1771840cd@mail.gmail.com> There's really nothing special going on. Send your map file and a table dump and I will attempt to duplicate, but frankly... if it was a general problem we'd have heard of it by now. P. On Mon, Jun 23, 2008 at 6:31 PM, osprey44 wrote: > > Paul, > > I originally started with just trying to view acres, which lives in > field_boundary table which has the geometry. To triple check, I just > removed reference to the field table and changed the labelitem to "acres". > Still no joy. Is there any special DB setting that is required to return > the label query data; similar to what needs to be done to utilize the > geometry columns? > > > Chris > > > > Work it back to basics. Does it work without the join? There's nothing > obviously wrong with your map entry, that I can eyeball. > > P > > On Mon, Jun 23, 2008 at 2:35 PM, osprey44 wrote: >> >> Yes, that particular ID should return a name of "Madison". Also, I >> attempted >> to use acres and that column also has a value. I have labeled layers that >> have come from shapefiles in nearly the same manner (minus the postgis >> connection), and their labels print properly. > -- > View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18081915.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 prasad.b at iworktech.com Mon Jun 23 21:09:21 2008 From: prasad.b at iworktech.com (Prasad B) Date: Tue, 24 Jun 2008 09:39:21 +0530 Subject: [mapserver-users] Help To Add Layer on MAP Dynamically..... In-Reply-To: <592ab8ae0806230636n2a60b2e9x60fabec6a4bfca04@mail.gmail.com> References: <592ab8ae0806230636n2a60b2e9x60fabec6a4bfca04@mail.gmail.com> Message-ID: <592ab8ae0806232109s36210aa5icaf5fac39539bf69@mail.gmail.com> Respt Sir/Madam , i m performing one MAP SERVER Application in which i want to Add Points on my MAP Place Where user Click, i m doing application in C# , want to add layer Dynamically , so how i can add layer . Please Help Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Mon Jun 23 22:37:03 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 24 Jun 2008 07:37:03 +0200 Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <30fe546d0806232031y485c17edlc3990cb1771840cd@mail.gmail.com> References: <18078514.post@talk.nabble.com> <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> <18079028.post@talk.nabble.com> <30fe546d0806231628l4c58cfdfy4065ed230e8a889c@mail.gmail.com> <18081915.post@talk.nabble.com> <30fe546d0806232031y485c17edlc3990cb1771840cd@mail.gmail.com> Message-ID: <486087FF.8090508@neogeo-online.net> just an idea before coffee... DATA "field_boundary from (select fb.field_id as field_id, >> fb.field_id as >> OID, fb.field_boundary as field_boundary, fb.acres as acres, >> f.field_name as >> field_name from field_boundary fb, fields f where >> fb.field_id=f.field_id) as >> field_boundary" doesn't it make a lot of 'field_boundary' for different things (table, geo field...) what happens if you write: DATA "the_geom from (select fb.field_id as field_id, fb.field_id as OID, fb.field_boundary as the_geom fb.acres as acres, f.field_name as field_name from field_boundary fb, fields f where fb.field_id=f.field_id) as myjoin " Guillaume Paul Ramsey a ?crit : > There's really nothing special going on. Send your map file and a > table dump and I will attempt to duplicate, but frankly... if it was a > general problem we'd have heard of it by now. > > P. > > On Mon, Jun 23, 2008 at 6:31 PM, osprey44 wrote: >> Paul, >> >> I originally started with just trying to view acres, which lives in >> field_boundary table which has the geometry. To triple check, I just >> removed reference to the field table and changed the labelitem to "acres". >> Still no joy. Is there any special DB setting that is required to return >> the label query data; similar to what needs to be done to utilize the >> geometry columns? >> >> >> Chris >> >> >> >> Work it back to basics. Does it work without the join? There's nothing >> obviously wrong with your map entry, that I can eyeball. >> >> P >> >> On Mon, Jun 23, 2008 at 2:35 PM, osprey44 wrote: >>> Yes, that particular ID should return a name of "Madison". Also, I >>> attempted >>> to use acres and that column also has a value. I have labeled layers that >>> have come from shapefiles in nearly the same manner (minus the postgis >>> connection), and their labels print properly. >> -- >> View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18081915.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 > From Laurent.Saez at developpement-durable.gouv.fr Mon Jun 23 22:42:58 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Tue, 24 Jun 2008 07:42:58 +0200 Subject: [mapserver-users] VRT into a symbol definition Message-ID: <48608962.8040106@developpement-durable.gouv.fr> Hi list, I've tried to use VRT files into a symbol definition, but it doesn't work. It will be fine. I've to reproduce MapInfo? hatches. MapInfo? uses raster to make hatches. I've recovered all the raster. But I need to reproduce all front colors and all background colors. So, I've tried to make VRT files instead of generating all real raster files. It seems to be not possible... So I've had to make thousands real raster files. I've written few lines code to make all vrt files and I've used gdal_translate to make all real raster files. Is there a solution to use VRT file into a symbol definition ? Thanks for help From dario.depascalis at gmail.com Tue Jun 24 04:22:19 2008 From: dario.depascalis at gmail.com (dario de pascalis) Date: Tue, 24 Jun 2008 13:22:19 +0200 Subject: [mapserver-users] Style roads Message-ID: <49d4375b0806240422l6c9ef60h63f3da95ca573f2e@mail.gmail.com> Hi all, It's very important for me!!! I have a shape file of roads my city. I draw it, and I have added different control (zoom, pan, and reference). But I'd like to arrange an about googlemap style. I'd like a style that when I zoom the map, the width road increase and the name street appear. How I do it? -- Dario De Pascalis -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.hulbert at linquest.com Tue Jun 24 04:39:13 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Tue, 24 Jun 2008 07:39:13 -0400 Subject: [mapserver-users] Help To Add Layer on MAP Dynamically..... In-Reply-To: <592ab8ae0806232109s36210aa5icaf5fac39539bf69@mail.gmail.com> References: <592ab8ae0806230636n2a60b2e9x60fabec6a4bfca04@mail.gmail.com> <592ab8ae0806232109s36210aa5icaf5fac39539bf69@mail.gmail.com> Message-ID: <002401c8d5ee$eed52d20$cc7f8760$@hulbert@linquest.com> Using MapServer 5.0.2 & C# with VS2005, I use some simple factory methods I built. /// Factory method to create a MapServer layer object of the specified type and Id /// NOTE: the layer is visible/on by default with an 100% opacity and a default lat/long "projection" /// the MaperServer mapObj for which this new layer is to be created /// the MapServer layer type enumeration specifying the type of MapServer layerObj to create /// the MapServer unique layer Id string to use for the layer's name /// the Proj.4 projection string /// a MapServer layerObj public static layerObj CreateDefaultLayer(mapObj baseMap, MS_LAYER_TYPE layerType, string uniqueLayerId, string proj4projectionString) { System.Diagnostics.Debug.Assert(baseMap != null, MAPNOTINSTANTIATED); layerObj layer = new layerObj(baseMap); // set the layer type layer.type = layerType; // set a unique id for this layer layer.name = uniqueLayerId; // set the default map projection for this layer layer.setProjection(proj4projectionString); // set initial layer visibility layer.status = mapscript.MS_ON; // visible by default // set layer non-transparent layer.opacity = 100; return layer; } /// Factory method to create a MapServer class object of the specified parent layer /// NOTE: the class name is of the form: "Class of [parent layer name]" /// the MapServer layerObj into which this class is to be inserted /// a MapServer classObj public static classObj CreateDefaultClass(layerObj parentLayer) { System.Diagnostics.Debug.Assert(parentLayer != null, "The parent layer for this class has not been instantiated!"); // create a class of this layer to specify how this layer is to be drawn classObj layerClass = new classObj(parentLayer); // set a unique name for this class layerClass.name = "Class of " + parentLayer.name; return layerClass; } /// Factory method to create a MapServer style object /// the MapServer classObj into which this style is to be inserted /// a MapServer styleObj public static styleObj CreateDefaultStyle(classObj parentClass) { System.Diagnostics.Debug.Assert(parentClass != null, "The parent class cannot be null."); styleObj style = new styleObj(parentClass); style.color.setRGB(0, 0, 0); // set the color to use when drawing this style (black) style.opacity = 100; // set the style to non transparent style.symbol = 0; // use the default symbol when drawing this layer style.antialias = (int)mapscript.MS_FALSE; // do not antialias cartoline symbols return style; } Then in my InsertShapeFileLayer() method, I do the following: layerObj layer = MapServerFactory.CreateDefaultLayer(m_baseMap, MS_LAYER_TYPE.MS_LAYER_POLYGON, uniqueLayerId, LATLONPROJECTIONSTRINGBASE); // set the filename for the new layer's shape file layer.data = fqShapeFilename; // a fully qualified shape path and filename // set all layers initially on layer.status = (int)mapscript.MS_ON; // create a class of this layer to specify how this layer is to be drawn classObj layerClass = MapServerFactory.CreateDefaultClass(layer); // create a style for this class to use when drawing this layer styleObj classStyle = MapServerFactory.CreateDefaultStyle(layerClass); // set the default pixel width of the style's pen classStyle.size = 1; where: /// constant fundamental Proj.4 projection string for a latlong "projection" private const string LATLONPROJECTIONSTRINGBASE = "+proj=latlong +ellps=WGS84 +datum=WGS84 +over"; IHTH, Brian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Prasad B Sent: Tuesday, June 24, 2008 12:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Help To Add Layer on MAP Dynamically..... Respt Sir/Madam , i m performing one MAP SERVER Application in which i want to Add Points on my MAP Place Where user Click, i m doing application in C# , want to add layer Dynamically , so how i can add layer . Please Help Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kusum at infobase.in Tue Jun 24 04:51:11 2008 From: kusum at infobase.in (Kusum) Date: Tue, 24 Jun 2008 17:21:11 +0530 Subject: [mapserver-users] Style roads References: <49d4375b0806240422l6c9ef60h63f3da95ca573f2e@mail.gmail.com> Message-ID: <9349F0F932714B9D94E5A3B95C3EEE42@kusum> on different scales define different layers with different styles of roads wherein u can mention different widths of roads and also on higher scales u can keep labels off and as in layers of lower scales u can have labels on USE MAXSCALE,MINSCALE for layer scales and LABELMAXSCALE,LABELMINSCALE for label scales From: dario de pascalis Sent: Tuesday, June 24, 2008 4:52 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Style roads Hi all, It's very important for me!!! I have a shape file of roads my city. I draw it, and I have added different control (zoom, pan, and reference). But I'd like to arrange an about googlemap style. I'd like a style that when I zoom the map, the width road increase and the name street appear. How I do it? -- Dario De Pascalis -------------------------------------------------------------------------------- _______________________________________________ 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 valerio.vianello at yahoo.it Tue Jun 24 04:57:38 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Tue, 24 Jun 2008 11:57:38 +0000 (GMT) Subject: [mapserver-users] shapefile with different extension Message-ID: <808476.70617.qm@web27308.mail.ukl.yahoo.com> Hi guys, someone knows how to change the coordinates into a shapefile? I have two layers that take the data from two shapefile. the problem is the extension of the two shapefile is quite different so in the resulting map I am able to see only one layer according to the value I put in the EXTENT field into the map file. Using Udig I see the extent of these layer is quite different. How I can solve this problem ? best regards 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 pal.kristensen at statkart.no Tue Jun 24 05:45:09 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 24 Jun 2008 05:45:09 -0700 (PDT) Subject: [MAPSERVER-USERS] 5.2 b2 - WMS GetMap bug In-Reply-To: <485993860200008F00018CC2@co5.dnr.state.mn.us> References: <485993860200008F00018CC2@co5.dnr.state.mn.us> Message-ID: <18090194.post@talk.nabble.com> Hi! I have done some testing on the WMS server support, and there is a bug regarding GetMap requests. MapServer throes a error message if the request lacks the service=wms parameter. This is not right because regarding to the WMS specification, service isn't a mandatory parameter to the GetMap request. I know that this issue has been discussed before, and I thought the bug was fixed a while ago. Regards, P?l kristensen Steve Lime wrote: > > Hi folks: MapServer 5.2 Beta 2 has just been released. The source package > is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.2-beta1 can be found at the end this > message. This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 > applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is now to have 3 beta releases, 1 release candidate with a final > release the first week in July. > More details can be found in the 5.2 release plan at: > > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > > Version 5.2.0-beta2 (2008-06-18): > --------------------------------- > > - Fixed possible buffer overrun with Oracle Spatial driver (#2572) > > - mapogcsos.c: support srsName in GetObservation (#2414) > > - Filter Encoding: Modify DWithin definition (#2564) > > - Added webObj legendformat and browseformat mapping in PHP MapScript > (#2309) > > - Removed static buffer size limit in msIO_*printf() functions (#2214) > > - Fixed libiconv detection in configure for OSX 10.5 64 bit (#2396) > > - mapstring.c: possible buffer overflow in msGetPath (#2649) > > - maputil.c: Correct expression evaluation with text containing > apostrophes (#2641) > > - mapwfs.c: Possibly generate an error message when applying filter > encoding (#2444) > > - Added MS_LABEL_BINDING constants for SWIG MapScript (#2643) > > - mapogcsos.c: fix POST support (#2379) > > - maplibxml2.c: helper functions XML POST fix (#2379) > > - mapwfs.c: fix segfault when srsName is not passed on BBOX Filter (#2644) > > - mapwfs.c: do not return error for empty query results (#2444) > > - Remove C++-style comments and most other warnings thrown by -pedantic > (#2598) > > - mapwfs.c/mapwfs11.c: set GML MIME type correctly > > - mapogcsos.c: advertise supported SRS list via > MAP.WEB.METADATA.sos_srs (#2414) > > - mapwfs.c: set layer extent to map extent for default > GetFeature requests with no spatial predicates (#1287) > _______________________________________________ > 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/MapServer-5.2-Beta-2-Available-tp17996897p18090194.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at ec.gc.ca Tue Jun 24 05:47:10 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 24 Jun 2008 08:47:10 -0400 Subject: [MAPSERVER-USERS] 5.2 b2 - WMS GetMap bug References: <485993860200008F00018CC2@co5.dnr.state.mn.us> <18090194.post@talk.nabble.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC230@ecburexch1.ontario.int.ec.gc.ca> FYI there is an open ticket against this http://trac.osgeo.org/mapserver/ticket/2569 ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of P?l Kristensen Sent: Tue 24-Jun-08 08:45 To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] 5.2 b2 - WMS GetMap bug Hi! I have done some testing on the WMS server support, and there is a bug regarding GetMap requests. MapServer throes a error message if the request lacks the service=wms parameter. This is not right because regarding to the WMS specification, service isn't a mandatory parameter to the GetMap request. I know that this issue has been discussed before, and I thought the bug was fixed a while ago. Regards, P?l kristensen Steve Lime wrote: > > Hi folks: MapServer 5.2 Beta 2 has just been released. The source package > is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.2-beta1 can be found at the end this > message. This is a significant release so > we need your help in testing. 5.2 should compatible with any 5.0 > applications/mapfiles so it should be > relatively easy for folks to test. Please let us know how it goes! > > The plan is now to have 3 beta releases, 1 release candidate with a final > release the first week in July. > More details can be found in the 5.2 release plan at: > > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > Steve > > Version 5.2.0-beta2 (2008-06-18): > --------------------------------- > > - Fixed possible buffer overrun with Oracle Spatial driver (#2572) > > - mapogcsos.c: support srsName in GetObservation (#2414) > > - Filter Encoding: Modify DWithin definition (#2564) > > - Added webObj legendformat and browseformat mapping in PHP MapScript > (#2309) > > - Removed static buffer size limit in msIO_*printf() functions (#2214) > > - Fixed libiconv detection in configure for OSX 10.5 64 bit (#2396) > > - mapstring.c: possible buffer overflow in msGetPath (#2649) > > - maputil.c: Correct expression evaluation with text containing > apostrophes (#2641) > > - mapwfs.c: Possibly generate an error message when applying filter > encoding (#2444) > > - Added MS_LABEL_BINDING constants for SWIG MapScript (#2643) > > - mapogcsos.c: fix POST support (#2379) > > - maplibxml2.c: helper functions XML POST fix (#2379) > > - mapwfs.c: fix segfault when srsName is not passed on BBOX Filter (#2644) > > - mapwfs.c: do not return error for empty query results (#2444) > > - Remove C++-style comments and most other warnings thrown by -pedantic > (#2598) > > - mapwfs.c/mapwfs11.c: set GML MIME type correctly > > - mapogcsos.c: advertise supported SRS list via > MAP.WEB.METADATA.sos_srs (#2414) > > - mapwfs.c: set layer extent to map extent for default > GetFeature requests with no spatial predicates (#1287) > _______________________________________________ > 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/MapServer-5.2-Beta-2-Available-tp17996897p18090194.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 jaframe at net-yan.com Tue Jun 24 06:12:05 2008 From: jaframe at net-yan.com (Tony Frame) Date: Tue, 24 Jun 2008 21:12:05 +0800 Subject: [mapserver-users] MapServer 5.2 Beta 2 Available In-Reply-To: <485CE2980200008F00018E18@co5.dnr.state.mn.us> References: <485CE2980200008F00018E18@co5.dnr.state.mn.us> Message-ID: <1214313125.13004.4.camel@linux01> On Sat, 2008-06-21 at 11:14 -0500, Steve Lime wrote: > Tony/all: This has been fixed in the main trunk. I had mucked up parameter order in calls > to a generalized image generation function. This effectively broke mode=BROWSE applications. > Testing of other functions in beta 2 would still be helpful! Beta3 will be out on Wed. > > Appreciate the report! > > Steve Steve, Rev 7736 checked out from the svn repository works fine for me. Thanks Tony From warmerdam at pobox.com Tue Jun 24 07:20:35 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 24 Jun 2008 10:20:35 -0400 Subject: [mapserver-users] VRT into a symbol definition In-Reply-To: <48608962.8040106@developpement-durable.gouv.fr> References: <48608962.8040106@developpement-durable.gouv.fr> Message-ID: <486102B3.10809@pobox.com> SAEZ Laurent - CETE M?diterr./DI/ETER wrote: > Hi list, > > I've tried to use VRT files into a symbol definition, but it doesn't > work. It will be fine. > I've to reproduce MapInfo? hatches. MapInfo? uses raster to make > hatches. I've recovered all the raster. But I need to reproduce all > front colors and all background colors. > So, I've tried to make VRT files instead of generating all real raster > files. It seems to be not possible... > So I've had to make thousands real raster files. I've written few lines > code to make all vrt files and I've used gdal_translate to make all real > raster files. > Is there a solution to use VRT file into a symbol definition ? Laurent, I believe the raster symbols are directly loaded by GD and so only GD supported raster formats work - and this does not include VRT. So, I think your approach (to finally turn things into real raster files) is the right one. I would caution you that in tests a few weeks ago I found that referencing raster symbols in a symbol library for MapServer results in them all being loaded when the symbols are scanned and this can be fairly expensive. In the test situation it was adding on the order of 100ms to mapserver execution time. If you run into a similar problem let me know, and perhaps we can pursue just loading the raster symbol files when they are actually used. 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 haak at agintegrated.com Tue Jun 24 08:00:48 2008 From: haak at agintegrated.com (osprey44) Date: Tue, 24 Jun 2008 08:00:48 -0700 (PDT) Subject: [MAPSERVER-USERS] No Labels on PostGIS Layer In-Reply-To: <30fe546d0806232031y485c17edlc3990cb1771840cd@mail.gmail.com> References: <18078514.post@talk.nabble.com> <9F7E469E-EA69-45C7-8F42-EECD72614462@cleverelephant.ca> <18079028.post@talk.nabble.com> <30fe546d0806231628l4c58cfdfy4065ed230e8a889c@mail.gmail.com> <18081915.post@talk.nabble.com> <30fe546d0806232031y485c17edlc3990cb1771840cd@mail.gmail.com> Message-ID: <18092980.post@talk.nabble.com> I'm attaching a zip file with the two tables and the map file. I trimmed the table dumps and I have not included the alterations to the geometry_columns table as you might name the tables differently. As per another post this morning, I changed some of the names to make the procedure a little more clear. http://www.nabble.com/file/p18092980/Mapserver-Label-Display.zip Mapserver-Label-Display.zip Chris Paul Ramsey-3 wrote: > > There's really nothing special going on. Send your map file and a > table dump and I will attempt to duplicate, but frankly... if it was a > general problem we'd have heard of it by now. > > P. > -- View this message in context: http://www.nabble.com/No-Labels-on-PostGIS-Layer-tp18078514p18092980.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stewart.nimmo at virtually-here.com Tue Jun 24 10:18:47 2008 From: stewart.nimmo at virtually-here.com (Stewart Nimmo) Date: Tue, 24 Jun 2008 10:18:47 -0700 Subject: [mapserver-users] FW: Changing map center in a template - solved Message-ID: Problem solved. Stewart -----Original Message----- From: Stewart Nimmo [mailto:stewart.nimmo at virtually-here.com] Sent: June 23, 2008 6:02 PM To: mapserver-users at lists.osgeo.org Subject: Changing map center in a template I am working in the limited wml template environment and trying to create panning controls by reassigning the center of the map with 'mapx" and "mapy" variables. However I get error "Requested item could not be loaded (code 502)" when reassigning these variables. Any thoughts on how to change the center of the map view. Regards sfn Stewart Nimmo 604-922-7896 off 604-551-6564 mob stewart.nimmo at virtually-here.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alim.karim at gmail.com Tue Jun 24 11:45:05 2008 From: alim.karim at gmail.com (alim karim) Date: Tue, 24 Jun 2008 11:45:05 -0700 Subject: [mapserver-users] php/mapscript - Call to undefined method ms_layer_obj::set() Message-ID: hello all. we just upgraded our mapserver installation to mapserver-5.0.3 (current stable i believe). we're running on a gentoo machine with apache 2.2.9 and php 5.2.6RC4 it seems that some old code that uses mapscript has stopped working. specifically: dl('php_mapscript.so'); ... $map = ms_newMapObj("some_mapfile.map"); $layer = ms_newLayerObj($map); $layer->set("name", "layer1"); .... throws the following error: Fatal error: Call to undefined method ms_layer_obj::set() has anyone else experienced this or does anyone have any suggestions on how to fix it? thanks in advance. ak -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Tue Jun 24 11:57:05 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 24 Jun 2008 11:57:05 -0700 (PDT) Subject: [mapserver-users] mapserver/postgis/WFS help In-Reply-To: <845AADAC1106E44996327D62097E4C6B010567D2@et.ad.sdsc.edu> Message-ID: <111503.30004.qm@web33206.mail.mud.yahoo.com> Hi, I'm looking at using mapserver as a WFS server as well as WMS. We don't need WFS-T (yet) & the mapserver implementation seems fine for our needs. I've been asked to serve a 160Mb shape file (over a 10mb link at best - yes, I know.... but there are good reasons) To make this more workable, performance wise, I can load the shapefile into PostGIS & use a spatial index, as well as set up a group in the mapfile with scale/zoom dependent layers, selecting mixtures of data subsets & simplified line features as appropriate. I'm reasonably familiar with this for WMS, but it's my first foray into WFS. I see in the OGC WFS spec there is the option to pass coords for upper/lower corners in the GetFeatures request, which suggests setting extents is possible, I guess it is up to the client implementation (ESRI in this case) to actually use this capability. So, a couple of questions (assuming the WFS request includes the upper/lower corners - map extent ): For WFS layers, will mapserver utilise the spatial index to select/send only features within the current map extent? Is the zoom/scale used to turn layers off/on (so the user can select one group & the mapfile will determine which "version" of the data gets sent) applied to WFS requests as it is for CGI & WMS requests? Thanks, Brent From dl_svlk at yahoo.co.in Wed Jun 25 01:52:15 2008 From: dl_svlk at yahoo.co.in (piya prachi) Date: Wed, 25 Jun 2008 09:52:15 +0100 (BST) Subject: [mapserver-users] hi Message-ID: <790157.62648.qm@web94003.mail.in2.yahoo.com> hi, how to do rendering of mapserver in c# with different colors . --------------------------------- From Chandigarh to Chennai - find friends all over India. Click here. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Laurent.Saez at developpement-durable.gouv.fr Wed Jun 25 02:30:52 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Wed, 25 Jun 2008 11:30:52 +0200 Subject: [mapserver-users] Expression encoding must be in the same encoding than the data Message-ID: <4862104C.9090905@developpement-durable.gouv.fr> Hi list, Encoding in expression is not very simple... I have : * mapserver 4.99, * a mapfile utf-8 encoded, * a mapinfo file create on windows (encoding cp1252), * one class using a field which contain this value : "D?partementale". If I write in the mapfile the following expression : ... CLASS NAME "D?partementale" EXPRESSION "D?partementale" ... This class is not in the raster returned by the WMS/GetMap request. To obtain this class I have to encode the string expression in the same encoding than the data (mapinfo tab) : CLASS NAME "D?partementale" EXPRESSION "D?partementale" So it's strange to encode a string in cp1252 (or iso-8859-1) in a file encoding in utf-8. Is there a way to tell mapserver that my layer is cp1252 encoded ? Thanks for help -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Jun 25 04:09:43 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 25 Jun 2008 13:09:43 +0200 Subject: [mapserver-users] Expression encoding must be in the same encoding than the data In-Reply-To: <4862104C.9090905@developpement-durable.gouv.fr> References: <4862104C.9090905@developpement-durable.gouv.fr> Message-ID: Hi, It seem you should have libiconv compiled in, and specify the encoding in the label definitions, like: LABEL ... ENCODING ISO-8859-1 END Best regards, Tamas 2008/6/25 "SAEZ Laurent - CETE M?diterr./DI/ETER" : > Hi list, > > Encoding in expression is not very simple... > I have : > > mapserver 4.99, > a mapfile utf-8 encoded, > a mapinfo file create on windows (encoding cp1252), > one class using a field which contain this value : "D?partementale". > > If I write in the mapfile the following expression : > ... > CLASS > NAME "D?partementale" > EXPRESSION "D?partementale" > ... > > This class is not in the raster returned by the WMS/GetMap request. > To obtain this class I have to encode the string expression in the same > encoding than the data (mapinfo tab) : > > CLASS > NAME "D?partementale" > EXPRESSION "D?partementale" > > So it's strange to encode a string in cp1252 (or iso-8859-1) in a file > encoding in utf-8. > > Is there a way to tell mapserver that my layer is cp1252 encoded ? > > Thanks for help > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Wed Jun 25 04:16:29 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 25 Jun 2008 13:16:29 +0200 Subject: [mapserver-users] hi In-Reply-To: <790157.62648.qm@web94003.mail.in2.yahoo.com> References: <790157.62648.qm@web94003.mail.in2.yahoo.com> Message-ID: Hi, What do you mean by rendering with different colors? There are a number of properties accept color information in mapscript, like styleObj.color, styleObj.backgroundcolor, styleObj.outlinecolor for example. Best regards, Tamas 2008/6/25 piya prachi : > hi, > how to do rendering of mapserver in c# with different colors . > > ________________________________ > From Chandigarh to Chennai - find friends all over India. Click here. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Laurent.Saez at developpement-durable.gouv.fr Wed Jun 25 04:51:01 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Wed, 25 Jun 2008 13:51:01 +0200 Subject: [mapserver-users] Expression encoding must be in the same encoding than the data In-Reply-To: References: <4862104C.9090905@developpement-durable.gouv.fr> Message-ID: <48623125.8020008@developpement-durable.gouv.fr> Thank you, But my problem is not concerning labels but the raster with polylines. I'm aware that there is a solution for labels. I'm interestring with the solution for the geometry returned by my classification. Best regards Laurent Le 25/06/2008 13:09, > Tamas Szekeres (par Internet) a ?crit : > Hi, > > It seem you should have libiconv compiled in, and specify the encoding > in the label definitions, like: > > LABEL > ... > ENCODING ISO-8859-1 > END > > > Best regards, > > Tamas > > > > 2008/6/25 "SAEZ Laurent - CETE M?diterr./DI/ETER" > : > >> Hi list, >> >> Encoding in expression is not very simple... >> I have : >> >> mapserver 4.99, >> a mapfile utf-8 encoded, >> a mapinfo file create on windows (encoding cp1252), >> one class using a field which contain this value : "D?partementale". >> >> If I write in the mapfile the following expression : >> ... >> CLASS >> NAME "D?partementale" >> EXPRESSION "D?partementale" >> ... >> >> This class is not in the raster returned by the WMS/GetMap request. >> To obtain this class I have to encode the string expression in the same >> encoding than the data (mapinfo tab) : >> >> CLASS >> NAME "D?partementale" >> EXPRESSION "D?partementale" >> >> So it's strange to encode a string in cp1252 (or iso-8859-1) in a file >> encoding in utf-8. >> >> Is there a way to tell mapserver that my layer is cp1252 encoded ? >> >> Thanks for help >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> From Laurent.Saez at developpement-durable.gouv.fr Wed Jun 25 05:10:16 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Wed, 25 Jun 2008 14:10:16 +0200 Subject: [mapserver-users] GetFeatureInfo XML result is not encoded at all Message-ID: <486235A8.6090204@developpement-durable.gouv.fr> Hi list, I have : * mapserver 4.99, * a mapfile utf-8 encoded, * a mapinfo file create on windows (encoding cp1252). Extract of my mapfile (utf-8 encoded) : "... METADATA (of the map block) ... WMS_ENCODING "UTF-8" END ... METADATA (of my layer) WMS_TITLE "TRONCON_ROUTE par Classement_Administratif_Route" WMS_EXTENT "73114.958418 1622638.022606 1197702.049962 2676196.041411" gml_include_items "Id_Route120,Vocation,Nombre_Chaussees,Nombre_Voies,Ouverture,Acces,Reseau_Vert,Sens,Reseau_Europeen,Numero_Route,Classement_Administratif_Route,Longueur_Troncon" gml_Nombre_Chaussees_alias "Nombre_Chauss?es" END ...." I have to make WMS/GetFeatureInfo requests (with INFO_FORMAT=application/vnd.ogc.gml). I've made several tests and it seems that : * WMS_ENCODING doens't encode anything. It just puts the right header of the XML returned (example : ) * the XML tags name are putted as they're coded in the mapfile (example : 1 chauss?e), * the XML tags values are putted as they're coded in the data source (example : see above). So, if I change MWS_ENCODING to ISO-8859-1 (in my mapfile UTF-8 encoded) the only thing that changes is the XML header : The tags names and values are not encoded in ISO-8859-1. They're like I've explain above. If I try to read my ISO-8859-1 GetFeatureInfo XML with FireFox, it warns that the XML is not well formed (in my case at the line : 2 chauss?es). NB : I've tried with GML_ENCODING with the same results. If I want all working right I have to : 1. encode my mapfile into the same encoding than my data (it isn't very easy because I've mapinfo files in cp1252 and PostGIS data in utf-8), 2. use WMS_ENCODING with ISO-8859-1 value (that is the default value). I wonder if I have all understood ! I would like that someone explains to me what I have not understood and/or what I'm doing wrong. Thanks for help -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.foi at unimi.it Wed Jun 25 06:46:00 2008 From: marco.foi at unimi.it (Marco Foi) Date: Wed, 25 Jun 2008 15:46:00 +0200 Subject: [mapserver-users] MapScript: HOW to get query result in NEW image Message-ID: <200806251346.m5PDk9EZ032365@rs17.serv.uniurb.it> Hi all! I need to let the user queryByPoint (click) on a "mainmap" and get the result displayed on a second image WITHOUT influencing the "mainmap". I tryed but the when i use the drawQuery() method it seems that also the "mainmap" is affected: it gets zoomed to the center of the feature (poligon) queryed. At the end the only difference between the two maps is that the image result of the query has the feature HILITED while the mainmap not. How can I avoid the problem? Marco Foi Dip. di Scienze della Terra "A.Desio" Sezione di Geologia e Paleontologia http://www.gp.terra.unimi.it Universit? degli Studi di Milano Via.Luigi Mangiagalli n.34 Cap.20133 Milano Laboratorio Informatico - Tel. 02- 503 15 503 E-mail marco.foi at unimi.it From takubo at saruga-tondara.net Wed Jun 25 09:21:03 2008 From: takubo at saruga-tondara.net (Akio Takubo) Date: Thu, 26 Jun 2008 01:21:03 +0900 Subject: [mapserver-users] Expression encoding must be in the same encoding than the data In-Reply-To: <4862104C.9090905@developpement-durable.gouv.fr> References: <4862104C.9090905@developpement-durable.gouv.fr> Message-ID: <20080626012103.93115746.takubo@saruga-tondara.net> Hi, Unfortunately there is no way to tell to mapserver what encoding mapfile uses or what encoding each layer's datasource uses. So simple way is convert your mapfile's encoding to datasource's one(CP1252). If you use mapscript, you have a chance to know each layer's datasource encoding or mapfile's own encoding with setting "METADATA" tag and covert expression string internally. Recent version of p.mapper framework do it. Thanks, Akio Takubo takubo at saruga-tondara.net On Wed, 25 Jun 2008 11:30:52 +0200 "SAEZ Laurent - CETE M?diterr./DI/ETER" wrote: > Hi list, > > Encoding in expression is not very simple... > I have : > > * mapserver 4.99, > * a mapfile utf-8 encoded, > * a mapinfo file create on windows (encoding cp1252), > * one class using a field which contain this value : "D?partementale". > > If I write in the mapfile the following expression : > ... > CLASS > NAME "D?partementale" > EXPRESSION "D?partementale" > ... > > This class is not in the raster returned by the WMS/GetMap request. > To obtain this class I have to encode the string expression in the same > encoding than the data (mapinfo tab) : > > CLASS > NAME "D?partementale" > EXPRESSION "D?partementale" > > So it's strange to encode a string in cp1252 (or iso-8859-1) in a file > encoding in utf-8. > > Is there a way to tell mapserver that my layer is cp1252 encoded ? > > Thanks for help > > From pgiannini at bytewise.it Wed Jun 25 09:48:00 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 25 Jun 2008 18:48:00 +0200 (CEST) Subject: [mapserver-users] MapScript: HOW to get query result in NEW image In-Reply-To: <200806251346.m5PDk9EZ032365@rs17.serv.uniurb.it> References: <200806251346.m5PDk9EZ032365@rs17.serv.uniurb.it> Message-ID: <41391.62.77.56.13.1214412480.squirrel@localhost.localdomain> Marco, I suppose you are using mapscript - php or other - in your application. The postback of your page send not only the click point, but - maybe - other parameters. Whit some javascript you can set a parameter wich tell your app not to affect the main map, but only the query map. Please post your code, html and scripts, for more specific help. ciao ..........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Giugno 25, 2008 15:46, Marco Foi wrote: > Hi all! > > I need to let the user queryByPoint (click) on a > "mainmap" and get the result displayed on a > second image WITHOUT influencing the "mainmap". > > I tryed but the when i use the drawQuery() method > it seems that also the "mainmap" is affected: it > gets zoomed to the center of the feature (poligon) queryed. > At the end the only difference between the two > maps is that the image result of the query has > the feature HILITED while the mainmap not. > > How can I avoid the problem? > > Marco Foi > > Dip. di Scienze della Terra "A.Desio" > Sezione di Geologia e Paleontologia > http://www.gp.terra.unimi.it > Universit? degli Studi di Milano > Via.Luigi Mangiagalli n.34 Cap.20133 Milano > Laboratorio Informatico - Tel. 02- 503 15 503 > E-mail marco.foi at unimi.it > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From csgwong328 at yahoo.com.hk Wed Jun 25 10:56:32 2008 From: csgwong328 at yahoo.com.hk (Larry Wong) Date: Wed, 25 Jun 2008 10:56:32 -0700 (PDT) Subject: [mapserver-users] has problem on browse mode Message-ID: <667698.70841.qm@web30305.mail.mud.yahoo.com> Dear Sir/Madam, I am new to map server.? I has problem with tutorial 1.9 & 2.0; and can not see what's wrong with my code, Can you help me please.? below is the code for your reference Code for map file (test.map) MAP ? NAME?????????? test_ ? IMAGETYPE????? JPEG ? EXTENT???????? 841625 820100 842000 820400 ? SIZE?????????? 400 300 ? IMAGECOLOR???? 255 255 255 ? FONTSET??????? "fonts/fonts.list" ? SYMBOLSET????? "symbols/symbols35.sym" ? SHAPEPATH????? "data" ? TEMPLATEPATTERN "test*" ? WEB ??? TEMPLATE? "test.html" ??? IMAGEPATH "d:/ms4w/tmp/" ??? IMAGEURL? "d:/ms4w/tmp/" ? END ? # Start of LAYER DEFINITIONS --------------------------------------------- ? LAYER # States polygon layer begins here ??? NAME???????? pbldgpoly ??? DATA???????? pbldgpoly ??? STATUS?????? DEFAULT ??? TYPE???????? POLYGON ? END # States polygon layer ends here END # end of map file Code for html template (test.html) Test.html
?????
??????? ??????? ??????? ? ?
? ?
?????
?????
?? ?????
? Thank you Cheers Larry _______________________________________ YM - ???? ??????????????????????????????????????????? http://messenger.yahoo.com.hk -------------- next part -------------- An HTML attachment was scrubbed... URL: From kloffler at lsu.edu Wed Jun 25 11:45:10 2008 From: kloffler at lsu.edu (Katja Loeffler) Date: Wed, 25 Jun 2008 13:45:10 -0500 Subject: [mapserver-users] Newby Question - hello world Message-ID: <48629236.1090004@lsu.edu> Hi there, in the "Beginning Mapserver" book there is an example which should only display a box showing "Hello Map" Well, although I have other examples (not from that book) that do run, I don't get this one running ... *sigh* The error I get is loadWeb(): Unknown identifier. Parsing error near (/var/www/tmp/):(line 1) I have no clue *awk*. I googled around but afterwards I still had no clue ... The mapfile looks like this: # This is our "Hello World" mapfile NAME "Hello World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.0 -1.0 1.0 1.0 WEB TEMPLATE "/var/www/mapserver/hello/hello.html" IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.00 0.00 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END The hello.html like this: MapServer Hello World
Thanks in advance! Katja From David.Fawcett at state.mn.us Wed Jun 25 12:22:01 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 25 Jun 2008 14:22:01 -0500 Subject: [mapserver-users] Newby Question - hello world In-Reply-To: <48629236.1090004@lsu.edu> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBE5B@s-sp22.pca.state.mn.us> My guess is that you are using MapServer 5.x and the book was written for < 5.x If you call your mapfile in mode=map, it will still work, that points to the html template. With 5.0, the variable names used for substitution have changed. You will need to edit the hidden variables in your template. Take a look at this post for more info. http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15557.html David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Katja Loeffler Sent: Wednesday, June 25, 2008 1:45 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Newby Question - hello world Hi there, in the "Beginning Mapserver" book there is an example which should only display a box showing "Hello Map" Well, although I have other examples (not from that book) that do run, I don't get this one running ... *sigh* The error I get is loadWeb(): Unknown identifier. Parsing error near (/var/www/tmp/):(line 1) I have no clue *awk*. I googled around but afterwards I still had no clue ... The mapfile looks like this: # This is our "Hello World" mapfile NAME "Hello World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.0 -1.0 1.0 1.0 WEB TEMPLATE "/var/www/mapserver/hello/hello.html" IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.00 0.00 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END The hello.html like this: MapServer Hello World
Thanks in advance! Katja _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kloffler at lsu.edu Wed Jun 25 12:55:45 2008 From: kloffler at lsu.edu (Katja Loeffler) Date: Wed, 25 Jun 2008 14:55:45 -0500 Subject: [mapserver-users] Newby Question - hello world In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBE5B@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBE5B@s-sp22.pca.state.mn.us> Message-ID: <4862A2C1.3060408@lsu.edu> > Take a look at this post for more info. > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15557.html Great! Thanks a lot! Katja From bbrehmer at refractions.net Wed Jun 25 16:33:00 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Wed, 25 Jun 2008 16:33:00 -0700 Subject: [mapserver-users] transparent symbol clobbering Message-ID: <4862D5AC.1050300@refractions.net> I have a very simple mapfile to display a bunch of points as PNG symbols. Problem is that the transparent part of the symbols are clobbering each other with the background color (see attached image). What I would like to see is a whole wack of merged together symbols when they are overlapping without the background color coming through. Any thoughts as to what could be causing this? Cheers, Ben Brehmer -------------------------------------------------------- The relevant parts of my very simple map file: MAP TRANSPARENT ON OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON END LAYER TRANSPARENCY 100 CLASS STYLE SYMBOL "../../htdocs/images/markers/multi_arrow.png" SIZE 32 END #STYLE END #CLASS .... .. . -------------- next part -------------- A non-text attachment was scrubbed... Name: transparent_symbol_issue.jpg Type: image/jpeg Size: 12710 bytes Desc: not available URL: From pspencer at dmsolutions.ca Wed Jun 25 17:34:41 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed, 25 Jun 2008 20:34:41 -0400 Subject: [mapserver-users] transparent symbol clobbering In-Reply-To: <4862D5AC.1050300@refractions.net> References: <4862D5AC.1050300@refractions.net> Message-ID: just a guess, try transparency alpha Cheers Paul On 25-Jun-08, at 7:33 PM, Ben Brehmer wrote: > I have a very simple mapfile to display a bunch of points as PNG > symbols. > > Problem is that the transparent part of the symbols are clobbering > each other with the background color (see attached image). What I > would like to see is a whole wack of merged together symbols when > they are overlapping without the background color coming through. > > Any thoughts as to what could be causing this? > > Cheers, > > Ben Brehmer > > > > -------------------------------------------------------- > > The relevant parts of my very simple map file: > > MAP > > TRANSPARENT ON > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION "png" > IMAGEMODE RGBA > TRANSPARENT ON > END > > LAYER > TRANSPARENCY 100 > CLASS > STYLE > SYMBOL "../../htdocs/images/markers/multi_arrow.png" > SIZE 32 > END #STYLE > END #CLASS > .... > .. > . > > < > transparent_symbol_issue > .jpg>_______________________________________________ > 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 dl_svlk at yahoo.co.in Wed Jun 25 22:22:01 2008 From: dl_svlk at yahoo.co.in (piya prachi) Date: Thu, 26 Jun 2008 06:22:01 +0100 (BST) Subject: [mapserver-users] Hi Message-ID: <986504.14718.qm@web94002.mail.in2.yahoo.com> Hi, Here i want to do identify control functionality.(windows application) Mapserver with C# i.e. when i select the identify in the comobox control and click on map i need to display the attritube name of the clicked feature in a lable or gridview. how to do so. Please help me. Thanks in avance. --------------------------------- Meet people who discuss and share your passions. Join them now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nerkeilenemon at gmail.com Wed Jun 25 23:57:54 2008 From: nerkeilenemon at gmail.com (Tommy Roughol) Date: Thu, 26 Jun 2008 08:57:54 +0200 Subject: [mapserver-users] Problem with SymbolObj Message-ID: <7b2d12b90806252357i840a9d4rfa00609c7bd9e165@mail.gmail.com> Hello everyone, I've got a problem with PHP Mapscript. When I create a new symbol for a map, a symbol that I can find back with $map->getSymbolObjectById() method, then i CAN'T delete it. There is no method to delete or remove a symbol added in a map (with ms_newSymbolObj().) How can I delete that symbol ? Is there a method to do it ? Or a trick ? Thank you, *Tommy* -------------- next part -------------- An HTML attachment was scrubbed... URL: From 3dlover at gmail.com Thu Jun 26 08:03:43 2008 From: 3dlover at gmail.com (Ray Collett) Date: Thu, 26 Jun 2008 08:03:43 -0700 Subject: [mapserver-users] Projecting coordinates without drawing maps? Message-ID: <716aa800806260803w9616d25gab2213412c5c907f@mail.gmail.com> Hello all, I need to project UTM coordinates into stateplane, but I have no need for drawing graphical maps. My output is to be a script that will be imported into another application. I have found the Geo::Proj4 for PERL, and I have a functioning skeleton program that is properly translating coordinates, but I'm not that familar with PERL and I'm spending 10x the time trying to do what I want as opposed to PHP which I know very well. I'm looking for the same functionality in PHP, but having a hard time finding it. I just discovered PHP/MapScript, and I hope that it can do what I need, but so far I have not found any samples that I can learn from. I have PHP/MapScript installed and working, It's drawing maps and processing shp files. Here's a sample of the PERL code that I am using: ==================================== #!/usr/bin/perl use Geo::Proj4; my $proj = Geo::Proj4->new(init => "epsg:2269") or die; my($lon, $lat) = (-122.667591, 45.522973); my @newLatLon = $proj->forward($lat, $lon); print "x:", $newLatLon[0]," y:", $newLatLon[1],"\n"; ==================================== When run, it returns: x:7646617.87276814 y:684215.14079164 Is there a way to do this in PHP? Is MapScript the way to go, or is there another project that I have not yet found that could do it for me? Any assistance is much appreciated! -Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at co.jasper.ia.us Thu Jun 26 10:41:26 2008 From: hartpence_gis at co.jasper.ia.us (Lawrence Hartpence) Date: Thu, 26 Jun 2008 12:41:26 -0500 Subject: [mapserver-users] Zoom to specific area dBox Message-ID: <005001c8d7b3$dd5879a0$510a000a@jasper1.com> Hello, I am working with MapServer 4.8 on a Windows 2000 Server machine using IIS as the webserver. I developed an application utilizing dBox. Users start with a HTML form where they can either open a map viewing our whole county or they can select a specific Public Land Survey section using pull down menus to select the section, township, and range. The URL is http://71.7.3.212/surveyform.htm. The problem is when the user zooms to a specific section, in CGI this is ItemQuery mode. I would like to grab the coordinates and go directly to the dBox application zooming to that specific extent. Is there any way to do this? Lawrence Hartpence Jasper County GIS Coordinator 101 1st St N Newton IA 50208 Tel.: 641-792-6437 Fax: 641-792-5783 hartpence_gis at co.jasper.ia.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbrehmer at refractions.net Thu Jun 26 11:58:05 2008 From: bbrehmer at refractions.net (Ben Brehmer) Date: Thu, 26 Jun 2008 11:58:05 -0700 Subject: [mapserver-users] transparent symbol clobbering In-Reply-To: References: <4862D5AC.1050300@refractions.net> Message-ID: <4863E6BD.7070106@refractions.net> Thanks Paul, Unfortunately no luck. Setting "transparency alpha" makes the transparent part around the symbols completely white :) It seems to be the exact same problem as Jim Clack encountered [1], who never found a solution either. Makes me think its actually a bug and not intended behavior. Perhaps I'll start digging through the code. Cheers, Ben [1] http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00569.html Paul Spencer wrote: > just a guess, try transparency alpha > > Cheers > > Paul > > On 25-Jun-08, at 7:33 PM, Ben Brehmer wrote: > >> I have a very simple mapfile to display a bunch of points as PNG >> symbols. >> >> Problem is that the transparent part of the symbols are clobbering >> each other with the background color (see attached image). What I >> would like to see is a whole wack of merged together symbols when >> they are overlapping without the background color coming through. >> >> Any thoughts as to what could be causing this? >> >> Cheers, >> >> Ben Brehmer >> >> >> >> -------------------------------------------------------- >> >> The relevant parts of my very simple map file: >> >> MAP >> >> TRANSPARENT ON >> >> OUTPUTFORMAT >> NAME PNG24 >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> EXTENSION "png" >> IMAGEMODE RGBA >> TRANSPARENT ON >> END >> >> LAYER >> TRANSPARENCY 100 >> CLASS >> STYLE >> SYMBOL "../../htdocs/images/markers/multi_arrow.png" >> SIZE 32 >> END #STYLE >> END #CLASS >> .... >> .. >> . >> >> _______________________________________________ >> >> 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 zak4ms at gmail.com Thu Jun 26 12:53:55 2008 From: zak4ms at gmail.com (Zak James) Date: Thu, 26 Jun 2008 15:53:55 -0400 Subject: [mapserver-users] transparent symbol clobbering In-Reply-To: <4863E6BD.7070106@refractions.net> References: <4862D5AC.1050300@refractions.net> <4863E6BD.7070106@refractions.net> Message-ID: <488dfaa70806261253s1d12a2b8l45759d27993d2650@mail.gmail.com> Ben, I think there probably is a bug in the case of GD output with 24 bit icons on a transparent background. If you have the agg driver configured, setting TRANSPARENT TRUE in the map and using the built-in aggpng24 outputformat works. If you want the result to be 8-bits deep, you could try enabling --with-experimental-png. See http://trac.osgeo.org/mapserver/ticket/2436 for some background. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Thu, Jun 26, 2008 at 2:58 PM, Ben Brehmer wrote: > Thanks Paul, > > Unfortunately no luck. Setting "transparency alpha" makes the transparent > part around the symbols completely white :) > > It seems to be the exact same problem as Jim Clack encountered [1], who > never found a solution either. Makes me think its actually a bug and not > intended behavior. Perhaps I'll start digging through the code. > > Cheers, > > Ben > > [1] > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00569.html > > > Paul Spencer wrote: >> >> just a guess, try transparency alpha >> >> Cheers >> >> Paul >> >> On 25-Jun-08, at 7:33 PM, Ben Brehmer wrote: >> >>> I have a very simple mapfile to display a bunch of points as PNG symbols. >>> >>> Problem is that the transparent part of the symbols are clobbering each >>> other with the background color (see attached image). What I would like to >>> see is a whole wack of merged together symbols when they are overlapping >>> without the background color coming through. >>> >>> Any thoughts as to what could be causing this? >>> >>> Cheers, >>> >>> Ben Brehmer >>> >>> >>> >>> -------------------------------------------------------- >>> >>> The relevant parts of my very simple map file: >>> >>> MAP >>> >>> TRANSPARENT ON >>> >>> OUTPUTFORMAT >>> NAME PNG24 >>> DRIVER "GD/PNG" >>> MIMETYPE "image/png" >>> EXTENSION "png" >>> IMAGEMODE RGBA >>> TRANSPARENT ON >>> END >>> >>> LAYER >>> TRANSPARENCY 100 >>> CLASS >>> STYLE >>> SYMBOL "../../htdocs/images/markers/multi_arrow.png" >>> SIZE 32 >>> END #STYLE >>> END #CLASS >>> .... >>> .. >>> . >>> >>> >>> _______________________________________________ >>> 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 Steve.Lime at dnr.state.mn.us Thu Jun 26 19:59:09 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Jun 2008 21:59:09 -0500 Subject: [mapserver-users] MapServer 5.2 Beta 3 Available Message-ID: <4864112D0200008F0001913E@co5.dnr.state.mn.us> Hi folks: MapServer 5.2 Beta 3 has just been released, albeit one day late. The source package is available for download at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since 5.0 can be found at the end this message. This is a significant release so we need your help in testing. 5.2 should compatible with any 5.0 applications/mapfiles so it should be relatively easy for folks to test. Please let us know how it goes! This is the 3rd, and last, beta release (we hope) and if all goes well there will be a release candidate next wek and the final release in less than 2 weeks. More details can be found in the 5.2 release plan at: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ Steve Version 5.2.0-beta3 (2008-06-26): --------------------------------- - mapsde.c: processing option added to allow using fully qualified names for attributes (#2423). - mapsde.c: Test that for an active connection before closing it #2498 - mapdraw.c: Fixed issue where path following labels were not being drawn if FORCEd. (#2600) - mapshape.c: Applied patch to make the location of tiled data relative to the tileindex directory if SHAPEPATH is not set. (#2369) - maptemplate.c: Fixed issues in RFC 36 implementation that prevented mapscript mapObj->processQueryTemplate() method from working. - WMS/WFS: extend warning message (#1396) - WFS: Respect units for the DWhitin parameter (#2297) - WFS: correct OGC Contains filter (#2306) - WMS: set srsName correctly for GetFeatureInfo (#2502) - SOS: detect invalid time strings (#2560) - SOS: more srsName support (#2558) - mapserv.c, maptemplate.c: fixed problem with arguments to msGenerateImages(). (#2655) - WMS: produce warning if layer extent is null (#1396) - WFS: project LatLongBoundingBox if required (#2579) - SOS: generate error for some invalid filters (#2604) - SLD: Use style's width paramater when generating sld (#1192) From ven.tammineni at gmail.com Thu Jun 26 22:28:30 2008 From: ven.tammineni at gmail.com (venkat) Date: Fri, 27 Jun 2008 10:58:30 +0530 Subject: [mapserver-users] How to work Query Map(Zoom to Shape) Message-ID: <79ad14900806262228j23d14bbat8afb4419a8679197@mail.gmail.com> Dear All, I am Venkat,I have one problem that is "how to work with Query Map".How to get zoom to shape.I have done some code getting extents for shape and set extents for shape(The complete Envelop of shape) with that i have done some code that is set extents for shape Ex :- lyar = map.getLayerByName("Continents"); if (ddlContinents.SelectedIndex.ToString() == "0") //dropdownbox filtering { map.setExtent(-25.36055756, -34.82200241, 63.49575806, 37.34041214); } //shape extents But i have 3000 plues shapes .I can not write code for each and every shape.code will be very big and complicated. I got some sample code in Mapserver5.0.but is Console Application.I have modified that application.I am getting error. "object not initialized" Please anyone can help me how to use "Query Map" sample code. Here is Sample code for Query Map :- private static bool IsLayerQueryable(layerObj layer) { if (layer.type == MS_LAYER_TYPE.MS_LAYER_TILEINDEX) return false; if (layer.template != null && layer.template.Length > 0) return true; for (int i = 0; i < layer.numclasses; i++) { if (layer.getClass(i).template != null && layer.getClass(i).template.Length > 0) return true; } return false; } public static void QueryByAttribute(string qstring, mapObj map, bool zoomToResults) { try { layerObj layer; rectObj query_bounds = null; for (int i = 0; i < map.numlayers; i++) { layer = map.getLayer(i); if (layer.connection != null && IsLayerQueryable(layer)) { MessageBox.Show("Layer [" + i + "] name: " + layer.name ); BuildQuery(layer, qstring); // zoom to the query results using (resultCacheObj results = layer.getResults()) { if (results != null && results.numresults > 0) { // calculating the extent of the results if (query_bounds == null) query_bounds = new rectObj(results.bounds.minx, results.bounds.miny, results.bounds.maxx, results.bounds.maxy, 0); else { if (results.bounds.minx < query_bounds.minx) query_bounds.minx = results.bounds.minx; if (results.bounds.miny < query_bounds.miny) query_bounds.miny = results.bounds.miny; if (results.bounds.maxx > query_bounds.maxx) query_bounds.maxx = results.bounds.maxx; if (results.bounds.maxy > query_bounds.maxy) query_bounds.maxy = results.bounds.maxy; } } } } } // setting the map extent to the result bounds if (zoomToResults) { map.setExtent(query_bounds.minx, query_bounds.miny, query_bounds.maxx, query_bounds.maxy); MessageBox.Show("Current map scale: 1:" + (int)map.scaledenom); } } catch (Exception e) { MessageBox.Show("QueryByAttribute: " + e.Message); } } private static void BuildQuery(layerObj layer, string qstring) { if (layer != null && layer.map != null) { string qs = qstring; string att = null; MessageBox.Show("Query string: " + qs); try { layer.queryByAttributes(layer.map, att, qs, 1); } catch (Exception e) { MessageBox.Show("BuildQuery: " + e.Message); } } } protected void Button1_Click(object sender, EventArgs e) { bool ZoomToResults = true; QueryByAttribute("India",map, ZoomToResults); map.querymap.status = mapscript.MS_ON; map.querymap.color.setRGB(0, 0, 255); map.querymap.style = (int)MS_QUERYMAP_STYLES.MS_HILITE; } Thanks And Regards, Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vendi_aja at yahoo.com Fri Jun 27 00:29:46 2008 From: vendi_aja at yahoo.com (vendi aja) Date: Fri, 27 Jun 2008 00:29:46 -0700 (PDT) Subject: [mapserver-users] Problem with mapserver&GML&sample file map Message-ID: <908756.11975.qm@web58413.mail.re3.yahoo.com> Hi all, im kind a newb here, what i want to ask is, is there any way for mapserver to Access it data from GML.. sample would be much appreciate... thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Fri Jun 27 01:00:37 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 27 Jun 2008 10:00:37 +0200 Subject: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike Message-ID: <48649E25.6090609@neogeo-online.net> Hi Has anyone ever had a PropertyIsLike filter working on a WMS layer ? I have an SLD file with several rules, all of them with PropertyIsEqualTo Filter. It works ok. If I change one of these to PropertyIsLike (I add wildcard, singleChar and escapeChar as well), they ALL go wrong, none of the filters being used. All my objects are then shown with the default representation placed at the end of the file without any filter. Any idea about this strange behaviour ? Thanks -- Guillaume From szekerest at gmail.com Fri Jun 27 01:48:49 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 27 Jun 2008 10:48:49 +0200 Subject: [mapserver-users] Re: [mapserver-dev] How to work Query Map(Zoom to Shape) In-Reply-To: <79ad14900806262228j23d14bbat8afb4419a8679197@mail.gmail.com> References: <79ad14900806262228j23d14bbat8afb4419a8679197@mail.gmail.com> Message-ID: 2008/6/27 venkat : > > I got some sample code in Mapserver5.0.but is Console Application.I have > modified that application.I am getting error. "object not initialized" > > Please anyone can help me how to use "Query Map" sample code. > Could you provide more information about the error? How your code looks like? At which place does it produce the problem? I confirm that this code have been working pretty well at least when it was created mostly for authoring the examples of this RFC document: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-22a/ Best regards, Tamas From federica.demartin at gmail.com Fri Jun 27 03:32:58 2008 From: federica.demartin at gmail.com (Federica De Martin) Date: Fri, 27 Jun 2008 12:32:58 +0200 Subject: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug? Message-ID: Hi everybody, I'm trying to use the SIZEITEM to render a line LAYER. My problem is that when I use the SIZEITEM mapserver follows it only for the first style; this is my class: CLASS NAME "calss1" STYLE # first style SYMBOL "cartoline_square" SIZEITEM "sizeobj2" COLOR 0 0 0 #black END STYLE # second style SYMBOL "cartoline_square" SIZEITEM "sizeobj1" COLOR 255 255 255 #white END END The values are: sizeobj2=sizeobj1+2; What I get is that the black lines are of different sizes and the white lines (over the first) always keep the same size (the smaller). The symbol "cartoline_square" is a symbol of type cartoline, but I also tried with other symbols and I get the same result. Is there any bug or have I made something wrong in my class? I wait for some help, Thanks. Bye, Federca. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Fri Jun 27 05:29:17 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 27 Jun 2008 08:29:17 -0400 Subject: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug? In-Reply-To: References: Message-ID: Try the following: CLASS NAME "calss1" STYLE # first style SYMBOL "cartoline_square" SIZE [sizeobj2] COLOR 0 0 0 #black END STYLE # second style SYMBOL "cartoline_square" SIZE [sizeobj1] COLOR 255 255 255 #white END END Cheers Paul On 27-Jun-08, at 6:32 AM, Federica De Martin wrote: > Hi everybody, > I'm trying to use the SIZEITEM to render a line LAYER. My problem is > that when I use the SIZEITEM mapserver follows it only for the first > style; this is my class: > > CLASS > NAME "calss1" > STYLE # first style > SYMBOL "cartoline_square" > SIZEITEM "sizeobj2" > COLOR 0 0 0 #black > END > STYLE # second style > SYMBOL "cartoline_square" > SIZEITEM "sizeobj1" > COLOR 255 255 255 #white > END > END > > The values are: sizeobj2=sizeobj1+2; What I get is that the black > lines are of different sizes and the white lines (over the first) > always keep the same size (the smaller). > The symbol "cartoline_square" is a symbol of type cartoline, but I > also tried with other symbols and I get the same result. > Is there any bug or have I made something wrong in my class? > > I wait for some help, Thanks. > Bye, Federca. > _______________________________________________ > 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 27 06:05:19 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 27 Jun 2008 15:05:19 +0200 Subject: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike In-Reply-To: <6f2569d80806270530xb72b40ci5b1ef36bb060b0fb@mail.gmail.com> References: <48649E25.6090609@neogeo-online.net> <6f2569d80806270530xb72b40ci5b1ef36bb060b0fb@mail.gmail.com> Message-ID: <4864E58F.1020007@neogeo-online.net> actually it helped me going further in my analysis : when I use PropertyIsLike, it traps all the records, even those non matching with the pattern. Is that a mapserver bug on WMS-SLD handling ? Thanks Oscar Gomez a ?crit : > Hi Guillaume, > > In the past it worked for me, but I had to look very carefully at the > symbology specification from OGC. > > Here you are my example: > > > * * > *-* > *-* > > > * * ]]> > * * > *-* > *-* > > * * *> * > * * *ORIGENAGUA* > * * *Subter** > * * > * * > *-* > > *-* > *-* > *-* > *-* > * * *circle* > *-* > * * *#A87000* > * * *1.0* > * * > * * > * * *1* > * * > * * > * * > *-* > * * *#A87000* > * * *1* > * * *1* > * * > * * > * * > > > > > I hope you find it useful. Best, > > Oscar > > > On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur > > wrote: > > Hi > > Has anyone ever had a PropertyIsLike filter working on a WMS layer ? > I have an SLD file with several rules, all of them with > PropertyIsEqualTo Filter. It works ok. > If I change one of these to PropertyIsLike (I add wildcard, > singleChar and escapeChar as well), they ALL go wrong, none of the > filters being used. All my objects are then shown with the default > representation placed at the end of the file without any filter. > > Any idea about this strange behaviour ? > > Thanks > -- > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Oscar Gomez > > Visita mi blog!! http://ogomez2.blogspot.com -- 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 27 06:13:37 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 27 Jun 2008 09:13:37 -0400 Subject: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike In-Reply-To: <4864E58F.1020007@neogeo-online.net> References: <48649E25.6090609@neogeo-online.net> <6f2569d80806270530xb72b40ci5b1ef36bb060b0fb@mail.gmail.com> <4864E58F.1020007@neogeo-online.net> Message-ID: <4864E781.7010809@dmsolutions.ca> Guillaume, Attaches is an sld I use for testing and mapsever returns the expected results. If you do not mind sharing your sld, you can send it to me and I can have a look. Best Regards, Guillaume Sueur wrote: > actually it helped me going further in my analysis : > when I use PropertyIsLike, it traps all the records, even those non > matching with the pattern. > Is that a mapserver bug on WMS-SLD handling ? > > Thanks > > > > Oscar Gomez a ?crit : >> Hi Guillaume, >> >> In the past it worked for me, but I had to look very carefully at the >> symbology specification from OGC. >> >> Here you are my example: >> >> >> * * >> *-* >> *-* > >> >> * * ]]> >> * * >> *-* >> *-* >> >> * * *> * >> * * *ORIGENAGUA* >> * * *Subter** >> * * >> * * >> *-* >> >> *-* >> *-* >> >> *-* >> *-* >> * * *circle* >> *-* >> * * *#A87000* >> * * *1.0* >> * * >> * * >> * * *1* >> * * >> * * >> * * >> *-* >> * * *#A87000* >> * * *1* >> * * *1* >> * * >> * * >> * * >> >> >> >> >> I hope you find it useful. Best, >> >> Oscar >> >> >> On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur >> > > wrote: >> >> Hi >> >> Has anyone ever had a PropertyIsLike filter working on a WMS layer ? >> I have an SLD file with several rules, all of them with >> PropertyIsEqualTo Filter. It works ok. >> If I change one of these to PropertyIsLike (I add wildcard, >> singleChar and escapeChar as well), they ALL go wrong, none of the >> filters being used. All my objects are then shown with the default >> representation placed at the end of the file without any filter. >> >> Any idea about this strange behaviour ? >> >> Thanks >> -- Guillaume >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> -- >> Oscar Gomez >> >> Visita mi blog!! http://ogomez2.blogspot.com > -- ---------------------------------------------------------------- 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 -------------- A non-text attachment was scrubbed... Name: sld_line_islike_filter.xml Type: text/xml Size: 1083 bytes Desc: not available URL: From federica.demartin at gmail.com Fri Jun 27 06:29:26 2008 From: federica.demartin at gmail.com (Federica De Martin) Date: Fri, 27 Jun 2008 15:29:26 +0200 Subject: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug? In-Reply-To: References: Message-ID: Thank you for the answer! I tried to user SIZE [field_name] and SIZE "[field_name]" but in both cases I get [Mapserver Error]: getInteger(). Then I tried also SIZEITEM [field_name] and SIZEITEM "[field_name]" that don't work and SIZEITEM field_name that makes me get the same result as SIZEITEM "field_name".... Any other idea or workaround? Federica 2008/6/27 Paul Spencer : > Try the following: > > CLASS > NAME "calss1" > STYLE # first style > SYMBOL "cartoline_square" > SIZE [sizeobj2] > COLOR 0 0 0 #black > END > STYLE # second style > SYMBOL "cartoline_square" > SIZE [sizeobj1] > COLOR 255 255 255 #white > END > END > > Cheers > > Paul > > > On 27-Jun-08, at 6:32 AM, Federica De Martin wrote: > > Hi everybody, >> I'm trying to use the SIZEITEM to render a line LAYER. My problem is that >> when I use the SIZEITEM mapserver follows it only for the first style; this >> is my class: >> >> CLASS >> NAME "calss1" >> STYLE # first style >> SYMBOL "cartoline_square" >> SIZEITEM "sizeobj2" >> COLOR 0 0 0 #black >> END >> STYLE # second style >> SYMBOL "cartoline_square" >> SIZEITEM "sizeobj1" >> COLOR 255 255 255 #white >> END >> END >> >> The values are: sizeobj2=sizeobj1+2; What I get is that the black lines >> are of different sizes and the white lines (over the first) always keep the >> same size (the smaller). >> The symbol "cartoline_square" is a symbol of type cartoline, but I also >> tried with other symbols and I get the same result. >> Is there any bug or have I made something wrong in my class? >> >> I wait for some help, Thanks. >> Bye, Federca. >> _______________________________________________ >> 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/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.foi at unimi.it Fri Jun 27 06:55:01 2008 From: marco.foi at unimi.it (Marco Foi) Date: Fri, 27 Jun 2008 15:55:01 +0200 Subject: [mapserver-users] MapScript: HOW to get query result in NEW img In-Reply-To: <41391.62.77.56.13.1214412480.squirrel@localhost.localdomai n> References: <200806251346.m5PDk9EZ032365@rs17.serv.uniurb.it> <41391.62.77.56.13.1214412480.squirrel@localhost.localdomain> Message-ID: <200806271355.m5RDt7Bu020570@rs17.serv.uniurb.it> I need to query a map and have the result displayed in a different image. BUT the main image is affected by the query and gets recentered on the SAME EXTENT of the query map. I'm using PHP MapScript Here is the 'core' of my code: // create a new point object at the clicked coordinates, to use it in queryByPoint $querypoint = ms_newPointObj(); //$cy & $cy are the conversion in map units of the image coordinates of the queryed point on the map $querypoint->SetXY($cx, $cy); [...] //define the layer that will be queryed $layertoquery =$map->getLayerByName('geology'); //perform the query $res = $layertoquery->queryByPoint($querypoint, MS_SINGLE, ($map->cellsize)*5); //FIRST draw the map image $image=$map->draw(); $image_url=$image->saveWebImage(); //THEN draw the query image $thequerymap = $map->drawQuery(); $querymap_url=$thequerymap->saveWebImage(); BUT $image_url IS AFFECTED by the query and displays che same extent of $querymap_url How can I avoid this? Marco At 18.48 25/06/2008, you wrote: ------------------------------------------------------------ Marco, I suppose you are using mapscript - php or other - in your application. The postback of your page send not only the click point, but - maybe - other parameters. Whit some javascript you can set a parameter wich tell your app not to affect the main map, but only the query map. Please post your code, html and scripts, for more specific help. ciao ..........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Giugno 25, 2008 15:46, Marco Foi wrote: > Hi all! > > I need to let the user queryByPoint (click) on a > "mainmap" and get the result displayed on a > second image WITHOUT influencing the "mainmap". > > I tryed but the when i use the drawQuery() method > it seems that also the "mainmap" is affected: it > gets zoomed to the center of the feature (poligon) queryed. > At the end the only difference between the two > maps is that the image result of the query has > the feature HILITED while the mainmap not. > > How can I avoid the problem? > > Marco Foi > > Dip. di Scienze della Terra "A.Desio" > Sezione di Geologia e Paleontologia > http://www.gp.terra.unimi.it > Universit? degli Studi di Milano > Via.Luigi Mangiagalli n.34 Cap.20133 Milano > Laboratorio Informatico - Tel. 02- 503 15 503 > E-mail marco.foi at unimi.it > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------------------------------------ From pspencer at dmsolutions.ca Fri Jun 27 06:58:21 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 27 Jun 2008 09:58:21 -0400 Subject: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug? In-Reply-To: References: Message-ID: Are the values in your data stored as integer fields? The [field_name] syntax should substitute the attribute value for each feature as it is drawn, so it won't work with SIZEITEM, only with SIZE. No other ideas at this time. Cheers Paul On 27-Jun-08, at 9:29 AM, Federica De Martin wrote: > Thank you for the answer! > I tried to user SIZE [field_name] and SIZE "[field_name]" but in > both cases I get [Mapserver Error]: getInteger(). Then I tried also > SIZEITEM [field_name] and SIZEITEM "[field_name]" that don't work > and SIZEITEM field_name that makes me get the same result as > SIZEITEM "field_name".... > > Any other idea or workaround? > Federica > > > 2008/6/27 Paul Spencer : > Try the following: > > > CLASS > NAME "calss1" > STYLE # first style > SYMBOL "cartoline_square" > SIZE [sizeobj2] > > COLOR 0 0 0 #black > END > STYLE # second style > SYMBOL "cartoline_square" > SIZE [sizeobj1] > > COLOR 255 255 255 #white > END > END > > Cheers > > Paul > > > On 27-Jun-08, at 6:32 AM, Federica De Martin wrote: > > Hi everybody, > I'm trying to use the SIZEITEM to render a line LAYER. My problem is > that when I use the SIZEITEM mapserver follows it only for the first > style; this is my class: > > CLASS > NAME "calss1" > STYLE # first style > SYMBOL "cartoline_square" > SIZEITEM "sizeobj2" > COLOR 0 0 0 #black > END > STYLE # second style > SYMBOL "cartoline_square" > SIZEITEM "sizeobj1" > COLOR 255 255 255 #white > END > END > > The values are: sizeobj2=sizeobj1+2; What I get is that the black > lines are of different sizes and the white lines (over the first) > always keep the same size (the smaller). > The symbol "cartoline_square" is a symbol of type cartoline, but I > also tried with other symbols and I get the same result. > Is there any bug or have I made something wrong in my class? > > I wait for some help, Thanks. > Bye, Federca. > _______________________________________________ > 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/ > __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From guillermo.korell at gmail.com Fri Jun 27 07:03:04 2008 From: guillermo.korell at gmail.com (Guillermo Korell) Date: Fri, 27 Jun 2008 11:03:04 -0300 Subject: [mapserver-users] problem with library Message-ID: I have a problem using mapscrip for php5 on Ubuntu 8.04. I've an error when i want to load dynamically a library, in the following line: dl("php_dbase.so"); the error is: *Warning*: dl() [function.dl ]: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/php_dbase.so' - /usr/lib/php5/20060613+lfs/php_dbase.so: cannot open shared object file: No such file or directory in */home/gkorell/prueba/index.php* on line *2* I want to install this library for php but I don't found it. What can i do? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Jun 27 07:28:27 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 27 Jun 2008 10:28:27 -0400 Subject: [mapserver-users] problem with library In-Reply-To: References: Message-ID: <4864F90B.2060802@mapgears.com> MapServer doesn't have any direct dependency on PHP's dbase module, so this is not a MapServer/MapScript problem, you could simply use php_mapscript without it. If you need the dbase module to deal with .dbf files then this is really a Ubuntu problem (it doesn't provide the dbase module) and the following article may help: http://boutell.livejournal.com/935243.html Daniel Guillermo Korell wrote: > I have a problem using mapscrip for php5 on Ubuntu 8.04. I've an error > when i want to load dynamically a library, in the following line: > dl("php_dbase.so"); > > the error is: > > *Warning*: dl() [function.dl ]: Unable > to load dynamic library '/usr/lib/php5/20060613+lfs/php_dbase.so' - > /usr/lib/php5/20060613+lfs/php_dbase.so: cannot open shared object file: > No such file or directory in */home/gkorell/prueba/index.php* on line *2* > > I want to install this library for php but I don't found it. What can > i do? > Thanks > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From federica.demartin at gmail.com Fri Jun 27 07:58:47 2008 From: federica.demartin at gmail.com (Federica De Martin) Date: Fri, 27 Jun 2008 16:58:47 +0200 Subject: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug? In-Reply-To: References: Message-ID: Hi Paul, my values are stored in integer fields, but I calculate the value I use in a Postgres query with a user defined function that returns a string; Now I have also tried making a cast to integer in the Query but I keep on getting this Error: *Warning*: [MapServer Error]: getInteger(): Parsing error near ([):(line 539) in *..../chameleon-2.4/htdocs/common/wrapper/map_session.php* on line *215 *if I use the expression SIZE [sizeobj1] and *Warning*: [MapServer Error]: getInteger(): Parsing error near ([sizeobj1]):(line 539) in * ..../chameleon-2.4/htdocs/common/wrapper/map_session.php* on line *215 * if I use the expression SIZE "[sizeobj1]".... I use Chameleon, is there any problem? (my configuration is Mapserver 4.10 with Chameleon 2.4 on Linux Ubuntu 6.10) Bye Federica 2008/6/27 Paul Spencer : > Are the values in your data stored as integer fields? > > The [field_name] syntax should substitute the attribute value for each > feature as it is drawn, so it won't work with SIZEITEM, only with SIZE. > > No other ideas at this time. > > Cheers > > Paul > > > On 27-Jun-08, at 9:29 AM, Federica De Martin wrote: > > Thank you for the answer! >> I tried to user SIZE [field_name] and SIZE "[field_name]" but in both >> cases I get [Mapserver Error]: getInteger(). Then I tried also SIZEITEM >> [field_name] and SIZEITEM "[field_name]" that don't work and SIZEITEM >> field_name that makes me get the same result as SIZEITEM "field_name".... >> >> Any other idea or workaround? >> Federica >> >> >> 2008/6/27 Paul Spencer : >> Try the following: >> >> >> CLASS >> NAME "calss1" >> STYLE # first style >> SYMBOL "cartoline_square" >> SIZE [sizeobj2] >> >> COLOR 0 0 0 #black >> END >> STYLE # second style >> SYMBOL "cartoline_square" >> SIZE [sizeobj1] >> >> COLOR 255 255 255 #white >> END >> END >> >> Cheers >> >> Paul >> >> >> On 27-Jun-08, at 6:32 AM, Federica De Martin wrote: >> >> Hi everybody, >> I'm trying to use the SIZEITEM to render a line LAYER. My problem is that >> when I use the SIZEITEM mapserver follows it only for the first style; this >> is my class: >> >> CLASS >> NAME "calss1" >> STYLE # first style >> SYMBOL "cartoline_square" >> SIZEITEM "sizeobj2" >> COLOR 0 0 0 #black >> END >> STYLE # second style >> SYMBOL "cartoline_square" >> SIZEITEM "sizeobj1" >> COLOR 255 255 255 #white >> END >> END >> >> The values are: sizeobj2=sizeobj1+2; What I get is that the black lines >> are of different sizes and the white lines (over the first) always keep the >> same size (the smaller). >> The symbol "cartoline_square" is a symbol of type cartoline, but I also >> tried with other symbols and I get the same result. >> Is there any bug or have I made something wrong in my class? >> >> I wait for some help, Thanks. >> Bye, Federca. >> _______________________________________________ >> 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/ >> >> > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nsavard at mapgears.com Fri Jun 27 07:56:46 2008 From: nsavard at mapgears.com (Normand Savard) Date: Fri, 27 Jun 2008 10:56:46 -0400 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.2 Beta 3 Available In-Reply-To: <4864112D0200008F0001913E@co5.dnr.state.mn.us> References: <4864112D0200008F0001913E@co5.dnr.state.mn.us> Message-ID: <4864FFAE.6040104@mapgears.com> Steve Lime wrote: > Hi folks: MapServer 5.2 Beta 3 has just been released, albeit one day late. The source package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > All, The FGS self-installers for MapServer 5.2 Beta 3 is available at http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/. The MapServer 5.2 Beta 3 base module, php module and python_mapscript module can also be downloaded from http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/ for those of you who only wants to upgrade their existing installation. Norm From pspencer at dmsolutions.ca Fri Jun 27 08:35:29 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 27 Jun 2008 11:35:29 -0400 Subject: [mapserver-users] 2 STYLE with 2 different SIZEITEM... bug? In-Reply-To: References: Message-ID: <8876207D-BAB7-411C-B3C6-C3AF3583BE50@dmsolutions.ca> Oh - the attribute binding stuff using [fieldname] is only available in mapserver 5 I think. Paul On 27-Jun-08, at 10:58 AM, Federica De Martin wrote: > Hi Paul, > my values are stored in integer fields, but I calculate the value I > use in a Postgres query with a user defined function that returns a > string; Now I have also tried making a cast to integer in the Query > but I keep on getting this Error: > Warning: [MapServer Error]: getInteger(): Parsing error near ([): > (line 539) in ..../chameleon-2.4/htdocs/common/wrapper/ > map_session.php on line 215 > if I use the expression SIZE [sizeobj1] and > Warning: [MapServer Error]: getInteger(): Parsing error near > ([sizeobj1]):(line 539) in ..../chameleon-2.4/htdocs/common/wrapper/ > map_session.php on line 215 > if I use the expression SIZE "[sizeobj1]".... I use Chameleon, is > there any problem? > (my configuration is Mapserver 4.10 with Chameleon 2.4 on Linux > Ubuntu 6.10) > > Bye Federica > > > 2008/6/27 Paul Spencer : > Are the values in your data stored as integer fields? > > The [field_name] syntax should substitute the attribute value for > each feature as it is drawn, so it won't work with SIZEITEM, only > with SIZE. > > No other ideas at this time. > > Cheers > > Paul > > > On 27-Jun-08, at 9:29 AM, Federica De Martin wrote: > > Thank you for the answer! > I tried to user SIZE [field_name] and SIZE "[field_name]" but in > both cases I get [Mapserver Error]: getInteger(). Then I tried also > SIZEITEM [field_name] and SIZEITEM "[field_name]" that don't work > and SIZEITEM field_name that makes me get the same result as > SIZEITEM "field_name".... > > Any other idea or workaround? > Federica > > > 2008/6/27 Paul Spencer : > Try the following: > > > CLASS > NAME "calss1" > STYLE # first style > SYMBOL "cartoline_square" > SIZE [sizeobj2] > > COLOR 0 0 0 #black > END > STYLE # second style > SYMBOL "cartoline_square" > SIZE [sizeobj1] > > COLOR 255 255 255 #white > END > END > > Cheers > > Paul > > > On 27-Jun-08, at 6:32 AM, Federica De Martin wrote: > > Hi everybody, > I'm trying to use the SIZEITEM to render a line LAYER. My problem is > that when I use the SIZEITEM mapserver follows it only for the first > style; this is my class: > > CLASS > NAME "calss1" > STYLE # first style > SYMBOL "cartoline_square" > SIZEITEM "sizeobj2" > COLOR 0 0 0 #black > END > STYLE # second style > SYMBOL "cartoline_square" > SIZEITEM "sizeobj1" > COLOR 255 255 255 #white > END > END > > The values are: sizeobj2=sizeobj1+2; What I get is that the black > lines are of different sizes and the white lines (over the first) > always keep the same size (the smaller). > The symbol "cartoline_square" is a symbol of type cartoline, but I > also tried with other symbols and I get the same result. > Is there any bug or have I made something wrong in my class? > > I wait for some help, Thanks. > Bye, Federca. > _______________________________________________ > 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/ > > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From pgiannini at bytewise.it Fri Jun 27 08:43:43 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 27 Jun 2008 17:43:43 +0200 (CEST) Subject: [mapserver-users] MapScript: HOW to get query result in NEW img In-Reply-To: <200806271355.m5RDt7Bu020570@rs17.serv.uniurb.it> References: <200806251346.m5PDk9EZ032365@rs17.serv.uniurb.it> <41391.62.77.56.13.1214412480.squirrel@localhost.localdomain> <200806271355.m5RDt7Bu020570@rs17.serv.uniurb.it> Message-ID: <52959.192.168.1.65.1214581423.squirrel@localhost.localdomain> Marco, the querybypoint() method don't affect the extent of the map. do you set in some part of your code the extent of the map? I suppose in the html code you get the extent, e.g :
extent->miny." ".$mapobj->extent->maxx." ".$mapobj->extent->maxy; ?>"> ...
to, in the postback, set the extent of the map with $mapobj->setextent() - or zoompoint(), zoomrectangle(), zoomscale()... without this setting the map is drawn in the extent defined in your mapfile. maybe you have a "zoom" parameter set which influences the extent? pls post the html code too. On Ven, Giugno 27, 2008 15:55, Marco Foi wrote: > I need to query a map and have the result displayed in a different image. > BUT the main image is affected by the query and > gets recentered on the SAME EXTENT of the query map. > > I'm using PHP MapScript > > Here is the 'core' of my code: > > // create a new point object at the clicked > coordinates, to use it in queryByPoint > $querypoint = ms_newPointObj(); > //$cy & $cy are the conversion in map units of > the image coordinates of the queryed point on the map > $querypoint->SetXY($cx, $cy); > [...] > //define the layer that will be queryed > $layertoquery =$map->getLayerByName('geology'); > //perform the query > $res = $layertoquery->queryByPoint($querypoint, MS_SINGLE, > ($map->cellsize)*5); > > //FIRST draw the map image > $image=$map->draw(); > $image_url=$image->saveWebImage(); > > //THEN draw the query image > $thequerymap = $map->drawQuery(); > $querymap_url=$thequerymap->saveWebImage(); > > > BUT $image_url IS AFFECTED by the query and > displays che same extent of $querymap_url > > How can I avoid this? > > Marco > > > > At 18.48 25/06/2008, you wrote: > ------------------------------------------------------------ > Marco, > I suppose you are using mapscript - php or other - in your application. > The postback of your page send not only the click point, but - maybe - > other parameters. > Whit some javascript you can set a parameter wich tell your app not to > affect the main map, but only the query map. > > Please post your code, html and scripts, for more specific help. > > ciao > ..........................pg > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Mer, Giugno 25, 2008 15:46, Marco Foi wrote: > > Hi all! > > > > I need to let the user queryByPoint (click) on a > > "mainmap" and get the result displayed on a > > second image WITHOUT influencing the "mainmap". > > > > I tryed but the when i use the drawQuery() method > > it seems that also the "mainmap" is affected: it > > gets zoomed to the center of the feature (poligon) queryed. > > At the end the only difference between the two > > maps is that the image result of the query has > > the feature HILITED while the mainmap not. > > > > How can I avoid the problem? > > > > Marco Foi > > > > Dip. di Scienze della Terra "A.Desio" > > Sezione di Geologia e Paleontologia > > http://www.gp.terra.unimi.it > > Universit? degli Studi di Milano > > Via.Luigi Mangiagalli n.34 Cap.20133 Milano > > Laboratorio Informatico - Tel. 02- 503 15 503 > > E-mail marco.foi at unimi.it > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------------------------------------ > > From dmorissette at mapgears.com Fri Jun 27 10:55:12 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 27 Jun 2008 13:55:12 -0400 Subject: [mapserver-users] GetFeatureInfo XML result is not encoded at all In-Reply-To: <486235A8.6090204@developpement-durable.gouv.fr> References: <486235A8.6090204@developpement-durable.gouv.fr> Message-ID: <48652980.2030000@mapgears.com> What you observed is correct: the wms_encoding metadata is only used to fill the encoding parameter of the element in the GML response header. The current version of MapServer doesn't make any attempt of converting the encoding of the source data (if different) to that encoding. The simple solution is to use the same encoding for both the mapfile and all your data, and then wms_encoding can be used to set the encoding name in the header and everything should work smoothly. Daniel SAEZ Laurent - CETE M?diterr./DI/ETER wrote: > Hi list, > > I have : > > * mapserver 4.99, > * a mapfile utf-8 encoded, > * a mapinfo file create on windows (encoding cp1252). > > Extract of my mapfile (utf-8 encoded) : > "... > METADATA (of the map block) > ... > WMS_ENCODING "UTF-8" > END > ... > METADATA (of my layer) > WMS_TITLE "TRONCON_ROUTE par Classement_Administratif_Route" > WMS_EXTENT "73114.958418 1622638.022606 1197702.049962 2676196.041411" > gml_include_items > "Id_Route120,Vocation,Nombre_Chaussees,Nombre_Voies,Ouverture,Acces,Reseau_Vert,Sens,Reseau_Europeen,Numero_Route,Classement_Administratif_Route,Longueur_Troncon" > gml_Nombre_Chaussees_alias "Nombre_Chauss?es" > END > ...." > > I have to make WMS/GetFeatureInfo requests (with > INFO_FORMAT=application/vnd.ogc.gml). > I've made several tests and it seems that : > > * WMS_ENCODING doens't encode anything. It just puts the right > header of the XML returned (example : encoding="UTF-8"?>) > * the XML tags name are putted as they're coded in the mapfile > (example : 1 chauss?e), > * the XML tags values are putted as they're coded in the data source > (example : see above). > > So, if I change MWS_ENCODING to ISO-8859-1 (in my mapfile UTF-8 encoded) > the only thing that changes is the XML header : encoding="ISO-8859-1"?> > The tags names and values are not encoded in ISO-8859-1. They're like > I've explain above. > If I try to read my ISO-8859-1 GetFeatureInfo XML with FireFox, it warns > that the XML is not well formed > (in my case at the line : 2 > chauss?es). > > NB : I've tried with GML_ENCODING with the same results. > > If I want all working right I have to : > > 1. encode my mapfile into the same encoding than my data (it isn't > very easy because I've mapinfo files in cp1252 and PostGIS data in > utf-8), > 2. use WMS_ENCODING with ISO-8859-1 value (that is the default value). > > I wonder if I have all understood ! > I would like that someone explains to me what I have not understood > and/or what I'm doing wrong. > > Thanks for help > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From guillaume.sueur at neogeo-online.net Fri Jun 27 11:47:19 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 27 Jun 2008 20:47:19 +0200 Subject: [mapserver-users] GetFeatureInfo XML result is not encoded at all In-Reply-To: <48652980.2030000@mapgears.com> References: <486235A8.6090204@developpement-durable.gouv.fr> <48652980.2030000@mapgears.com> Message-ID: <486535B7.1010102@neogeo-online.net> That's not so easy when you don't know the encoding of the data used. In a current project I have, people upload their data to be published via WMS. Would it be a big deal to add conversion of the result on the fly ? Thanks, Guillaume Daniel Morissette a ?crit : > What you observed is correct: the wms_encoding metadata is only used to > fill the encoding parameter of the element in the GML > response header. The current version of MapServer doesn't make any > attempt of converting the encoding of the source data (if different) to > that encoding. > > The simple solution is to use the same encoding for both the mapfile and > all your data, and then wms_encoding can be used to set the encoding > name in the header and everything should work smoothly. > > Daniel > > > SAEZ Laurent - CETE M?diterr./DI/ETER wrote: >> Hi list, >> >> I have : >> >> * mapserver 4.99, >> * a mapfile utf-8 encoded, >> * a mapinfo file create on windows (encoding cp1252). >> >> Extract of my mapfile (utf-8 encoded) : >> "... >> METADATA (of the map block) >> ... >> WMS_ENCODING "UTF-8" >> END >> ... >> METADATA (of my layer) >> WMS_TITLE "TRONCON_ROUTE par Classement_Administratif_Route" >> WMS_EXTENT "73114.958418 1622638.022606 1197702.049962 >> 2676196.041411" >> gml_include_items >> "Id_Route120,Vocation,Nombre_Chaussees,Nombre_Voies,Ouverture,Acces,Reseau_Vert,Sens,Reseau_Europeen,Numero_Route,Classement_Administratif_Route,Longueur_Troncon" >> >> gml_Nombre_Chaussees_alias "Nombre_Chauss?es" >> END >> ...." >> >> I have to make WMS/GetFeatureInfo requests (with >> INFO_FORMAT=application/vnd.ogc.gml). >> I've made several tests and it seems that : >> >> * WMS_ENCODING doens't encode anything. It just puts the right >> header of the XML returned (example : > encoding="UTF-8"?>) >> * the XML tags name are putted as they're coded in the mapfile >> (example : 1 chauss?e), >> * the XML tags values are putted as they're coded in the data source >> (example : see above). >> >> So, if I change MWS_ENCODING to ISO-8859-1 (in my mapfile UTF-8 >> encoded) the only thing that changes is the XML header : > version="1.0" encoding="ISO-8859-1"?> >> The tags names and values are not encoded in ISO-8859-1. They're like >> I've explain above. >> If I try to read my ISO-8859-1 GetFeatureInfo XML with FireFox, it >> warns that the XML is not well formed >> (in my case at the line : 2 >> chauss?es). >> >> NB : I've tried with GML_ENCODING with the same results. >> >> If I want all working right I have to : >> >> 1. encode my mapfile into the same encoding than my data (it isn't >> very easy because I've mapinfo files in cp1252 and PostGIS data in >> utf-8), >> 2. use WMS_ENCODING with ISO-8859-1 value (that is the default value). >> >> I wonder if I have all understood ! >> I would like that someone explains to me what I have not understood >> and/or what I'm doing wrong. >> >> Thanks for help >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 dmorissette at mapgears.com Fri Jun 27 11:52:47 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 27 Jun 2008 14:52:47 -0400 Subject: [mapserver-users] GetFeatureInfo XML result is not encoded at all In-Reply-To: <486535B7.1010102@neogeo-online.net> References: <486235A8.6090204@developpement-durable.gouv.fr> <48652980.2030000@mapgears.com> <486535B7.1010102@neogeo-online.net> Message-ID: <486536FF.8070308@mapgears.com> Guillaume Sueur wrote: > That's not so easy when you don't know the encoding of the data used. In > a current project I have, people upload their data to be published via WMS. > Would it be a big deal to add conversion of the result on the fly ? > In which format do they upload their data? Chances are that if you don't know the encoding then MapServer would have no way to guess it either. For instance, I most DBF files do not come with any encoding information so you need to guess what it is. Assuming we have a way to determine the encoding of the data, or that we add some parameter at the layer level to let the admin specify it, then yes it would be technically possible to implement encoding conversions in MapServer. We already do that in the case of LABELs for instance (see the LABEL ENCODING param). Daniel -- Daniel Morissette http://www.mapgears.com/ From guillaume.sueur at neogeo-online.net Fri Jun 27 12:00:30 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 27 Jun 2008 21:00:30 +0200 Subject: [mapserver-users] GetFeatureInfo XML result is not encoded at all In-Reply-To: <486536FF.8070308@mapgears.com> References: <486235A8.6090204@developpement-durable.gouv.fr> <48652980.2030000@mapgears.com> <486535B7.1010102@neogeo-online.net> <486536FF.8070308@mapgears.com> Message-ID: <486538CE.4050409@neogeo-online.net> I don't think they can even imagine what a character set is. I assume it's LATIN1, and get some bad results some times. Too bad... Guillaume Daniel Morissette a ?crit : > Guillaume Sueur wrote: >> That's not so easy when you don't know the encoding of the data used. >> In a current project I have, people upload their data to be published >> via WMS. >> Would it be a big deal to add conversion of the result on the fly ? >> > > In which format do they upload their data? Chances are that if you don't > know the encoding then MapServer would have no way to guess it either. > For instance, I most DBF files do not come with any encoding information > so you need to guess what it is. > > Assuming we have a way to determine the encoding of the data, or that we > add some parameter at the layer level to let the admin specify it, then > yes it would be technically possible to implement encoding conversions > in MapServer. We already do that in the case of LABELs for instance (see > the LABEL ENCODING param). > > Daniel From paul_pag00 at hotmail.com Fri Jun 27 13:33:33 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Fri, 27 Jun 2008 20:33:33 +0000 Subject: [mapserver-users] Change symbol size Message-ID: Hello all, I have a problem i want to change the size of the symbol in order to zoom in or zoom out is there posible, iom using true type symbols thanks _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE From matthew.pettis at gmail.com Fri Jun 27 22:47:49 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 28 Jun 2008 00:47:49 -0500 Subject: [mapserver-users] Basic Projection Help Message-ID: <82ba77b80806272247u548497aexdd77c0cd5ff63470@mail.gmail.com> Hello, I'm trying to get a handle on projections and reprojections. I have a dataset in a postgis database table that is in epsg:26915 (it's the state of MN). I know this from the metadata provided by the provider (state of Minnesota itself). When I loaded it into postgis, the geometry_columns row for this table/column combo set srid=-1. As I know that this is in epsg:26915, I manually changed the geometry_columns row entry to it (see: === geometry_columns === section). Problem is, I get an error of using two different geometries. Anybody have any idea how i set the srid to the correct value of epsg:26915? I'd like to set this correctly so I can reproject it as necessary. The map will render with srid=-1, but then I don't think I can reproject the image correctly, right? below are what I think are the important sections to this problem. Thanks in advance for your help. Matt === url === ====================================================================== http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\mapreproj.map&mode=map ====================================================================== === error message === ====================================================================== msDrawMap(): Image handling error. Failed to draw layer named 'state'. msPOSTGISLayerWhichShapes(): Query error. Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from shp_state WHERE the_geom && setSRID('BOX3D(141095.125 4809728.25,810342.625 5478975.75)'::BOX3D, find_srid('','shp_state','the_geom') ) -ERROR: Operation on two geometries with different SRIDs ====================================================================== === geometry_columns === ====================================================================== oid;f_table_catalog;f_table_schema;f_table_name;f_geometry_column;coor_dimension;srid;type 336791;"''";"public";"shp_state";"the_geom";2;26915;"MULTIPOLYGON" ====================================================================== === mapreproj.map === ====================================================================== MAP ################ # Map attributes ################ IMAGETYPE PNG EXTENT 184056.505 4809728.25 767381.245 5478975.75 SIZE 600 600 IMAGECOLOR 255 255 255 FONTSET "C:/ms4w/Apache/htdocs/fonts/fonts.list" #################### # Web settings #################### WEB IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" IMAGEURL "/tmp/" END #################### # State # Background shows through missing precincts to show where no votes will be coming from #################### LAYER NAME "state" 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 ====================================================================== -- 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 pcreso at pcreso.com Fri Jun 27 23:12:34 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 27 Jun 2008 23:12:34 -0700 (PDT) Subject: [mapserver-users] Basic Projection Help In-Reply-To: <82ba77b80806272247u548497aexdd77c0cd5ff63470@mail.gmail.com> Message-ID: <325228.40390.qm@web33205.mail.mud.yahoo.com> Hi Matthew, If you loaded it from shapefiles using shp2pgsql, then use the -s flag to set the srid to the correct value. If you \d your table, I think you'll find a constraint on it setting the srid, as well as the geometrycolumns entry. The simplest way to get things working with mapserver may well be to leave it as -1 in the database (& geometrycolumns entry) & in your mapserver mapfile data statement, specify the sql returns setsrid(geom,26915) instead of geom, so postgis returns the values with the appropriate SRID set, irrespective of what the database actually stores. That will get things working until you load the data with the correct srid. HTH, Brent Wood --- On Sat, 6/28/08, Matthew Pettis wrote: > From: Matthew Pettis > Subject: [mapserver-users] Basic Projection Help > To: "Mapserver-users" > Date: Saturday, June 28, 2008, 5:47 PM > Hello, > > I'm trying to get a handle on projections and > reprojections. I have a > dataset in a postgis database table that is in epsg:26915 > (it's the state of > MN). I know this from the metadata provided by the > provider (state of > Minnesota itself). > > When I loaded it into postgis, the geometry_columns row for > this > table/column combo set srid=-1. As I know that this is in > epsg:26915, I > manually changed the geometry_columns row entry to it (see: > === > geometry_columns === section). > > Problem is, I get an error of using two different > geometries. Anybody have > any idea how i set the srid to the correct value of > epsg:26915? I'd like to > set this correctly so I can reproject it as necessary. The > map will render > with srid=-1, but then I don't think I can reproject > the image correctly, > right? > > below are what I think are the important sections to this > problem. Thanks > in advance for your help. > > Matt > > === url === > ====================================================================== > http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\mapreproj.map&mode=map > ====================================================================== > > === error message === > ====================================================================== > msDrawMap(): Image handling error. Failed to draw layer > named 'state'. > msPOSTGISLayerWhichShapes(): Query error. Error executing > POSTGIS SQL > statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR > FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from > shp_state WHERE the_geom && > setSRID('BOX3D(141095.125 4809728.25,810342.625 > 5478975.75)'::BOX3D, > find_srid('','shp_state','the_geom') > ) -ERROR: > Operation on two geometries with different SRIDs > ====================================================================== > > === geometry_columns === > ====================================================================== > oid;f_table_catalog;f_table_schema;f_table_name;f_geometry_column;coor_dimension;srid;type > 336791;"''";"public";"shp_state";"the_geom";2;26915;"MULTIPOLYGON" > ====================================================================== > > === mapreproj.map === > ====================================================================== > MAP > > ################ > # Map attributes > ################ > IMAGETYPE PNG > EXTENT 184056.505 4809728.25 767381.245 5478975.75 > SIZE 600 600 > IMAGECOLOR 255 255 255 > FONTSET > "C:/ms4w/Apache/htdocs/fonts/fonts.list" > > #################### > # Web settings > #################### > WEB > IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > #################### > # State > # Background shows through missing precincts to show > where no votes will > be coming from > #################### > LAYER > NAME "state" > > 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 > ====================================================================== > > > -- > 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 pspencer at dmsolutions.ca Sat Jun 28 07:35:04 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Sat, 28 Jun 2008 10:35:04 -0400 Subject: [mapserver-users] Basic Projection Help In-Reply-To: <325228.40390.qm@web33205.mail.mud.yahoo.com> References: <325228.40390.qm@web33205.mail.mud.yahoo.com> Message-ID: There is normally a constraint set on postgis tables that specifies the SRID, if you want to change the SRID then you need to drop the constraint, set the SRID and optionally put back the constraint with the correct SRID. I do not believe this is necessary to achieve what you want, though. An SRID of -1 tells postgis to return the geometry as is to mapserver. Mapserver then doesn't know what the projection of the data is, but that is okay because you can provide an PROJECTION object on your layer in mapserver. Then mapserver knows what the projection of the data is without having to consult postgis and will be able to reproject the data for you. So you should be able to leave your data in the database with SRID -1 and put PROJECTION "init=epsg:26915" END in your layer. Then if you use a different projection at the MAP level, mapserver knows that your data is in UTM zone 15 and will reproject it on the fly. If you are *always* going to reprojecting your data then you should actually transform it in the database so that you don't suffer from reprojection overhead on every request. Cheers Paul On 28-Jun-08, at 2:12 AM, pcreso at pcreso.com wrote: > Hi Matthew, > > If you loaded it from shapefiles using shp2pgsql, then use the -s > flag to set the srid to the correct value. > > If you \d your table, I think you'll find a constraint on it setting > the srid, as well as the geometrycolumns entry. > > The simplest way to get things working with mapserver may well be to > leave it as -1 in the database (& geometrycolumns entry) & in your > mapserver mapfile data statement, specify the sql returns > setsrid(geom,26915) instead of geom, so postgis returns the values > with the appropriate SRID set, irrespective of what the database > actually stores. > > That will get things working until you load the data with the > correct srid. > > HTH, > > Brent Wood > > > > --- On Sat, 6/28/08, Matthew Pettis wrote: > >> From: Matthew Pettis >> Subject: [mapserver-users] Basic Projection Help >> To: "Mapserver-users" >> Date: Saturday, June 28, 2008, 5:47 PM >> Hello, >> >> I'm trying to get a handle on projections and >> reprojections. I have a >> dataset in a postgis database table that is in epsg:26915 >> (it's the state of >> MN). I know this from the metadata provided by the >> provider (state of >> Minnesota itself). >> >> When I loaded it into postgis, the geometry_columns row for >> this >> table/column combo set srid=-1. As I know that this is in >> epsg:26915, I >> manually changed the geometry_columns row entry to it (see: >> === >> geometry_columns === section). >> >> Problem is, I get an error of using two different >> geometries. Anybody have >> any idea how i set the srid to the correct value of >> epsg:26915? I'd like to >> set this correctly so I can reproject it as necessary. The >> map will render >> with srid=-1, but then I don't think I can reproject >> the image correctly, >> right? >> >> below are what I think are the important sections to this >> problem. Thanks >> in advance for your help. >> >> Matt >> >> === url === >> = >> ===================================================================== >> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol >> \mapreproj.map&mode=map >> = >> ===================================================================== >> >> === error message === >> = >> ===================================================================== >> msDrawMap(): Image handling error. Failed to draw layer >> named 'state'. >> msPOSTGISLayerWhichShapes(): Query error. Error executing >> POSTGIS SQL >> statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR >> FOR SELECT >> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >> from >> shp_state WHERE the_geom && >> setSRID('BOX3D(141095.125 4809728.25,810342.625 >> 5478975.75)'::BOX3D, >> find_srid('','shp_state','the_geom') >> ) -ERROR: >> Operation on two geometries with different SRIDs >> = >> ===================================================================== >> >> === geometry_columns === >> = >> ===================================================================== >> oid >> ;f_table_catalog >> ;f_table_schema >> ;f_table_name;f_geometry_column;coor_dimension;srid;type >> 336791;"''";"public";"shp_state";"the_geom";2;26915;"MULTIPOLYGON" >> = >> ===================================================================== >> >> === mapreproj.map === >> = >> ===================================================================== >> MAP >> >> ################ >> # Map attributes >> ################ >> IMAGETYPE PNG >> EXTENT 184056.505 4809728.25 767381.245 5478975.75 >> SIZE 600 600 >> IMAGECOLOR 255 255 255 >> FONTSET >> "C:/ms4w/Apache/htdocs/fonts/fonts.list" >> >> #################### >> # Web settings >> #################### >> WEB >> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" >> IMAGEURL "/tmp/" >> END >> >> #################### >> # State >> # Background shows through missing precincts to show >> where no votes will >> be coming from >> #################### >> LAYER >> NAME "state" >> >> 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 >> = >> ===================================================================== >> >> >> -- >> 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 __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From matthew.pettis at gmail.com Sat Jun 28 09:05:17 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 28 Jun 2008 11:05:17 -0500 Subject: [mapserver-users] Basic Projection Help In-Reply-To: References: <325228.40390.qm@web33205.mail.mud.yahoo.com> Message-ID: <82ba77b80806280905v5443c317x2e0729abea18d92d@mail.gmail.com> Thanks to the both of you for your help -- that helps me quite a bit to understand that how to reproject a srid=-1 on the fly and how i should go about permanently fixing it in my geometry table. Take care, Matt On Sat, Jun 28, 2008 at 9:35 AM, Paul Spencer wrote: > There is normally a constraint set on postgis tables that specifies the > SRID, if you want to change the SRID then you need to drop the constraint, > set the SRID and optionally put back the constraint with the correct SRID. > > I do not believe this is necessary to achieve what you want, though. An > SRID of -1 tells postgis to return the geometry as is to mapserver. > Mapserver then doesn't know what the projection of the data is, but that is > okay because you can provide an PROJECTION object on your layer in > mapserver. Then mapserver knows what the projection of the data is without > having to consult postgis and will be able to reproject the data for you. > > So you should be able to leave your data in the database with SRID -1 and > put > > PROJECTION > "init=epsg:26915" > END > > in your layer. Then if you use a different projection at the MAP level, > mapserver knows that your data is in UTM zone 15 and will reproject it on > the fly. > > If you are *always* going to reprojecting your data then you should > actually transform it in the database so that you don't suffer from > reprojection overhead on every request. > > Cheers > > Paul > > > On 28-Jun-08, at 2:12 AM, pcreso at pcreso.com wrote: > > Hi Matthew, >> >> If you loaded it from shapefiles using shp2pgsql, then use the -s flag to >> set the srid to the correct value. >> >> If you \d your table, I think you'll find a constraint on it setting the >> srid, as well as the geometrycolumns entry. >> >> The simplest way to get things working with mapserver may well be to leave >> it as -1 in the database (& geometrycolumns entry) & in your mapserver >> mapfile data statement, specify the sql returns setsrid(geom,26915) instead >> of geom, so postgis returns the values with the appropriate SRID set, >> irrespective of what the database actually stores. >> >> That will get things working until you load the data with the correct >> srid. >> >> HTH, >> >> Brent Wood >> >> >> >> --- On Sat, 6/28/08, Matthew Pettis wrote: >> >> From: Matthew Pettis >>> Subject: [mapserver-users] Basic Projection Help >>> To: "Mapserver-users" >>> Date: Saturday, June 28, 2008, 5:47 PM >>> Hello, >>> >>> I'm trying to get a handle on projections and >>> reprojections. I have a >>> dataset in a postgis database table that is in epsg:26915 >>> (it's the state of >>> MN). I know this from the metadata provided by the >>> provider (state of >>> Minnesota itself). >>> >>> When I loaded it into postgis, the geometry_columns row for >>> this >>> table/column combo set srid=-1. As I know that this is in >>> epsg:26915, I >>> manually changed the geometry_columns row entry to it (see: >>> === >>> geometry_columns === section). >>> >>> Problem is, I get an error of using two different >>> geometries. Anybody have >>> any idea how i set the srid to the correct value of >>> epsg:26915? I'd like to >>> set this correctly so I can reproject it as necessary. The >>> map will render >>> with srid=-1, but then I don't think I can reproject >>> the image correctly, >>> right? >>> >>> below are what I think are the important sections to this >>> problem. Thanks >>> in advance for your help. >>> >>> Matt >>> >>> === url === >>> ====================================================================== >>> http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol >>> \mapreproj.map&mode=map >>> ====================================================================== >>> >>> === error message === >>> ====================================================================== >>> msDrawMap(): Image handling error. Failed to draw layer >>> named 'state'. >>> msPOSTGISLayerWhichShapes(): Query error. Error executing >>> POSTGIS SQL >>> statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR >>> FOR SELECT >>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>> from >>> shp_state WHERE the_geom && >>> setSRID('BOX3D(141095.125 4809728.25,810342.625 >>> 5478975.75)'::BOX3D, >>> find_srid('','shp_state','the_geom') >>> ) -ERROR: >>> Operation on two geometries with different SRIDs >>> ====================================================================== >>> >>> === geometry_columns === >>> ====================================================================== >>> >>> oid;f_table_catalog;f_table_schema;f_table_name;f_geometry_column;coor_dimension;srid;type >>> 336791;"''";"public";"shp_state";"the_geom";2;26915;"MULTIPOLYGON" >>> ====================================================================== >>> >>> === mapreproj.map === >>> ====================================================================== >>> MAP >>> >>> ################ >>> # Map attributes >>> ################ >>> IMAGETYPE PNG >>> EXTENT 184056.505 4809728.25 767381.245 5478975.75 >>> SIZE 600 600 >>> IMAGECOLOR 255 255 255 >>> FONTSET >>> "C:/ms4w/Apache/htdocs/fonts/fonts.list" >>> >>> #################### >>> # Web settings >>> #################### >>> WEB >>> IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" >>> IMAGEURL "/tmp/" >>> END >>> >>> #################### >>> # State >>> # Background shows through missing precincts to show >>> where no votes will >>> be coming from >>> #################### >>> LAYER >>> NAME "state" >>> >>> 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 >>> ====================================================================== >>> >>> >>> -- >>> 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 >> > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > -- 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 mark_brooks at ncsu.edu Sat Jun 28 12:39:08 2008 From: mark_brooks at ncsu.edu (Mark Brooks) Date: Sat, 28 Jun 2008 15:39:08 -0400 (EDT) Subject: [mapserver-users] satellite / aerial imagery Message-ID: <25169.75.189.133.184.1214681948.squirrel@webmail.ncsu.edu> I am working on a mapserver project and need satellite or aerial imagery, preferably at a very high resolution. Kind of like google maps satellite view. I assume raster or geotif would be the ideal file type. I only need imagery for North America. Can anyone suggest a good, hopefully free, resource for this? Much thanks, Mark NC State University From 3dlover at gmail.com Sat Jun 28 13:26:58 2008 From: 3dlover at gmail.com (Ray Collett) Date: Sat, 28 Jun 2008 13:26:58 -0700 Subject: [mapserver-users] Projecting coordinates without drawing maps? In-Reply-To: <1214646014.4750.2.camel@localhost> References: <716aa800806260803w9616d25gab2213412c5c907f@mail.gmail.com> <1214646014.4750.2.camel@localhost> Message-ID: <716aa800806281326n6842f4bcmcf1726bdc650d3c3@mail.gmail.com> Thanks for the reply Nicol. That looks simple enough. My initial test gave me this error message:* Fatal error*: [MapServer Error]: msProcessProjection(): projection not named in */var/www/home/newlands/www_nc3d_com/temp/kml2mxs.php* on line *4 * I did some googling and found some suggested modifications that fixed it: setXY(-122.667591, 45.522973); $poPoint->project($projInObj, $projOutObj); print_r($poPoint); ?> It looks like the projectionstring "EPSG:####" does not work (at least it does not work with the version in the latest Ubuntu package php5-mapscript_4.10.3-1_amd64.deb). I had to make the "epsg" lower case and prepend an "init=". But I now have a functioning projection routine and I'm now off to write an XML routine to process KML files. What fun! Thanks! -Ray On Sat, Jun 28, 2008 at 2:40 AM, Nicol Hermann wrote: > Ray, > > dl('../bin/php_mapscript.so'); > $projInObj = ms_newprojectionobj('EPSG:4326'); > $projOutObj = ms_newprojectionobj('EPSG:31466'); > $poPoint = ms_newpointobj(); > $poPoint->setXY(8.43, 50.4); > $poPoint->project($projInObj, $projOutObj); > > print_r($poPoint); > > > HTH > Nicol > > > Am Donnerstag, den 26.06.2008, 08:03 -0700 schrieb Ray Collett: > > Hello all, > > I need to project UTM coordinates into stateplane, but I have no > > need for drawing graphical maps. My output is to be a script that > > will be imported into another application. I have found the > > Geo::Proj4 for PERL, and I have a functioning skeleton program that is > > properly translating coordinates, but I'm not that familar with PERL > > and I'm spending 10x the time trying to do what I want as opposed to > > PHP which I know very well. I'm looking for the same functionality in > > PHP, but having a hard time finding it. I just discovered > > PHP/MapScript, and I hope that it can do what I need, but so far I > > have not found any samples that I can learn from. I have PHP/MapScript > > installed and working, It's drawing maps and processing shp files. > > > > Here's a sample of the PERL code that I am using: > > > > ==================================== > > #!/usr/bin/perl > > use Geo::Proj4; > > my $proj = Geo::Proj4->new(init => "epsg:2269") or die; > > my($lon, $lat) = (-122.667591, 45.522973); > > my @newLatLon = $proj->forward($lat, $lon); > > print "x:", $newLatLon[0]," y:", $newLatLon[1],"\n"; > > ==================================== > > > > When run, it returns: x:7646617.87276814 y:684215.14079164 > > > > Is there a way to do this in PHP? Is MapScript the way to go, or is > > there another project that I have not yet found that could do it for > > me? Any assistance is much appreciated! > > > > -Ray > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ======================================= --==-- Ray Collett --==-- Technical Director; Newlands & Co. Inc. 503.287.8000 x520 3dlover at gmail.com www.nc3d.com www.norwesters.org ======================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: From 3dlover at gmail.com Sat Jun 28 13:32:16 2008 From: 3dlover at gmail.com (Ray Collett) Date: Sat, 28 Jun 2008 13:32:16 -0700 Subject: [mapserver-users] satellite / aerial imagery In-Reply-To: <25169.75.189.133.184.1214681948.squirrel@webmail.ncsu.edu> References: <25169.75.189.133.184.1214681948.squirrel@webmail.ncsu.edu> Message-ID: <716aa800806281332t2def75cfk8cb5116c755a5eb5@mail.gmail.com> http://seamless.usgs.gov/ On Sat, Jun 28, 2008 at 12:39 PM, Mark Brooks wrote: > I am working on a mapserver project and need satellite or aerial imagery, > preferably at a very high resolution. Kind of like google maps satellite > view. I assume raster or geotif would be the ideal file type. I only > need imagery for North America. Can anyone suggest a good, hopefully > free, resource for this? > > Much thanks, > Mark > NC State University > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ======================================= --==-- Ray Collett --==-- Technical Director; Newlands & Co. Inc. 503.287.8000 x520 3dlover at gmail.com www.nc3d.com www.norwesters.org ======================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Sat Jun 28 15:02:40 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Sat, 28 Jun 2008 18:02:40 -0400 Subject: [mapserver-users] Projecting coordinates without drawing maps? In-Reply-To: <716aa800806281326n6842f4bcmcf1726bdc650d3c3@mail.gmail.com> References: <716aa800806260803w9616d25gab2213412c5c907f@mail.gmail.com> <1214646014.4750.2.camel@localhost> <716aa800806281326n6842f4bcmcf1726bdc650d3c3@mail.gmail.com> Message-ID: <869056B9-487C-4C95-92B0-9EE028E5D0AD@dmsolutions.ca> If you care why, mapserver's projection support passes the projection string to the proj4 library, which requires a certain style of passing parameters. You can pass in a full projection definition consisting of = which is the case with proj=latlong OR you can reference the projection parameters defined in a dictionary that proj4 knows about, in this case the 'epsg' dictionary. This is a common source of frustration and misunderstanding. When using mapserver as a WMS client, you define the projection that you want to get the data in from the remote WMS server by specifying an EPSG code in the form SRS=EPSG:XXXXX - and it is important in this case that it be in UPPER case and not have 'init='. Inside mapserver's MAP file, when defining a projection (or when using mapscript), you use the proj4 definitions. Note that the method of using init=: is still inefficient for mapserver because proj has to parse the rather large epsg file to find the appropriate proj string. If you are just doing some one-off translations then no big deal obviously, but if you are setting up a service to reproject or are setting up a map file with projections, then it can make quite a big difference. There are two quick optimizations that you can make: 1) move the s that you commonly use in the epsg file to the top of the file - proj will stop as soon as it finds the definition 2) copy the proj parameters from the epsg file into the projection object of your mapfile (or as a string in your php code in this case). Cheers Paul On 28-Jun-08, at 4:26 PM, Ray Collett wrote: > Thanks for the reply Nicol. That looks simple enough. My initial > test gave me this error message: > > Fatal error: [MapServer Error]: msProcessProjection(): projection > not named in /var/www/home/newlands/www_nc3d_com/temp/kml2mxs.php on > line 4 > > I did some googling and found some suggested modifications that > fixed it: > > dl('php_mapscript.so'); > $projInObj = ms_newprojectionobj('proj=latlong'); > $projOutObj = ms_newprojectionobj('init=epsg:2269'); > $poPoint = ms_newpointobj(); > $poPoint->setXY(-122.667591, 45.522973); > $poPoint->project($projInObj, $projOutObj); > print_r($poPoint); > ?> > > It looks like the projectionstring "EPSG:####" does not work (at > least it does not work with the version in the latest Ubuntu package > php5-mapscript_4.10.3-1_amd64.deb). I had to make the "epsg" lower > case and prepend an "init=". But I now have a functioning > projection routine and I'm now off to write an XML routine to > process KML files. What fun! > > Thanks! > -Ray > > On Sat, Jun 28, 2008 at 2:40 AM, Nicol Hermann > wrote: > Ray, > > dl('../bin/php_mapscript.so'); > $projInObj = ms_newprojectionobj('EPSG:4326'); > $projOutObj = ms_newprojectionobj('EPSG:31466'); > $poPoint = ms_newpointobj(); > $poPoint->setXY(8.43, 50.4); > $poPoint->project($projInObj, $projOutObj); > > print_r($poPoint); > > > HTH > Nicol > > > Am Donnerstag, den 26.06.2008, 08:03 -0700 schrieb Ray Collett: > > Hello all, > > I need to project UTM coordinates into stateplane, but I have no > > need for drawing graphical maps. My output is to be a script that > > will be imported into another application. I have found the > > Geo::Proj4 for PERL, and I have a functioning skeleton program > that is > > properly translating coordinates, but I'm not that familar with PERL > > and I'm spending 10x the time trying to do what I want as opposed to > > PHP which I know very well. I'm looking for the same > functionality in > > PHP, but having a hard time finding it. I just discovered > > PHP/MapScript, and I hope that it can do what I need, but so far I > > have not found any samples that I can learn from. I have PHP/ > MapScript > > installed and working, It's drawing maps and processing shp files. > > > > Here's a sample of the PERL code that I am using: > > > > ==================================== > > #!/usr/bin/perl > > use Geo::Proj4; > > my $proj = Geo::Proj4->new(init => "epsg:2269") or die; > > my($lon, $lat) = (-122.667591, 45.522973); > > my @newLatLon = $proj->forward($lat, $lon); > > print "x:", $newLatLon[0]," y:", $newLatLon[1],"\n"; > > ==================================== > > > > When run, it returns: x:7646617.87276814 y:684215.14079164 > > > > Is there a way to do this in PHP? Is MapScript the way to go, or is > > there another project that I have not yet found that could do it for > > me? Any assistance is much appreciated! > > > > -Ray > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ======================================= > --==-- Ray Collett --==-- > Technical Director; Newlands & Co. Inc. > 503.287.8000 x520 3dlover at gmail.com > www.nc3d.com www.norwesters.org > ======================================= > _______________________________________________ > 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 matthew.pettis at gmail.com Sat Jun 28 16:32:37 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 28 Jun 2008 18:32:37 -0500 Subject: [mapserver-users] OpenLayers Question: Google Physical Projections and epsg:26915 Message-ID: <82ba77b80806281632o722c3404k2d4a47ba7cbd2d38@mail.gmail.com> Thanks Paul, I think this last post you put up also may have answered a post under a different thread I just posted to this list ( http://openlayers.org/pipermail/users/2008-June/006478.html). I will be trying this later this evening. Thanks again, 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From santiagobanchero at gmail.com Sat Jun 28 17:52:44 2008 From: santiagobanchero at gmail.com (Santiago Banchero) Date: Sat, 28 Jun 2008 21:52:44 -0300 Subject: [mapserver-users] Trubles with Zoom In Message-ID: <31e2f6330806281752l7e132e4ei52587a2f8ae83dc1@mail.gmail.com> Hi, I' m going to start with mapserver and this is my first mail that I send to the list. The first problem that I have is the following: when I make a "zoom in" the image it's reduce until a little spot. I cheeked the code and I didn't find anything strange. I tried with another .map, that only contains layers shp, and it worked perfectly. But when I use PostGIS layers I have this problem. My layers are geographic wgs84 epsg:4326. Thank. Santiago -- Santiago Banchero -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at UDel.Edu Sat Jun 28 23:17:29 2008 From: john.callahan at UDel.Edu (John Callahan) Date: Sun, 29 Jun 2008 02:17:29 -0400 Subject: [mapserver-users] satellite / aerial imagery In-Reply-To: <716aa800806281332t2def75cfk8cb5116c755a5eb5@mail.gmail.com> References: <25169.75.189.133.184.1214681948.squirrel@webmail.ncsu.edu> <716aa800806281332t2def75cfk8cb5116c755a5eb5@mail.gmail.com> Message-ID: <486728F9.2020705@udel.edu> The USGS site is a good one. Check out http://gisdata.usgs.net/ for more info from USGS. Also check out TerraServer and the satellite imagery on http://www.perrygeo.net/wordpress/?p=35 Searching through http://geodata.gov/ may reveal something. I usually get frustrated with that site but you never know what you'll find. Note that very-high resolution imagery for North America as a raster/geotif may be a bit large. Connecting to a WMS service or Tile Map Server (like Google, Yahoo, VE) might be a better bet. I'm just getting started with MapServer so I really couldn't provide any instruction though. - John **************************************** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan at udel.edu http://www.dgs.udel.edu **************************************** Ray Collett wrote: > http://seamless.usgs.gov/ > > > On Sat, Jun 28, 2008 at 12:39 PM, Mark Brooks > wrote: > > I am working on a mapserver project and need satellite or aerial > imagery, > preferably at a very high resolution. Kind of like google maps > satellite > view. I assume raster or geotif would be the ideal file type. I only > need imagery for North America. Can anyone suggest a good, hopefully > free, resource for this? > > Much thanks, > Mark > NC State University > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ======================================= > --==-- Ray Collett --==-- > Technical Director; Newlands & Co. Inc. > 503.287.8000 x520 3dlover at gmail.com > www.nc3d.com www.norwesters.org > > ======================================= > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Jun 29 12:58:23 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 29 Jun 2008 14:58:23 -0500 Subject: [mapserver-users] MS4W packaging was: MapServer 5.2 Beta 3 Available In-Reply-To: <4864112D0200008F0001913E@co5.dnr.state.mn.us> References: <4864112D0200008F0001913E@co5.dnr.state.mn.us> Message-ID: <4867E95F.7000600@swoodbridge.com> MS4W packaging guys, When you have a chance to package up 5.2 can you also include fribidi2 support in that. I have clients that interested in using it for Arabic and you would make a bunch of people very happy if you can add that. Thanks, -Steve W Steve Lime wrote: > Hi folks: MapServer 5.2 Beta 3 has just been released, albeit one day > late. The source package is available for download at: > > http://mapserver.gis.umn.edu/download/beta > > The list of changes/fixes since 5.0 can be found at the end this > message. This is a significant release so we need your help in > testing. 5.2 should compatible with any 5.0 applications/mapfiles so > it should be relatively easy for folks to test. Please let us know > how it goes! > > This is the 3rd, and last, beta release (we hope) and if all goes > well there will be a release candidate next wek and the final release > in less than 2 weeks. > > More details can be found in the 5.2 release plan at: > > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_2/release_plan/ > > > Steve > > Version 5.2.0-beta3 (2008-06-26): --------------------------------- > > - mapsde.c: processing option added to allow using fully qualified > names for attributes (#2423). > > - mapsde.c: Test that for an active connection before closing it > #2498 > > - mapdraw.c: Fixed issue where path following labels were not being > drawn if FORCEd. (#2600) > > - mapshape.c: Applied patch to make the location of tiled data > relative to the tileindex directory if SHAPEPATH is not set. (#2369) > > - maptemplate.c: Fixed issues in RFC 36 implementation that prevented > mapscript mapObj->processQueryTemplate() method from working. > > - WMS/WFS: extend warning message (#1396) > > - WFS: Respect units for the DWhitin parameter (#2297) > > - WFS: correct OGC Contains filter (#2306) > > - WMS: set srsName correctly for GetFeatureInfo (#2502) > > - SOS: detect invalid time strings (#2560) > > - SOS: more srsName support (#2558) > > - mapserv.c, maptemplate.c: fixed problem with arguments to > msGenerateImages(). (#2655) > > - WMS: produce warning if layer extent is null (#1396) > > - WFS: project LatLongBoundingBox if required (#2579) > > - SOS: generate error for some invalid filters (#2604) > > - SLD: Use style's width paramater when generating sld (#1192) > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From 3dlover at gmail.com Sun Jun 29 12:12:22 2008 From: 3dlover at gmail.com (Ray Collett) Date: Sun, 29 Jun 2008 12:12:22 -0700 Subject: [mapserver-users] Projecting coordinates without drawing maps? In-Reply-To: <869056B9-487C-4C95-92B0-9EE028E5D0AD@dmsolutions.ca> References: <716aa800806260803w9616d25gab2213412c5c907f@mail.gmail.com> <1214646014.4750.2.camel@localhost> <716aa800806281326n6842f4bcmcf1726bdc650d3c3@mail.gmail.com> <869056B9-487C-4C95-92B0-9EE028E5D0AD@dmsolutions.ca> Message-ID: <716aa800806291212v3a6ad924q2bbf72818ad54b82@mail.gmail.com> My script will be run very infrequently (a couple times a day), but within the script I expect to reproject several thousand points each time. I assume the dictionary lookup occurs only when ms_newprojectionobj() is called and not when $poPoint->project() is called? As long as that's the case, then I'm good. It's nice to get some insight as to how mapserver is working though. Thanks. -Ray On Sat, Jun 28, 2008 at 3:02 PM, Paul Spencer wrote: > Note that the method of using init=: is still > inefficient for mapserver because proj has to parse the rather large epsg > file to find the appropriate proj string. If you are just doing some > one-off translations then no big deal obviously, but if you are setting up a > service to reproject or are setting up a map file with projections, then it > can make quite a big difference. > -- ======================================= --==-- Ray Collett --==-- Technical Director; Newlands & Co. Inc. 503.287.8000 x520 3dlover at gmail.com www.nc3d.com www.norwesters.org ======================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.pettis at gmail.com Sun Jun 29 22:34:05 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Mon, 30 Jun 2008 00:34:05 -0500 Subject: [mapserver-users] Projection help: proj command line Message-ID: <82ba77b80806292234g1c35f9a4vef743a2538ec8fe0@mail.gmail.com> Hi, This question is tangential to Mapserver, but critical to me nonetheless. I'm trying to reproject a shapefile in a mapfile from ========================================================= PROJECTION "init=epsg:26915" END ========================================================= to ========================================================= PROJECTION "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" END ========================================================= my extent in the 'from' projection are: ========================================================= EXTENT 184056.505 4809728.25 767381.245 5478975.75 ========================================================= Can someone help me figure out what my EXTENT should be in my 'to' projection? I've tried the following extents derived from the 'proj' command line outputs as extents, but was not successful: ========================================================= $ proj -I -f "%.4f" +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs 184056.505 4809728.25 1.6534 39.6121 767381.245 5478975.75 6.8935 44.0874 $ proj -I -f "%.4f" +init=epsg:26915 184056.505 4809728.25 -96.8998 43.3739 767381.245 5478975.75 -89.3140 49.4047 ========================================================= Anybody have any ideas what I am doing wrong? Do I somehow have to chain projections together to get from my 'from' projection to my 'to' projection? 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 ml.dje at geocontent.de Mon Jun 30 00:05:30 2008 From: ml.dje at geocontent.de (Dirk Jesko) Date: Mon, 30 Jun 2008 09:05:30 +0200 Subject: [mapserver-users] Projection help: proj command line In-Reply-To: <82ba77b80806292234g1c35f9a4vef743a2538ec8fe0@mail.gmail.com> References: <82ba77b80806292234g1c35f9a4vef743a2538ec8fe0@mail.gmail.com> Message-ID: <486885BA.5000306@geocontent.de> Hi Matthew, try cs2cs instead of proj, e.g. cs2cs +init=epsg:26915 +to +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs With proj you have to do the inverse projection from epsg:26915 (your from projection) to latlon/wgs84 (epsg:4326) first, proj -I -f "%.8f" +init=epsg:26915 In a second step project the resulting latlon coordinate into your to-projection: proj -f "%.4f" +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs Both version should work. Just for comparison, I got the following result for the first point of your extent: epsg:26915 : 184056.505, 4809728.25 epsg:4326 : -96.89976708 43.37391004 your to projection: -10786832.7293 5369059.0540 I hope, that this is correct and will help. Dirk > Hi, > > This question is tangential to Mapserver, but critical to me > nonetheless. I'm trying to reproject a shapefile in a mapfile from > > ========================================================= > PROJECTION > "init=epsg:26915" > END > ========================================================= > > to > > ========================================================= > PROJECTION > "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 > +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" > END > ========================================================= > > my extent in the 'from' projection are: > > ========================================================= > EXTENT 184056.505 4809728.25 767381.245 5478975.75 > ========================================================= > > Can someone help me figure out what my EXTENT should be in my 'to' > projection? I've tried the following extents derived from the 'proj' > command line outputs as extents, but was not successful: > > ========================================================= > $ proj -I -f "%.4f" +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 > +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null > +wktext +no_defs > 184056.505 4809728.25 > 1.6534 39.6121 > 767381.245 5478975.75 > 6.8935 44.0874 > > $ proj -I -f "%.4f" +init=epsg:26915 > 184056.505 4809728.25 > -96.8998 43.3739 > 767381.245 5478975.75 > -89.3140 49.4047 > ========================================================= > > Anybody have any ideas what I am doing wrong? Do I somehow have to > chain projections together to get from my 'from' projection to my 'to' > projection? > > 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From c.pelliconi at sis-ter.it Mon Jun 30 00:23:07 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Mon, 30 Jun 2008 09:23:07 +0200 Subject: [mapserver-users] problem with library In-Reply-To: <4864F90B.2060802@mapgears.com> References: <4864F90B.2060802@mapgears.com> Message-ID: <486889DB.60705@sis-ter.it> I use Mapscript on Debian: I had the same "dbase.so" problem. I've solved downloading php source and building manually the dbase.so from that source. Now it works. Bye, Carlo Daniel Morissette ha scritto: > MapServer doesn't have any direct dependency on PHP's dbase module, so > this is not a MapServer/MapScript problem, you could simply use > php_mapscript without it. If you need the dbase module to deal with > .dbf files then this is really a Ubuntu problem (it doesn't provide > the dbase module) and the following article may help: > > http://boutell.livejournal.com/935243.html > > Daniel > > Guillermo Korell wrote: >> I have a problem using mapscrip for php5 on Ubuntu 8.04. I've an >> error when i want to load dynamically a library, in the following line: >> dl("php_dbase.so"); >> >> the error is: >> >> *Warning*: dl() [function.dl ]: >> Unable to load dynamic library >> '/usr/lib/php5/20060613+lfs/php_dbase.so' - >> /usr/lib/php5/20060613+lfs/php_dbase.so: cannot open shared object >> file: No such file or directory in */home/gkorell/prueba/index.php* >> on line *2* >> >> I want to install this library for php but I don't found it. What >> can i do? >> Thanks >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From c.pelliconi at sis-ter.it Mon Jun 30 00:27:43 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Mon, 30 Jun 2008 09:27:43 +0200 Subject: [mapserver-users] Trubles with Zoom In In-Reply-To: <31e2f6330806281752l7e132e4ei52587a2f8ae83dc1@mail.gmail.com> References: <31e2f6330806281752l7e132e4ei52587a2f8ae83dc1@mail.gmail.com> Message-ID: <48688AEF.7070308@sis-ter.it> Look for zoomsize input in your template file. If it isn't defined, set the value to "2" for example (i.e. zoom factor="2") Hope this could be the solution. Bye, Carlo Santiago Banchero ha scritto: > > Hi, > > I' m going to start with mapserver and this is my first > mail that I send to the list. > > The first problem that I have is the following: when I make a "zoom > in" the image it's reduce until a little spot. > > > > I cheeked the code and I didn't find anything strange. I > tried with another .map, that only contains layers shp, and it worked > perfectly. But when I use PostGIS layers I have this problem. My > layers are geographic wgs84 epsg:4326. > > > > Thank. > > > > > > Santiago > > -- > Santiago Banchero > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.vianello at yahoo.it Mon Jun 30 00:34:53 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Mon, 30 Jun 2008 07:34:53 +0000 (GMT) Subject: [mapserver-users] support for georss feed ? Message-ID: <296725.45872.qm@web27306.mail.ukl.yahoo.com> Hi all, Is there a way to render georss information on mapserver maps ? I need to render on the map some points about which I don't know the coordinates when I wrote the map file. PS I can't use openlayer because? it is too heavy. any suggestion ? best regards 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 havard.tveite at umb.no Mon Jun 30 02:02:02 2008 From: havard.tveite at umb.no (=?ISO-8859-1?Q?H=E5vard_Tveite?=) Date: Mon, 30 Jun 2008 11:02:02 +0200 Subject: [mapserver-users] Change symbol size In-Reply-To: References: Message-ID: <4868A10A.20807@umb.no> If you want scalable symbols: Layer->SYMBOLSCALEDENOM, (Layer->MINSCALEDENOM, Layer->MAXSCALEDENOM), Style->SIZE (Style->MINSIZE, Style->MAXSIZE). See the MAPFILE reference for usage information: See also: "2.2. Symbol scaling" H?vard Paul Alarcon wrote: > Hello all, I have a problem i want to change the size of the symbol in order to zoom in or zoom out is there posible, iom using true type symbols > thanks > > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From guillaume.sueur at neogeo-online.net Mon Jun 30 02:19:04 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 30 Jun 2008 11:19:04 +0200 Subject: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike In-Reply-To: <4864E781.7010809@dmsolutions.ca> References: <48649E25.6090609@neogeo-online.net> <6f2569d80806270530xb72b40ci5b1ef36bb060b0fb@mail.gmail.com> <4864E58F.1020007@neogeo-online.net> <4864E781.7010809@dmsolutions.ca> Message-ID: <4868A508.6020008@neogeo-online.net> Folks, I've found the trick ! Where OGC SLD specification says : MapServer wants : Using the first expression with MapServer causes the filter set with it to apply to every records. Should I submit a ticket for this ? Guillaume Yewondwossen Assefa a ?crit : > Guillaume, > > Attaches is an sld I use for testing and mapsever returns the expected > results. If you do not mind sharing your sld, you can send it to me and > I can have a look. > > Best Regards, > > Guillaume Sueur wrote: >> actually it helped me going further in my analysis : >> when I use PropertyIsLike, it traps all the records, even those non >> matching with the pattern. >> Is that a mapserver bug on WMS-SLD handling ? >> >> Thanks >> >> >> >> Oscar Gomez a ?crit : >>> Hi Guillaume, >>> >>> In the past it worked for me, but I had to look very carefully at the >>> symbology specification from OGC. >>> >>> Here you are my example: >>> >>> >>> * * >>> *-* >>> *-* >> >>> >>> * * ]]> >>> * * >>> *-* >>> *-* >>> >>> * * *> * >>> * * *ORIGENAGUA* >>> * * *Subter** >>> * * >>> * * >>> *-* >>> >>> *-* >>> *-* >>> >>> *-* >>> *-* >>> * * *circle* >>> *-* >>> * * *#A87000* >>> * * *1.0* >>> * * >>> * * >>> * * *1* >>> * * >>> * * >>> * * >>> *-* >>> * * *#A87000* >>> * * *1* >>> * * *1* >>> * * >>> * * >>> * * >>> >>> >>> >>> >>> I hope you find it useful. Best, >>> >>> Oscar >>> >>> >>> On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur >>> >> > wrote: >>> >>> Hi >>> >>> Has anyone ever had a PropertyIsLike filter working on a WMS layer ? >>> I have an SLD file with several rules, all of them with >>> PropertyIsEqualTo Filter. It works ok. >>> If I change one of these to PropertyIsLike (I add wildcard, >>> singleChar and escapeChar as well), they ALL go wrong, none of the >>> filters being used. All my objects are then shown with the default >>> representation placed at the end of the file without any filter. >>> >>> Any idea about this strange behaviour ? >>> >>> Thanks >>> -- Guillaume >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> -- >>> Oscar Gomez >>> >>> Visita mi blog!! http://ogomez2.blogspot.com >> > > From bartvde at osgis.nl Mon Jun 30 02:30:40 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Mon, 30 Jun 2008 11:30:40 +0200 Subject: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike In-Reply-To: <4868A508.6020008@neogeo-online.net> References: <48649E25.6090609@neogeo-online.net> <6f2569d80806270530xb72b40ci5b1ef36bb060b0fb@mail.gmail.com> Message-ID: <20080630093040.7199B15EC63@webmail-beta.tiscomhosting.nl> <4864E58F.1020007 at neogeo-online.net> <4864E781.7010809 at dmsolutions.ca> <4868A508.6020008 at neogeo-online.net> Message-ID: <3fa2d6410a8df0a7b10f97bce0857f39 at pop02.backbone.tiscomhosting.nl> X-Sender: bartvde at osgis.nl Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Mon, 30 Jun 2008 11:30:40 +0200 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit No Mapserver is right in this case it uses SLD 1.0 which is tied to Filter 1.0, see: http://schemas.opengis.net/filter/1.0.0/filter.xsd Btw, in Filter 1.1 the OGC changed this to: http://schemas.opengis.net/filter/1.1.0/filter.xsd Best regards, Bart On Mon, 30 Jun 2008 11:19:04 +0200, Guillaume Sueur wrote: > Folks, I've found the trick ! > > Where OGC SLD specification says : > > > MapServer wants : > > > Using the first expression with MapServer causes the filter set with it > to apply to every records. > > Should I submit a ticket for this ? > > Guillaume > > > Yewondwossen Assefa a ??crit : >> Guillaume, >> >> Attaches is an sld I use for testing and mapsever returns the expected >> results. If you do not mind sharing your sld, you can send it to me and >> I can have a look. >> >> Best Regards, >> >> Guillaume Sueur wrote: >>> actually it helped me going further in my analysis : >>> when I use PropertyIsLike, it traps all the records, even those non >>> matching with the pattern. >>> Is that a mapserver bug on WMS-SLD handling ? >>> >>> Thanks >>> >>> >>> >>> Oscar Gomez a ??crit : >>>> Hi Guillaume, >>>> >>>> In the past it worked for me, but I had to look very carefully at the >>>> symbology specification from OGC. >>>> >>>> Here you are my example: >>>> >>>> >>>> * * >>>> *-* >>>> *-* >>> >>>> >>>> * * ]]> >>>> * * >>>> *-* > >>>> *-* >>>> >>>> * * *> * >>>> * * *ORIGENAGUA* >>>> * * *Subter** >>>> * * >>>> * * >>>> *-* >>>> >>>> *-* >>>> *-* >>>> >>>> *-* > >>>> *-* >>>> * * *circle* >>>> *-* >>>> * * *#A87000* >>>> * * *1.0* >>>> * * >>>> * * >>>> * * *1* >>>> * * >>>> * * >>>> * * >>>> *-* > >>>> * * *#A87000* >>>> * * *1* >>>> * * *1* >>>> * * >>>> * * >>>> * * >>>> >>>> >>>> >>>> >>>> I hope you find it useful. Best, >>>> >>>> Oscar >>>> >>>> >>>> On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur >>>> >>> > wrote: >>>> >>>> Hi >>>> >>>> Has anyone ever had a PropertyIsLike filter working on a WMS layer > ? >>>> I have an SLD file with several rules, all of them with >>>> PropertyIsEqualTo Filter. It works ok. >>>> If I change one of these to PropertyIsLike (I add wildcard, >>>> singleChar and escapeChar as well), they ALL go wrong, none of the >>>> filters being used. All my objects are then shown with the default >>>> representation placed at the end of the file without any filter. >>>> >>>> Any idea about this strange behaviour ? >>>> >>>> Thanks >>>> From guillaume.sueur at neogeo-online.net Mon Jun 30 02:45:38 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 30 Jun 2008 11:45:38 +0200 Subject: [mapserver-users] WMS, SLD, FilterEncoding and PropertyIsLike In-Reply-To: <20080630093040.7199B15EC63@webmail-beta.tiscomhosting.nl> References: <48649E25.6090609@neogeo-online.net> <6f2569d80806270530xb72b40ci5b1ef36bb060b0fb@mail.gmail.com> <20080630093040.7199B15EC63@webmail-beta.tiscomhosting.nl> Message-ID: <4868AB42.90403@neogeo-online.net> seen, thanks. shame on me for having followed the wrong specification paper ! But actually, isn't MapServer behaviour a bit weird when it applies the misconfigured filter on every record ? Guillaume bartvde at osgis.nl a ?crit : > <4864E58F.1020007 at neogeo-online.net> > <4864E781.7010809 at dmsolutions.ca> <4868A508.6020008 at neogeo-online.net> > Message-ID: <3fa2d6410a8df0a7b10f97bce0857f39 at pop02.backbone.tiscomhosting.nl> > X-Sender: bartvde at osgis.nl > Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Mon, 30 > Jun 2008 11:30:40 +0200 > User-Agent: RoundCube Webmail/0.1 > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: 8bit > > No Mapserver is right in this case it uses SLD 1.0 which is tied to Filter > 1.0, see: > > http://schemas.opengis.net/filter/1.0.0/filter.xsd > > > > Btw, in Filter 1.1 the OGC changed this to: > > http://schemas.opengis.net/filter/1.1.0/filter.xsd > > > > Best regards, > Bart > > On Mon, 30 Jun 2008 11:19:04 +0200, Guillaume Sueur > wrote: >> Folks, I've found the trick ! >> >> Where OGC SLD specification says : >> >> >> MapServer wants : >> >> >> Using the first expression with MapServer causes the filter set with it >> to apply to every records. >> >> Should I submit a ticket for this ? >> >> Guillaume >> >> >> Yewondwossen Assefa a ??crit : >>> Guillaume, >>> >>> Attaches is an sld I use for testing and mapsever returns the expected >>> results. If you do not mind sharing your sld, you can send it to me and >>> I can have a look. >>> >>> Best Regards, >>> >>> Guillaume Sueur wrote: >>>> actually it helped me going further in my analysis : >>>> when I use PropertyIsLike, it traps all the records, even those non >>>> matching with the pattern. >>>> Is that a mapserver bug on WMS-SLD handling ? >>>> >>>> Thanks >>>> >>>> >>>> >>>> Oscar Gomez a ??crit : >>>>> Hi Guillaume, >>>>> >>>>> In the past it worked for me, but I had to look very carefully at the >>>>> symbology specification from OGC. >>>>> >>>>> Here you are my example: >>>>> >>>>> >>>>> * * >>>>> *-* >>>>> *-* >>>> >>>>> >>>>> * * ]]> >>>>> * * >>>>> *-* >> >>>>> *-* >>>>> >>>>> * * *> * >>>>> * * *ORIGENAGUA* >>>>> * * *Subter** >>>>> * * >>>>> * * >>>>> *-* >>>>> >>>>> *-* >>>>> *-* >>>>> >>>>> *-* >> >>>>> *-* >>>>> * * *circle* >>>>> *-* >>>>> * * *#A87000* >>>>> * * *1.0* >>>>> * * >>>>> * * >>>>> * * *1* >>>>> * * >>>>> * * >>>>> * * >>>>> *-* >> >>>>> * * *#A87000* >>>>> * * *1* >>>>> * * *1* >>>>> * * >>>>> * * >>>>> * * >>>>> >>>>> >>>>> >>>>> >>>>> I hope you find it useful. Best, >>>>> >>>>> Oscar >>>>> >>>>> >>>>> On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur >>>>> >>>> > wrote: >>>>> >>>>> Hi >>>>> >>>>> Has anyone ever had a PropertyIsLike filter working on a WMS layer >> ? >>>>> I have an SLD file with several rules, all of them with >>>>> PropertyIsEqualTo Filter. It works ok. >>>>> If I change one of these to PropertyIsLike (I add wildcard, >>>>> singleChar and escapeChar as well), they ALL go wrong, none of the >>>>> filters being used. All my objects are then shown with the default >>>>> representation placed at the end of the file without any filter. >>>>> >>>>> Any idea about this strange behaviour ? >>>>> >>>>> Thanks >>>>> > From ila.engg at gmail.com Mon Jun 30 03:17:37 2008 From: ila.engg at gmail.com (Ila) Date: Mon, 30 Jun 2008 03:17:37 -0700 (PDT) Subject: [MAPSERVER-USERS] Labeling Road Message-ID: <18192553.post@talk.nabble.com> Hi List, I am newbie to this forum & stuck in a problem. Hope to get help from this forum. I want to show labels on the road along with road directions & fortunately I have successfully implemented it, but at some places on the road the label is not getting displayed on the road. It comes above the road or at road boundary, not in between the road boundary. If someone has any idea, then please share with me. Thanks in advance. Yours suggestions will be appreciated. -- View this message in context: http://www.nabble.com/Labeling-Road-tp18192553p18192553.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ila.engg at gmail.com Mon Jun 30 03:27:47 2008 From: ila.engg at gmail.com (Ila) Date: Mon, 30 Jun 2008 03:27:47 -0700 (PDT) Subject: [MAPSERVER-USERS] Change symbol size In-Reply-To: References: Message-ID: <18192698.post@talk.nabble.com> Please tell us the forum in detail that what are you doing to display a symbol, so that we can get the problem more clearly. pag66 wrote: > > > Hello all, I have a problem i want to change the size of the symbol in > order to zoom in or zoom out is there posible, iom using true type symbols > thanks > > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE_______________________________________________ > 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/Change-symbol-size-tp18163325p18192698.html Sent from the Mapserver - User mailing list archive at Nabble.com. From prasad.b at iworktech.com Mon Jun 30 03:35:02 2008 From: prasad.b at iworktech.com (Prasad B) Date: Mon, 30 Jun 2008 16:05:02 +0530 Subject: [mapserver-users] Problem while using Openlayer In-Reply-To: References: Message-ID: <592ab8ae0806300335re3eca10xab499c3fe84f2460@mail.gmail.com> Respt sir/madam, i have developing one application in MAPSERVER using C#.NET MapScript, i want to use OpenLayer library to my MAP, So please sir can u help me for how to use OpenLayer Library in my application. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -- Thanks & Regards, Prasad A. Bhale iWork Technologies Pvt. Ltd. Mobile:+91-9960051912 Visit us: www.iworktech.com This email message and any attachments is confidential and intended only for the use of an individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. iWork does not accept liability for any errors, omissions, corruption or virus in the contents of this message or any attachments that arise as a result of e-mail transmission. If you have received this communication in error, please notify the sender and delete the original message and its attachments immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Mon Jun 30 05:01:43 2008 From: srph124 at yahoo.com (Saka Royban) Date: Mon, 30 Jun 2008 05:01:43 -0700 (PDT) Subject: [mapserver-users] MapServer training options? Message-ID: <241259.8832.qm@web58208.mail.re3.yahoo.com> Hi all. I'm looking after different options available for umn mapsrever to choose the most suitable between them. Any help would be appreciated. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Mon Jun 30 05:08:58 2008 From: srph124 at yahoo.com (Saka Royban) Date: Mon, 30 Jun 2008 05:08:58 -0700 (PDT) Subject: [mapserver-users] MapServer Integration options? Message-ID: <464208.53391.qm@web58201.mail.re3.yahoo.com> Hi all. I'm doing a search to find out which softwares/packages/libraries i can use with mapserver for a more featureful webgis. for e.g. i know that i can use spatial database PostGIS to hold my data as a back-end? or use pgRouting for best path analysis. but what about other features? I'm really interested to hear about other's experiences. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From yosoycore at gmail.com Mon Jun 30 05:58:21 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Mon, 30 Jun 2008 14:58:21 +0200 Subject: [mapserver-users] Hosting Message-ID: <9c2e09570806300558h3eaecd29rc30b1b0c3f1f3377@mail.gmail.com> Hi everyone, Recently i've finished a project that includes this technologies: JSP Java Servlet Java Standard PHP MapServer Ka-Map PostgreSQL + PostGIS and I'm looking for a hosting in order to upload the application. Does anyone knows any hosting provider that offers this technologies? and prices? Thanks a lot! -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jun 30 06:43:40 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 30 Jun 2008 09:43:40 -0400 Subject: [mapserver-users] Re: [mapserver-dev] MS4W packaging was: MapServer 5.2 Beta 3 Available In-Reply-To: <4867E95F.7000600@swoodbridge.com> References: <4864112D0200008F0001913E@co5.dnr.state.mn.us> <4867E95F.7000600@swoodbridge.com> Message-ID: Steve, would you mind filing your MS4W requests in the bug tracker, so they don't get forgotten? http://bugzilla.maptools.org/ thanks. --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ On 29-Jun-08, at 3:58 PM, Stephen Woodbridge wrote: > MS4W packaging guys, > > When you have a chance to package up 5.2 can you also include > fribidi2 support in that. I have clients that interested in using it > for Arabic and you would make a bunch of people very happy if you > can add that. > > Thanks, > -Steve W From szekerest at gmail.com Mon Jun 30 07:09:15 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 30 Jun 2008 16:09:15 +0200 Subject: [mapserver-users] Problem while using Openlayer In-Reply-To: <592ab8ae0806300335re3eca10xab499c3fe84f2460@mail.gmail.com> References: <592ab8ae0806300335re3eca10xab499c3fe84f2460@mail.gmail.com> Message-ID: Are you referring to: http://developer.berlios.de/projects/openlayer ? 2008/6/30 Prasad B : > > > > Respt sir/madam, > > i have developing one application in MAPSERVER using C#.NET MapScript, > i want to use OpenLayer library to my MAP, > So please sir can u help me for how to use OpenLayer Library in my > application. > > > > > -- > Thanks & Regards, > > Prasad A. Bhale > iWork Technologies Pvt. Ltd. > Mobile:+91-9960051912 > Visit us: www.iworktech.com > > This email message and any attachments is confidential and intended only for > the use of an individual or entity named above and may contain information > that is privileged, confidential or exempt from disclosure under applicable > law. If you are not the intended recipient, you are notified that any > dissemination, distribution or copying of this email is strictly prohibited. > iWork does not accept liability for any errors, omissions, corruption or > virus in the contents of this message or any attachments that arise as a > result of e-mail transmission. If you have received this communication in > error, please notify the sender and delete the original message and its > attachments immediately. > > > -- > Thanks & Regards, > > Prasad A. Bhale > iWork Technologies Pvt. Ltd. > Mobile:+91-9960051912 > Visit us: www.iworktech.com > > This email message and any attachments is confidential and intended only for > the use of an individual or entity named above and may contain information > that is privileged, confidential or exempt from disclosure under applicable > law. If you are not the intended recipient, you are notified that any > dissemination, distribution or copying of this email is strictly prohibited. > iWork does not accept liability for any errors, omissions, corruption or > virus in the contents of this message or any attachments that arise as a > result of e-mail transmission. If you have received this communication in > error, please notify the sender and delete the original message and its > attachments immediately. > > > -- > Thanks & Regards, > > Prasad A. Bhale > iWork Technologies Pvt. Ltd. > Mobile:+91-9960051912 > Visit us: www.iworktech.com > > This email message and any attachments is confidential and intended only for > the use of an individual or entity named above and may contain information > that is privileged, confidential or exempt from disclosure under applicable > law. If you are not the intended recipient, you are notified that any > dissemination, distribution or copying of this email is strictly prohibited. > iWork does not accept liability for any errors, omissions, corruption or > virus in the contents of this message or any attachments that arise as a > result of e-mail transmission. If you have received this communication in > error, please notify the sender and delete the original message and its > attachments immediately. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From woodbri at swoodbridge.com Mon Jun 30 08:54:09 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 30 Jun 2008 10:54:09 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MS4W packaging was: MapServer 5.2 Beta 3 Available In-Reply-To: References: <4864112D0200008F0001913E@co5.dnr.state.mn.us> <4867E95F.7000600@swoodbridge.com> Message-ID: <486901A1.9090100@swoodbridge.com> http://bugzilla.maptools.org/show_bug.cgi?id=1914 Jeff McKenna wrote: > Steve, would you mind filing your MS4W requests in the bug tracker, so > they don't get forgotten? http://bugzilla.maptools.org/ > > thanks. > > > --- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > On 29-Jun-08, at 3:58 PM, Stephen Woodbridge wrote: > >> MS4W packaging guys, >> >> When you have a chance to package up 5.2 can you also include fribidi2 >> support in that. I have clients that interested in using it for Arabic >> and you would make a bunch of people very happy if you can add that. >> >> Thanks, >> -Steve W > > _______________________________________________ > 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 30 09:32:14 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Mon, 30 Jun 2008 11:32:14 -0500 Subject: [mapserver-users] Projection help: proj command line In-Reply-To: <486885BA.5000306@geocontent.de> References: <82ba77b80806292234g1c35f9a4vef743a2538ec8fe0@mail.gmail.com> <486885BA.5000306@geocontent.de> Message-ID: <82ba77b80806300932j54e70871p1376a22de67748d4@mail.gmail.com> That worked fantastically - Thank You Very Much! Matt On Mon, Jun 30, 2008 at 2:05 AM, Dirk Jesko wrote: > Hi Matthew, > > try cs2cs instead of proj, e.g. > > cs2cs +init=epsg:26915 +to +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 > +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs > > > With proj you have to do the inverse projection from epsg:26915 (your from > projection) to latlon/wgs84 (epsg:4326) first, > > proj -I -f "%.8f" +init=epsg:26915 > > In a second step project the resulting latlon coordinate into your > to-projection: > > proj -f "%.4f" +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 > +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs > > Both version should work. Just for comparison, I got the following result > for the first point of your extent: > > epsg:26915 : 184056.505, 4809728.25 > epsg:4326 : -96.89976708 43.37391004 > your to projection: -10786832.7293 5369059.0540 > > I hope, that this is correct and will help. > > Dirk > > >> Hi, >> >> This question is tangential to Mapserver, but critical to me >> nonetheless. I'm trying to reproject a shapefile in a mapfile from >> >> ========================================================= >> PROJECTION >> "init=epsg:26915" >> END >> ========================================================= >> >> to >> >> ========================================================= >> PROJECTION >> "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 >> +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" >> END >> ========================================================= >> >> my extent in the 'from' projection are: >> >> ========================================================= >> EXTENT 184056.505 4809728.25 767381.245 5478975.75 >> ========================================================= >> >> Can someone help me figure out what my EXTENT should be in my 'to' >> projection? I've tried the following extents derived from the 'proj' >> command line outputs as extents, but was not successful: >> >> ========================================================= >> $ proj -I -f "%.4f" +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 >> +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null >> +wktext +no_defs >> 184056.505 4809728.25 >> 1.6534 39.6121 >> 767381.245 5478975.75 >> 6.8935 44.0874 >> >> $ proj -I -f "%.4f" +init=epsg:26915 >> 184056.505 4809728.25 >> -96.8998 43.3739 >> 767381.245 5478975.75 >> -89.3140 49.4047 >> ========================================================= >> >> Anybody have any ideas what I am doing wrong? Do I somehow have to >> chain projections together to get from my 'from' projection to my 'to' >> projection? >> >> 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 >> _______________________________________________ >> 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 Laurent.Saez at developpement-durable.gouv.fr Mon Jun 30 09:37:14 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Mon, 30 Jun 2008 18:37:14 +0200 Subject: [mapserver-users] GetFeatureInfo from PostGis database Message-ID: <48690BBA.6090106@developpement-durable.gouv.fr> Hi list, I'm trying to access data fields using getfeatureinfo from a PostGIS database. I've read some articles about it, but it seems that I'm a newbie. I've no problem with data access when I do some getmap requests. Here is a part of my mapfile : LAYER NAME "bdparcellaire_numero" TYPE annotation STATUS ON DUMP TRUE TEMPLATE "blank.html" MINSCALE 100 MAXSCALE 10000 CONNECTIONTYPE postgis CONNECTION "user=toto password=toto dbname=bdparcellaire_2007 host=172.23.208.134 port=5432" DATA "the_geom FROM (select numero, feuille, the_geom FROM localisant) as foo USING UNIQUE the_geom USING SRID=27582" LABELITEM "numero" CLASS LABEL TYPE TRUETYPE WRAP "#" COLOR 0 0 0 OUTLINECOLOR 254 254 254 FONT arial SIZE 9 POSITION CC FORCE false PARTIALS false END END METADATA WMS_TITLE "Num?ros de parcelle (Donn?es BD Parcellaire? - Copyright IGN)" wms_abstract "Visible entre les ?chelles 1/100 et 1/10 000" wms_srs "EPSG:27582 EPSG:27581 EPSG:27583 EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 EPSG:4326" wms_extent "47650 1620400 1197850 2677450" WMS_ENCODING "UTF-8" GML_INCLUDE_ITEMS "all" END END When I try this getfeatureinfo request, the XML returned is not complete : The request : http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A27582&WIDTH=600&HEIGHT=400&BBOX=643470,1743572,643590,1743652&LAYERS=bdparcellaire_numero&STYLES=&FORMAT=image%2Fpng&QUERY_LAYERS=bdparcellaire_numero&X=167&Y=175&INFO_FORMAT=application%2Fvnd.ogc.gml&FEATURE_COUNT=999 The entire XML : Why it doesn't work ? I know that it should be in my DATA object in my mapfile, but I don't know what exactly... Thanks a lot... From bartvde at osgis.nl Mon Jun 30 10:49:08 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 30 Jun 2008 19:49:08 +0200 Subject: [mapserver-users] GetFeatureInfo from PostGis database In-Reply-To: <48690BBA.6090106@developpement-durable.gouv.fr> References: <48690BBA.6090106@developpement-durable.gouv.fr> Message-ID: <48691C94.7090601@osgis.nl> You shouldn't use the geometry column as the unique column (USING UNIQUE X). Try an integer type column for that. Best regards, Bart SAEZ Laurent - CETE M?diterr./DI/ETER wrote: > Hi list, > > I'm trying to access data fields using getfeatureinfo from a PostGIS > database. > I've read some articles about it, but it seems that I'm a newbie. > I've no problem with data access when I do some getmap requests. > > Here is a part of my mapfile : > > LAYER > NAME "bdparcellaire_numero" > TYPE annotation > STATUS ON > DUMP TRUE > TEMPLATE "blank.html" > MINSCALE 100 > MAXSCALE 10000 > CONNECTIONTYPE postgis > CONNECTION "user=toto password=toto > dbname=bdparcellaire_2007 host=172.23.208.134 port=5432" > DATA "the_geom FROM (select numero, feuille, > the_geom FROM localisant) as foo USING UNIQUE the_geom USING SRID=27582" > LABELITEM "numero" > CLASS > LABEL > TYPE TRUETYPE > WRAP "#" > COLOR 0 0 0 > OUTLINECOLOR 254 254 254 > FONT arial > SIZE 9 > POSITION CC > FORCE false > PARTIALS false > END > END > METADATA > WMS_TITLE "Num?ros de parcelle (Donn?es BD Parcellaire? - > Copyright IGN)" > wms_abstract "Visible entre les ?chelles 1/100 et 1/10 > 000" wms_srs "EPSG:27582 EPSG:27581 EPSG:27583 > EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 > EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 > EPSG:4326" > wms_extent "47650 1620400 1197850 2677450" > WMS_ENCODING "UTF-8" > GML_INCLUDE_ITEMS "all" > END > END > > When I try this getfeatureinfo request, the XML returned is not > complete : > > The request : > http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A27582&WIDTH=600&HEIGHT=400&BBOX=643470,1743572,643590,1743652&LAYERS=bdparcellaire_numero&STYLES=&FORMAT=image%2Fpng&QUERY_LAYERS=bdparcellaire_numero&X=167&Y=175&INFO_FORMAT=application%2Fvnd.ogc.gml&FEATURE_COUNT=999 > > > The entire XML : > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > Why it doesn't work ? > I know that it should be in my DATA object in my mapfile, but I don't > know what exactly... > > Thanks a lot... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From wendell at enflight.com Mon Jun 30 10:46:55 2008 From: wendell at enflight.com (Wendell Turner) Date: Mon, 30 Jun 2008 10:46:55 -0700 Subject: [mapserver-users] no geotiff in mapserver rpm? Message-ID: <20080630174655.GA17271@q.rho.net> Why does the mapserv program in the mapserver-5.0.2-4.2 rpm not support geotiff as input? Isn't geotiff a common format for this type of application? Or is it that geotiff files are served up as (plain) raster images with a shapefile? Thanks, Wendell From warmerdam at pobox.com Mon Jun 30 10:58:22 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 30 Jun 2008 13:58:22 -0400 Subject: [mapserver-users] no geotiff in mapserver rpm? In-Reply-To: <20080630174655.GA17271@q.rho.net> References: <20080630174655.GA17271@q.rho.net> Message-ID: <48691EBE.1050705@pobox.com> Wendell Turner wrote: > Why does the mapserv program in the mapserver-5.0.2-4.2 rpm > not support geotiff as input? Isn't geotiff a common format > for this type of application? Or is it that geotiff files > are served up as (plain) raster images with a shapefile? Wendell, How did you determine that geotiff is not supported? Generally MapServer is built --without-tiff allowing tiff support to be provided by GDAL. It might also be helpful if you indicated the source of the .rpm you are referring to since I don't think it is an official product of the project and there are a number of sources for rpms. 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 wendell at enflight.com Mon Jun 30 11:18:01 2008 From: wendell at enflight.com (Wendell Turner) Date: Mon, 30 Jun 2008 11:18:01 -0700 Subject: [mapserver-users] no geotiff in mapserver rpm? In-Reply-To: <48691EBE.1050705@pobox.com> References: <20080630174655.GA17271@q.rho.net> <48691EBE.1050705@pobox.com> Message-ID: <20080630181801.GB17271@q.rho.net> On Mon, Jun 30, 2008 at 01:58:22PM -0400, Frank Warmerdam wrote: > Wendell Turner wrote: >> Why does the mapserv program in the mapserver-5.0.2-4.2 rpm >> not support geotiff as input? Isn't geotiff a common format >> for this type of application? Or is it that geotiff files >> are served up as (plain) raster images with a shapefile? > > Wendell, > > How did you determine that geotiff is not supported? Generally MapServer > is built --without-tiff allowing tiff support to be provided by GDAL. > > It might also be helpful if you indicated the source of the .rpm you are > referring to since I don't think it is an official product of the project > and there are a number of sources for rpms. Thank you for the quick response. The rpm was from one of the CentOS5 repositories, actual rpm is mapserver-5.0.2-4.2.i386.rpm, I think I got it from somewhere at rpm.pbone.net, possibly here http://rpm.pbone.net/index.php3/stat/4/idpl/6383115/com/mapserver-5.0.2-4.2.i386.rpm.html. mapserv -v does not show 'input=geotiff', which I thought was bad. So then, the proper way is to generate a shapefile for the geotiff file, have mapserver read the shapefile for parameters, and use the gdal library to do the geotiff/raster processing? Is a raster image with associated shapefile about the same as a geotiff (as far as pixels + metadata about the position, projection, etc)? Thanks again, Wendell From Laurent.Saez at developpement-durable.gouv.fr Mon Jun 30 22:48:51 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Tue, 01 Jul 2008 07:48:51 +0200 Subject: [mapserver-users] GetFeatureInfo from PostGis database In-Reply-To: <48691C94.7090601@osgis.nl> References: <48690BBA.6090106@developpement-durable.gouv.fr> <48691C94.7090601@osgis.nl> Message-ID: <4869C543.1040805@developpement-durable.gouv.fr> Hi, I've tried to use the gid column, but the getfeatureinfo reports me an error : "Postgresql reports the error as 'ERREUR: la colonne ?gid? n'existe pas '" The error tells me that the gid column doesn't exist. You can trust me, I have a field called gid. Thanks Le 30/06/2008 19:49, > Bart van den Eijnden (OSGIS) (par Internet) a ?crit : > You shouldn't use the geometry column as the unique column (USING > UNIQUE X). > > Try an integer type column for that. > > Best regards, > Bart > > SAEZ Laurent - CETE M?diterr./DI/ETER wrote: >> Hi list, >> >> I'm trying to access data fields using getfeatureinfo from a PostGIS >> database. >> I've read some articles about it, but it seems that I'm a newbie. >> I've no problem with data access when I do some getmap requests. >> >> Here is a part of my mapfile : >> >> LAYER >> NAME "bdparcellaire_numero" >> TYPE annotation >> STATUS ON >> DUMP TRUE >> TEMPLATE "blank.html" >> MINSCALE 100 >> MAXSCALE 10000 >> CONNECTIONTYPE postgis >> CONNECTION "user=toto password=toto >> dbname=bdparcellaire_2007 host=172.23.208.134 port=5432" >> DATA "the_geom FROM (select numero, feuille, >> the_geom FROM localisant) as foo USING UNIQUE the_geom USING SRID=27582" >> LABELITEM "numero" >> CLASS >> LABEL >> TYPE TRUETYPE >> WRAP "#" >> COLOR 0 0 0 >> OUTLINECOLOR 254 254 254 >> FONT arial >> SIZE 9 >> POSITION CC >> FORCE false >> PARTIALS false >> END >> END >> METADATA >> WMS_TITLE "Num?ros de parcelle (Donn?es BD Parcellaire? - >> Copyright IGN)" >> wms_abstract "Visible entre les ?chelles 1/100 et 1/10 >> 000" wms_srs "EPSG:27582 EPSG:27581 EPSG:27583 >> EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 >> EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 >> EPSG:4326" >> wms_extent "47650 1620400 1197850 2677450" >> WMS_ENCODING "UTF-8" >> GML_INCLUDE_ITEMS "all" >> END >> END >> >> When I try this getfeatureinfo request, the XML returned is not >> complete : >> >> The request : >> http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A27582&WIDTH=600&HEIGHT=400&BBOX=643470,1743572,643590,1743652&LAYERS=bdparcellaire_numero&STYLES=&FORMAT=image%2Fpng&QUERY_LAYERS=bdparcellaire_numero&X=167&Y=175&INFO_FORMAT=application%2Fvnd.ogc.gml&FEATURE_COUNT=999 >> >> >> The entire XML : >> >> >> > xmlns:gml="http://www.opengis.net/gml" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> >> >> >> Why it doesn't work ? >> I know that it should be in my DATA object in my mapfile, but I don't >> know what exactly... >> >> Thanks a lot... >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From guillaume.sueur at neogeo-online.net Mon Jun 30 22:53:59 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 01 Jul 2008 07:53:59 +0200 Subject: [mapserver-users] GetFeatureInfo from PostGis database In-Reply-To: <4869C543.1040805@developpement-durable.gouv.fr> References: <48690BBA.6090106@developpement-durable.gouv.fr> <48691C94.7090601@osgis.nl> <4869C543.1040805@developpement-durable.gouv.fr> Message-ID: <4869C677.3080001@neogeo-online.net> add gid to the SQL string : DATA "the_geom FROM (select gid, numero, feuille, the_geom FROM localisant) as foo USING UNIQUE gid USING SRID=27582" and try to use EPSG:27572 as 27582 is deprecated. Regards, GUillaume SAEZ Laurent - CETE M?diterr./DI/ETER a ?crit : > Hi, > > I've tried to use the gid column, but the getfeatureinfo reports me an > error : > "Postgresql reports the error as 'ERREUR: la colonne ?gid? > n'existe pas > '" > The error tells me that the gid column doesn't exist. You can trust me, > I have a field called gid. > > Thanks > > Le 30/06/2008 19:49, > Bart van den Eijnden (OSGIS) (par Internet) a > ?crit : >> You shouldn't use the geometry column as the unique column (USING >> UNIQUE X). >> >> Try an integer type column for that. >> >> Best regards, >> Bart >> >> SAEZ Laurent - CETE M?diterr./DI/ETER wrote: >>> Hi list, >>> >>> I'm trying to access data fields using getfeatureinfo from a PostGIS >>> database. >>> I've read some articles about it, but it seems that I'm a newbie. >>> I've no problem with data access when I do some getmap requests. >>> >>> Here is a part of my mapfile : >>> >>> LAYER >>> NAME "bdparcellaire_numero" >>> TYPE annotation >>> STATUS ON >>> DUMP TRUE >>> TEMPLATE "blank.html" >>> MINSCALE 100 >>> MAXSCALE 10000 >>> CONNECTIONTYPE postgis >>> CONNECTION "user=toto password=toto >>> dbname=bdparcellaire_2007 host=172.23.208.134 port=5432" >>> >>> LABELITEM "numero" >>> CLASS >>> LABEL >>> TYPE TRUETYPE >>> WRAP "#" >>> COLOR 0 0 0 >>> OUTLINECOLOR 254 254 254 >>> FONT arial >>> SIZE 9 >>> POSITION CC >>> FORCE false >>> PARTIALS false >>> END >>> END >>> METADATA >>> WMS_TITLE "Num?ros de parcelle (Donn?es BD Parcellaire? - >>> Copyright IGN)" >>> wms_abstract "Visible entre les ?chelles 1/100 et 1/10 >>> 000" wms_srs "EPSG:27582 EPSG:27581 EPSG:27583 >>> EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 >>> EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 >>> EPSG:4326" >>> wms_extent "47650 1620400 1197850 2677450" >>> WMS_ENCODING "UTF-8" >>> GML_INCLUDE_ITEMS "all" >>> END >>> END >>> >>> When I try this getfeatureinfo request, the XML returned is not >>> complete : >>> >>> The request : >>> http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A27582&WIDTH=600&HEIGHT=400&BBOX=643470,1743572,643590,1743652&LAYERS=bdparcellaire_numero&STYLES=&FORMAT=image%2Fpng&QUERY_LAYERS=bdparcellaire_numero&X=167&Y=175&INFO_FORMAT=application%2Fvnd.ogc.gml&FEATURE_COUNT=999 >>> >>> >>> The entire XML : >>> >>> >>> >> xmlns:gml="http://www.opengis.net/gml" >>> xmlns:xlink="http://www.w3.org/1999/xlink" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>> >>> >>> >>> Why it doesn't work ? >>> I know that it should be in my DATA object in my mapfile, but I don't >>> know what exactly... >>> >>> Thanks a lot... >>> _______________________________________________ >>> 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 paulborodaev at gmail.com Mon Jun 30 23:25:58 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Mon, 30 Jun 2008 23:25:58 -0700 (PDT) Subject: [MAPSERVER-USERS] Problem while using Openlayer In-Reply-To: <592ab8ae0806300335re3eca10xab499c3fe84f2460@mail.gmail.com> References: <592ab8ae0806300335re3eca10xab499c3fe84f2460@mail.gmail.com> Message-ID: <18210020.post@talk.nabble.com> I can help you, If you are talking about OpenLayers RIA JavaScript library. But I need more concrete questions. OpenLayers has a great examples page to learn. Best API Docs here http://dev.openlayers.org/apidocs/, but not here http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers-js.html. Prasad B wrote: > > Respt sir/madam, > > i have developing one application in MAPSERVER using C#.NET MapScript, > i want to use OpenLayer library to my MAP, > So please sir can u help me for how to use OpenLayer Library in my > application. > > > > > -- > Thanks & Regards, > > Prasad A. Bhale > iWork Technologies Pvt. Ltd. > Mobile:+91-9960051912 > Visit us: www.iworktech.com > > This email message and any attachments is confidential and intended only > for > the use of an individual or entity named above and may contain information > that is privileged, confidential or exempt from disclosure under > applicable > law. If you are not the intended recipient, you are notified that any > dissemination, distribution or copying of this email is strictly > prohibited. > iWork does not accept liability for any errors, omissions, corruption or > virus in the contents of this message or any attachments that arise as a > result of e-mail transmission. If you have received this communication in > error, please notify the sender and delete the original message and its > attachments immediately. > > > > -- > Thanks & Regards, > > Prasad A. Bhale > iWork Technologies Pvt. Ltd. > Mobile:+91-9960051912 > Visit us: www.iworktech.com > > This email message and any attachments is confidential and intended only > for > the use of an individual or entity named above and may contain information > that is privileged, confidential or exempt from disclosure under > applicable > law. If you are not the intended recipient, you are notified that any > dissemination, distribution or copying of this email is strictly > prohibited. > iWork does not accept liability for any errors, omissions, corruption or > virus in the contents of this message or any attachments that arise as a > result of e-mail transmission. If you have received this communication in > error, please notify the sender and delete the original message and its > attachments immediately. > > > -- > Thanks & Regards, > > Prasad A. Bhale > iWork Technologies Pvt. Ltd. > Mobile:+91-9960051912 > Visit us: www.iworktech.com > > This email message and any attachments is confidential and intended only > for > the use of an individual or entity named above and may contain information > that is privileged, confidential or exempt from disclosure under > applicable > law. If you are not the intended recipient, you are notified that any > dissemination, distribution or copying of this email is strictly > prohibited. > iWork does not accept liability for any errors, omissions, corruption or > virus in the contents of this message or any attachments that arise as a > result of e-mail transmission. If you have received this communication in > error, please notify the sender and delete the original message and its > attachments immediately. > > _______________________________________________ > 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/Problem-while-using-Openlayer-tp18192787p18210020.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Laurent.Saez at developpement-durable.gouv.fr Mon Jun 30 23:29:24 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Tue, 01 Jul 2008 08:29:24 +0200 Subject: [mapserver-users] GetFeatureInfo from PostGis database In-Reply-To: <4869C677.3080001@neogeo-online.net> References: <48690BBA.6090106@developpement-durable.gouv.fr> <48691C94.7090601@osgis.nl> <4869C543.1040805@developpement-durable.gouv.fr> <4869C677.3080001@neogeo-online.net> Message-ID: <4869CEC4.7020604@developpement-durable.gouv.fr> Hi Guillaume, You're right. A friend of mine has told me the same thing this morning. It works goo ! Youpi ! Thank you very much for your help Regards Le 01/07/2008 07:53, > Guillaume Sueur (par Internet) a ?crit : > add gid to the SQL string : > > DATA "the_geom FROM (select gid, numero, feuille, > the_geom FROM localisant) as foo USING UNIQUE gid USING SRID=27582" > > and try to use EPSG:27572 as 27582 is deprecated. > > Regards, > GUillaume > > > > SAEZ Laurent - CETE M?diterr./DI/ETER a ?crit : > >> Hi, >> >> I've tried to use the gid column, but the getfeatureinfo reports me an >> error : >> "Postgresql reports the error as 'ERREUR: la colonne ?gid? >> n'existe pas >> '" >> The error tells me that the gid column doesn't exist. You can trust me, >> I have a field called gid. >> >> Thanks >> >> Le 30/06/2008 19:49, > Bart van den Eijnden (OSGIS) (par Internet) a >> ?crit : >> >>> You shouldn't use the geometry column as the unique column (USING >>> UNIQUE X). >>> >>> Try an integer type column for that. >>> >>> Best regards, >>> Bart >>> >>> SAEZ Laurent - CETE M?diterr./DI/ETER wrote: >>> >>>> Hi list, >>>> >>>> I'm trying to access data fields using getfeatureinfo from a PostGIS >>>> database. >>>> I've read some articles about it, but it seems that I'm a newbie. >>>> I've no problem with data access when I do some getmap requests. >>>> >>>> Here is a part of my mapfile : >>>> >>>> LAYER >>>> NAME "bdparcellaire_numero" >>>> TYPE annotation >>>> STATUS ON >>>> DUMP TRUE >>>> TEMPLATE "blank.html" >>>> MINSCALE 100 >>>> MAXSCALE 10000 >>>> CONNECTIONTYPE postgis >>>> CONNECTION "user=toto password=toto >>>> dbname=bdparcellaire_2007 host=172.23.208.134 port=5432" >>>> >>>> LABELITEM "numero" >>>> CLASS >>>> LABEL >>>> TYPE TRUETYPE >>>> WRAP "#" >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 254 254 254 >>>> FONT arial >>>> SIZE 9 >>>> POSITION CC >>>> FORCE false >>>> PARTIALS false >>>> END >>>> END >>>> METADATA >>>> WMS_TITLE "Num?ros de parcelle (Donn?es BD Parcellaire? - >>>> Copyright IGN)" >>>> wms_abstract "Visible entre les ?chelles 1/100 et 1/10 >>>> 000" wms_srs "EPSG:27582 EPSG:27581 EPSG:27583 >>>> EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 >>>> EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 >>>> EPSG:4326" >>>> wms_extent "47650 1620400 1197850 2677450" >>>> WMS_ENCODING "UTF-8" >>>> GML_INCLUDE_ITEMS "all" >>>> END >>>> END >>>> >>>> When I try this getfeatureinfo request, the XML returned is not >>>> complete : >>>> >>>> The request : >>>> http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A27582&WIDTH=600&HEIGHT=400&BBOX=643470,1743572,643590,1743652&LAYERS=bdparcellaire_numero&STYLES=&FORMAT=image%2Fpng&QUERY_LAYERS=bdparcellaire_numero&X=167&Y=175&INFO_FORMAT=application%2Fvnd.ogc.gml&FEATURE_COUNT=999 >>>> >>>> >>>> The entire XML : >>>> >>>> >>>> >>> xmlns:gml="http://www.opengis.net/gml" >>>> xmlns:xlink="http://www.w3.org/1999/xlink" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>>> >>>> >>>> >>>> Why it doesn't work ? >>>> I know that it should be in my DATA object in my mapfile, but I don't >>>> know what exactly... >>>> >>>> Thanks a lot... >>>> _______________________________________________ >>>> 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: