From jmckenna at gatewaygeomatics.com Wed Oct 1 00:11:02 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 01 Oct 2008 09:11:02 +0200 Subject: [mapserver-users] WMS don't load In-Reply-To: References: Message-ID: <48E32286.5000402@gatewaygeomatics.com> I agree with Jukka in that the layer is not properly defined (see section 3.2 of the wms client howto for an example layer). (this is not an ms4w-specific problem) -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Rahkonen Jukka wrote: > Hi, > > Is either of your servers behind a proxy? > > Another thing, your connection string is not correct and I am surprised that one server is working. I suggest you to follow the instructions of document http://mapserver.gis.umn.edu/docs/howto/wms_client. > > Your connection is of very old format and there is no need to use that. Use the current format as described in the document above. Especially you don't for sure need request=GetMap, BBOX, WIDTH and HEIGHT here. Version, SRS, LAYERS and FORMAT are meant to be captured from metadata section when using the new format. PROJECTION is unnecessary for cascaded WMS layers but it should not harm if it is correct, like you seem to have. Take it away still. > wms_name in metadata should obviously be "pe_15m". > wms_format should be "image/gif" > > Correcting these should bring you at least closer to a working connection. > > -Jukka Rahkonen- > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Steve.Toutant at inspq.qc.ca > L?hetetty: ti 30.9.2008 19:57 > Vastaanottaja: Steve Lime > Kopio: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org > Aihe: Re: [mapserver-users] WMS don't load > > Version 5.0.0 on the server that works well > Version 5.2.0 on the server where WMS don't load > > > Also, If I call the WMS directly from internet explorer with > http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF > > it works on both servers so I guess it is not a network problem. > Here is the layer part of my mapfile: > LAYER # pe WMS map from geoConnexion > NAME pe > TYPE RASTER > OFFSITE 0 0 0 > STATUS default > CONNECTIONTYPE WMS > CONNECTION > "http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF" > > # METADATA > # "wms_srs" "EPSG:42304" > # "wms_name" "pe" > # "wms_server_version" "1.1.1" > # "wms_format" "gif" > # END > > PROJECTION > "init=epsg:42304" > END > END # pe WMS image ends here > > > I tried with the METADATA statement unmarked as well > thanks, > Steve From mirko.siebold at destatis.de Wed Oct 1 00:32:35 2008 From: mirko.siebold at destatis.de (Mirko Siebold) Date: Wed, 01 Oct 2008 09:32:35 +0200 Subject: [mapserver-users] Join CSV to Shapefile Message-ID: <48E32793.7090101@destatis.de> Hello, I have to join a CSV-file (containing statistical data) to a shape (containing administrative districts) - and I have no idea at all why it doesn't work. The CSV-file looks like this: 'AGS','Gebietseinheit','Einwohner' 1001000,Flensburg: Stadt,87792 1002000,Kiel: Landeshauptstadt,236902 1003000,L?beck: Hansestadt,211541 1004000,Neum?nster: Stadt,77595 ... where: AGS: key for joining shapefile to CSV (same key 'AGS' exists in attribute table of shapefile) Gebietseinheit: name of administrative unit Einwohner: number of inhabitants Now I want the number of inhabitants to be displayed inside the administrative districts of the map (e.g. inside the polygon of 'Flensburg' appears the number 87792). I use shp2img to test my mapfile but I always receive an error message that item 'Einwohner' could not be found. My mapfile looks like this: MAP NAME MyMap SIZE 3600 2400 UNITS dd EXTENT 3089902.716067 5229413.721979 4125004.235344 6124664.247035 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE PNG OUTPUTFORMAT NAME 'PNG' DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END LAYER NAME 'vg250_krs' TYPE POLYGON DATA 'vg250_krs.shp' # Shapefile with administrative districts STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END JOIN NAME 'testcon' TABLE 'BevLk3.csv' # CSV with statistical data (see above) FROM 'AGS' TO 'AGS' TYPE ONE-TO-ONE END LABELITEM 'Einwohner' # Item can't be found! # If I use another item from attribute table of vg250_krs.shp it works # If I use an item from BevLk3.csv nothing works # I think BevLk3.csv isn't linked correctly. But why? CLASS NAME 'vg250_krs' STYLE SYMBOL 0 SIZE 3 OUTLINECOLOR 0 0 0 COLOR 144 50 207 END LABEL MINFEATURESIZE 10 END END END END CSV-file, mapfile and shapefile are in the same directory. What is wrong with my mapfile? Or is my mapfile correct but it simply isn't possible to join attributes from other files with shp2img? Or does the CSV-File have to have another syntax? As I am new to UMN mapserver I would be very grateful for your help! Thank you, Mirko Siebold From flavio at tydac.ch Wed Oct 1 02:00:41 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Wed, 01 Oct 2008 11:00:41 +0200 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E25324.7090103@zeelandnet.nl> References: <48E25324.7090103@zeelandnet.nl> Message-ID: Hi Milo > I would also like to know if there are any commercial, mapserver > based, solutions for this. Yes ... there is. See www.mapserver.ch and look at the printing section under http://www.mapserver.ch/en/printing.htm In short the system supports: - PDF layouting via CMS (any number of layouts) - Rotated output - Two resolutions: 150 and 300dpi - Output to almost any paper size (over A2 a 64 bit system with at least 8GB memory required) - Printing is done via raster (png, jpeg ...) embedded in a PDF You can test it yourself i.e. on http://waedenswil.mapserver.ch/stadtplan.htm (thir rightmost icon in the app). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From NSoto at plotplans.com Wed Oct 1 04:49:40 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 1 Oct 2008 07:49:40 -0400 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D28@geoexchange.DesLauriers.local> Makes sense. Unfortunately I'd really like to not have to stuff the files in the system32 folder but as a last resort it may have to be. It definitely seems to be an issue with the bath to my SDE SDK not being added and I can't seem to figure how to include the path to my SDK in the %PATH% variable because the folder name has spaces in it and while no error happens when running the batch, I still run into the same error so back to the drawing board. Oh, I meant to mention before that I had walked through mapserv.exe and libmap.dll but neither seemed to reference the dll at all... I think it only loads on request from the map file? ProcMon doesn't help me out either but its definitely a PATH variable thing.. -----Original Message----- From: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Sent: Tuesday, September 30, 2008 4:25 PM To: Nelson Soto Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ArcSDE 9.3 Support. On 30 Sep 2008, at 21:56, Nelson Soto wrote: > After tracing dependencies with Dependency Walker, I can see sde.dll > and > libmap.dll aren't loading correctly when loading > 'msplugin_sde_92.dll'. > > Any ideas on how to alleviate this? Nelson, dynamically loaded plugin dlls which in turn require other statically compiled libraries is where Windows dll hell starts to get really ugly. Windows tries to locate your sde libraries either in one of the directories contained in your %PATH% (probably set by setenv.bat but I don't use MS4W so I can't help you there) or, preferably, in the application's folder. By that, if I'm not mistaken, they mean the directory which the main executable image of your app is launched from, so probably the one containing mapserv.exe (or maybe the one where libmap.dll resides?). It's definitely not going to work if you place them relative to the plugin inside your specialplugins folder as that dll is dynamically loaded into the main application's process space. What I'm saying is that Dependency Walker won't help you in this case if you launch it directly on msplugin_sde_92.dll, because what counts is what mapserver.exe/libmap.dll sees, not the plugin. Still, if all fails, you could always just drop the sde libs into c: \windows\system32 but I'm sure with some trial and error you'll find a place where they get picked up correctly. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From NSoto at plotplans.com Wed Oct 1 05:38:13 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 1 Oct 2008 08:38:13 -0400 Subject: [mapserver-users] ArcSDE 9.3 Support. In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D28@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> <7BA6F57E003ADF4EA12DAA3043BB13D43B0D28@geoexchange.DesLauriers.local> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D2A@geoexchange.DesLauriers.local> I got it to work... In case anyone is interested for future reference, it does have to do with the %PATH% not being configured properly to look at the SDE SDK files and I was unable to configure it correctly but placing the following files into the 'cgi-bin' folder where mapserv.exe resides allows it to run: Sde.dll Sg.dll Pe.dll Msvcp71d.dll <- if you have visual studio 2003 w/ C++ then you may not need to obtain this but I had to grab it online. Thanks for the help guys, Nelson -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Wednesday, October 01, 2008 7:50 AM To: Andreas Albarello Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] ArcSDE 9.3 Support. Makes sense. Unfortunately I'd really like to not have to stuff the files in the system32 folder but as a last resort it may have to be. It definitely seems to be an issue with the bath to my SDE SDK not being added and I can't seem to figure how to include the path to my SDK in the %PATH% variable because the folder name has spaces in it and while no error happens when running the batch, I still run into the same error so back to the drawing board. Oh, I meant to mention before that I had walked through mapserv.exe and libmap.dll but neither seemed to reference the dll at all... I think it only loads on request from the map file? ProcMon doesn't help me out either but its definitely a PATH variable thing.. -----Original Message----- From: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Sent: Tuesday, September 30, 2008 4:25 PM To: Nelson Soto Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ArcSDE 9.3 Support. On 30 Sep 2008, at 21:56, Nelson Soto wrote: > After tracing dependencies with Dependency Walker, I can see sde.dll > and > libmap.dll aren't loading correctly when loading > 'msplugin_sde_92.dll'. > > Any ideas on how to alleviate this? Nelson, dynamically loaded plugin dlls which in turn require other statically compiled libraries is where Windows dll hell starts to get really ugly. Windows tries to locate your sde libraries either in one of the directories contained in your %PATH% (probably set by setenv.bat but I don't use MS4W so I can't help you there) or, preferably, in the application's folder. By that, if I'm not mistaken, they mean the directory which the main executable image of your app is launched from, so probably the one containing mapserv.exe (or maybe the one where libmap.dll resides?). It's definitely not going to work if you place them relative to the plugin inside your specialplugins folder as that dll is dynamically loaded into the main application's process space. What I'm saying is that Dependency Walker won't help you in this case if you launch it directly on msplugin_sde_92.dll, because what counts is what mapserver.exe/libmap.dll sees, not the plugin. Still, if all fails, you could always just drop the sde libs into c: \windows\system32 but I'm sure with some trial and error you'll find a place where they get picked up correctly. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Wed Oct 1 06:11:37 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 1 Oct 2008 09:11:37 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: Message-ID: I agree this connection was not a good example. Before creating the mapfile I used it to get a map on Internet Explorer to verify if I had a network problem. Since it was working I put it in the mapfile I created the following mapFile based on this example http://mapserver.gis.umn.edu/docs/howto/wms_client/#adding-a-wms-layer and it still work on one server but not on the other. I get the blank page. When I test the mapFile with shp2img I got this message shp2img -m TutorielStatic.map -o test.png msProcessProjection(): Projection library error. No such file or directory
I got this message on the server who works well also. My EPSG file contains 4326. Can't see why I get that error. The second server is installed on a virtual environment on a vmware infrastructure. I'll talk with our network admin to see if it could be an issue. Here is the mapFile I'm now using. thanks for your help, steve : MAP IMAGETYPE PNG EXTENT -80.43000 44.99000 -57.64000 62.78000 SIZE 400 300 IMAGECOLOR 255 255 255 #Background color PROJECTION "init=epsg:4326" #wgs84 lat long END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "prov_bound" TYPE RASTER STATUS default CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Wed Oct 1 06:22:15 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Wed, 1 Oct 2008 09:22:15 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF663@ecburexch1.ontario.int.ec.gc.ca> Do you have EPSG:42304 defined in your mapfile? I wonder whether this is the issue. Having said this, if your output projection is EPSG:4326, you're better off defining wms_srs in the LAYER.METADATA to bypass the reprojection. ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: 01 October, 2008 9:12 AM To: Rahkonen Jukka Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS don't load I agree this connection was not a good example. Before creating the mapfile I used it to get a map on Internet Explorer to verify if I had a network problem. Since it was working I put it in the mapfile I created the following mapFile based on this example http://mapserver.gis.umn.edu/docs/howto/wms_client/#adding-a-wms-layer and it still work on one server but not on the other. I get the blank page. When I test the mapFile with shp2img I got this message shp2img -m TutorielStatic.map -o test.png msProcessProjection(): Projection library error. No such file or directory
I got this message on the server who works well also. My EPSG file contains 4326. Can't see why I get that error. The second server is installed on a virtual environment on a vmware infrastructure. I'll talk with our network admin to see if it could be an issue. Here is the mapFile I'm now using. thanks for your help, steve : MAP IMAGETYPE PNG EXTENT -80.43000 44.99000 -57.64000 62.78000 SIZE 400 300 IMAGECOLOR 255 255 255 #Background color PROJECTION "init=epsg:4326" #wgs84 lat long END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "prov_bound" TYPE RASTER STATUS default CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END END From snaperski at gmail.com Wed Oct 1 06:31:08 2008 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 1 Oct 2008 16:31:08 +0300 Subject: [mapserver-users] cartographic lines in mapserver Message-ID: <49dc012b0810010631m7b9b45f5xba221ccabe93d147@mail.gmail.com> Hi! I'm quite in trouble trying to describe complex symbols. The problem is for example with this kind of line: http://picasaweb.google.com/snaperski/Ort#5252174045638257122 If I'll use something like this: SYMBOL NAME "line_11" TYPE TRUETYPE FONT "esri_11" CHARACTER "#" END then I got the triangles, but they are positioned statically, not placed according to the line direction. Using cartoline type seems to be reasonable, but as far as I tried, it's not possible. Is there any simple or complex solution to draw complex cartolines? Thank you in advance, Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Oct 1 06:54:47 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Oct 2008 15:54:47 +0200 Subject: [mapserver-users] cartographic lines in mapserver In-Reply-To: <49dc012b0810010631m7b9b45f5xba221ccabe93d147@mail.gmail.com> References: <49dc012b0810010631m7b9b45f5xba221ccabe93d147@mail.gmail.com> Message-ID: try this: SYMBOL NAME "line_11" TYPE TRUETYPE FONT "esri_11" CHARACTER "#" GAP -1 END -- thomas On Wed, Oct 1, 2008 at 15:31, Raivo Alla wrote: > Hi! > > I'm quite in trouble trying to describe complex symbols. The problem is for > example with this kind of line: > http://picasaweb.google.com/snaperski/Ort#5252174045638257122 > > If I'll use something like this: > > SYMBOL > NAME "line_11" > TYPE TRUETYPE > FONT "esri_11" > CHARACTER "#" > END > > then I got the triangles, but they are positioned statically, not placed > according to the line direction. > Using cartoline type seems to be reasonable, but as far as I tried, it's not > possible. > Is there any simple or complex solution to draw complex cartolines? > > > Thank you in advance, > Raivo Alla > > > > _______________________________________________ > 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 Oct 1 07:03:38 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 1 Oct 2008 17:03:38 +0300 Subject: [mapserver-users] WMS don't load References: Message-ID: Hi, All I can say now is that your attached mapfile works on my computer (Vista, ms4w with MapServer version 5.0.2). -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Steve.Toutant at inspq.qc.ca [mailto:Steve.Toutant at inspq.qc.ca] L?hetetty: ke 1.10.2008 16:11 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WMS don't load I agree this connection was not a good example. Before creating the mapfile I used it to get a map on Internet Explorer to verify if I had a network problem. Since it was working I put it in the mapfile I created the following mapFile based on this example http://mapserver.gis.umn.edu/docs/howto/wms_client/#adding-a-wms-layer and it still work on one server but not on the other. I get the blank page. When I test the mapFile with shp2img I got this message shp2img -m TutorielStatic.map -o test.png msProcessProjection(): Projection library error. No such file or directory
I got this message on the server who works well also. My EPSG file contains 4326. Can't see why I get that error. The second server is installed on a virtual environment on a vmware infrastructure. I'll talk with our network admin to see if it could be an issue. Here is the mapFile I'm now using. thanks for your help, steve : MAP IMAGETYPE PNG EXTENT -80.43000 44.99000 -57.64000 62.78000 SIZE 400 300 IMAGECOLOR 255 255 255 #Background color PROJECTION "init=epsg:4326" #wgs84 lat long END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "prov_bound" TYPE RASTER STATUS default CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END END From NSoto at plotplans.com Wed Oct 1 07:28:33 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 1 Oct 2008 10:28:33 -0400 Subject: [mapserver-users] ArcSDE MSSQL Label Items displaying incorrectly. In-Reply-To: References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D3B@geoexchange.DesLauriers.local> Has anyone else run into an issue where trying to display a labelitem from SDE that it is displayed incorrectly. This is my map file, it is for highways... MAP NAME 'Highways 2' SIZE 800 650 STATUS ON EXTENT 34847.155991 780218.437305 329932.687407 959485.530395 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON END LEGEND LABEL TYPE TRUETYPE FONT ARIAL SIZE 10 COLOR 0 0 0 END STATUS ON END LAYER NAME major_roads-sde CONNECTIONTYPE PLUGIN CONNECTION "GEOTS,port:5151,medway,sa,geosql1230" PLUGIN "D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "medway.DBO.fcMajRoads,SHAPE" STATUS DEFAULT TYPE LINE MAXSCALE 250000 SYMBOLSCALE 900000 CLASSITEM "ADMIN_TYPE" CLASS NAME "State Highway" EXPRESSION "3" STYLE COLOR 120 120 120 SYMBOL 'plainline' SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE SYMBOL 'plainline' SIZE 1 MINSIZE 1 MAXSIZE 2 COLOR 227 159 2 END END CLASS NAME "U.S. Highway" EXPRESSION "2" STYLE COLOR 120 120 120 SYMBOL "plainline" SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE COLOR 109 223 77 SYMBOL "plainline" SIZE 1 MINSIZE 1 MAXSIZE 2 END END CLASS NAME "Interstate" EXPRESSION "1" STYLE COLOR 120 120 120 SYMBOL "plainline" SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE COLOR 255 255 136 SYMBOL "plainline" SIZE 1 MINSIZE 1 MAXSIZE 2 END END END LAYER NAME major_roadsanno-SDE CONNECTIONTYPE PLUGIN CONNECTION "GEOTS,port:5151,medway,sa,geosql1230" PLUGIN "D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "medway.DBO.fcMajRoads,SHAPE" STATUS DEFAULT TYPE annotation MAXSCALE 2000000 LABELITEM 'RT_NUMBER' LABELCACHE ON CLASSITEM 'ADMIN_TYPE' CLASS EXPRESSION '1' COLOR 0 0 0 # dummy color SYMBOL '../symbols/interstate.png' LABEL MINFEATURESIZE 25 MINDISTANCE 250 SIZE TINY COLOR 254 254 254 END END CLASS EXPRESSION '3' COLOR 0 0 0 # dummy color SYMBOL '../symbols/USHWY.png' LABEL MINFEATURESIZE 25 MINDISTANCE 200 SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION '2' COLOR 0 0 0 #dummy color SYMBOL '../symbols/STHWY.png' LABEL MINFEATURESIZE 25 MINDISTANCE 150 SIZE TINY COLOR 0 0 0 END END END END If I replace the RT_Number field for an integer field, it displays correctly. But if I use the RT_NUMBER (which the data exists as intended when checked) it looks like ?? and so on. -----Original Message----- From: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Sent: Tuesday, September 30, 2008 4:25 PM To: Nelson Soto Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ArcSDE 9.3 Support. On 30 Sep 2008, at 21:56, Nelson Soto wrote: > After tracing dependencies with Dependency Walker, I can see sde.dll > and > libmap.dll aren't loading correctly when loading > 'msplugin_sde_92.dll'. > > Any ideas on how to alleviate this? Nelson, dynamically loaded plugin dlls which in turn require other statically compiled libraries is where Windows dll hell starts to get really ugly. Windows tries to locate your sde libraries either in one of the directories contained in your %PATH% (probably set by setenv.bat but I don't use MS4W so I can't help you there) or, preferably, in the application's folder. By that, if I'm not mistaken, they mean the directory which the main executable image of your app is launched from, so probably the one containing mapserv.exe (or maybe the one where libmap.dll resides?). It's definitely not going to work if you place them relative to the plugin inside your specialplugins folder as that dll is dynamically loaded into the main application's process space. What I'm saying is that Dependency Walker won't help you in this case if you launch it directly on msplugin_sde_92.dll, because what counts is what mapserver.exe/libmap.dll sees, not the plugin. Still, if all fails, you could always just drop the sde libs into c: \windows\system32 but I'm sure with some trial and error you'll find a place where they get picked up correctly. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From Bob.Bistrais at maine.gov Wed Oct 1 08:02:52 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 1 Oct 2008 11:02:52 -0400 Subject: [mapserver-users] WMS legend in Ka-Map? Message-ID: <4EFF8BB964547748A07CA32961810C0412C47DE2@SOM-TEAQASMAIL1.som.w2k.state.me.us> I built a WMS service and included it in a Ka-Map application. I would like to display the symbols for this WMS service in the legend, but can't figure out how to do it, and the documentation does not seem to address this. Has anyone successfully done this, and if so, how is it done? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Oct 1 08:19:42 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 1 Oct 2008 11:19:42 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: Message-ID: Here is an update... shp2img is now working on both servers. shp2img could not find EPSG file. setEnv PROJ_LIB was in httpd.conf of apache but was not in my OS environment variable. After defining PROJ_LIB on the OS ishp2img is working and create an image. So I guess shp2img doesn't use apache..... So, the mapfile is ok. But I still not see the wms image when running the mapfile from mapServer with http://ipaddress/cgi-bin/mapserv.exe?map=\ms4w\inspq\map\TutorielStatic.map&mode=map Maybe there is another environment variable I must define? Someone knows where I can find a list of variable to set on the OS? thanks Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Wed Oct 1 12:14:25 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Wed, 1 Oct 2008 15:14:25 -0400 Subject: [mapserver-users] Re: can't derive the projection for a geotiff in Guatemala In-Reply-To: References: Message-ID: The projection for the below listed gdalinfo file may be Guatemala Transverse Mercator (GTM). I looked in the epsg file and I could not find any EPSG code that had Guatemala Transverse Mercator (GTM). Does anyone know how I could build a new epsg code for Guatemala Transverse Mercator (GTM) that I can put within the epsg file? Thanks, John On Wed, Sep 24, 2008 at 4:03 PM, John Mitchell wrote: > Hi, > > I am having difficulty deriving the EPSG code/projection/Coordinate System > for a geotiff in Guatemala. > > Any help would be appreciated. > > Below is the gdalinfo listing: > > Driver: GTiff/GeoTIFF > Size is 11214, 7860 > Coordinate System is `' > Origin = (317049.000000000000000,1659460.000000000000000) > Pixel Size = (0.500000000000000,-0.500000000000000) > Metadata: > AREA_OR_POINT=Area > TIFFTAG_SOFTWARE=ERDAS IMAGINE > TIFFTAG_XRESOLUTION=1 > TIFFTAG_YRESOLUTION=1 > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > Corner Coordinates: > Upper Left ( 317049.000, 1659460.000) > Lower Left ( 317049.000, 1655530.000) > Upper Right ( 322656.000, 1659460.000) > Lower Right ( 322656.000, 1655530.000) > Center ( 319852.500, 1657495.000) > Band 1 Block=11214x8 Type=Byte, ColorInterp=Red > Band 2 Block=11214x8 Type=Byte, ColorInterp=Green > Band 3 Block=11214x8 Type=Byte, ColorInterp=Blue > > Thanks, > > -- > John J. Mitchell > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Wed Oct 1 12:13:29 2008 From: adube at mapgears.com (Alexandre Dube) Date: Wed, 01 Oct 2008 15:13:29 -0400 Subject: [mapserver-users] WMS in Google Earth Message-ID: <48E3CBD9.50000@mapgears.com> Hi list, I'm trying to figure how to setup my own wms layer in GE. So far, I'm able to see each layer in the "WMS Parameters", but if I select any, I get a big red X, meaning it's not working... If I copy the "Link" created by GE, paste it in a browser, add "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I don't really know what I'm missing here. Any hint ? I use mapserver 5.2.0 on Linux. -- Alexandre Dub? Mapgears www.mapgears.com From neil at asdf.co.nz Wed Oct 1 12:52:07 2008 From: neil at asdf.co.nz (Neil Fincham) Date: Thu, 2 Oct 2008 08:52:07 +1300 Subject: [mapserver-users] ArcSDE MSSQL Label Items displaying incorrectly. In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D3B@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> <7BA6F57E003ADF4EA12DAA3043BB13D43B0D3B@geoexchange.DesLauriers.local> Message-ID: <000c01c923ff$2f55baf0$8e0130d0$@co.nz> Hi Nelson, Yeah, I had this problem a few months back, it all has to do with Mapserver and Unicode, basically they don?t like each other ;) . What you need to do is unload your data, disable Unicode and then reload it, for further reading on how to do this go here;- http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Language_suppo rt_in_the_geodatabase Basically you need to set UNICODE_STRING "FALSE" using sdedbtune, then when you load your data it will be just plain old text that mapserver does not have a problem with. Thanks Neil -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Thursday, 2 October 2008 3:29 a.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] ArcSDE MSSQL Label Items displaying incorrectly. Has anyone else run into an issue where trying to display a labelitem from SDE that it is displayed incorrectly. This is my map file, it is for highways... MAP NAME 'Highways 2' SIZE 800 650 STATUS ON EXTENT 34847.155991 780218.437305 329932.687407 959485.530395 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON END LEGEND LABEL TYPE TRUETYPE FONT ARIAL SIZE 10 COLOR 0 0 0 END STATUS ON END LAYER NAME major_roads-sde CONNECTIONTYPE PLUGIN CONNECTION "GEOTS,port:5151,medway,sa,geosql1230" PLUGIN "D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "medway.DBO.fcMajRoads,SHAPE" STATUS DEFAULT TYPE LINE MAXSCALE 250000 SYMBOLSCALE 900000 CLASSITEM "ADMIN_TYPE" CLASS NAME "State Highway" EXPRESSION "3" STYLE COLOR 120 120 120 SYMBOL 'plainline' SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE SYMBOL 'plainline' SIZE 1 MINSIZE 1 MAXSIZE 2 COLOR 227 159 2 END END CLASS NAME "U.S. Highway" EXPRESSION "2" STYLE COLOR 120 120 120 SYMBOL "plainline" SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE COLOR 109 223 77 SYMBOL "plainline" SIZE 1 MINSIZE 1 MAXSIZE 2 END END CLASS NAME "Interstate" EXPRESSION "1" STYLE COLOR 120 120 120 SYMBOL "plainline" SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE COLOR 255 255 136 SYMBOL "plainline" SIZE 1 MINSIZE 1 MAXSIZE 2 END END END LAYER NAME major_roadsanno-SDE CONNECTIONTYPE PLUGIN CONNECTION "GEOTS,port:5151,medway,sa,geosql1230" PLUGIN "D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "medway.DBO.fcMajRoads,SHAPE" STATUS DEFAULT TYPE annotation MAXSCALE 2000000 LABELITEM 'RT_NUMBER' LABELCACHE ON CLASSITEM 'ADMIN_TYPE' CLASS EXPRESSION '1' COLOR 0 0 0 # dummy color SYMBOL '../symbols/interstate.png' LABEL MINFEATURESIZE 25 MINDISTANCE 250 SIZE TINY COLOR 254 254 254 END END CLASS EXPRESSION '3' COLOR 0 0 0 # dummy color SYMBOL '../symbols/USHWY.png' LABEL MINFEATURESIZE 25 MINDISTANCE 200 SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION '2' COLOR 0 0 0 #dummy color SYMBOL '../symbols/STHWY.png' LABEL MINFEATURESIZE 25 MINDISTANCE 150 SIZE TINY COLOR 0 0 0 END END END END If I replace the RT_Number field for an integer field, it displays correctly. But if I use the RT_NUMBER (which the data exists as intended when checked) it looks like ?? and so on. -----Original Message----- From: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Sent: Tuesday, September 30, 2008 4:25 PM To: Nelson Soto Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ArcSDE 9.3 Support. On 30 Sep 2008, at 21:56, Nelson Soto wrote: > After tracing dependencies with Dependency Walker, I can see sde.dll > and > libmap.dll aren't loading correctly when loading > 'msplugin_sde_92.dll'. > > Any ideas on how to alleviate this? Nelson, dynamically loaded plugin dlls which in turn require other statically compiled libraries is where Windows dll hell starts to get really ugly. Windows tries to locate your sde libraries either in one of the directories contained in your %PATH% (probably set by setenv.bat but I don't use MS4W so I can't help you there) or, preferably, in the application's folder. By that, if I'm not mistaken, they mean the directory which the main executable image of your app is launched from, so probably the one containing mapserv.exe (or maybe the one where libmap.dll resides?). It's definitely not going to work if you place them relative to the plugin inside your specialplugins folder as that dll is dynamically loaded into the main application's process space. What I'm saying is that Dependency Walker won't help you in this case if you launch it directly on msplugin_sde_92.dll, because what counts is what mapserver.exe/libmap.dll sees, not the plugin. Still, if all fails, you could always just drop the sde libs into c: \windows\system32 but I'm sure with some trial and error you'll find a place where they get picked up correctly. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From NSoto at plotplans.com Wed Oct 1 13:08:37 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 1 Oct 2008 16:08:37 -0400 Subject: [mapserver-users] ArcSDE MSSQL Label Items displaying incorrectly. In-Reply-To: <000c01c923ff$2f55baf0$8e0130d0$@co.nz> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D1C@geoexchange.DesLauriers.local> <7BA6F57E003ADF4EA12DAA3043BB13D43B0D3B@geoexchange.DesLauriers.local> <000c01c923ff$2f55baf0$8e0130d0$@co.nz> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B0D51@geoexchange.DesLauriers.local> Thank You!! -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Neil Fincham Sent: Wednesday, October 01, 2008 3:52 PM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] ArcSDE MSSQL Label Items displaying incorrectly. Hi Nelson, Yeah, I had this problem a few months back, it all has to do with Mapserver and Unicode, basically they don't like each other ;) . What you need to do is unload your data, disable Unicode and then reload it, for further reading on how to do this go here;- http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Language_suppo rt_in_the_geodatabase Basically you need to set UNICODE_STRING "FALSE" using sdedbtune, then when you load your data it will be just plain old text that mapserver does not have a problem with. Thanks Neil -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Thursday, 2 October 2008 3:29 a.m. To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] ArcSDE MSSQL Label Items displaying incorrectly. Has anyone else run into an issue where trying to display a labelitem from SDE that it is displayed incorrectly. This is my map file, it is for highways... MAP NAME 'Highways 2' SIZE 800 650 STATUS ON EXTENT 34847.155991 780218.437305 329932.687407 959485.530395 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON END LEGEND LABEL TYPE TRUETYPE FONT ARIAL SIZE 10 COLOR 0 0 0 END STATUS ON END LAYER NAME major_roads-sde CONNECTIONTYPE PLUGIN CONNECTION "GEOTS,port:5151,medway,sa,geosql1230" PLUGIN "D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "medway.DBO.fcMajRoads,SHAPE" STATUS DEFAULT TYPE LINE MAXSCALE 250000 SYMBOLSCALE 900000 CLASSITEM "ADMIN_TYPE" CLASS NAME "State Highway" EXPRESSION "3" STYLE COLOR 120 120 120 SYMBOL 'plainline' SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE SYMBOL 'plainline' SIZE 1 MINSIZE 1 MAXSIZE 2 COLOR 227 159 2 END END CLASS NAME "U.S. Highway" EXPRESSION "2" STYLE COLOR 120 120 120 SYMBOL "plainline" SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE COLOR 109 223 77 SYMBOL "plainline" SIZE 1 MINSIZE 1 MAXSIZE 2 END END CLASS NAME "Interstate" EXPRESSION "1" STYLE COLOR 120 120 120 SYMBOL "plainline" SIZE 3 MINSIZE 1 MAXSIZE 4 END STYLE COLOR 255 255 136 SYMBOL "plainline" SIZE 1 MINSIZE 1 MAXSIZE 2 END END END LAYER NAME major_roadsanno-SDE CONNECTIONTYPE PLUGIN CONNECTION "GEOTS,port:5151,medway,sa,geosql1230" PLUGIN "D:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "medway.DBO.fcMajRoads,SHAPE" STATUS DEFAULT TYPE annotation MAXSCALE 2000000 LABELITEM 'RT_NUMBER' LABELCACHE ON CLASSITEM 'ADMIN_TYPE' CLASS EXPRESSION '1' COLOR 0 0 0 # dummy color SYMBOL '../symbols/interstate.png' LABEL MINFEATURESIZE 25 MINDISTANCE 250 SIZE TINY COLOR 254 254 254 END END CLASS EXPRESSION '3' COLOR 0 0 0 # dummy color SYMBOL '../symbols/USHWY.png' LABEL MINFEATURESIZE 25 MINDISTANCE 200 SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION '2' COLOR 0 0 0 #dummy color SYMBOL '../symbols/STHWY.png' LABEL MINFEATURESIZE 25 MINDISTANCE 150 SIZE TINY COLOR 0 0 0 END END END END If I replace the RT_Number field for an integer field, it displays correctly. But if I use the RT_NUMBER (which the data exists as intended when checked) it looks like ?? and so on. -----Original Message----- From: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Sent: Tuesday, September 30, 2008 4:25 PM To: Nelson Soto Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ArcSDE 9.3 Support. On 30 Sep 2008, at 21:56, Nelson Soto wrote: > After tracing dependencies with Dependency Walker, I can see sde.dll > and > libmap.dll aren't loading correctly when loading > 'msplugin_sde_92.dll'. > > Any ideas on how to alleviate this? Nelson, dynamically loaded plugin dlls which in turn require other statically compiled libraries is where Windows dll hell starts to get really ugly. Windows tries to locate your sde libraries either in one of the directories contained in your %PATH% (probably set by setenv.bat but I don't use MS4W so I can't help you there) or, preferably, in the application's folder. By that, if I'm not mistaken, they mean the directory which the main executable image of your app is launched from, so probably the one containing mapserv.exe (or maybe the one where libmap.dll resides?). It's definitely not going to work if you place them relative to the plugin inside your specialplugins folder as that dll is dynamically loaded into the main application's process space. What I'm saying is that Dependency Walker won't help you in this case if you launch it directly on msplugin_sde_92.dll, because what counts is what mapserver.exe/libmap.dll sees, not the plugin. Still, if all fails, you could always just drop the sde libs into c: \windows\system32 but I'm sure with some trial and error you'll find a place where they get picked up correctly. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.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 armin.burger at gmx.net Wed Oct 1 14:03:37 2008 From: armin.burger at gmx.net (Armin Burger) Date: Wed, 01 Oct 2008 23:03:37 +0200 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E25324.7090103@zeelandnet.nl> References: <48E25324.7090103@zeelandnet.nl> Message-ID: <48E3E5A9.3050702@gmx.net> Milo Depending on the purpose, you could check if Mapyrus is useful for you. Disadvantage is that you need to define the map layout a second time and make it look similar to Mapserver layout. But the PDF output quality is far better than the one of Mapserver, and you do not need to bother with PDFLib licenses. And it's also working well for large print formats (vector based rendering of vector data). Armin On 30/09/2008 18:26, Milo van der Linden wrote: > Hello list! > > I have been searching the web for tips and tricks, but basically what I > need is a method or procedure or (commercial) tool that can enhance my > mapserver installation to enable high resolution printing. > > What I am looking for is the best practice to: > > - Add a button to our website > - Let the button start a script or program that processes the active > layers in the map view based upon the current extent > - Generate a mixture of high-res images and optionally svg or alike for > linework > - combine the works in a pdf > - present the pdf for download to the user > > I would also like to know if there are any commercial, mapserver based, > solutions for this. I am also willing to hire an expert to achieve this. > > Any ideas? > > Kind regards, > > Milo van der Linden > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pianosnake at gmail.com Wed Oct 1 17:25:25 2008 From: pianosnake at gmail.com (Florin A.) Date: Wed, 1 Oct 2008 18:25:25 -0600 Subject: [mapserver-users] High resolution printing In-Reply-To: <48E3E5A9.3050702@gmx.net> References: <48E25324.7090103@zeelandnet.nl> <48E3E5A9.3050702@gmx.net> Message-ID: <1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> I imagine that having a layered PDF as the output would be quite beneficial. Does anybody know if layered PDF output is possible from mapserver? On Wed, Oct 1, 2008 at 3:03 PM, Armin Burger wrote: > Milo > > Depending on the purpose, you could check if Mapyrus is useful for you. > Disadvantage is that you need to define the map layout a second time and > make it look similar to Mapserver layout. But the PDF output quality is far > better than the one of Mapserver, and you do not need to bother with PDFLib > licenses. And it's also working well for large print formats (vector based > rendering of vector data). > > Armin > > On 30/09/2008 18:26, Milo van der Linden wrote: >> >> Hello list! >> >> I have been searching the web for tips and tricks, but basically what I >> need is a method or procedure or (commercial) tool that can enhance my >> mapserver installation to enable high resolution printing. >> >> What I am looking for is the best practice to: >> >> - Add a button to our website >> - Let the button start a script or program that processes the active >> layers in the map view based upon the current extent >> - Generate a mixture of high-res images and optionally svg or alike for >> linework >> - combine the works in a pdf >> - present the pdf for download to the user >> >> I would also like to know if there are any commercial, mapserver based, >> solutions for this. I am also willing to hire an expert to achieve this. >> >> Any ideas? >> >> Kind regards, >> >> Milo van der Linden >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Wed Oct 1 19:32:29 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 01 Oct 2008 21:32:29 -0500 Subject: [mapserver-users] High resolution printing In-Reply-To: <1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> References: <48E25324.7090103@zeelandnet.nl> <48E3E5A9.3050702@gmx.net> <1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> Message-ID: <48E432BD.3090405@swoodbridge.com> Posting this link for a 2nd time on this thread ;) http://mapserver.gis.umn.edu/docs/howto/pdf-output Florin A. wrote: > I imagine that having a layered PDF as the output would be quite beneficial. > Does anybody know if layered PDF output is possible from mapserver? > > > On Wed, Oct 1, 2008 at 3:03 PM, Armin Burger wrote: >> Milo >> >> Depending on the purpose, you could check if Mapyrus is useful for you. >> Disadvantage is that you need to define the map layout a second time and >> make it look similar to Mapserver layout. But the PDF output quality is far >> better than the one of Mapserver, and you do not need to bother with PDFLib >> licenses. And it's also working well for large print formats (vector based >> rendering of vector data). >> >> Armin >> >> On 30/09/2008 18:26, Milo van der Linden wrote: >>> Hello list! >>> >>> I have been searching the web for tips and tricks, but basically what I >>> need is a method or procedure or (commercial) tool that can enhance my >>> mapserver installation to enable high resolution printing. >>> >>> What I am looking for is the best practice to: >>> >>> - Add a button to our website >>> - Let the button start a script or program that processes the active >>> layers in the map view based upon the current extent >>> - Generate a mixture of high-res images and optionally svg or alike for >>> linework >>> - combine the works in a pdf >>> - present the pdf for download to the user >>> >>> I would also like to know if there are any commercial, mapserver based, >>> solutions for this. I am also willing to hire an expert to achieve this. >>> >>> Any ideas? >>> >>> Kind regards, >>> >>> Milo van der Linden >>> _______________________________________________ >>> 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 Antti.Roppola at brs.gov.au Wed Oct 1 19:26:00 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Thu, 2 Oct 2008 12:26:00 +1000 Subject: [mapserver-users] High resolution printing [SEC=UNCLASSIFIED] In-Reply-To: <48E432BD.3090405@swoodbridge.com> References: <48E25324.7090103@zeelandnet.nl> <48E3E5A9.3050702@gmx.net><1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> <48E432BD.3090405@swoodbridge.com> Message-ID: <61C2DEA055980B418D063F8646FCAEFC05AD1B82@ACT001CL03EX03.agdaff.gov.au> Hi all, I wrote large chunks of that howto quite some time ago. :o) Not included in that document is the really good results I got using a combination of Mapserver and Latex. In a nutshell, users selected a series of maps and a Latex batch called Mapserver to render the $map object as a PDF. This PDF was then imported into a .tex document so additional text and images coule be typeset onto the page. The result was a very faithful reproduction of a hardcopy publication and the linework was razor sharp. i.e. Mapfile used to generate PDF snippets: IMAGETYPE pdf Latex then imports these snippets: \includegraphics{map.pdf} The biggest consideration is that you really need to pre-process your vector data so that you have suitable range of overviews wih different vertex densities. This is because every vertex gets embedded in the PDF (if you see all of a 10 Mb Shapefile, all 10 Mb get embedded in the PDF!). The overhead of Latex also meant that batch processing was the only realistic option. This wasn't too bad, the user got an email a few minutes later. No, I didn't look at layered PDFs. However there's a lot more vector art manipulation tools about than there was when I did this work. You could also look at Apache Coccoon. It's effectively an XML transformer pipeline, so you could (theoretically) take XML/GML/SVG and send it to any serializer supported by Cocoon, including PDF. Cocoon is a pretty heavy investment though. http://cocoon.apache.org/2.1/userdocs/svg-serializer.html http://cocoon.apache.org/2.1/userdocs/pdf-serializer.html http://cocoon.apache.org/2.1/userdocs/svgxml-serializer.html http://surguy.net/articles/client-side-svg.xml http://svgopen.org/2003/papers/DatabaseDrivenSVGMapswithApacheCocoon/ind ex.html Cheers, Antti -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, 2 October 2008 12:32 PM To: Florin A. Cc: mapserver-users Subject: Re: [mapserver-users] High resolution printing Posting this link for a 2nd time on this thread ;) http://mapserver.gis.umn.edu/docs/howto/pdf-output Florin A. wrote: > I imagine that having a layered PDF as the output would be quite beneficial. > Does anybody know if layered PDF output is possible from mapserver? > > > On Wed, Oct 1, 2008 at 3:03 PM, Armin Burger wrote: >> Milo >> >> Depending on the purpose, you could check if Mapyrus is useful for you. >> Disadvantage is that you need to define the map layout a second time >> and make it look similar to Mapserver layout. But the PDF output >> quality is far better than the one of Mapserver, and you do not need >> to bother with PDFLib licenses. And it's also working well for large >> print formats (vector based rendering of vector data). >> >> Armin >> >> On 30/09/2008 18:26, Milo van der Linden wrote: >>> Hello list! >>> >>> I have been searching the web for tips and tricks, but basically >>> what I need is a method or procedure or (commercial) tool that can >>> enhance my mapserver installation to enable high resolution printing. >>> >>> What I am looking for is the best practice to: >>> >>> - Add a button to our website >>> - Let the button start a script or program that processes the active >>> layers in the map view based upon the current extent >>> - Generate a mixture of high-res images and optionally svg or alike >>> for linework >>> - combine the works in a pdf >>> - present the pdf for download to the user >>> >>> I would also like to know if there are any commercial, mapserver >>> based, solutions for this. I am also willing to hire an expert to achieve this. >>> >>> Any ideas? >>> >>> Kind regards, >>> >>> Milo van der Linden >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------ IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain sensitive and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ------ From subha at gslab.com Wed Oct 1 22:28:03 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 02 Oct 2008 10:58:03 +0530 Subject: [mapserver-users] Thickness of outline/border of polygons In-Reply-To: <48E432BD.3090405@swoodbridge.com> References: <48E25324.7090103@zeelandnet.nl> <48E3E5A9.3050702@gmx.net> <1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> <48E432BD.3090405@swoodbridge.com> Message-ID: <48E45BE3.30103@gslab.com> Hi, I am generating an image of states of India using mapserver. I want to know if i can mention the size of the outline/border for each state.[each polygon] I am using outlinecolor to mention the color of the border but it is not being drawn properly.Earlier when i was not coloring the polygons/states,i could resolve this issue using width 2. Does anyone know how to do it? Thanks & regards, Subha From snaperski at gmail.com Wed Oct 1 22:33:17 2008 From: snaperski at gmail.com (Raivo Alla) Date: Thu, 2 Oct 2008 08:33:17 +0300 Subject: [mapserver-users] cartographic lines in mapserver In-Reply-To: References: <49dc012b0810010631m7b9b45f5xba221ccabe93d147@mail.gmail.com> Message-ID: <49dc012b0810012233v18eaaedahb7dd45024f76716b@mail.gmail.com> Hei! Thank you for your help. It seems a bit different now, just would be great if mapserver would handle such lines more decently;) I mean, there could be an option to make that polyline transition smoother. Maybe utopian. Raivo On Wed, Oct 1, 2008 at 4:54 PM, thomas bonfort wrote: > try this: > SYMBOL > NAME "line_11" > TYPE TRUETYPE > FONT "esri_11" > CHARACTER "#" > GAP -1 > END > > -- > thomas > > On Wed, Oct 1, 2008 at 15:31, Raivo Alla wrote: > > Hi! > > > > I'm quite in trouble trying to describe complex symbols. The problem is > for > > example with this kind of line: > > http://picasaweb.google.com/snaperski/Ort#5252174045638257122 > > > > If I'll use something like this: > > > > SYMBOL > > NAME "line_11" > > TYPE TRUETYPE > > FONT "esri_11" > > CHARACTER "#" > > END > > > > then I got the triangles, but they are positioned statically, not placed > > according to the line direction. > > Using cartoline type seems to be reasonable, but as far as I tried, it's > not > > possible. > > Is there any simple or complex solution to draw complex cartolines? > > > > > > Thank you in advance, > > Raivo Alla > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Oct 1 22:42:23 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 2 Oct 2008 07:42:23 +0200 Subject: [mapserver-users] cartographic lines in mapserver In-Reply-To: <49dc012b0810012233v18eaaedahb7dd45024f76716b@mail.gmail.com> References: <49dc012b0810010631m7b9b45f5xba221ccabe93d147@mail.gmail.com> <49dc012b0810012233v18eaaedahb7dd45024f76716b@mail.gmail.com> Message-ID: hi, are you using the agg renderer? could you post a screenshot of what you're getting? --thomas On Thu, Oct 2, 2008 at 07:33, Raivo Alla wrote: > Hei! > > Thank you for your help. It seems a bit different now, just would be great > if mapserver would handle such lines more decently;) > I mean, there could be an option to make that polyline transition smoother. > Maybe utopian. > > Raivo > > On Wed, Oct 1, 2008 at 4:54 PM, thomas bonfort > wrote: >> >> try this: >> SYMBOL >> NAME "line_11" >> TYPE TRUETYPE >> FONT "esri_11" >> CHARACTER "#" >> GAP -1 >> END >> >> -- >> thomas >> >> On Wed, Oct 1, 2008 at 15:31, Raivo Alla wrote: >> > Hi! >> > >> > I'm quite in trouble trying to describe complex symbols. The problem is >> > for >> > example with this kind of line: >> > http://picasaweb.google.com/snaperski/Ort#5252174045638257122 >> > >> > If I'll use something like this: >> > >> > SYMBOL >> > NAME "line_11" >> > TYPE TRUETYPE >> > FONT "esri_11" >> > CHARACTER "#" >> > END >> > >> > then I got the triangles, but they are positioned statically, not placed >> > according to the line direction. >> > Using cartoline type seems to be reasonable, but as far as I tried, it's >> > not >> > possible. >> > Is there any simple or complex solution to draw complex cartolines? >> > >> > >> > Thank you in advance, >> > Raivo Alla >> > >> > >> > >> > _______________________________________________ >> > 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 subha at gslab.com Thu Oct 2 01:45:22 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 02 Oct 2008 14:15:22 +0530 Subject: [mapserver-users] Thickness of outline/border of polygons In-Reply-To: <48E45BE3.30103@gslab.com> References: <48E25324.7090103@zeelandnet.nl> <48E3E5A9.3050702@gmx.net> <1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> <48E432BD.3090405@swoodbridge.com> <48E45BE3.30103@gslab.com> Message-ID: <48E48A22.1060808@gslab.com> Hi All, I had asked about how to mention thickness of the border as the border was broken when i rendered the image. It seems like when i say antialias true, i get a broken border and a proper one if i don't use it. Does anyone know why this is happening? Subha Subha Ramakrishnan wrote: > Hi, > > I am generating an image of states of India using mapserver. > I want to know if i can mention the size of the outline/border for > each state.[each polygon] > I am using outlinecolor to mention the color of the border but it is > not being drawn properly.Earlier when i was not coloring the > polygons/states,i could resolve this issue using width 2. > Does anyone know how to do it? > > Thanks & regards, > Subha > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cnieman at dmsolutions.ca Thu Oct 2 04:25:18 2008 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 02 Oct 2008 07:25:18 -0400 Subject: [mapserver-users] Thickness of outline/border of polygons In-Reply-To: <48E48A22.1060808@gslab.com> References: <48E25324.7090103@zeelandnet.nl> <48E3E5A9.3050702@gmx.net> <1d674ec80810011725t326709fna8bc2091525289ff@mail.gmail.com> <48E432BD.3090405@swoodbridge.com> <48E45BE3.30103@gslab.com> <48E48A22.1060808@gslab.com> Message-ID: <48E4AF9E.70203@dmsolutions.ca> Hello, I'm not exactly sure what you mean about the border being broken, but if you want the polygon border thickness to be larger than one pixel, I believe the only way is to create a line layer to put on top of the polygon. For example: #Polygon layer on the bottom LAYER NAME "States" STATUS DEFAULT TYPE POLYGON SIZEUNITS PIXELS DATA "states" CLASS NAME "States" STYLE COLOR 242 236 230 END END END #Line layer on the top LAYER NAME "State_Borders" STATUS DEFAULT TYPE LINE SIZEUNITS PIXELS DATA "states" CLASS NAME "State Borders" STYLE COLOR 100 100 100 WIDTH 4 END END END Christy Subha Ramakrishnan wrote: > Hi All, > I had asked about how to mention thickness of the border as the border > was broken when i rendered the image. > It seems like when i say antialias true, i get a broken border and a > proper one if i don't use it. > Does anyone know why this is happening? > > Subha > > Subha Ramakrishnan wrote: >> Hi, >> >> I am generating an image of states of India using mapserver. >> I want to know if i can mention the size of the outline/border for >> each state.[each polygon] >> I am using outlinecolor to mention the color of the border but it is >> not being drawn properly.Earlier when i was not coloring the >> polygons/states,i could resolve this issue using width 2. >> Does anyone know how to do it? >> >> Thanks & regards, >> Subha >> _______________________________________________ >> 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 jmckenna at gatewaygeomatics.com Thu Oct 2 05:32:31 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 02 Oct 2008 14:32:31 +0200 Subject: [mapserver-users] WMS don't load In-Reply-To: References: Message-ID: <48E4BF5F.8020501@gatewaygeomatics.com> Steve.Toutant at inspq.qc.ca wrote: > > Here is an update... > shp2img is now working on both servers. shp2img could not find EPSG file. > setEnv PROJ_LIB was in httpd.conf of apache but was not in my OS > environment variable. After defining PROJ_LIB on the OS ishp2img is > working and create an image. > So I guess shp2img doesn't use apache..... Before using any commandline utilities in MS4W you must execute /ms4w/setenv.bat to set the appropriate variables that you are referring to (if you used the setup.exe for ms4w there would be an "MS4W Shell" shortcut on your desktop that sets these env variables 'magically'). > > So, the mapfile is ok. But I still not see the wms image when running > the mapfile from mapServer with > http://ipaddress/cgi-bin/mapserv.exe?map=\ms4w\inspq\map\TutorielStatic.map&mode=map > > > Maybe there is another environment variable I must define? > Someone knows where I can find a list of variable to set on the OS? > thanks > Steve -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Dejan.Gambin at pula.hr Thu Oct 2 06:27:51 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Thu, 2 Oct 2008 15:27:51 +0200 Subject: [mapserver-users] Re:aaigrid display problem Message-ID: Hi, I have sucessfully converted the ESRI ascii grid file to Geotiff using gdal_translate. But using tiffinfo on newly created file gives me something like this: TIFFReadDirectory: Warning, Unknown field with tag 33550 (0x830e) encountered. TIFFReadDirectory: Warning, Unknown field with tag 33922 (0x8482) encountered. TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered. TIFF Directory at offset 0x900008 (9437192) Image Width: 1427 Image Length: 1427 Tile Width: 256 Tile Length: 256 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane Tag 33550: 5.000000,5.000000,0.000000 Tag 33922: 0.000000,0.000000,0.000000,6400997.500000,5041132.500000,0.000000 Tag 42113: -999 TIFF Directory at offset 0x900230 (9437744) Subfile Type: reduced-resolution image (1 = 0x1) Image Width: 714 Image Length: 714 Tile Width: 128 Tile Length: 128 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane TIFF Directory at offset 0x9003f2 (9438194) Subfile Type: reduced-resolution image (1 = 0x1) Image Width: 357 Image Length: 357 Tile Width: 128 Tile Length: 128 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane TIFF Directory at offset 0x9004dc (9438428) Subfile Type: reduced-resolution image (1 = 0x1) Image Width: 179 Image Length: 179 Tile Width: 128 Tile Length: 128 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane The file is displayed correctly but when I try to build the overviews using gdaladdo I get warnings: Warning 1: TIFFReadDirectory:LDAY.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength Warning 1: TIFFReadDirectory:LDAY.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength New file with overviews is created and everything looks fine with gdalinfo, but tiffinfo gives the same output as before. Is this something I need to care about or I can just ignore it? regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Oct 2 07:07:04 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Oct 2008 17:07:04 +0300 Subject: [mapserver-users] Re:aaigrid display problem In-Reply-To: Message-ID: Hi, I am rather sure that everything is OK and warning you get means just what it tells: there is some tiff tag not recognised by tiffinfo. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Dejan.Gambin at pula.hr L?hetetty: 2. lokakuuta 2008 16:28 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Re:aaigrid display problem Hi, I have sucessfully converted the ESRI ascii grid file to Geotiff using gdal_translate. But using tiffinfo on newly created file gives me something like this: TIFFReadDirectory: Warning, Unknown field with tag 33550 (0x830e) encountered. TIFFReadDirectory: Warning, Unknown field with tag 33922 (0x8482) encountered. TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481) encountered. TIFF Directory at offset 0x900008 (9437192) Image Width: 1427 Image Length: 1427 Tile Width: 256 Tile Length: 256 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane Tag 33550: 5.000000,5.000000,0.000000 Tag 33922: 0.000000,0.000000,0.000000,6400997.500000,5041132.500000,0.000000 Tag 42113: -999 TIFF Directory at offset 0x900230 (9437744) Subfile Type: reduced-resolution image (1 = 0x1) Image Width: 714 Image Length: 714 Tile Width: 128 Tile Length: 128 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane TIFF Directory at offset 0x9003f2 (9438194) Subfile Type: reduced-resolution image (1 = 0x1) Image Width: 357 Image Length: 357 Tile Width: 128 Tile Length: 128 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane TIFF Directory at offset 0x9004dc (9438428) Subfile Type: reduced-resolution image (1 = 0x1) Image Width: 179 Image Length: 179 Tile Width: 128 Tile Length: 128 Bits/Sample: 32 Sample Format: IEEE floating point Compression Scheme: None Photometric Interpretation: min-is-black Samples/Pixel: 1 Planar Configuration: single image plane The file is displayed correctly but when I try to build the overviews using gdaladdo I get warnings: Warning 1: TIFFReadDirectory:LDAY.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength Warning 1: TIFFReadDirectory:LDAY.tif: Wrong "StripByteCounts" field, ignoring and calculating from imagelength New file with overviews is created and everything looks fine with gdalinfo, but tiffinfo gives the same output as before. Is this something I need to care about or I can just ignore it? regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachc1980 at gmail.com Thu Oct 2 10:52:17 2008 From: zachc1980 at gmail.com (zach cruise) Date: Thu, 2 Oct 2008 13:52:17 -0400 Subject: [mapserver-users] nfs drive Message-ID: unable to map data (cities.shp) on nfs drive (g:). data pulls into qgis fine. know it can be done- http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html MAP ... # SHAPEPATH "g:\" SHAPEPATH \\123.4.5.6\vol\data\ ... LAYER ... # DATA "poly/cities" DATA "poly/cities" ... END ... END From adube at mapgears.com Thu Oct 2 13:40:06 2008 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 02 Oct 2008 16:40:06 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <48E3CBD9.50000@mapgears.com> References: <48E3CBD9.50000@mapgears.com> Message-ID: <48E531A6.7060704@mapgears.com> Back with my local WMS on GE problem. I think it has something to do with the wms_onlineresource in WEB METADATA. I downloaded the gmap datas, which are already in GE as the last WMS service available, to be able to test locally what is already working on the internet. At first, it worked in GE. Then, I noticed that the wms_onlineresource was set to : "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" which seemed wrong to me, because my other map doesn't exist on the internet, only locally. So I changed it to : "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap75_wms.map&" and then I doesn't work anymore... also tried : "http://127.0.0.1:port/cgi-bin/mapserv?" no result... I must be close the the answer. I have searched a lot over the internet but I haven't found anything yet. Any hints ? Alexandre Alexandre Dube wrote: > Hi list, > > I'm trying to figure how to setup my own wms layer in GE. So far, > I'm able to see each layer in the "WMS Parameters", but if I select > any, I get a big red X, meaning it's not working... > > If I copy the "Link" created by GE, paste it in a browser, add > "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I don't > really know what I'm missing here. Any hint ? I use mapserver 5.2.0 > on Linux. > -- Alexandre Dub? Mapgears www.mapgears.com From Tom.Kralidis at ec.gc.ca Thu Oct 2 14:15:19 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 2 Oct 2008 17:15:19 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <48E531A6.7060704@mapgears.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Alexandre Dube > Sent: 02 October, 2008 4:40 PM > To: MAPSERVER USERS > Subject: Re: [mapserver-users] WMS in Google Earth > > Back with my local WMS on GE problem. I think it has > something to do with the wms_onlineresource in WEB METADATA. > > I downloaded the gmap datas, which are already in GE as the > last WMS service available, to be able to test locally what > is already working on the internet. At first, it worked in > GE. Then, I noticed that the wms_onlineresource was set to : > "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" > which seemed wrong to me, because my other map doesn't exist > on the internet, only locally. > > So I changed it to : > > "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap > 75_wms.map&" > and then I doesn't work anymore... also tried : > "http://127.0.0.1:port/cgi-bin/mapserv?" > no result... > > I must be close the the answer. I have searched a lot over > the internet but I haven't found anything yet. Any hints ? > > Alexandre > > Alexandre Dube wrote: > > Hi list, > > > > I'm trying to figure how to setup my own wms layer in GE. So far, > > I'm able to see each layer in the "WMS Parameters", but if I select > > any, I get a big red X, meaning it's not working... > > > > If I copy the "Link" created by GE, paste it in a browser, add > > "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I don't > > really know what I'm missing here. Any hint ? I use > mapserver 5.2.0 > > on Linux. > > > This might be due to the SERVICE parameter missing WMS GetMap request. If you, once you add the layer, right click and select "Properties", adding "&service=WMS" to the Link string, you should be able to get a valid map image returned. That said, I thought we lifted the service param from WMS GetMap requests (GetMap sans service= works for me in svn trunk). ..Tom From adube at mapgears.com Fri Oct 3 05:09:48 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 03 Oct 2008 08:09:48 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> References: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <48E60B8C.2070304@mapgears.com> Hi Tom, Thanks for your reply, but unfortunately that didn't solved the problem. In fact, the existing WMS servers in GE, don't use "service=WMS" in any "Link" string and they work... However, the wms_onlineresource IS always the first part of the "Link" string, not the actual local link you copy/paste when in the "WMS Parameters" menu... Does this means that GE don't accept local wms_onlineresource ? I think this could make sense... Any ideas ? Alexandre Kralidis,Tom [Burlington] wrote: > > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Alexandre Dube >> Sent: 02 October, 2008 4:40 PM >> To: MAPSERVER USERS >> Subject: Re: [mapserver-users] WMS in Google Earth >> >> Back with my local WMS on GE problem. I think it has >> something to do with the wms_onlineresource in WEB METADATA. >> >> I downloaded the gmap datas, which are already in GE as the >> last WMS service available, to be able to test locally what >> is already working on the internet. At first, it worked in >> GE. Then, I noticed that the wms_onlineresource was set to : >> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" >> which seemed wrong to me, because my other map doesn't exist >> on the internet, only locally. >> >> So I changed it to : >> >> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap >> 75_wms.map&" >> and then I doesn't work anymore... also tried : >> "http://127.0.0.1:port/cgi-bin/mapserv?" >> no result... >> >> I must be close the the answer. I have searched a lot over >> the internet but I haven't found anything yet. Any hints ? >> >> Alexandre >> >> Alexandre Dube wrote: >> >>> Hi list, >>> >>> I'm trying to figure how to setup my own wms layer in GE. So far, >>> I'm able to see each layer in the "WMS Parameters", but if I select >>> any, I get a big red X, meaning it's not working... >>> >>> If I copy the "Link" created by GE, paste it in a browser, add >>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I don't >>> really know what I'm missing here. Any hint ? I use >>> >> mapserver 5.2.0 >> >>> on Linux. >>> >>> > > This might be due to the SERVICE parameter missing WMS GetMap request. > If you, once you add the layer, right click and select "Properties", > adding "&service=WMS" to the Link string, you should be able to get a > valid map image returned. > > That said, I thought we lifted the service param from WMS GetMap > requests (GetMap sans service= works for me in svn trunk). > > ..Tom > -- Alexandre Dub? Mapgears www.mapgears.com From Tom.Kralidis at ec.gc.ca Fri Oct 3 05:21:32 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 3 Oct 2008 08:21:32 -0400 Subject: [mapserver-users] WMS in Google Earth References: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> <48E60B8C.2070304@mapgears.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC5EA@ecburexch1.ontario.int.ec.gc.ca> Right, those may or may not have MapServer WMSs with the service= required behaviour. That said, I can connect a WMS from my local ms4w to Google Earth without problem. Try this and check your web logs. See the actual request passed by GE, and this should help you diagnose the issue. Since you are using 5.2.0, I would not suspect it's an issue of a missing styles= parameter. ..Tom -----Original Message----- From: Alexandre Dube [mailto:adube at mapgears.com] Sent: Fri 03-Oct-08 08:09 To: Kralidis,Tom [Burlington] Cc: MAPSERVER USERS Subject: Re: [mapserver-users] WMS in Google Earth Hi Tom, Thanks for your reply, but unfortunately that didn't solved the problem. In fact, the existing WMS servers in GE, don't use "service=WMS" in any "Link" string and they work... However, the wms_onlineresource IS always the first part of the "Link" string, not the actual local link you copy/paste when in the "WMS Parameters" menu... Does this means that GE don't accept local wms_onlineresource ? I think this could make sense... Any ideas ? Alexandre Kralidis,Tom [Burlington] wrote: > > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Alexandre Dube >> Sent: 02 October, 2008 4:40 PM >> To: MAPSERVER USERS >> Subject: Re: [mapserver-users] WMS in Google Earth >> >> Back with my local WMS on GE problem. I think it has >> something to do with the wms_onlineresource in WEB METADATA. >> >> I downloaded the gmap datas, which are already in GE as the >> last WMS service available, to be able to test locally what >> is already working on the internet. At first, it worked in >> GE. Then, I noticed that the wms_onlineresource was set to : >> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" >> which seemed wrong to me, because my other map doesn't exist >> on the internet, only locally. >> >> So I changed it to : >> >> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap >> 75_wms.map&" >> and then I doesn't work anymore... also tried : >> "http://127.0.0.1:port/cgi-bin/mapserv?" >> no result... >> >> I must be close the the answer. I have searched a lot over >> the internet but I haven't found anything yet. Any hints ? >> >> Alexandre >> >> Alexandre Dube wrote: >> >>> Hi list, >>> >>> I'm trying to figure how to setup my own wms layer in GE. So far, >>> I'm able to see each layer in the "WMS Parameters", but if I select >>> any, I get a big red X, meaning it's not working... >>> >>> If I copy the "Link" created by GE, paste it in a browser, add >>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I don't >>> really know what I'm missing here. Any hint ? I use >>> >> mapserver 5.2.0 >> >>> on Linux. >>> >>> > > This might be due to the SERVICE parameter missing WMS GetMap request. > If you, once you add the layer, right click and select "Properties", > adding "&service=WMS" to the Link string, you should be able to get a > valid map image returned. > > That said, I thought we lifted the service param from WMS GetMap > requests (GetMap sans service= works for me in svn trunk). > > ..Tom > -- Alexandre Dub? Mapgears www.mapgears.com From adube at mapgears.com Fri Oct 3 05:27:35 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 03 Oct 2008 08:27:35 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC5EA@ecburexch1.ontario.int.ec.gc.ca> References: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> <48E60B8C.2070304@mapgears.com> <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC5EA@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <48E60FB7.1020707@mapgears.com> OK, I'll try that. Many thanks, Tom Alexandre Kralidis,Tom [Burlington] wrote: > Right, those may or may not have MapServer WMSs with the service= required behaviour. > > That said, I can connect a WMS from my local ms4w to Google Earth without problem. > > Try this and check your web logs. See the actual request passed by GE, and this should help you diagnose the issue. > > Since you are using 5.2.0, I would not suspect it's an issue of a missing styles= parameter. > > ..Tom > > > > -----Original Message----- > From: Alexandre Dube [mailto:adube at mapgears.com] > Sent: Fri 03-Oct-08 08:09 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER USERS > Subject: Re: [mapserver-users] WMS in Google Earth > > Hi Tom, > > Thanks for your reply, but unfortunately that didn't solved the problem. > In fact, the existing WMS servers in GE, don't use "service=WMS" in any > "Link" string and they work... > > However, the wms_onlineresource IS always the first part of the "Link" > string, not the actual local link you copy/paste when in the "WMS > Parameters" menu... Does this means that GE don't accept local > wms_onlineresource ? I think this could make sense... > > Any ideas ? > > Alexandre > > > Kralidis,Tom [Burlington] wrote: > >> >> >> >> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Alexandre Dube >>> Sent: 02 October, 2008 4:40 PM >>> To: MAPSERVER USERS >>> Subject: Re: [mapserver-users] WMS in Google Earth >>> >>> Back with my local WMS on GE problem. I think it has >>> something to do with the wms_onlineresource in WEB METADATA. >>> >>> I downloaded the gmap datas, which are already in GE as the >>> last WMS service available, to be able to test locally what >>> is already working on the internet. At first, it worked in >>> GE. Then, I noticed that the wms_onlineresource was set to : >>> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" >>> which seemed wrong to me, because my other map doesn't exist >>> on the internet, only locally. >>> >>> So I changed it to : >>> >>> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap >>> 75_wms.map&" >>> and then I doesn't work anymore... also tried : >>> "http://127.0.0.1:port/cgi-bin/mapserv?" >>> no result... >>> >>> I must be close the the answer. I have searched a lot over >>> the internet but I haven't found anything yet. Any hints ? >>> >>> Alexandre >>> >>> Alexandre Dube wrote: >>> >>> >>>> Hi list, >>>> >>>> I'm trying to figure how to setup my own wms layer in GE. So far, >>>> I'm able to see each layer in the "WMS Parameters", but if I select >>>> any, I get a big red X, meaning it's not working... >>>> >>>> If I copy the "Link" created by GE, paste it in a browser, add >>>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I don't >>>> really know what I'm missing here. Any hint ? I use >>>> >>>> >>> mapserver 5.2.0 >>> >>> >>>> on Linux. >>>> >>>> >>>> >> This might be due to the SERVICE parameter missing WMS GetMap request. >> If you, once you add the layer, right click and select "Properties", >> adding "&service=WMS" to the Link string, you should be able to get a >> valid map image returned. >> >> That said, I thought we lifted the service param from WMS GetMap >> requests (GetMap sans service= works for me in svn trunk). >> >> ..Tom >> >> > > > -- Alexandre Dub? Mapgears www.mapgears.com From adube at mapgears.com Fri Oct 3 05:50:58 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 03 Oct 2008 08:50:58 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <48E60FB7.1020707@mapgears.com> References: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> <48E60B8C.2070304@mapgears.com> <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC5EA@ecburexch1.ontario.int.ec.gc.ca> <48E60FB7.1020707@mapgears.com> Message-ID: <48E61532.5090602@mapgears.com> Tom, The log told me : "SERVICE parameter missing"... I must have done something wrong with my first attempt because now it's working if I add "service=WMS" in the Link string. Thank you very much, Alexandre Alexandre Dube wrote: > OK, I'll try that. > > Many thanks, Tom > > Alexandre > > Kralidis,Tom [Burlington] wrote: >> Right, those may or may not have MapServer WMSs with the service= >> required behaviour. >> >> That said, I can connect a WMS from my local ms4w to Google Earth >> without problem. >> >> Try this and check your web logs. See the actual request passed by >> GE, and this should help you diagnose the issue. >> >> Since you are using 5.2.0, I would not suspect it's an issue of a >> missing styles= parameter. >> >> ..Tom >> >> >> >> -----Original Message----- >> From: Alexandre Dube [mailto:adube at mapgears.com] >> Sent: Fri 03-Oct-08 08:09 >> To: Kralidis,Tom [Burlington] >> Cc: MAPSERVER USERS >> Subject: Re: [mapserver-users] WMS in Google Earth >> >> Hi Tom, >> >> Thanks for your reply, but unfortunately that didn't solved the >> problem. In fact, the existing WMS servers in GE, don't use >> "service=WMS" in any "Link" string and they work... >> >> However, the wms_onlineresource IS always the first part of the >> "Link" string, not the actual local link you copy/paste when in the >> "WMS Parameters" menu... Does this means that GE don't accept local >> wms_onlineresource ? I think this could make sense... >> >> Any ideas ? >> >> Alexandre >> >> >> Kralidis,Tom [Burlington] wrote: >> >>> >>> >>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>>> Alexandre Dube >>>> Sent: 02 October, 2008 4:40 PM >>>> To: MAPSERVER USERS >>>> Subject: Re: [mapserver-users] WMS in Google Earth >>>> >>>> Back with my local WMS on GE problem. I think it has something to >>>> do with the wms_onlineresource in WEB METADATA. >>>> >>>> I downloaded the gmap datas, which are already in GE as the last >>>> WMS service available, to be able to test locally what is already >>>> working on the internet. At first, it worked in GE. Then, I >>>> noticed that the wms_onlineresource was set to : >>>> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" >>>> which seemed wrong to me, because my other map doesn't exist on the >>>> internet, only locally. >>>> >>>> So I changed it to : >>>> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap >>>> 75_wms.map&" >>>> and then I doesn't work anymore... also tried : >>>> "http://127.0.0.1:port/cgi-bin/mapserv?" >>>> no result... >>>> >>>> I must be close the the answer. I have searched a lot over the >>>> internet but I haven't found anything yet. Any hints ? >>>> >>>> Alexandre >>>> >>>> Alexandre Dube wrote: >>>> >>>>> Hi list, >>>>> >>>>> I'm trying to figure how to setup my own wms layer in GE. So >>>>> far, I'm able to see each layer in the "WMS Parameters", but if I >>>>> select any, I get a big red X, meaning it's not working... >>>>> >>>>> If I copy the "Link" created by GE, paste it in a browser, add >>>>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I >>>>> don't really know what I'm missing here. Any hint ? I use >>>>> >>>> mapserver 5.2.0 >>>>> on Linux. >>>>> >>>>> >>> This might be due to the SERVICE parameter missing WMS GetMap request. >>> If you, once you add the layer, right click and select "Properties", >>> adding "&service=WMS" to the Link string, you should be able to get a >>> valid map image returned. >>> >>> That said, I thought we lifted the service param from WMS GetMap >>> requests (GetMap sans service= works for me in svn trunk). >>> >>> ..Tom >>> >> >> >> > > -- Alexandre Dub? Mapgears www.mapgears.com From fabiodovidio at gmail.com Fri Oct 3 06:45:39 2008 From: fabiodovidio at gmail.com (Fabio D'Ovidio) Date: Fri, 03 Oct 2008 15:45:39 +0200 Subject: [mapserver-users] how to improve and speed Mapserver queries on PostGIS Message-ID: <48E62203.9080000@gmail.com> Hello... I developed a WebGIS application trought cartoweb (www.cartoweb.org). My aim is to display a large numerber of points for each couple of (USER, ROLE) that login into the system... The problem is they are more than 50.000 points and even if I set MINSCALE, MAXSCALE to display them, the time for queries is to much and the whole application is slow. Is there a way to speed the interaction beetween Mapserver and PostGIS? Cosider that I created spatial and no-spatial indexes on points talbe in PostgreSQL and I make queries from php\mapscript as following: $layer1 = new LayerOverlay(); $layer1->name = "my_layer"; $layer1->data = "the_geom from my_table as foo using unique gid using SRID=-1" ; $layer1->filter = "field1 = 'Y' and field2 = '$myValue' " ; gid is PK... Thanks for your help ! -- Fabio D'Ovidio Geospatial solutions INOVA s.r.l. Web : http://www.inovaos.it Tel.: 081 197 57 600 mail: fabiodovidio at gmail.com From Steve.Toutant at inspq.qc.ca Fri Oct 3 07:37:08 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 3 Oct 2008 10:37:08 -0400 Subject: [mapserver-users] classgroup and group Message-ID: Hi, I can't figure out how classgroup and group work. I have defined the following layer. Using it with this query http://ipaddress/cgi-bin/mapserv.exe?map=\path\mapfile.map&mode=map I get all the points on a map but the style is not applied. If I remove the 2 CLASSGROUP statements but keep the GROUP key and launch the same query the layer features show up with style applied. why is that? Also, Is it possible to define a query string and specify which classgroup to show on the map? What would be the parameter then? I tried &group= xxx and &classgroup=xxx and it didn't work thanks Steve LAYER NAME 'DesastresQc' TYPE POINT DATA '.....' METADATA 'wms_title' 'DesastresQc' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASSGROUP "bio" CLASSGROUP "meteo" CLASSITEM "TYPE_F" CLASS NAME "?pid?mique" GROUP "bio" EXPRESSION 'EP' STYLE SYMBOL ep SIZE 8 OUTLINECOLOR 0 0 0 COLOR 130 230 250 END END #class CLASS NAME "Infestation" GROUP "meteo" EXPRESSION 'IN' STYLE SYMBOL in SIZE 8 OUTLINECOLOR 0 0 0 COLOR 130 230 250 END END #class -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Fri Oct 3 09:50:46 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 3 Oct 2008 09:50:46 -0700 Subject: [mapserver-users] how to improve and speed Mapserver queries on PostGIS In-Reply-To: <48E62203.9080000@gmail.com> References: <48E62203.9080000@gmail.com> Message-ID: <30fe546d0810030950m521b35efm238ad344f210087e@mail.gmail.com> Turn on statement logging in PostgreSQL and extract the SQL that mapserver is sending to the database. Run that yourself in psql, using EXPLAIN ANALYZE to see what query plan is being generated, and how much time the database itself is taking. Consider increasing the amount of memory you are devoting to PostgreSQL shared_buffers, since 50,000 is a very small table and shouldn't be slow for anything. Know that if you're drawing 50000 things on your map, it'll be slow no matter what your data source is. P. On Fri, Oct 3, 2008 at 6:45 AM, Fabio D'Ovidio wrote: > Hello... > I developed a WebGIS application trought cartoweb (www.cartoweb.org). My aim > is to display a large numerber of points for each couple of (USER, ROLE) > that login into the system... > > The problem is they are more than 50.000 points and even if I set MINSCALE, > MAXSCALE to display them, the time for queries is to much and the whole > application is slow. > Is there a way to speed the interaction beetween Mapserver and PostGIS? > Cosider that I created spatial and no-spatial indexes on points talbe in > PostgreSQL and I make queries from php\mapscript as following: > > $layer1 = new LayerOverlay(); > $layer1->name = "my_layer"; > $layer1->data = "the_geom from my_table as foo using unique gid > using SRID=-1" ; > $layer1->filter = "field1 = 'Y' and field2 = '$myValue' " ; > > gid is PK... > > Thanks for your help ! > > > -- > Fabio D'Ovidio > Geospatial solutions > INOVA s.r.l. > Web : http://www.inovaos.it > Tel.: 081 197 57 600 > mail: fabiodovidio at gmail.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From silver_17 at hotmail.com Fri Oct 3 10:40:27 2008 From: silver_17 at hotmail.com (Bill Zborowski) Date: Fri, 3 Oct 2008 17:40:27 +0000 Subject: [mapserver-users] Java Mapscript & SLD's... Message-ID: Hi Guys, I'm relatively new to Mapserver and MapScript, and am having some issues with the applySLD(String, String) function. I am writing a small Java utility that reads a WMC context file with GML and SLD and returns an image. I can read the context and GML just fine, but when i call the apply SLD function it doesn't seem to recognize the tag. The tag gets styled correctly, leaving a properly style border and a grey fill on all my polygons. As an example, here's the SLD i'm passing through the function: inline_geometry xxx #ee9900 0.4 #ee9900 1 2 I've attached the resulting image, and while I expect there to be a dark orange border with a lighter orange fill I'm clearly not getting that. Cheers, Bill Zborowski _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.lilianamoreno at gmail.com Fri Oct 3 12:43:35 2008 From: s.lilianamoreno at gmail.com (Sandra Liliana Moreno) Date: Fri, 3 Oct 2008 14:43:35 -0500 Subject: [mapserver-users] How to create a chart layer from a php function Message-ID: Hi!!!! I want to create a chart layer from a PHP function, but in the style of the class of the layer, a parameter called "SIZE" in the mapfile, I do not know how to set in the object styleObj. Does anyone know how to do this? Thank. #==========MapFile===========# LAYER NAME "Grafica" TYPE CHART STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "host=127.0.0.1 dbname=xxx user=xxx password=xxx port=5432" DATA "the_geom FROM (select a.the_geom AS the_geom, a.dpto, a.gid AS gid, a.nom_dpto,a.area_km2, b.rio, b.queman from departamento a, dpto_viv_basura b WHERE a.dpto = b.dpto) AS foo USING UNIQUE gid" PROCESSING "CHART_TYPE=pie" PROCESSING "CHART_SIZE=30" CLASS NAME "Rio" STYLE SIZE [rio] COLOR 255 244 237 END END CLASS NAME "Queman" STYLE SIZE [queman] COLOR 255 217 191 END END END #LAYER /////////////////PHP Function/////////////////// function crearLayerGrafica($miMap){ $layer = ms_newLayerObj($miMap); $layer->set( "name", "Grafica"); $layer->set( "type", MS_LAYER_CHART); $layer->set( "status", MS_ON); $layer->set("connectiontype", MS_POSTGIS); $layer->set("connection", "host=127.0.0.1 dbname=xxx user=xxx password=xxx port=5432"); $layer->set("data","the_geom FROM (select a.the_geom AS the_geom, a.dpto, a.gid AS gid, a.nom_dpto,a.area_km2, b.rio, b.queman from departamento a, dpto_viv_basura b WHERE a.dpto = b.dpto) AS foo USING UNIQUE gid"); $layer->setProcessing("CHART_TYPE=pie"); $layer->setProcessing("CHART_SIZE=30"); $clase=ms_newClassObj($layer); $clase->set("name","Rio"); $style=ms_newStyleObj($clase); $style->color->setRGB(255,244,237); $style->set("size","[rio]"); $clase=ms_newClassObj($objLayer); $clase->set("name","Queman"); $style=ms_newStyleObj($clase); $style->color->setRGB(255,217,191); $style->set("size","[queman]"); } From Dejan.Gambin at pula.hr Sat Oct 4 15:06:23 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Sun, 5 Oct 2008 00:06:23 +0200 Subject: [mapserver-users] Showing nodata values as transparent in Tiff Message-ID: Hi, I have converted the ESRI ascii grid file to Geotiff and did gdaladdo on it too. Thean, using gdalinfo I get: Driver: GTiff/GeoTIFF Files: LDAY.tif Size is 3401, 2601 Coordinate System is `' Origin = (6398997.500000000000000,5044002.500000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Corner Coordinates: Upper Left ( 6398997.500, 5044002.500) Lower Left ( 6398997.500, 5030997.500) Upper Right ( 6416002.500, 5044002.500) Lower Right ( 6416002.500, 5030997.500) Center ( 6407500.000, 5037500.000) Band 1 Block=3401x1 Type=Float32, ColorInterp=Gray NoData Value=-999 Overviews: 1701x1301, 851x651, 426x326, 213x163 So the nodata value is -999. I have tried making this nodata area transparent using: PROCESSING "NODATA=-999" but it doesn't work. Am I doing something wrong? Can I do it with OFFSITE parameter? thanks very much regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Sat Oct 4 15:30:04 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Sun, 5 Oct 2008 00:30:04 +0200 Subject: [mapserver-users] Re: Showing nodata values as transparent in Tiff In-Reply-To: Message-ID: Sorry, the nodata areas are transparent indeed, even without any parameter ! dejan Dejan Gambin/GradPula wrote on 05.10.2008 00:06:23: > Hi, > > I have converted the ESRI ascii grid file to Geotiff and did > gdaladdo on it too. Thean, using gdalinfo I get: > > Driver: GTiff/GeoTIFF > Files: LDAY.tif > Size is 3401, 2601 > Coordinate System is `' > Origin = (6398997.500000000000000,5044002.500000000000000) > Pixel Size = (5.000000000000000,-5.000000000000000) > Corner Coordinates: > Upper Left ( 6398997.500, 5044002.500) > Lower Left ( 6398997.500, 5030997.500) > Upper Right ( 6416002.500, 5044002.500) > Lower Right ( 6416002.500, 5030997.500) > Center ( 6407500.000, 5037500.000) > Band 1 Block=3401x1 Type=Float32, ColorInterp=Gray > NoData Value=-999 > Overviews: 1701x1301, 851x651, 426x326, 213x163 > > So the nodata value is -999. I have tried making this nodata area > transparent using: > > PROCESSING "NODATA=-999" but it doesn't work. Am I doing something > wrong? Can I do it with OFFSITE parameter? > > thanks very much > > regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Sun Oct 5 13:56:21 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Sun, 5 Oct 2008 22:56:21 +0200 Subject: [mapserver-users] Using PROCESSING SCALE and SCALE_BUCKETS parameters Message-ID: Hi, I hope someone has some experience with this: I am classifying pixel values from a tiff file (converted from asc). The values are in range 0-100 and I need to clasify them in a following manner (don't bother the COLOR values :-): CLASS EXPRESSION ([pixel] <= 35) NAME '35dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 35 and [pixel] <=40) NAME '40dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 40 and [pixel] <=45) NAME '45dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 45 and [pixel] <=50) NAME '50dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 50 and [pixel] <=55) NAME '55dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 55 and [pixel] <=60) NAME '60dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 60 and [pixel] <=65) NAME '65dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 65 and [pixel] <=70) NAME '70dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 70 and [pixel] <=75) NAME '75dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 75 and [pixel] <=80) NAME '80dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class CLASS EXPRESSION ([pixel] > 80) NAME '>80dB(A)' COLOR 255 255 255 TEMPLATE "void" END # Class Since this can be slow, can I make some performance improvements by using PROCESSING SCALE=min,max and SCALE_BUCKETS parameters? I have tried something like: PROCESSING "SCALE=1,100" PROCESSING "SCALE_BUCKETS=20" but I didn't really see much difference. Is this OK? Is it enough anyway to add those two statements and leave the classes intact? thanks very much regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From liste at geo-dienstleistung.de Mon Oct 6 00:43:35 2008 From: liste at geo-dienstleistung.de (Frank Broniewski) Date: Mon, 6 Oct 2008 09:43:35 +0200 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <48E61532.5090602@mapgears.com> References: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> <48E60FB7.1020707@mapgears.com> <48E61532.5090602@mapgears.com> Message-ID: <200810060943.35443.liste@geo-dienstleistung.de> On Friday 03 October 2008 14:50:58 Alexandre Dube wrote: > Tom, > > The log told me : "SERVICE parameter missing"... I must have done > something wrong with my first attempt because now it's working if I add > "service=WMS" in the Link string. > > Thank you very much, > > Alexandre > > Alexandre Dube wrote: > > OK, I'll try that. > > > > Many thanks, Tom > > > > Alexandre > > > > Kralidis,Tom [Burlington] wrote: > >> Right, those may or may not have MapServer WMSs with the service= > >> required behaviour. > >> > >> That said, I can connect a WMS from my local ms4w to Google Earth > >> without problem. > >> > >> Try this and check your web logs. See the actual request passed by > >> GE, and this should help you diagnose the issue. > >> > >> Since you are using 5.2.0, I would not suspect it's an issue of a > >> missing styles= parameter. > >> > >> ..Tom > >> > >> > >> > >> -----Original Message----- > >> From: Alexandre Dube [mailto:adube at mapgears.com] > >> Sent: Fri 03-Oct-08 08:09 > >> To: Kralidis,Tom [Burlington] > >> Cc: MAPSERVER USERS > >> Subject: Re: [mapserver-users] WMS in Google Earth > >> > >> Hi Tom, > >> > >> Thanks for your reply, but unfortunately that didn't solved the > >> problem. In fact, the existing WMS servers in GE, don't use > >> "service=WMS" in any "Link" string and they work... > >> > >> However, the wms_onlineresource IS always the first part of the > >> "Link" string, not the actual local link you copy/paste when in the > >> "WMS Parameters" menu... Does this means that GE don't accept local > >> wms_onlineresource ? I think this could make sense... > >> > >> Any ideas ? > >> > >> Alexandre > >> > >> Kralidis,Tom [Burlington] wrote: > >>>> -----Original Message----- > >>>> From: mapserver-users-bounces at lists.osgeo.org > >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > >>>> Alexandre Dube > >>>> Sent: 02 October, 2008 4:40 PM > >>>> To: MAPSERVER USERS > >>>> Subject: Re: [mapserver-users] WMS in Google Earth > >>>> > >>>> Back with my local WMS on GE problem. I think it has something to > >>>> do with the wms_onlineresource in WEB METADATA. > >>>> > >>>> I downloaded the gmap datas, which are already in GE as the last > >>>> WMS service available, to be able to test locally what is already > >>>> working on the internet. At first, it worked in GE. Then, I > >>>> noticed that the wms_onlineresource was set to : > >>>> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" > >>>> which seemed wrong to me, because my other map doesn't exist on the > >>>> internet, only locally. > >>>> > >>>> So I changed it to : > >>>> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap > >>>> 75_wms.map&" > >>>> and then I doesn't work anymore... also tried : > >>>> "http://127.0.0.1:port/cgi-bin/mapserv?" > >>>> no result... > >>>> > >>>> I must be close the the answer. I have searched a lot over the > >>>> internet but I haven't found anything yet. Any hints ? > >>>> > >>>> Alexandre > >>>> > >>>> Alexandre Dube wrote: > >>>>> Hi list, > >>>>> > >>>>> I'm trying to figure how to setup my own wms layer in GE. So > >>>>> far, I'm able to see each layer in the "WMS Parameters", but if I > >>>>> select any, I get a big red X, meaning it's not working... > >>>>> > >>>>> If I copy the "Link" created by GE, paste it in a browser, add > >>>>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I > >>>>> don't really know what I'm missing here. Any hint ? I use > >>>> > >>>> mapserver 5.2.0 > >>>> > >>>>> on Linux. > >>> > >>> This might be due to the SERVICE parameter missing WMS GetMap request. > >>> If you, once you add the layer, right click and select "Properties", > >>> adding "&service=WMS" to the Link string, you should be able to get a > >>> valid map image returned. > >>> > >>> That said, I thought we lifted the service param from WMS GetMap > >>> requests (GetMap sans service= works for me in svn trunk). > >>> > >>> ..Tom Hi, though I am not using mapserver 5.2 but 5.02 ;-) I noticed a behavior from GE always resetting the imageformat of the request string to image/gif. Maybe this is your problem? So when leaving the WMS Parameters page check the created URI in the link field for the correct imagetype. HTH Frank From adrian_gh.popa at romtelecom.ro Mon Oct 6 03:51:20 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 06 Oct 2008 13:51:20 +0300 Subject: [mapserver-users] Display road layer realistically Message-ID: <48E9EDA8.7090501@romtelecom.ro> Hello everybody, I have to draw a fiber-optic layer that can be interpreted like a road layer (polyline data type). I've drawn it in simple ways (colored lines), but now it must look more professional... I would like some tips on how to draw this/color schemes to make it look better. LAYER NAME fibraProblems TYPE LINE STATUS off DATA fibra CLASSITEM "nume" LABELITEM "nume" CLASS Name "Selected" EXPRESSION /selected/ STYLE COLOR 255 0 0 WIDTH 4 END LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS TRUE MINDISTANCE 0 BUFFER 0 # PRIORITY 5 END END END Also, on some parts of the fiber, there are multiple fibers going the same way... I would like to represent them like in this subway map: http://www.frenchculture.com/images/metro_map.gif, meaning adjacent fibers should apear next to each-other. Any idea if this can be done with mapserver? Thank you, Adrian From adube at mapgears.com Mon Oct 6 05:15:05 2008 From: adube at mapgears.com (Alexandre Dube) Date: Mon, 06 Oct 2008 08:15:05 -0400 Subject: [mapserver-users] WMS in Google Earth In-Reply-To: <200810060943.35443.liste@geo-dienstleistung.de> References: <2DC5CCA14756424BBBEE8B4B2E4A682F07C5815A@ecburexch1.ontario.int.ec.gc.ca> <48E60FB7.1020707@mapgears.com> <48E61532.5090602@mapgears.com> <200810060943.35443.liste@geo-dienstleistung.de> Message-ID: <48EA0149.9020104@mapgears.com> Hi Frank, Didn't noticed this strange behavior in my application. Even if in my metadata I set "wms_format" "image/png", the first link string as gif instead. But I changed it to png and it remains to png for each request. Cheers, Alexandre Frank Broniewski wrote: > On Friday 03 October 2008 14:50:58 Alexandre Dube wrote: > >> Tom, >> >> The log told me : "SERVICE parameter missing"... I must have done >> something wrong with my first attempt because now it's working if I add >> "service=WMS" in the Link string. >> >> Thank you very much, >> >> Alexandre >> >> Alexandre Dube wrote: >> >>> OK, I'll try that. >>> >>> Many thanks, Tom >>> >>> Alexandre >>> >>> Kralidis,Tom [Burlington] wrote: >>> >>>> Right, those may or may not have MapServer WMSs with the service= >>>> required behaviour. >>>> >>>> That said, I can connect a WMS from my local ms4w to Google Earth >>>> without problem. >>>> >>>> Try this and check your web logs. See the actual request passed by >>>> GE, and this should help you diagnose the issue. >>>> >>>> Since you are using 5.2.0, I would not suspect it's an issue of a >>>> missing styles= parameter. >>>> >>>> ..Tom >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: Alexandre Dube [mailto:adube at mapgears.com] >>>> Sent: Fri 03-Oct-08 08:09 >>>> To: Kralidis,Tom [Burlington] >>>> Cc: MAPSERVER USERS >>>> Subject: Re: [mapserver-users] WMS in Google Earth >>>> >>>> Hi Tom, >>>> >>>> Thanks for your reply, but unfortunately that didn't solved the >>>> problem. In fact, the existing WMS servers in GE, don't use >>>> "service=WMS" in any "Link" string and they work... >>>> >>>> However, the wms_onlineresource IS always the first part of the >>>> "Link" string, not the actual local link you copy/paste when in the >>>> "WMS Parameters" menu... Does this means that GE don't accept local >>>> wms_onlineresource ? I think this could make sense... >>>> >>>> Any ideas ? >>>> >>>> Alexandre >>>> >>>> Kralidis,Tom [Burlington] wrote: >>>> >>>>>> -----Original Message----- >>>>>> From: mapserver-users-bounces at lists.osgeo.org >>>>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>>>>> Alexandre Dube >>>>>> Sent: 02 October, 2008 4:40 PM >>>>>> To: MAPSERVER USERS >>>>>> Subject: Re: [mapserver-users] WMS in Google Earth >>>>>> >>>>>> Back with my local WMS on GE problem. I think it has something to >>>>>> do with the wms_onlineresource in WEB METADATA. >>>>>> >>>>>> I downloaded the gmap datas, which are already in GE as the last >>>>>> WMS service available, to be able to test locally what is already >>>>>> working on the internet. At first, it worked in GE. Then, I >>>>>> noticed that the wms_onlineresource was set to : >>>>>> "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" >>>>>> which seemed wrong to me, because my other map doesn't exist on the >>>>>> internet, only locally. >>>>>> >>>>>> So I changed it to : >>>>>> "http://127.0.0.1:port/cgi-bin/mapserv?map=/my/local/path/gmap >>>>>> 75_wms.map&" >>>>>> and then I doesn't work anymore... also tried : >>>>>> "http://127.0.0.1:port/cgi-bin/mapserv?" >>>>>> no result... >>>>>> >>>>>> I must be close the the answer. I have searched a lot over the >>>>>> internet but I haven't found anything yet. Any hints ? >>>>>> >>>>>> Alexandre >>>>>> >>>>>> Alexandre Dube wrote: >>>>>> >>>>>>> Hi list, >>>>>>> >>>>>>> I'm trying to figure how to setup my own wms layer in GE. So >>>>>>> far, I'm able to see each layer in the "WMS Parameters", but if I >>>>>>> select any, I get a big red X, meaning it's not working... >>>>>>> >>>>>>> If I copy the "Link" created by GE, paste it in a browser, add >>>>>>> "&SERVICE=WMS&BBOX=-180,-90,180,90", then I get a map. So, I >>>>>>> don't really know what I'm missing here. Any hint ? I use >>>>>>> >>>>>> mapserver 5.2.0 >>>>>> >>>>>> >>>>>>> on Linux. >>>>>>> >>>>> This might be due to the SERVICE parameter missing WMS GetMap request. >>>>> If you, once you add the layer, right click and select "Properties", >>>>> adding "&service=WMS" to the Link string, you should be able to get a >>>>> valid map image returned. >>>>> >>>>> That said, I thought we lifted the service param from WMS GetMap >>>>> requests (GetMap sans service= works for me in svn trunk). >>>>> >>>>> ..Tom >>>>> > > Hi, > > though I am not using mapserver 5.2 but 5.02 ;-) I noticed a behavior from GE > always resetting the imageformat of the request string to image/gif. Maybe > this is your problem? So when leaving the WMS Parameters page check the > created URI in the link field for the correct imagetype. > > HTH Frank > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From johan.hallgren at logica.com Mon Oct 6 05:56:50 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Mon, 6 Oct 2008 14:56:50 +0200 Subject: [mapserver-users] Draw point on a polygonlayer Message-ID: Hello, Is there some way to define a layer so it will draw a centerpoint for a polygon layer. I could use an annotaion layer type, but in that case, the legend will show the label, and not the point symbol. Any ideas? /Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Mon Oct 6 04:50:58 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Mon, 6 Oct 2008 14:50:58 +0300 (EEST) Subject: [mapserver-users] changing rendered color of layer dynamically? Message-ID: <3078.193.218.36.79.1223293858.squirrel@193.218.36.79> Hello all, I've been scratching my head as to how to change the color that a layer maybe rendered via a form. My users want to select which color the layers should be rendered. Would appreciate a bit of insite. I'm using FW MS 5.1-dev I've tried, according to the docs, using layer and class names as well as layer and class index and neither work... &map.layer[oikismoi].class[oikismoi].style.color+230+34+35 &map.layer[0].class[0].style.color+230+34+35 In MS 4.something, I used to use "map_layer_0_class_0_color=255+0+0" successfully I've also tried to use something like CLASS # layer color change EXPRESSION '%layer_color%' style backgroundcolor 128 128 128 color 2 2 220 outlinecolor 150 150 150 end END to at least statically test a substitution, but fail... below is a snip from my mapfile, sincerely, nikos LAYER debug 5 classitem "OBJECTID" data "LANDUNIT_KARDITSA" footer "LANDUNIT_KARDITSA_footer.html" group "LANDUNIT_KARDITSA" header "LANDUNIT_KARDITSA_header.html" labelcache on labelitem "OBJECTID" name "LANDUNIT_KARDITSA" postlabelcache true status on type polygon OPACITY 70 # 1 class LANDUNIT_KARDITSA class name "KARDITSA" style backgroundcolor 128 128 128 #color 133 234 21 color 22 200 22 outlinecolor 50 50 50 end template "LANDUNIT_KARDITSA_query.html" end end LAYER DEBUG 5 classitem "OBJECTID" data "oikismoi" footer "oikismoi_footer.html" group "oikismoi" header "oikismoi_header.html" labelcache on labelitem "OBJECTID" name "oikismoi" postlabelcache true status on type polygon # 1 class oikismoi class name "oikismoi" style backgroundcolor 0 128 128 color 22 122 233 outlinecolor 0 0 0 end template "oikismoi_query.html" end end From mitchelljj98 at gmail.com Mon Oct 6 07:10:47 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Mon, 6 Oct 2008 10:10:47 -0400 Subject: [mapserver-users] creating an epsg code that can be used within the epsg file for fwtools and MapServer Message-ID: Hi, How would I create an epsg code that can be used within the epsg file for fwtools and MapServer? Below is the information that I would like to use to create an epsg code. What would be format for the new epsg code? Is the information listed below enough to create an epsg code and if not what am I missing? *The 2001 data was originally in a Guatemalan Transverse Mercator coordinate system with the parameters shown below: Projection: Transverse Mercator False Easting: 500000.000000 False Northing: 0.000000 Central Meridian: -90.500000 Scale Factor: 0.999800 Latitude of Origin: 0.0000000 Linear Unit: Meter Geographic Coordinate System: GCS_WGS_1984 *Below is the gdalinfo listing for one of files that I would like to associate to this new epsg code: *Driver: GTiff/GeoTIFF Size is 11214, 7860 Coordinate System is `' Origin = (317049.000000000000000,**1659460.000000000000000) Pixel Size = (0.500000000000000,-0.**500000000000000) Metadata: AREA_OR_POINT=Area TIFFTAG_SOFTWARE=ERDAS IMAGINE TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 317049.000, 1659460.000) Lower Left ( 317049.000, 1655530.000) Upper Right ( 322656.000, 1659460.000) Lower Right ( 322656.000, 1655530.000) Center ( 319852.500, 1657495.000) Band 1 Block=11214x8 Type=Byte, ColorInterp=Red Band 2 Block=11214x8 Type=Byte, ColorInterp=Green Band 3 Block=11214x8 Type=Byte, ColorInterp=Blue* Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Oct 6 07:21:37 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 06 Oct 2008 09:21:37 -0500 Subject: [mapserver-users] changing rendered color of layer dynamically? Message-ID: <48E9D8A20200008F0001C3F9@co5.dnr.state.mn.us> Nikos: There can be more than one style in a class to you'd need the array notation there too: &map.layer[oikismoi].class[oikismoi].style[0].color+230+34+35 Does that work? Steve >>> 10/06/08 8:18 AM >>> Hello all, I've been scratching my head as to how to change the color that a layer maybe rendered via a form. My users want to select which color the layers should be rendered. Would appreciate a bit of insite. I'm using FW MS 5.1-dev I've tried, according to the docs, using layer and class names as well as layer and class index and neither work... &map.layer[oikismoi].class[oikismoi].style.color+230+34+35 &map.layer[0].class[0].style.color+230+34+35 In MS 4.something, I used to use "map_layer_0_class_0_color=255+0+0" successfully I've also tried to use something like CLASS # layer color change EXPRESSION '%layer_color%' style backgroundcolor 128 128 128 color 2 2 220 outlinecolor 150 150 150 end END to at least statically test a substitution, but fail... below is a snip from my mapfile, sincerely, nikos LAYER debug 5 classitem "OBJECTID" data "LANDUNIT_KARDITSA" footer "LANDUNIT_KARDITSA_footer.html" group "LANDUNIT_KARDITSA" header "LANDUNIT_KARDITSA_header.html" labelcache on labelitem "OBJECTID" name "LANDUNIT_KARDITSA" postlabelcache true status on type polygon OPACITY 70 # 1 class LANDUNIT_KARDITSA class name "KARDITSA" style backgroundcolor 128 128 128 #color 133 234 21 color 22 200 22 outlinecolor 50 50 50 end template "LANDUNIT_KARDITSA_query.html" end end LAYER DEBUG 5 classitem "OBJECTID" data "oikismoi" footer "oikismoi_footer.html" group "oikismoi" header "oikismoi_header.html" labelcache on labelitem "OBJECTID" name "oikismoi" postlabelcache true status on type polygon # 1 class oikismoi class name "oikismoi" style backgroundcolor 0 128 128 color 22 122 233 outlinecolor 0 0 0 end template "oikismoi_query.html" end end _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From zhaops at hotmail.com Mon Oct 6 08:55:06 2008 From: zhaops at hotmail.com (zhao peisheng) Date: Mon, 6 Oct 2008 15:55:06 +0000 Subject: [mapserver-users] spatial and time index Message-ID: Now I use gdaltindex to build a set of tile index SHP for a time-series data. And I put this SHPs into PostGIS But I don't know how to configure the tileindex in Map file. I tried to do like this. PostGIS can return the correct SHP file with time filter, but MapServer think it is a data file, not tile file, and draw failed. How to figure it out? Thanks. LAYER STATUS ON NAME "AIRSSO2MAPAIDX" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "dbname=mapserver password=anonymous user=anonymous port=5432" DATA "the_geom from airs_so2_map_a" METADATA "wms_title" "AIRS SO2 Map Total Ascending INDEX" "ows_service" "none" END END # # AIRS SO2 Map Ascending Layer # LAYER NAME 'AIRS_SO2_A' TYPE RASTER STATUS ON DEBUG ON DUMP TRUE PROCESSING "DITHER=YES" PROJECTION "init=epsg:4326" ##recommended END METADATA wms_title "AIRS_SO2_A" ##required wms_timeextent "2008-09-18/2008-10-02" wms_srs "EPSG:4326" wms_timeitem "time" wms_timedefault "2008-10-02" wms_extent "-180.0 -90.0 180.0 90.0" END TILEITEM "location" TILEINDEX "AIRSSO2MAPAIDX" END # Layer _________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Mon Oct 6 09:01:42 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 6 Oct 2008 09:01:42 -0700 Subject: [mapserver-users] Draw point on a polygonlayer In-Reply-To: References: Message-ID: <9c2015090810060901o519cc204paf31c6d8b161cf66@mail.gmail.com> If it is stored in PostGIS, maybe could you create a view that is the centerpoints of the polys, and then create a new mapserver layer that uses the view as the data source? -- On Mon, Oct 6, 2008 at 5:56 AM, Hallgren, Johan wrote: > Hello, > > Is there some way to define a layer so it will draw a centerpoint for a > polygon layer. I could use an annotaion layer type, but in that case, the > legend will show the label, and not the point symbol. > > Any ideas? > > /Johan > > Johan Hallgren > > *Logica** > *Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > *johan.hallgren at logica.com > *http://www.logica.se > > > _______________________________________________ > 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 randre at gmail.com Mon Oct 6 10:01:17 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 6 Oct 2008 10:01:17 -0700 Subject: [mapserver-users] Re: [gdal-dev] creating an epsg code that can be used within the epsg file for fwtools and MapServer In-Reply-To: References: Message-ID: <9c2015090810061001o65837b93i3f3d109836e0a108@mail.gmail.com> Hi John, No guarantees that I got this right, but you could try adding the following entry to your "FWTools/share/proj/epsg" file: # Guatemala Transverse Mercator <001234> +proj=tmerc +x_0=500000.000000 +y_0=0 +lon_0=-90.5 +lat_0=0 +k=0.999800 +ellps=WGS84 +datum=WGS84 +to_meter=0.3048006096012192 +no_defs <> Then you should be able to acces it by using "EPSG:001234" in your -s_srs parameters. Roger -- On Mon, Oct 6, 2008 at 7:10 AM, John Mitchell wrote: > Hi, > > How would I create an epsg code that can be used within the epsg file for > fwtools and MapServer? > > Below is the information that I would like to use to create an epsg code. > What would be format for the new epsg code? Is the information listed below > enough to create an epsg code and if not what am I missing? > > > *The 2001 data was originally in a Guatemalan Transverse Mercator > coordinate > system with the parameters shown below: > > Projection: Transverse Mercator > False Easting: 500000.000000 > False Northing: 0.000000 > Central Meridian: -90.500000 > Scale Factor: 0.999800 > Latitude of Origin: 0.0000000 > Linear Unit: Meter > Geographic Coordinate System: GCS_WGS_1984 > > *Below is the gdalinfo listing for one of files that I would like to > associate to this new epsg code: > > *Driver: GTiff/GeoTIFF > Size is 11214, 7860 > Coordinate System is `' > Origin = (317049.000000000000000,**1659460.000000000000000) > Pixel Size = (0.500000000000000,-0.**500000000000000) > Metadata: > AREA_OR_POINT=Area > TIFFTAG_SOFTWARE=ERDAS IMAGINE > TIFFTAG_XRESOLUTION=1 > TIFFTAG_YRESOLUTION=1 > TIFFTAG_RESOLUTIONUNIT=1 (unitless) > Corner Coordinates: > Upper Left ( 317049.000, 1659460.000) > Lower Left ( 317049.000, 1655530.000) > Upper Right ( 322656.000, 1659460.000) > Lower Right ( 322656.000, 1655530.000) > Center ( 319852.500, 1657495.000) > Band 1 Block=11214x8 Type=Byte, ColorInterp=Red > Band 2 Block=11214x8 Type=Byte, ColorInterp=Green > Band 3 Block=11214x8 Type=Byte, ColorInterp=Blue* > > > > Thanks, > > -- > John J. Mitchell > > _______________________________________________ > gdal-dev mailing list > gdal-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jim.Haug at state.sd.us Mon Oct 6 09:58:06 2008 From: Jim.Haug at state.sd.us (Jim.Haug at state.sd.us) Date: Mon, 6 Oct 2008 11:58:06 -0500 Subject: [mapserver-users] can't get dLegend to function Message-ID: <584F73DD6F7B084B9432599D1CE43555054C8CB4@ESPR1EXC02.state.sd.local> I've tried using the dBox demo on two different systems (OS X 10.5.x and Ubuntu 8.04) running mapserver 5.0.2. Neither the python nor the perl system will work. When I run it on the Ubuntu box, I get the following: su at hawken:/usr/lib/cgi-bin$ perl make_dlegend_xml.pl map=/var/www/dbox_demo/example/itasca.map server=localhost Can't locate mapscript410.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at make_dlegend_xml.pl line 3. BEGIN failed--compilation aborted at make_dlegend_xml.pl line 3. su at hawken:/usr/lib/cgi-bin$ What is located in /usr/lib/perl5 is mapscript.pm, not mapscript410.pm. Changing the name does no good, I still get errors. The Python version does this: su at hawken:/usr/lib/cgi-bin$ python make_dlegend_xml.py --map=/var/www/dbox_demo/example/itasca.map --server=localhost : minscale su at hawken:/usr/lib/cgi-bin$ I see that dLegend-based web sites are up and running in various places, but I'm just not having any luck. I would appreciate any advice anyone might care to give. Thanks. From mitchelljj98 at gmail.com Mon Oct 6 10:53:55 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Mon, 6 Oct 2008 13:53:55 -0400 Subject: [mapserver-users] Re: [gdal-dev] creating an epsg code that can be used within the epsg file for fwtools and MapServer In-Reply-To: <9c2015090810061001o65837b93i3f3d109836e0a108@mail.gmail.com> References: <9c2015090810061001o65837b93i3f3d109836e0a108@mail.gmail.com> Message-ID: Thanks Roger, Since I sent out the email I was able to derive the EPSG code and the only difference between mine and yours was that I had +units=m and you had +to_meter=0.3048006096012192. I think that my EPSG code is correct since my below email had the Linear Unit = Meter and +to_meter=0.3048006096012192 would mean the units was feet. John On Mon, Oct 6, 2008 at 1:01 PM, Roger Andr? wrote: > Hi John, > > No guarantees that I got this right, but you could try adding the following > entry to your "FWTools/share/proj/epsg" file: > > # Guatemala Transverse Mercator > <001234> +proj=tmerc +x_0=500000.000000 +y_0=0 +lon_0=-90.5 +lat_0=0 > +k=0.999800 +ellps=WGS84 +datum=WGS84 +to_meter=0.3048006096012192 +no_defs > <> > > Then you should be able to acces it by using "EPSG:001234" in your -s_srs > parameters. > > Roger > -- > > On Mon, Oct 6, 2008 at 7:10 AM, John Mitchell wrote: > >> Hi, >> >> How would I create an epsg code that can be used within the epsg file for >> fwtools and MapServer? >> >> Below is the information that I would like to use to create an epsg code. >> What would be format for the new epsg code? Is the information listed below >> enough to create an epsg code and if not what am I missing? >> >> >> *The 2001 data was originally in a Guatemalan Transverse Mercator >> coordinate >> system with the parameters shown below: >> >> Projection: Transverse Mercator >> False Easting: 500000.000000 >> False Northing: 0.000000 >> Central Meridian: -90.500000 >> Scale Factor: 0.999800 >> Latitude of Origin: 0.0000000 >> Linear Unit: Meter >> Geographic Coordinate System: GCS_WGS_1984 >> >> *Below is the gdalinfo listing for one of files that I would like to >> associate to this new epsg code: >> >> *Driver: GTiff/GeoTIFF >> Size is 11214, 7860 >> Coordinate System is `' >> Origin = (317049.000000000000000,**1659460.000000000000000) >> Pixel Size = (0.500000000000000,-0.**500000000000000) >> Metadata: >> AREA_OR_POINT=Area >> TIFFTAG_SOFTWARE=ERDAS IMAGINE >> TIFFTAG_XRESOLUTION=1 >> TIFFTAG_YRESOLUTION=1 >> TIFFTAG_RESOLUTIONUNIT=1 (unitless) >> Corner Coordinates: >> Upper Left ( 317049.000, 1659460.000) >> Lower Left ( 317049.000, 1655530.000) >> Upper Right ( 322656.000, 1659460.000) >> Lower Right ( 322656.000, 1655530.000) >> Center ( 319852.500, 1657495.000) >> Band 1 Block=11214x8 Type=Byte, ColorInterp=Red >> Band 2 Block=11214x8 Type=Byte, ColorInterp=Green >> Band 3 Block=11214x8 Type=Byte, ColorInterp=Blue* >> >> >> >> Thanks, >> >> -- >> John J. Mitchell >> >> _______________________________________________ >> gdal-dev mailing list >> gdal-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/gdal-dev >> > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.hallgren at logica.com Mon Oct 6 12:34:12 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Mon, 6 Oct 2008 21:34:12 +0200 Subject: [mapserver-users] Draw point on a polygonlayer In-Reply-To: <9c2015090810060901o519cc204paf31c6d8b161cf66@mail.gmail.com> References: <9c2015090810060901o519cc204paf31c6d8b161cf66@mail.gmail.com> Message-ID: I have it in Oracle. I will try the same there. Thanks Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se ________________________________ From: Roger Andr? [mailto:randre at gmail.com] Sent: den 6 oktober 2008 18:02 To: Hallgren, Johan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Draw point on a polygonlayer If it is stored in PostGIS, maybe could you create a view that is the centerpoints of the polys, and then create a new mapserver layer that uses the view as the data source? -- On Mon, Oct 6, 2008 at 5:56 AM, Hallgren, Johan > wrote: Hello, Is there some way to define a layer so it will draw a centerpoint for a polygon layer. I could use an annotaion layer type, but in that case, the legend will show the label, and not the point symbol. Any ideas? /Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se _______________________________________________ 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 Mon Oct 6 16:05:51 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 6 Oct 2008 19:05:51 -0400 Subject: [mapserver-users] spatial and time index In-Reply-To: References: Message-ID: <931f8ea90810061605x74f1e754i51a52d37bee71a6e@mail.gmail.com> Zhao Peisheng, I'm sorry, but I don't really know much about how the time dimension support works in MapServer. After reviewing the applicable howto's I'd suggest you ask on mapserver-users. Good luck, On Mon, Oct 6, 2008 at 11:55 AM, zhao peisheng wrote: > Now I use gdaltindex to build a set of tile index SHP for a time-series > data. And I put this SHPs into PostGIS But I don't know how to configure the > tileindex in Map file. I tried to do like this. PostGIS can return the > correct SHP file with time filter, but MapServer think it is a data file, > not tile file, and draw failed. How to figure it out? Thanks. > > LAYER > > STATUS ON > > NAME "AIRSSO2MAPAIDX" > > TYPE POLYGON > > CONNECTIONTYPE POSTGIS > > CONNECTION "dbname=mapserver password=anonymous user=anonymous > port=5432" > > DATA "the_geom from airs_so2_map_a" > > METADATA > > "wms_title" "AIRS SO2 Map Total Ascending INDEX" > > "ows_service" "none" > > END > > END > > > > # > > # AIRS SO2 Map Ascending Layer > > # > > > > LAYER > > NAME 'AIRS_SO2_A' > > TYPE RASTER > > STATUS ON > > DEBUG ON > > DUMP TRUE > > PROCESSING "DITHER=YES" > > PROJECTION > > "init=epsg:4326" ##recommended > > END > > METADATA > > wms_title "AIRS_SO2_A" ##required > > wms_timeextent "2008-09-18/2008-10-02" > > wms_srs "EPSG:4326" > > wms_timeitem "time" > > wms_timedefault "2008-10-02" > > wms_extent "-180.0 -90.0 180.0 90.0" > > END > > TILEITEM "location" > > TILEINDEX "AIRSSO2MAPAIDX" > > > > > > > > END # Layer > > ________________________________ > Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now > _______________________________________________ > 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 | Geospatial Programmer for Rent From Steve.Lime at dnr.state.mn.us Mon Oct 6 21:41:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 06 Oct 2008 23:41:02 -0500 Subject: [mapserver-users] Display road layer realistically Message-ID: <48EAA20F0200008F0001C4D0@co5.dnr.state.mn.us> Man, I don't know how. You'd have to pre-process your data somehow to identify coincident line segments and offset them accordingly. That can't be done on-the-fly. As for your base layer definition, it's about as boring as it gets - fat red line, with black text. Simple things like adding a wide background: STYLE COLOR 0 0 0 # fat black line WIDTH 6 END STYLE COLOR 255 0 0 # thinner red line WIDTH 4 END can help. Outline colors for labels can also make them easier to read. I talk to a graphic designer or cartographer if you have access to one for recommendations and then develop to that. Also, AGG as a render will produce higher quality output than GD, use that if possible. Steve >>> Adrian Popa 10/06/08 6:05 AM >>> Hello everybody, I have to draw a fiber-optic layer that can be interpreted like a road layer (polyline data type). I've drawn it in simple ways (colored lines), but now it must look more professional... I would like some tips on how to draw this/color schemes to make it look better. LAYER NAME fibraProblems TYPE LINE STATUS off DATA fibra CLASSITEM "nume" LABELITEM "nume" CLASS Name "Selected" EXPRESSION /selected/ STYLE COLOR 255 0 0 WIDTH 4 END LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO PARTIALS TRUE MINDISTANCE 0 BUFFER 0 # PRIORITY 5 END END END Also, on some parts of the fiber, there are multiple fibers going the same way... I would like to represent them like in this subway map: http://www.frenchculture.com/images/metro_map.gif, meaning adjacent fibers should apear next to each-other. Any idea if this can be done with mapserver? Thank you, Adrian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From subha at gslab.com Mon Oct 6 23:30:34 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 07 Oct 2008 12:00:34 +0530 Subject: [mapserver-users] Creating legend In-Reply-To: <48EAA20F0200008F0001C4D0@co5.dnr.state.mn.us> References: <48EAA20F0200008F0001C4D0@co5.dnr.state.mn.us> Message-ID: <48EB020A.9010104@gslab.com> Hi, I am using mapserver 5.0.2 with openlayers. I've a problem while creating a legend for a map from mapserver.When i try to overlay the image from the mapserver on openlayers' base map, the images are rendered in tiles, and every tile has a legend and is limited by the size of the tile. So, i see lots of legends on the map and only half of them are visible as it is restricted by the tile size. This is my request to mapserver from openlayers var mapfile = layer_tablename+'.map'; twms1 = new OpenLayers.Layer.WMS( layer_tablename,"http://localhost/cgi-bin/mapserv?", { map: mapfile, transparent: 'true', layers:layer_tablename, format: 'image/png', projection:"EPSG:4326",reproject:false, units: "m", singleTile: true },{numZoomLevels : MaxZoomLevel}); map.addLayer(twms1); I am using the option of singleTile. Is there any setting to be done in the map file or mapserver for it render a single tile/single legend per image? Thank you. Regards, Subha From Dejan.Gambin at pula.hr Tue Oct 7 01:42:25 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Tue, 7 Oct 2008 10:42:25 +0200 Subject: [mapserver-users] Sudden msRASTERLayerOpen() error - need help Message-ID: Hi, I am using query on tif layer and everything was fine untill today. Now I can't query the raster any more. There are no errors showing immediatelly in log files, except few times in php error log, saying: PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query. in /var/www/pmapper32/incphp/map.php on line 728 I am using php5-mapscript (5.0.0-3)[universe] package on ubuntu and p.mapper 3.2.0 I would appreciate any help thanks very much regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From reena at indiamail.com Tue Oct 7 03:00:28 2008 From: reena at indiamail.com (S.Reena) Date: Tue, 7 Oct 2008 03:00:28 -0700 (PDT) Subject: [MAPSERVER-USERS] Dynamic Labeling of maps Message-ID: <19855041.post@talk.nabble.com> Hi All, Is it possible to put labels on map dynamically ..with sum button click or something ......I know that using Labelrequires "0"/"1" is used to set labels as off/on in map file.......but thats static ..can we set this value dynamically from some come elsewhere . Cheers, Reena. -- View this message in context: http://www.nabble.com/Dynamic-Labeling-of-maps-tp19855041p19855041.html Sent from the Mapserver - User mailing list archive at Nabble.com. From reena at indiamail.com Tue Oct 7 03:02:16 2008 From: reena at indiamail.com (S.Reena) Date: Tue, 7 Oct 2008 03:02:16 -0700 (PDT) Subject: [MAPSERVER-USERS] Dynamic Labeling of maps Message-ID: <19855065.post@talk.nabble.com> Hi All, Is it possible to put labels on map dynamically ..with sum button click or something ......I know that using Labelrequires "0"/"1" is used to set labels as off/on in map file.......but thats static ..can we set this value dynamically from some code elsewhere . Thanks in advance :) Cheers, Reena. -- View this message in context: http://www.nabble.com/Dynamic-Labeling-of-maps-tp19855065p19855065.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Dejan.Gambin at pula.hr Tue Oct 7 03:24:50 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Tue, 7 Oct 2008 12:24:50 +0200 Subject: [mapserver-users] Sudden msRASTERLayerOpen() error - need help In-Reply-To: Message-ID: I have even tried to build php-mapscript from the source, using the newest stable version but it doesn't help. Any suggestion would be greatly appreciated thanks regards mapserver-users-bounces at lists.osgeo.org wrote on 07.10.2008 10:42:25: > > Hi, > > I am using query on tif layer and everything was fine untill today. > Now I can't query the raster any more. There are no errors showing > immediatelly in log files, except few times in php error log, saying: > > PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to > open a RASTER layer, but this is only supported after a raster query. > in /var/www/pmapper32/incphp/map.php on line 728 > > I am using php5-mapscript (5.0.0-3)[universe] package on ubuntu and > p.mapper 3.2.0 > > I would appreciate any help > > thanks very much > > regards, dejan_______________________________________________ > 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 alexandre.rodier at carm.es Tue Oct 7 03:57:05 2008 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Tue, 7 Oct 2008 12:57:05 +0200 Subject: [mapserver-users] Multiple layer in map file Message-ID: <8DB813E500220E49824A37D46669749D4B6D97@CORREO06.carm.msda> Hi everyone, I am trying to define multiple layer with diferent epsg, and it doesn't work. I define init EPSG with 25830 in projection tag, and I have two layers with 25830 and five with 23030. I define every epsg's layer with "wms_srs" tag. It owrks fine if I keep only one layer in map file, but when I group all of them in an unique file, it doesn't. Someone can help me? Thanks a lot. --------------------------------------------- Alexandre Rodier SIGA - Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General del Medio Natural c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Tue Oct 7 04:08:30 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Tue, 7 Oct 2008 13:08:30 +0200 Subject: [mapserver-users] Sudden msRASTERLayerOpen() error - need help In-Reply-To: Message-ID: I am not getting those errors any more with the new version, but my problem still remains. Now I suppose it is related to p.mapper thanks anyway dejan mapserver-users-bounces at lists.osgeo.org wrote on 07.10.2008 10:42:25: > > Hi, > > I am using query on tif layer and everything was fine untill today. > Now I can't query the raster any more. There are no errors showing > immediatelly in log files, except few times in php error log, saying: > > PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to > open a RASTER layer, but this is only supported after a raster query. > in /var/www/pmapper32/incphp/map.php on line 728 > > I am using php5-mapscript (5.0.0-3)[universe] package on ubuntu and > p.mapper 3.2.0 > > I would appreciate any help > > thanks very much > > regards, dejan_______________________________________________ > 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 Oct 7 04:10:42 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Tue, 7 Oct 2008 11:10:42 +0000 (GMT) Subject: R: [MAPSERVER-USERS] Dynamic Labeling of maps In-Reply-To: <19855041.post@talk.nabble.com> Message-ID: <667781.28393.qm@web27302.mail.ukl.yahoo.com> One solution could be put the labels in a different layer and ofter the click just add the new layer on top of the map Cheers Valerio --- Mar 7/10/08, S.Reena ha scritto: Da: S.Reena Oggetto: [MAPSERVER-USERS] Dynamic Labeling of maps A: mapserver-users at lists.osgeo.org Data: Marted? 7 ottobre 2008, 12:00 Hi All, Is it possible to put labels on map dynamically ..with sum button click or something ......I know that using Labelrequires "0"/"1" is used to set labels as off/on in map file.......but thats static ..can we set this value dynamically from some come elsewhere . Cheers, Reena. -- View this message in context: http://www.nabble.com/Dynamic-Labeling-of-maps-tp19855041p19855041.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 Scopri il blog di Yahoo! Mail: Trucchi, novit? e scrivi la tua opinione. http://www.ymailblogit.com/blog -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Tue Oct 7 04:25:09 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Tue, 7 Oct 2008 14:25:09 +0300 (EEST) Subject: [mapserver-users] basic question on img.x, img.y In-Reply-To: <48E9D8A20200008F0001C3F9@co5.dnr.state.mn.us> References: <48E9D8A20200008F0001C3F9@co5.dnr.state.mn.us> Message-ID: <4526.193.218.36.79.1223378709.squirrel@193.218.36.79> Hello, I'm using cgi ms to put up some maps. When I select different layers, I would like to have the new layer selection displayed in the current location/zoom that the existing image is in.. I currently refresh the map to its extents, which is kind of confusing.. >From what I gather, this info is in img.x and img.y... Are these variables accessible in a way like [map], or [mapext] are? If not, how would one go about doing this... tia, nikos From Steve.Lime at dnr.state.mn.us Tue Oct 7 06:31:49 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 07 Oct 2008 08:31:49 -0500 Subject: [mapserver-users] Creating legend Message-ID: <48EB1E760200008F0001C4E9@co5.dnr.state.mn.us> There's nothing you have to do on the MapServer side. Looks like your OL config is wrong though. I think 'singleTile' is set in the wrong configuration object, perhaps others are in the wrong place too. Steve >>> Subha Ramakrishnan 10/07/08 1:30 AM >>> Hi, I am using mapserver 5.0.2 with openlayers. I've a problem while creating a legend for a map from mapserver.When i try to overlay the image from the mapserver on openlayers' base map, the images are rendered in tiles, and every tile has a legend and is limited by the size of the tile. So, i see lots of legends on the map and only half of them are visible as it is restricted by the tile size. This is my request to mapserver from openlayers var mapfile = layer_tablename+'.map'; twms1 = new OpenLayers.Layer.WMS( layer_tablename,"http://localhost/cgi-bin/mapserv?", { map: mapfile, transparent: 'true', layers:layer_tablename, format: 'image/png', projection:"EPSG:4326",reproject:false, units: "m", singleTile: true },{numZoomLevels : MaxZoomLevel}); map.addLayer(twms1); I am using the option of singleTile. Is there any setting to be done in the map file or mapserver for it render a single tile/single legend per image? Thank you. Regards, Subha _______________________________________________ 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 Tue Oct 7 06:54:55 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 07 Oct 2008 08:54:55 -0500 Subject: R: [MAPSERVER-USERS] Dynamic Labeling of maps Message-ID: <48EB23E00200008F0001C4F4@co5.dnr.state.mn.us> That's what ANNOTATION layers are for. You could group them and then refer to them as a single layer. I can see where it would be helpful to have the ability to have a "draw labels only" mode at a global level (e.g. LABELMODE ALL|NONE|ONLY). ALL would be the default, NONE would turn off all labeling and ONLY would turn off feature rendering. I've created a ticket for this: http://trac.osgeo.org/mapserver/ticket/2787 Steve >>> valerio vianello 10/07/08 6:11 AM >>> One solution could be put the labels in a different layer and ofter the click just add the new layer on top of the map Cheers Valerio --- Mar 7/10/08, S.Reena ha scritto: Da: S.Reena Oggetto: [MAPSERVER-USERS] Dynamic Labeling of maps A: mapserver-users at lists.osgeo.org Data: Marted? 7 ottobre 2008, 12:00 Hi All, Is it possible to put labels on map dynamically ..with sum button click or something ......I know that using Labelrequires "0"/"1" is used to set labels as off/on in map file.......but thats static ..can we set this value dynamically from some come elsewhere . Cheers, Reena. -- View this message in context: http://www.nabble.com/Dynamic-Labeling-of-maps-tp19855041p19855041.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 Scopri il blog di Yahoo! Mail: Trucchi, novit? e scrivi la tua opinione. http://www.ymailblogit.com/blog From David.Fawcett at state.mn.us Tue Oct 7 07:20:46 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 7 Oct 2008 09:20:46 -0500 Subject: [mapserver-users] Multiple layer in map file In-Reply-To: <8DB813E500220E49824A37D46669749D4B6D97@CORREO06.carm.msda> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0F1@s-sp22.pca.state.mn.us> Please post the text of your map file, it should make it easier to diagnose your problem. When you say that it 'doesn't work', what do you mean? Are you getting an error message? Is the layer just not drawing? When you make your request to MapServer, is it a WMS request, or just a standard MapServer request? Also, what version are you using? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of RODIER BATISSE, ALEXANDRE Sent: Tuesday, October 07, 2008 5:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Multiple layer in map file Hi everyone, I am trying to define multiple layer with diferent epsg, and it doesn't work. I define init EPSG with 25830 in projection tag, and I have two layers with 25830 and five with 23030. I define every epsg's layer with "wms_srs" tag. It owrks fine if I keep only one layer in map file, but when I group all of them in an unique file, it doesn't. Someone can help me? Thanks a lot. --------------------------------------------- Alexandre Rodier SIGA - Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General del Medio Natural c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.rodier at carm.es Tue Oct 7 07:42:38 2008 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Tue, 7 Oct 2008 16:42:38 +0200 Subject: [mapserver-users] Multiple layer in map file References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0F1@s-sp22.pca.state.mn.us> Message-ID: <8DB813E500220E49824A37D46669749D4B6D9D@CORREO06.carm.msda> When I say "it doesn't work", I mean that it doesn't display image in GVsig. In ArcGIS I can display image but srs doesn't match with the srs's definition of the map file. When I make a getcapabilities request, it works fine and give me xml information about map file, but a wms requst to add map in gvsig, I can add layer but it doesn't display it. And I post the map file in attch. Thanks. --------------------------------------------- Alexandre Rodier SIGA - Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General del Medio Natural c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- ________________________________ De: Fawcett, David [mailto:David.Fawcett at state.mn.us] Enviado el: mar 07/10/2008 16:20 Para: RODIER BATISSE, ALEXANDRE; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] Multiple layer in map file Please post the text of your map file, it should make it easier to diagnose your problem. When you say that it 'doesn't work', what do you mean? Are you getting an error message? Is the layer just not drawing? When you make your request to MapServer, is it a WMS request, or just a standard MapServer request? Also, what version are you using? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of RODIER BATISSE, ALEXANDRE Sent: Tuesday, October 07, 2008 5:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Multiple layer in map file Hi everyone, I am trying to define multiple layer with diferent epsg, and it doesn't work. I define init EPSG with 25830 in projection tag, and I have two layers with 25830 and five with 23030. I define every epsg's layer with "wms_srs" tag. It owrks fine if I keep only one layer in map file, but when I group all of them in an unique file, it doesn't. Someone can help me? Thanks a lot. --------------------------------------------- Alexandre Rodier SIGA - Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General del Medio Natural c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ortoimagenesSIGA.map Type: application/octet-stream Size: 9415 bytes Desc: ortoimagenesSIGA.map URL: From David.Fawcett at state.mn.us Tue Oct 7 07:48:56 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 7 Oct 2008 09:48:56 -0500 Subject: FW: [mapserver-users] Multiple layer in map file Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0F3@s-sp22.pca.state.mn.us> This could be due to issues with the way that your clients are requesting the image. I am sure that some of the more WMS savvy people on this list will be able to see the issue pretty easily. David. -----Original Message----- From: RODIER BATISSE, ALEXANDRE [mailto:alexandre.rodier at carm.es] Sent: Tuesday, October 07, 2008 9:35 AM To: Fawcett, David Subject: RE: [mapserver-users] Multiple layer in map file When I say "it doesn't work", I mean that it doesn't display image in GVsig. In ArcGIS I can display image but srs doesn't match with the srs's definition of the map file. When I make a getcapabilities request, it works fine and give me xml information about map file, but a wms requst to add map in gvsig, I can add layer but it doesn't display it. And I post the map file in attch. Thanks. -------------------------------------------- Alexandre Rodier SIGA - Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General del Medio Natural c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- ________________________________ De: Fawcett, David [mailto:David.Fawcett at state.mn.us] Enviado el: mar 07/10/2008 16:20 Para: RODIER BATISSE, ALEXANDRE; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] Multiple layer in map file Please post the text of your map file, it should make it easier to diagnose your problem. When you say that it 'doesn't work', what do you mean? Are you getting an error message? Is the layer just not drawing? When you make your request to MapServer, is it a WMS request, or just a standard MapServer request? Also, what version are you using? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of RODIER BATISSE, ALEXANDRE Sent: Tuesday, October 07, 2008 5:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Multiple layer in map file Hi everyone, I am trying to define multiple layer with diferent epsg, and it doesn't work. I define init EPSG with 25830 in projection tag, and I have two layers with 25830 and five with 23030. I define every epsg's layer with "wms_srs" tag. It owrks fine if I keep only one layer in map file, but when I group all of them in an unique file, it doesn't. Someone can help me? Thanks a lot. --------------------------------------------- Alexandre Rodier SIGA - Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General del Medio Natural c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ortoimagenesSIGA.map Type: application/octet-stream Size: 9415 bytes Desc: ortoimagenesSIGA.map URL: From subha at gslab.com Tue Oct 7 07:58:42 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 07 Oct 2008 20:28:42 +0530 Subject: [mapserver-users] Creating legend In-Reply-To: <48EB1E760200008F0001C4E9@co5.dnr.state.mn.us> References: <48EB1E760200008F0001C4E9@co5.dnr.state.mn.us> Message-ID: <48EB7922.5070100@gslab.com> Hi Steve, It would be great if you can give me an example or tell me where it is usually set in OL. Thanks for your help. Subha Steve Lime wrote: > There's nothing you have to do on the MapServer side. Looks like your OL config is wrong > though. I think 'singleTile' is set in the wrong configuration object, perhaps others are in > the wrong place too. > > Steve > > >>>> Subha Ramakrishnan 10/07/08 1:30 AM >>> >>>> > Hi, > > I am using mapserver 5.0.2 with openlayers. > I've a problem while creating a legend for a map from mapserver.When i > try to overlay the image from the mapserver on openlayers' base map, the > images are rendered in tiles, and every tile has a legend and is limited > by the size of the tile. So, i see lots of legends on the map and only > half of them are visible as it is restricted by the tile size. > > This is my request to mapserver from openlayers > > var mapfile = layer_tablename+'.map'; > twms1 = new OpenLayers.Layer.WMS( > layer_tablename,"http://localhost/cgi-bin/mapserv?", > { map: mapfile, > transparent: 'true', layers:layer_tablename, > format: 'image/png', > projection:"EPSG:4326",reproject:false, > units: "m", > singleTile: true > },{numZoomLevels : MaxZoomLevel}); > map.addLayer(twms1); > > I am using the option of singleTile. Is there any setting to be done in > the map file or mapserver for it render a single tile/single legend per > image? > > Thank you. > > Regards, > Subha > > _______________________________________________ > 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 Tue Oct 7 08:22:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 07 Oct 2008 10:22:02 -0500 Subject: [mapserver-users] Creating legend Message-ID: <48EB384A0200008F0001C528@co5.dnr.state.mn.us> Visit: http://www.openlayers.org/dev/examples/example-list.html and search for untiled. There's a "WMS Untiled" example you can view the source of. The singleTile option goes in the "options" object as opposed the "params" object. Params get passed to the WMS service, options are handled by OL. Steve >>> Subha Ramakrishnan 10/07/08 9:58 AM >>> Hi Steve, It would be great if you can give me an example or tell me where it is usually set in OL. Thanks for your help. Subha Steve Lime wrote: > There's nothing you have to do on the MapServer side. Looks like your OL config is wrong > though. I think 'singleTile' is set in the wrong configuration object, perhaps others are in > the wrong place too. > > Steve > > >>>> Subha Ramakrishnan 10/07/08 1:30 AM >>> >>>> > Hi, > > I am using mapserver 5.0.2 with openlayers. > I've a problem while creating a legend for a map from mapserver.When i > try to overlay the image from the mapserver on openlayers' base map, the > images are rendered in tiles, and every tile has a legend and is limited > by the size of the tile. So, i see lots of legends on the map and only > half of them are visible as it is restricted by the tile size. > > This is my request to mapserver from openlayers > > var mapfile = layer_tablename+'.map'; > twms1 = new OpenLayers.Layer.WMS( > layer_tablename,"http://localhost/cgi-bin/mapserv?", > { map: mapfile, > transparent: 'true', layers:layer_tablename, > format: 'image/png', > projection:"EPSG:4326",reproject:false, > units: "m", > singleTile: true > },{numZoomLevels : MaxZoomLevel}); > map.addLayer(twms1); > > I am using the option of singleTile. Is there any setting to be done in > the map file or mapserver for it render a single tile/single legend per > image? > > Thank you. > > Regards, > Subha > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From randre at gmail.com Tue Oct 7 10:06:20 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 7 Oct 2008 10:06:20 -0700 Subject: [mapserver-users] Creating legend In-Reply-To: <48EB384A0200008F0001C528@co5.dnr.state.mn.us> References: <48EB384A0200008F0001C528@co5.dnr.state.mn.us> Message-ID: <9c2015090810071006u26d404cepdd7b88d172314a7a@mail.gmail.com> Also, you might want to consider making a separate GetLegendGraphic WMS request and putting the legend in a separate DIV element in your web page. Just an idea. -- On Tue, Oct 7, 2008 at 8:22 AM, Steve Lime wrote: > Visit: > > http://www.openlayers.org/dev/examples/example-list.html > > and search for untiled. There's a "WMS Untiled" example you can view the > source of. The singleTile option goes in the "options" object as opposed the > "params" object. Params get passed to the WMS service, options are handled > by OL. > > Steve > > >>> Subha Ramakrishnan 10/07/08 9:58 AM >>> > Hi Steve, > It would be great if you can give me an example or tell me where it is > usually set in OL. > Thanks for your help. > > Subha > > Steve Lime wrote: > > There's nothing you have to do on the MapServer side. Looks like your OL > config is wrong > > though. I think 'singleTile' is set in the wrong configuration object, > perhaps others are in > > the wrong place too. > > > > Steve > > > > > >>>> Subha Ramakrishnan 10/07/08 1:30 AM >>> > >>>> > > Hi, > > > > I am using mapserver 5.0.2 with openlayers. > > I've a problem while creating a legend for a map from mapserver.When i > > try to overlay the image from the mapserver on openlayers' base map, the > > images are rendered in tiles, and every tile has a legend and is limited > > by the size of the tile. So, i see lots of legends on the map and only > > half of them are visible as it is restricted by the tile size. > > > > This is my request to mapserver from openlayers > > > > var mapfile = layer_tablename+'.map'; > > twms1 = new OpenLayers.Layer.WMS( > > layer_tablename,"http://localhost/cgi-bin/mapserv?", > > { map: mapfile, > > transparent: 'true', layers:layer_tablename, > > format: 'image/png', > > projection:"EPSG:4326",reproject:false, > > units: "m", > > singleTile: true > > },{numZoomLevels : MaxZoomLevel}); > > map.addLayer(twms1); > > > > I am using the option of singleTile. Is there any setting to be done in > > the map file or mapserver for it render a single tile/single legend per > > image? > > > > Thank you. > > > > Regards, > > Subha > > > > _______________________________________________ > > 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 David.Fawcett at state.mn.us Tue Oct 7 12:04:25 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 7 Oct 2008 14:04:25 -0500 Subject: [mapserver-users] Creating legend In-Reply-To: <9c2015090810071006u26d404cepdd7b88d172314a7a@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC0FD@s-sp22.pca.state.mn.us> Or, just a straight mode=legend request to the CGI if you are using MapServer. You can pass in your extent, that will manage the scale-dependent layers. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger Andr? Sent: Tuesday, October 07, 2008 12:06 PM To: Steve Lime Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Creating legend Also, you might want to consider making a separate GetLegendGraphic WMS request and putting the legend in a separate DIV element in your web page. Just an idea. -- On Tue, Oct 7, 2008 at 8:22 AM, Steve Lime wrote: Visit: http://www.openlayers.org/dev/examples/example-list.html and search for untiled. There's a "WMS Untiled" example you can view the source of. The singleTile option goes in the "options" object as opposed the "params" object. Params get passed to the WMS service, options are handled by OL. Steve >>> Subha Ramakrishnan 10/07/08 9:58 AM >>> Hi Steve, It would be great if you can give me an example or tell me where it is usually set in OL. Thanks for your help. Subha Steve Lime wrote: > There's nothing you have to do on the MapServer side. Looks like your OL config is wrong > though. I think 'singleTile' is set in the wrong configuration object, perhaps others are in > the wrong place too. > > Steve > > >>>> Subha Ramakrishnan 10/07/08 1:30 AM >>> >>>> > Hi, > > I am using mapserver 5.0.2 with openlayers. > I've a problem while creating a legend for a map from mapserver.When i > try to overlay the image from the mapserver on openlayers' base map, the > images are rendered in tiles, and every tile has a legend and is limited > by the size of the tile. So, i see lots of legends on the map and only > half of them are visible as it is restricted by the tile size. > > This is my request to mapserver from openlayers > > var mapfile = layer_tablename+'.map'; > twms1 = new OpenLayers.Layer.WMS( > layer_tablename,"http://localhost/cgi-bin/mapserv?", > { map: mapfile, > transparent: 'true', layers:layer_tablename, > format: 'image/png', > projection:"EPSG:4326",reproject:false, > units: "m", > singleTile: true > },{numZoomLevels : MaxZoomLevel}); > map.addLayer(twms1); > > I am using the option of singleTile. Is there any setting to be done in > the map file or mapserver for it render a single tile/single legend per > image? > > Thank you. > > Regards, > Subha > > _______________________________________________ > 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 ntiamoah578 at yahoo.com Tue Oct 7 12:08:45 2008 From: ntiamoah578 at yahoo.com (ntiamoah bernard) Date: Tue, 7 Oct 2008 12:08:45 -0700 (PDT) Subject: [mapserver-users] NEED HELP ON DBOX Message-ID: <742045.84224.qm@web32503.mail.mud.yahoo.com> Hey guys, I want to use the dbox demo using localhost. Can someone take me through step by step? I read the documentation and everything? but still can't figure out how to do it. Thanks guys ? Bernard Ball state university Muncie, Indiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Oct 7 13:35:55 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 07 Oct 2008 16:35:55 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: References: Message-ID: <48EBC82B.5010307@mapgears.com> Did you find a solution to your problem? If not then perhaps try looking at the debug output... i.e. set 'DEBUG 5' in your WMS client layer definition and set 'CONFIG MS_ERRORFILE "C:\ms4w\mapserver.log"' at the top-level in your mapfile, and then look at the mapserver.log output you get from both servers... the difference in output may tell you what is going wrong. More info on the use of DEBUG and MS_ERRORFILE at http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/ Daniel Steve.Toutant at inspq.qc.ca wrote: > > Here is an update... > shp2img is now working on both servers. shp2img could not find EPSG file. > setEnv PROJ_LIB was in httpd.conf of apache but was not in my OS > environment variable. After defining PROJ_LIB on the OS ishp2img is > working and create an image. > So I guess shp2img doesn't use apache..... > > So, the mapfile is ok. But I still not see the wms image when running > the mapfile from mapServer with > http://ipaddress/cgi-bin/mapserv.exe?map=\ms4w\inspq\map\TutorielStatic.map&mode=map > > > Maybe there is another environment variable I must define? > Someone knows where I can find a list of variable to set on the OS? > thanks > Steve > > > /Steve Toutant, M. Sc./ > Analyste en g?omatique > Secteur environnement > Direction des risques biologiques, environnementaux et occupationnels > Institut national de sant? publique du Qu?bec > 945, avenue Wolfe > Qu?bec, Qc G1V 5B3 > > T?l.: (418) 650-5115 #5281 > Fax.: (418) 654-3144_ > __steve.toutant at inspq.qc.ca_ _ > __http://www.inspq.qc.ca_ > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 jkim at sciences.sdsu.edu Tue Oct 7 13:38:40 2008 From: jkim at sciences.sdsu.edu (John Kim) Date: Tue, 7 Oct 2008 13:38:40 -0700 Subject: [mapserver-users] How to make Mapserver ADA 508 Compliant? Message-ID: <796DFCDC-50E2-402A-A77B-58D5D62165BD@sciences.sdsu.edu> Hi, How can I make my Mapserver instance comply with the Americans with Disabilities Act (ADA) Section 508? ADA 508 says that client-side image maps should be used instead of server-side image maps. Is there a way to make Mapserver do client-side image maps? Thanks, -John From Bob.Basques at ci.stpaul.mn.us Tue Oct 7 16:01:50 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 07 Oct 2008 18:01:50 -0500 Subject: [mapserver-users] How to make Mapserver ADA 508 Compliant? Message-ID: <48EBA411020000A80000DDE3@jeckle> John, Yes, MapServer can make Client side imagemaps with templates. I've used this capability for the same reasons you have cited, 508 compliance. These links should get you started: http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view http://mapserver.gis.umn.edu/docs/howto/imagemaps bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** >>> John Kim 10/07/08 3:42 PM >>> Hi, How can I make my Mapserver instance comply with the Americans with Disabilities Act (ADA) Section 508? ADA 508 says that client-side image maps should be used instead of server-side image maps. Is there a way to make Mapserver do client-side image maps? Thanks, -John _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From subha at gslab.com Tue Oct 7 23:38:57 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Wed, 08 Oct 2008 12:08:57 +0530 Subject: [mapserver-users] Creating legend In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FC0FD@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0FD@s-sp22.pca.state.mn.us> Message-ID: <48EC5581.6090209@gslab.com> Fawcett, David wrote: > Or, just a straight mode=legend request to the CGI if you are using > MapServer. You can pass in your extent, that will manage the > scale-dependent layers. > Will the map file remain the same for this? I did try using mode=legend in my request and added that to a separate DIV.But the request doesn't seem to be generating any image. This is how my map file looks. I've not pasted the entire contents as its too big. legend status on imagecolor 255 0 0 position ul end layer CONNECTIONTYPE postgis name india_states CONNECTION "user=postgres dbname=ibp host=localhost" group world type polygon dump true METADATA "wfs_title" "Factbook Metadata" "gml_include_items" "all" "wms_feature_info_mime_type" "text/html" END template "template.html" projection "init=epsg:4326" end transparency alpha status on data "topology from india_states using unique id using SRID = -1" CLASSITEM "state" CLASS NAME "JAMMU & KASHMIR" EXPRESSION "JAMMU & KASHMIR" STYLE COLOR 191 191 155 OUTLINECOLOR 000 000 000 #antialias true end end CLASS NAME "HIMACHAL" EXPRESSION "HIMACHAL" STYLE COLOR 245 226 188 OUTLINECOLOR 000 000 000 #antialias true end end And this request is like this as per the example i found here :http://openlayers.org/pipermail/users/2008-September/007495.html var legenddiv = document.createElement('div'); legenddiv.setAttribute('id','legend'); legenddiv.innerHTML = ''; document.getElementById('map').appendChild(legenddiv); Thanks & regards, Subha > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Roger Andr? > *Sent:* Tuesday, October 07, 2008 12:06 PM > *To:* Steve Lime > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Creating legend > > Also, you might want to consider making a separate > GetLegendGraphic WMS request and putting the legend in a separate > DIV element in your web page. > > Just an idea. > -- > > On Tue, Oct 7, 2008 at 8:22 AM, Steve Lime > > > wrote: > > Visit: > > http://www.openlayers.org/dev/examples/example-list.html > > and search for untiled. There's a "WMS Untiled" example you > can view the source of. The singleTile option goes in the > "options" object as opposed the "params" object. Params get > passed to the WMS service, options are handled by OL. > > Steve > > >>> Subha Ramakrishnan > 10/07/08 9:58 AM >>> > Hi Steve, > It would be great if you can give me an example or tell me > where it is > usually set in OL. > Thanks for your help. > > Subha > > Steve Lime wrote: > > There's nothing you have to do on the MapServer side. Looks > like your OL config is wrong > > though. I think 'singleTile' is set in the wrong > configuration object, perhaps others are in > > the wrong place too. > > > > Steve > > > > > >>>> Subha Ramakrishnan > 10/07/08 1:30 AM >>> > >>>> > > Hi, > > > > I am using mapserver 5.0.2 with openlayers. > > I've a problem while creating a legend for a map from > mapserver.When i > > try to overlay the image from the mapserver on openlayers' > base map, the > > images are rendered in tiles, and every tile has a legend > and is limited > > by the size of the tile. So, i see lots of legends on the > map and only > > half of them are visible as it is restricted by the tile size. > > > > This is my request to mapserver from openlayers > > > > var mapfile = layer_tablename+'.map'; > > twms1 = new OpenLayers.Layer.WMS( > > layer_tablename,"http://localhost/cgi-bin/mapserv?", > > { map: mapfile, > > transparent: 'true', layers:layer_tablename, > > format: 'image/png', > > projection:"EPSG:4326",reproject:false, > > units: "m", > > singleTile: true > > },{numZoomLevels : MaxZoomLevel}); > > map.addLayer(twms1); > > > > I am using the option of singleTile. Is there any setting to > be done in > > the map file or mapserver for it render a single tile/single > legend per > > image? > > > > Thank you. > > > > Regards, > > Subha > > > > _______________________________________________ > > 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 message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From frequens at gmail.com Wed Oct 8 00:55:24 2008 From: frequens at gmail.com (frequens) Date: Wed, 8 Oct 2008 09:55:24 +0200 Subject: [mapserver-users] GROUP keyword in phpmapscript Message-ID: <2482247e0810080055j43962358s73504b077d9c678a@mail.gmail.com> I am struggling to turn on/off a group of vector layers defined by the statement :GROUP "xxxxx" within definitions of all respective layers in the mapfile but using phpmapscript. Somehow I do not get it. The ordinary "getLayerByName" and then set->status.... does not work. Could somebody please post the two lines of code needed to achieve this. Many thanks in advance, frequens From pgiannini at bytewise.it Wed Oct 8 01:38:12 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 8 Oct 2008 10:38:12 +0200 (CEST) Subject: [mapserver-users] basic question on img.x, img.y In-Reply-To: <4526.193.218.36.79.1223378709.squirrel@193.218.36.79> References: <48E9D8A20200008F0001C3F9@co5.dnr.state.mn.us> <4526.193.218.36.79.1223378709.squirrel@193.218.36.79> Message-ID: <50052.192.168.1.55.1223455092.squirrel@localhost.localdomain> Ciao Nikos, you can access the last click point on your map image with [img.x] and [img.y], where "img" is the name of the input on the form on your html template: I hope it's useful.. ciao .........................pg On Mar, Ottobre 7, 2008 13:25, nikos at maich.gr wrote: > Hello, > > I'm using cgi ms to put up some maps. > When I select different layers, I would like to have the new layer > selection displayed in the current location/zoom that the existing image > is in.. > > I currently refresh the map to its extents, which is kind of confusing.. > >>From what I gather, this info is in img.x and img.y... > > Are these variables accessible in a way like [map], or [mapext] are? > > If not, how would one go about doing this... > > tia, > > nikos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From Steve.Toutant at inspq.qc.ca Wed Oct 8 06:20:35 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 8 Oct 2008 09:20:35 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: <48EBC82B.5010307@mapgears.com> Message-ID: Thanks Daniel, Here is the definition of the layer in my mapFile LAYER NAME pe TYPE RASTER OFFSITE 0 0 0 STATUS default CONNECTIONTYPE WMS CONNECTION "http://atlas.gc.ca/cgi-bin/atlaswms_fr?" DEBUG 5 METADATA "wms_srs" "EPSG:42304" "wms_name" "pe_15m" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END # layer pe Here is the log [Wed Oct 08 09:00:10 2008].480000 HTTP: Starting to prepare HTTP requests. [Wed Oct 08 09:00:10 2008].480000 HTTP request: id=0, http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Wed Oct 08 09:00:10 2008].496000 HTTP: Before download loop [Wed Oct 08 09:00:10 2008].667000 HTTP: After download loop [Wed Oct 08 09:00:10 2008].667000 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) [Wed Oct 08 09:00:10 2008].667000 HTTP: request failed with curl error code 6 () for http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage[Wed Oct 08 09:00:10 2008].667000 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 () for http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Wed Oct 08 09:00:10 2008].667000 Layer 0: 0.000 + 0.000 + 0.000 = 0.000s [Wed Oct 08 09:00:10 2008].667000 msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for layer 'pe' (Status -6: ). [Wed Oct 08 09:00:10 2008].667000 msDrawMap(): Layer 0 (pe), 0.000s I get a blank image. But if I use the connection string that is in the log file and send it directly from internet explorer I get the image. http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage I also tried with this layer definiton, and I got the same error LAYER NAME "prov_bound" TYPE RASTER STATUS ON CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END thanks for your help, Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at dipole-consulting.com Wed Oct 8 07:01:33 2008 From: lists at dipole-consulting.com (Didrik Pinte) Date: Wed, 08 Oct 2008 16:01:33 +0200 Subject: [mapserver-users] mapserver compiled with gd problem Message-ID: <1223474493.4392.124.camel@localhost> Hi, I have a CentOS server running a MapServer 5.2.0. The gd version on the server is a 2.0.28 and I need ANGLE FOLLOW on one of my layers. Thus, I have tried to recompile MapServer with the latest GD (2.0.35). The result is the following : [Wed Oct 08 15:56:53 2008] [error] [client 213.213.238.142] PHP Warning: [MapServer Error]: msGetBitmapFont(): Invalid bitmap font. Must be one of tiny, small, medium, large or giant.\n in /v.../includes/carto_functions.php on line 168, referer: http://mysite/prod/navigationdetails.php?parent=525&siteflag=1 [Wed Oct 08 15:56:53 2008] [error] [client 213.213.238.142] PHP Fatal error: Call to a member function saveWebImage() on a non-object in /v.../includes/carto_functions.php on line 169, referer: http://mysite/prod/navigationdetails.php?parent=525&siteflag=1 GD has support for png, jpeg, freetype and fontconfig ... What is the missing link ? Thanks for your help. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From guillaume.sueur at neogeo-online.net Wed Oct 8 07:30:27 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 08 Oct 2008 16:30:27 +0200 Subject: [mapserver-users] mapserver compiled with gd problem In-Reply-To: <1223474493.4392.124.camel@localhost> References: <1223474493.4392.124.camel@localhost> Message-ID: <48ECC403.2080609@neogeo-online.net> Hi Didrik, You apparently use a bitmap font with an incorrect SIZE attribute in your label, maybe because you didn't explicitely set TYPE TRUETYPE in the mapfile. So check that your label is defined with TYPE TRUETYPE SIZE integer Regards, Guillaume Didrik Pinte a ?crit : > Hi, > > I have a CentOS server running a MapServer 5.2.0. The gd version on the > server is a 2.0.28 and I need ANGLE FOLLOW on one of my layers. Thus, I > have tried to recompile MapServer with the latest GD (2.0.35). The > result is the following : > > [Wed Oct 08 15:56:53 2008] [error] [client 213.213.238.142] PHP Warning: > [MapServer Error]: msGetBitmapFont(): Invalid bitmap font. Must be one > of tiny, small, medium, large or giant.\n > in /v.../includes/carto_functions.php on line 168, referer: > http://mysite/prod/navigationdetails.php?parent=525&siteflag=1 > [Wed Oct 08 15:56:53 2008] [error] [client 213.213.238.142] PHP Fatal > error: Call to a member function saveWebImage() on a non-object > in /v.../includes/carto_functions.php on line 169, referer: > http://mysite/prod/navigationdetails.php?parent=525&siteflag=1 > > GD has support for png, jpeg, freetype and fontconfig ... What is the > missing link ? > > Thanks for your help. > > > Didrik > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 Oct 8 07:31:44 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 8 Oct 2008 17:31:44 +0300 Subject: [mapserver-users] WMS don't load References: Message-ID: Hi, Are you behind a proxy server? If you are you must add proxy settings to Apache. You can check the situation from your browser network settings. If it is using direct connection to internet then you must have some other issue. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Steve.Toutant at inspq.qc.ca L?hetetty: ke 8.10.2008 16:20 Vastaanottaja: Daniel Morissette Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WMS don't load Thanks Daniel, Here is the definition of the layer in my mapFile LAYER NAME pe TYPE RASTER OFFSITE 0 0 0 STATUS default CONNECTIONTYPE WMS CONNECTION "http://atlas.gc.ca/cgi-bin/atlaswms_fr?" DEBUG 5 METADATA "wms_srs" "EPSG:42304" "wms_name" "pe_15m" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END # layer pe Here is the log [Wed Oct 08 09:00:10 2008].480000 HTTP: Starting to prepare HTTP requests. [Wed Oct 08 09:00:10 2008].480000 HTTP request: id=0, http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Wed Oct 08 09:00:10 2008].496000 HTTP: Before download loop [Wed Oct 08 09:00:10 2008].667000 HTTP: After download loop [Wed Oct 08 09:00:10 2008].667000 msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds) [Wed Oct 08 09:00:10 2008].667000 HTTP: request failed with curl error code 6 () for http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage[Wed Oct 08 09:00:10 2008].667000 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 () for http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Wed Oct 08 09:00:10 2008].667000 Layer 0: 0.000 + 0.000 + 0.000 = 0.000s [Wed Oct 08 09:00:10 2008].667000 msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for layer 'pe' (Status -6: ). [Wed Oct 08 09:00:10 2008].667000 msDrawMap(): Layer 0 (pe), 0.000s I get a blank image. But if I use the connection string that is in the log file and send it directly from internet explorer I get the image. http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage I also tried with this layer definiton, and I got the same error LAYER NAME "prov_bound" TYPE RASTER STATUS ON CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END thanks for your help, Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca From lists at dipole-consulting.com Wed Oct 8 07:39:06 2008 From: lists at dipole-consulting.com (Didrik Pinte) Date: Wed, 08 Oct 2008 16:39:06 +0200 Subject: [mapserver-users] mapserver compiled with gd problem In-Reply-To: <48ECC403.2080609@neogeo-online.net> References: <1223474493.4392.124.camel@localhost> <48ECC403.2080609@neogeo-online.net> Message-ID: <1223476746.4392.146.camel@localhost> On Wed, 2008-10-08 at 16:30 +0200, Guillaume Sueur wrote: > Hi Didrik, > > You apparently use a bitmap font with an incorrect SIZE attribute in > your label, maybe because you didn't explicitely set TYPE TRUETYPE in > the mapfile. > So check that your label is defined with > TYPE TRUETYPE > SIZE integer > Regards, > > Guillaume Hi Guillaume, I've checked all the labels in the map file. They all have a a TYPE TRUETYPE (some where lowercase) and a SIZE. Could it be related to the fact that there are SYMBOL definition of type PIXMAP with gif files ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From davide at geosar.ch Wed Oct 8 07:45:46 2008 From: davide at geosar.ch (Davide Ticozzi) Date: Wed, 08 Oct 2008 16:45:46 +0200 Subject: [mapserver-users] Get bindings values with php mapscript Message-ID: <48ECC79A.10001@geosar.ch> Hello, I'm trying to extract binding values from a previously configured Style or Label object using PHP mapscript. I know that there's the possibility to set binding ($oStyle->setBinding()) and remove them ($oStyle->removeBinding()), but I need to get these informations... nothing about? Thanks, Dave From Steve.Toutant at inspq.qc.ca Wed Oct 8 07:49:40 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 8 Oct 2008 10:49:40 -0400 Subject: [mapserver-users] WMS don't load In-Reply-To: <48EBC82B.5010307@mapgears.com> Message-ID: Hello, I replace the old apache and mapserver (the one who work) by the current version of ms4w. Both servers now have apache 2.2.9 and mapserver 5.2.0. And both servers are not behind a proxy. The behavior with a wms is still the same though. I get a blank image on one of the server. I search for "request failed with curl error code 6" and msHTTPExecuteRequests() error I see that some people did have the same trouble but I can't find a solution Still searching... thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at dipole-consulting.com Wed Oct 8 07:54:17 2008 From: lists at dipole-consulting.com (Didrik Pinte) Date: Wed, 08 Oct 2008 16:54:17 +0200 Subject: [mapserver-users] mapserver compiled with gd problem In-Reply-To: <1223476746.4392.146.camel@localhost> References: <1223474493.4392.124.camel@localhost> <48ECC403.2080609@neogeo-online.net> <1223476746.4392.146.camel@localhost> Message-ID: <1223477657.4392.149.camel@localhost> Guillaume, I've checked everything. I've changed a SIZE 7 on SIZE8 and updated all the ENCODING to "utf-8" in place of "utf8" and it seems to run fine now. I don't know which parameter was the wrong one but it works. Thank you for your quick answer. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From davide at geosar.ch Wed Oct 8 07:29:15 2008 From: davide at geosar.ch (Davide Ticozzi) Date: Wed, 08 Oct 2008 16:29:15 +0200 Subject: [mapserver-users] Get bindings values with php mapscript Message-ID: <48ECC3BB.8000704@geosar.ch> Hello, I'm trying to extract binding values from a previously configured Style or Label object using PHP mapscript. I know that there's the possibility to set binding ($oStyle->setBinding()) and remove them ($oStyle->removeBinding()), but I need to get these informations... nothing about? Thanks, Dave From yassefa at dmsolutions.ca Wed Oct 8 08:11:18 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 08 Oct 2008 11:11:18 -0400 Subject: [mapserver-users] Get bindings values with php mapscript In-Reply-To: <48ECC79A.10001@geosar.ch> References: <48ECC79A.10001@geosar.ch> Message-ID: <48ECCD96.6060107@dmsolutions.ca> Hi there, There is no function to do a get binding currently. I think it is a useful one. I have added a enhancement bug on it http://trac.osgeo.org/mapserver/ticket/2789 and would commit the changes in the main trunk. Please cc your self in the bug so you can comment/test. Best Regards Davide Ticozzi wrote: > Hello, > I'm trying to extract binding values from a previously configured Style > or Label object using PHP mapscript. > I know that there's the possibility to set binding > ($oStyle->setBinding()) and remove them ($oStyle->removeBinding()), but > I need to get these informations... nothing about? > > Thanks, > Dave > _______________________________________________ > 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 Jim.Haug at state.sd.us Wed Oct 8 08:37:53 2008 From: Jim.Haug at state.sd.us (Jim.Haug at state.sd.us) Date: Wed, 8 Oct 2008 10:37:53 -0500 Subject: [mapserver-users] NEED HELP ON DBOX In-Reply-To: <742045.84224.qm@web32503.mail.mud.yahoo.com> Message-ID: <584F73DD6F7B084B9432599D1CE43555054C8CBB@ESPR1EXC02.state.sd.local> Could you provide the relevant portions of your example.html and itasca.map files showing your file paths? What version of mapserver do you have running? -Jim Haug -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ntiamoah bernard Sent: Tuesday, October 07, 2008 1:09 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] NEED HELP ON DBOX Hey guys, I want to use the dbox demo using localhost. Can someone take me through step by step? I read the documentation and everything but still can't figure out how to do it. Thanks guys Bernard Ball state university Muncie, Indiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtrp36 at hotmail.com Wed Oct 8 09:48:19 2008 From: mtrp36 at hotmail.com (Kurt) Date: Wed, 8 Oct 2008 16:48:19 +0000 Subject: [mapserver-users] routing problem Message-ID: Hi, I understand that this may not be the right place to ask these questions. But I think there might be experts here could give me some suggestions. Thanks in advance. 1. Is the Dijkstra's algorithm generally used to find the shortest path between point A and B like google maps and mapquest do. If this is not the case, what algorithms can perform better? 2. Are there references that detail how to apply Dijkstra's or other algorithms on the digital data (such as Tiger file in PostGIS). What attributes should I look into? 3. Does multi-mode routing problem use the same algorithm? I am wondering if there is any step-by-step guides or references that I can learn from. Thanks again Kurt _________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Oct 8 11:03:44 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 08 Oct 2008 13:03:44 -0500 Subject: [mapserver-users] routing problem In-Reply-To: References: Message-ID: <48ECF600.7030908@swoodbridge.com> Kurt wrote: > Hi, > I understand that this may not be the right place to ask these > questions. But I think there might be experts here could give me some > suggestions. Thanks in advance. > > 1. Is the Dijkstra's algorithm generally used to find the shortest path > between point A and B like google maps and mapquest do. If this is not > the case, what algorithms can perform better? There are a bunch of algorithms that have various trade offs. You might want to start by looking at pgRouting which does routing from postgres/postgis tables. and supports various methods. > 2. Are there references that detail how to apply Dijkstra's or other > algorithms on the digital data (such as Tiger file in PostGIS). What > attributes should I look into? Tiger is not suitable for routing. You can build a network and route through it, but do not expect the routes to be drivable. There is no information about one way streets, there is no information about zlevels at intersections so it might tell you to turn right from an overpass onto the street 20ft below because all intersections look flat in tiger. > 3. Does multi-mode routing problem use the same algorithm? I am > wondering if there is any step-by-step guides or references that I can > learn from. Start with pgRouting and that might be a better list to ask these questions on. -Stephen Woodbridge http://imaptools.com/ > Thanks again > > > Kurt > Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn > Now > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Wed Oct 8 10:57:57 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 8 Oct 2008 10:57:57 -0700 Subject: [mapserver-users] Creating legend In-Reply-To: <48EC5581.6090209@gslab.com> References: <6246727221874A4FB8D3F9BBC37D9BD5021FC0FD@s-sp22.pca.state.mn.us> <48EC5581.6090209@gslab.com> Message-ID: <9c2015090810081057o219ee152ye695f4cd7e36f213@mail.gmail.com> Hi Subha, I think for the "mode=legend" to work, you need to change the LAYER status to DEFAULT. However, you can test the legend function via WMS request without changing the status by using a request similar to this: (linebreaks added for clarity) http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/states/states.map &service=wms &version=%221.1.1%22 &request=GetLegendGraphic &layer=countries &styles= &width=60 &height=40 &format=png Roger -- On Tue, Oct 7, 2008 at 11:38 PM, Subha Ramakrishnan wrote: > Fawcett, David wrote: > >> Or, just a straight mode=legend request to the CGI if you are using >> MapServer. You can pass in your extent, that will manage the >> scale-dependent layers. >> >> Will the map file remain the same for this? I did try using mode=legend > in my request and added that to a separate DIV.But the request doesn't seem > to be generating any image. > This is how my map file looks. I've not pasted the entire contents as its > too big. > > legend > status on > imagecolor 255 0 0 > position ul > end > layer > CONNECTIONTYPE postgis > name india_states > CONNECTION "user=postgres dbname=ibp host=localhost" > group world > type polygon > dump true > METADATA > "wfs_title" "Factbook Metadata" > "gml_include_items" "all" > "wms_feature_info_mime_type" "text/html" > END > template "template.html" > projection > "init=epsg:4326" > end > transparency alpha > status on > data "topology from india_states using unique id using SRID = -1" > CLASSITEM "state" > CLASS > NAME "JAMMU & KASHMIR" > EXPRESSION "JAMMU & KASHMIR" > STYLE > COLOR 191 191 155 > OUTLINECOLOR 000 000 000 > #antialias true > end > end > CLASS > NAME "HIMACHAL" > EXPRESSION "HIMACHAL" > STYLE > COLOR 245 226 188 > OUTLINECOLOR 000 000 000 > #antialias true > end > end > And this request is like this as per the example i found here : > http://openlayers.org/pipermail/users/2008-September/007495.html > var legenddiv = document.createElement('div'); > legenddiv.setAttribute('id','legend'); > legenddiv.innerHTML = ''; > document.getElementById('map').appendChild(legenddiv); > > Thanks & regards, > Subha > > >> David. >> >> -----Original Message----- >> *From:* mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Roger Andr? >> *Sent:* Tuesday, October 07, 2008 12:06 PM >> *To:* Steve Lime >> *Cc:* mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] Creating legend >> >> Also, you might want to consider making a separate >> GetLegendGraphic WMS request and putting the legend in a separate >> DIV element in your web page. >> Just an idea. >> -- >> >> On Tue, Oct 7, 2008 at 8:22 AM, Steve Lime >> > >> wrote: >> >> Visit: >> >> http://www.openlayers.org/dev/examples/example-list.html >> >> and search for untiled. There's a "WMS Untiled" example you >> can view the source of. The singleTile option goes in the >> "options" object as opposed the "params" object. Params get >> passed to the WMS service, options are handled by OL. >> >> Steve >> >> >>> Subha Ramakrishnan > > 10/07/08 9:58 AM >>> >> Hi Steve, >> It would be great if you can give me an example or tell me >> where it is >> usually set in OL. >> Thanks for your help. >> >> Subha >> >> Steve Lime wrote: >> > There's nothing you have to do on the MapServer side. Looks >> like your OL config is wrong >> > though. I think 'singleTile' is set in the wrong >> configuration object, perhaps others are in >> > the wrong place too. >> > >> > Steve >> > >> > >> >>>> Subha Ramakrishnan > > 10/07/08 1:30 AM >>> >> >>>> >> > Hi, >> > >> > I am using mapserver 5.0.2 with openlayers. >> > I've a problem while creating a legend for a map from >> mapserver.When i >> > try to overlay the image from the mapserver on openlayers' >> base map, the >> > images are rendered in tiles, and every tile has a legend >> and is limited >> > by the size of the tile. So, i see lots of legends on the >> map and only >> > half of them are visible as it is restricted by the tile size. >> > >> > This is my request to mapserver from openlayers >> > >> > var mapfile = layer_tablename+'.map'; >> > twms1 = new OpenLayers.Layer.WMS( >> > layer_tablename,"http://localhost/cgi-bin/mapserv?", >> > { map: mapfile, >> > transparent: 'true', layers:layer_tablename, >> > format: 'image/png', >> > projection:"EPSG:4326",reproject:false, >> > units: "m", >> > singleTile: true >> > },{numZoomLevels : MaxZoomLevel}); >> > map.addLayer(twms1); >> > >> > I am using the option of singleTile. Is there any setting to >> be done in >> > the map file or mapserver for it render a single tile/single >> legend per >> > image? >> > >> > Thank you. >> > >> > Regards, >> > Subha >> > >> > _______________________________________________ >> > 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 message has been scanned for viruses and >> dangerous content by *MailScanner* , and is >> believed to be clean. >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 andresch at iway.na Wed Oct 8 10:41:33 2008 From: andresch at iway.na (Andre Schoonbee) Date: Wed, 8 Oct 2008 19:41:33 +0200 Subject: [mapserver-users] Integrate mapserver with PHP MIS In-Reply-To: <48ECF600.7030908@swoodbridge.com> Message-ID: <20081008174129.4F2885B9F@mx1.iway.na> Hi List I want to get expert opinion on if mapserver would be the best platform for the following: I have a Management Information system (PHP, mySQL) and want to link it to a map. When I click on a POI on the map I want to see the projects at that POI, the staff or budget for that place. OR if I want to see all POI that overspend their budget, I want to display the POI as RED Dots on the map. Comments would be appreciated! And if this is a great platform, any developers out there willing to assist? Andre From David.Fawcett at state.mn.us Wed Oct 8 11:09:38 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 8 Oct 2008 13:09:38 -0500 Subject: [mapserver-users] Creating legend In-Reply-To: <9c2015090810081057o219ee152ye695f4cd7e36f213@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC117@s-sp22.pca.state.mn.us> If the layer status is not set to default, you can add it to the URL call e.g. &layer=countries If you want the legend to refresh every time a user pans or zooms, you will want to have code that watches for the moveend event and updates the legend div. Turns out, the example post that you cited may not be the best way to do it, but I am quite familiar with it... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger Andr? Sent: Wednesday, October 08, 2008 12:58 PM To: Subha Ramakrishnan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Creating legend Hi Subha, I think for the "mode=legend" to work, you need to change the LAYER status to DEFAULT. However, you can test the legend function via WMS request without changing the status by using a request similar to this: (linebreaks added for clarity) http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/states/states.map &service=wms &version=%221.1.1%22 &request=GetLegendGraphic &layer=countries &styles= &width=60 &height=40 &format=png Roger -- On Tue, Oct 7, 2008 at 11:38 PM, Subha Ramakrishnan wrote: Fawcett, David wrote: Or, just a straight mode=legend request to the CGI if you are using MapServer. You can pass in your extent, that will manage the scale-dependent layers. Will the map file remain the same for this? I did try using mode=legend in my request and added that to a separate DIV.But the request doesn't seem to be generating any image. This is how my map file looks. I've not pasted the entire contents as its too big. legend status on imagecolor 255 0 0 position ul end layer CONNECTIONTYPE postgis name india_states CONNECTION "user=postgres dbname=ibp host=localhost" group world type polygon dump true METADATA "wfs_title" "Factbook Metadata" "gml_include_items" "all" "wms_feature_info_mime_type" "text/html" END template "template.html" projection "init=epsg:4326" end transparency alpha status on data "topology from india_states using unique id using SRID = -1" CLASSITEM "state" CLASS NAME "JAMMU & KASHMIR" EXPRESSION "JAMMU & KASHMIR" STYLE COLOR 191 191 155 OUTLINECOLOR 000 000 000 #antialias true end end CLASS NAME "HIMACHAL" EXPRESSION "HIMACHAL" STYLE COLOR 245 226 188 OUTLINECOLOR 000 000 000 #antialias true end end And this request is like this as per the example i found here :http://openlayers.org/pipermail/users/2008-September/007495.html var legenddiv = document.createElement('div'); legenddiv.setAttribute('id','legend'); legenddiv.innerHTML = ''; document.getElementById('map').appendChild(legenddiv); Thanks & regards, Subha David. -----Original Message----- *From:* mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Roger Andr? *Sent:* Tuesday, October 07, 2008 12:06 PM *To:* Steve Lime *Cc:* mapserver-users at lists.osgeo.org *Subject:* Re: [mapserver-users] Creating legend Also, you might want to consider making a separate GetLegendGraphic WMS request and putting the legend in a separate DIV element in your web page. Just an idea. -- On Tue, Oct 7, 2008 at 8:22 AM, Steve Lime > wrote: Visit: http://www.openlayers.org/dev/examples/example-list.html and search for untiled. There's a "WMS Untiled" example you can view the source of. The singleTile option goes in the "options" object as opposed the "params" object. Params get passed to the WMS service, options are handled by OL. Steve >>> Subha Ramakrishnan > 10/07/08 9:58 AM >>> Hi Steve, It would be great if you can give me an example or tell me where it is usually set in OL. Thanks for your help. Subha Steve Lime wrote: > There's nothing you have to do on the MapServer side. Looks like your OL config is wrong > though. I think 'singleTile' is set in the wrong configuration object, perhaps others are in > the wrong place too. > > Steve > > >>>> Subha Ramakrishnan > 10/07/08 1:30 AM >>> >>>> > Hi, > > I am using mapserver 5.0.2 with openlayers. > I've a problem while creating a legend for a map from mapserver.When i > try to overlay the image from the mapserver on openlayers' base map, the > images are rendered in tiles, and every tile has a legend and is limited > by the size of the tile. So, i see lots of legends on the map and only > half of them are visible as it is restricted by the tile size. > > This is my request to mapserver from openlayers > > var mapfile = layer_tablename+'.map'; > twms1 = new OpenLayers.Layer.WMS( > layer_tablename,"http://localhost/cgi-bin/mapserv?", > { map: mapfile, > transparent: 'true', layers:layer_tablename, > format: 'image/png', > projection:"EPSG:4326",reproject:false, > units: "m", > singleTile: true > },{numZoomLevels : MaxZoomLevel}); > map.addLayer(twms1); > > I am using the option of singleTile. Is there any setting to be done in > the map file or mapserver for it render a single tile/single legend per > image? > > Thank you. > > Regards, > Subha > > _______________________________________________ > 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 message has been scanned for viruses and dangerous content by *MailScanner* , and is believed to be clean. ------------------------------------------------------------------------ _______________________________________________ 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 danlittle at yahoo.com Wed Oct 8 11:47:02 2008 From: danlittle at yahoo.com (Dan Little) Date: Wed, 8 Oct 2008 11:47:02 -0700 (PDT) Subject: [mapserver-users] Integrate mapserver with PHP MIS Message-ID: <113180.42869.qm@web51405.mail.re2.yahoo.com> It is certainly possible to do this with mapserver. More accurately, it is very easy to setup these types of queries with "mapscript" the scripting library provided with mapserver. There is also some constraints on your data. You'll need to have a table (or column) describing the geographic locations of all of your projects. Or have a geocoder that can translate the project into geographic coordinates "on the fly." ----- Original Message ---- > From: Andre Schoonbee > To: mapserver-users at lists.osgeo.org > Sent: Wednesday, October 8, 2008 12:41:33 PM > Subject: [mapserver-users] Integrate mapserver with PHP MIS > > Hi List > > I want to get expert opinion on if mapserver would be the best platform for > the following: > > I have a Management Information system (PHP, mySQL) and want to link it to a > map. When I click on a POI on the map I want to see the projects at that > POI, the staff or budget for that place. OR if I want to see all POI that > overspend their budget, I want to display the POI as RED Dots on the map. > > Comments would be appreciated! > > And if this is a great platform, any developers out there willing to assist? > > Andre > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From andresch at iway.na Wed Oct 8 12:26:44 2008 From: andresch at iway.na (Andre Schoonbee) Date: Wed, 8 Oct 2008 21:26:44 +0200 Subject: [mapserver-users] Integrate mapserver with PHP MIS In-Reply-To: <113180.42869.qm@web51405.mail.re2.yahoo.com> Message-ID: <20081008192640.57A445B9F@mx1.iway.na> See, the map data is currently in postgis, and in the MySQL database, I have a FeatureID field that relates to the relevant PostGIS data element. I know this is doable, but my personal PHP development skills is extremely limited. I can setup mapserver and have got the basic PHP system going, but going beyond - out of my current scope. -----Original Message----- From: Dan Little [mailto:danlittle at yahoo.com] Sent: Wednesday, October 08, 2008 8:47 PM To: Andre Schoonbee Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Integrate mapserver with PHP MIS It is certainly possible to do this with mapserver. More accurately, it is very easy to setup these types of queries with "mapscript" the scripting library provided with mapserver. There is also some constraints on your data. You'll need to have a table (or column) describing the geographic locations of all of your projects. Or have a geocoder that can translate the project into geographic coordinates "on the fly." ----- Original Message ---- > From: Andre Schoonbee > To: mapserver-users at lists.osgeo.org > Sent: Wednesday, October 8, 2008 12:41:33 PM > Subject: [mapserver-users] Integrate mapserver with PHP MIS > > Hi List > > I want to get expert opinion on if mapserver would be the best platform for > the following: > > I have a Management Information system (PHP, mySQL) and want to link it to a > map. When I click on a POI on the map I want to see the projects at that > POI, the staff or budget for that place. OR if I want to see all POI that > overspend their budget, I want to display the POI as RED Dots on the map. > > Comments would be appreciated! > > And if this is a great platform, any developers out there willing to assist? > > Andre > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________ Information from ESET Smart Security, version of virus signature database 3504 (20081008) __________ The message was checked by ESET Smart Security. http://www.eset.com From zachc1980 at gmail.com Wed Oct 8 13:01:54 2008 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 8 Oct 2008 16:01:54 -0400 Subject: [mapserver-users] nfs drive In-Reply-To: <66b0a28d0810021246v6291ee47jf41f5df3ea355123@mail.gmail.com> References: <66b0a28d0810021246v6291ee47jf41f5df3ea355123@mail.gmail.com> Message-ID: can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes how to reference it http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ?? http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? any one notice any lag with nfs? tips?? On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova wrote: > Why in your path descriptions do you mix slashes and backslashes? > > > On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote: >> >> unable to map data (cities.shp) on nfs drive (g:). data pulls into >> qgis fine. know it can be done- >> >> http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, >> >> http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html >> >> MAP >> ... >> # SHAPEPATH "g:\" >> SHAPEPATH \\123.4.5.6\vol\data\ >> ... >> LAYER >> ... >> # DATA "poly/cities" >> DATA "poly/cities" >> ... >> END >> ... >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From danlittle at yahoo.com Wed Oct 8 13:06:16 2008 From: danlittle at yahoo.com (Dan Little) Date: Wed, 8 Oct 2008 13:06:16 -0700 (PDT) Subject: [mapserver-users] nfs drive Message-ID: <175634.94625.qm@web51409.mail.re2.yahoo.com> You can use NFS. If you're using Windows and have mapped the drive then the path is just like it is in Explorer. In Linux/UNIX, then the path is where you mounted it. ----- Original Message ---- > From: zach cruise > To: mapserver-users at lists.osgeo.org > Sent: Wednesday, October 8, 2008 3:01:54 PM > Subject: Re: [mapserver-users] nfs drive > > can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes > how to reference it > > http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ?? > http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? > > any one notice any lag with nfs? tips?? > > On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova > wrote: > > Why in your path descriptions do you mix slashes and backslashes? > > > > > > On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote: > >> > >> unable to map data (cities.shp) on nfs drive (g:). data pulls into > >> qgis fine. know it can be done- > >> > >> > http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, > >> > >> > http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html > >> > >> MAP > >> ... > >> # SHAPEPATH "g:\" > >> SHAPEPATH \\123.4.5.6\vol\data\ > >> ... > >> LAYER > >> ... > >> # DATA "poly/cities" > >> DATA "poly/cities" > >> ... > >> END > >> ... > >> END > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From zachc1980 at gmail.com Wed Oct 8 13:17:41 2008 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 8 Oct 2008 16:17:41 -0400 Subject: [mapserver-users] nfs drive In-Reply-To: <175634.94625.qm@web51409.mail.re2.yahoo.com> References: <175634.94625.qm@web51409.mail.re2.yahoo.com> Message-ID: you mean http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? where g: is the mapped drive. it doesn't work. msLoadMap(): Unable to access file. (g:/nfs.map) On Wed, Oct 8, 2008 at 4:06 PM, Dan Little wrote: > You can use NFS. > > If you're using Windows and have mapped the drive then the path is just like it is in Explorer. > > In Linux/UNIX, then the path is where you mounted it. > > > > ----- Original Message ---- >> From: zach cruise >> To: mapserver-users at lists.osgeo.org >> Sent: Wednesday, October 8, 2008 3:01:54 PM >> Subject: Re: [mapserver-users] nfs drive >> >> can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes >> how to reference it >> >> http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ?? >> http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? >> >> any one notice any lag with nfs? tips?? >> >> On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova >> wrote: >> > Why in your path descriptions do you mix slashes and backslashes? >> > >> > >> > On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote: >> >> >> >> unable to map data (cities.shp) on nfs drive (g:). data pulls into >> >> qgis fine. know it can be done- >> >> >> >> >> http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, >> >> >> >> >> http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html >> >> >> >> MAP >> >> ... >> >> # SHAPEPATH "g:\" >> >> SHAPEPATH \\123.4.5.6\vol\data\ >> >> ... >> >> LAYER >> >> ... >> >> # DATA "poly/cities" >> >> DATA "poly/cities" >> >> ... >> >> END >> >> ... >> >> END >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From danlittle at yahoo.com Wed Oct 8 13:23:27 2008 From: danlittle at yahoo.com (Dan Little) Date: Wed, 8 Oct 2008 13:23:27 -0700 (PDT) Subject: [mapserver-users] nfs drive Message-ID: <813348.61643.qm@web51404.mail.re2.yahoo.com> If the NFS drive is mapped to "G:" and the file "G:/nfs.map" exists (double check that), then you have a permissions error. The web server "user" doesn't have permission to access that directory. ----- Original Message ---- > From: zach cruise > To: mapserver-users at lists.osgeo.org > Cc: Dan Little ; Minka Stoyanova > Sent: Wednesday, October 8, 2008 3:17:41 PM > Subject: Re: [mapserver-users] nfs drive > > you mean > http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? > where g: is the mapped drive. > > it doesn't work. > msLoadMap(): Unable to access file. (g:/nfs.map) > > On Wed, Oct 8, 2008 at 4:06 PM, Dan Little wrote: > > You can use NFS. > > > > If you're using Windows and have mapped the drive then the path is just like > it is in Explorer. > > > > In Linux/UNIX, then the path is where you mounted it. > > > > > > > > ----- Original Message ---- > >> From: zach cruise > >> To: mapserver-users at lists.osgeo.org > >> Sent: Wednesday, October 8, 2008 3:01:54 PM > >> Subject: Re: [mapserver-users] nfs drive > >> > >> can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes > >> how to reference it > >> > >> http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ?? > >> http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? > >> > >> any one notice any lag with nfs? tips?? > >> > >> On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova > >> wrote: > >> > Why in your path descriptions do you mix slashes and backslashes? > >> > > >> > > >> > On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote: > >> >> > >> >> unable to map data (cities.shp) on nfs drive (g:). data pulls into > >> >> qgis fine. know it can be done- > >> >> > >> >> > >> > http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, > >> >> > >> >> > >> > http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html > >> >> > >> >> MAP > >> >> ... > >> >> # SHAPEPATH "g:\" > >> >> SHAPEPATH \\123.4.5.6\vol\data\ > >> >> ... > >> >> LAYER > >> >> ... > >> >> # DATA "poly/cities" > >> >> DATA "poly/cities" > >> >> ... > >> >> END > >> >> ... > >> >> END > >> >> _______________________________________________ > >> >> mapserver-users mailing list > >> >> mapserver-users at lists.osgeo.org > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > From zachc1980 at gmail.com Wed Oct 8 13:37:33 2008 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 8 Oct 2008 16:37:33 -0400 Subject: [mapserver-users] nfs drive In-Reply-To: <813348.61643.qm@web51404.mail.re2.yahoo.com> References: <813348.61643.qm@web51404.mail.re2.yahoo.com> Message-ID: double checked! local *.map can access *.shp on remote/nfs g:. but local *.html can't access *.map on remote/nfs g: ?? anyway how do i allow webserver "user" access to remote/nfs? On Wed, Oct 8, 2008 at 4:23 PM, Dan Little wrote: > If the NFS drive is mapped to "G:" and the file "G:/nfs.map" exists (double check that), then you have a permissions error. The web server "user" doesn't have permission to access that directory. > > > > ----- Original Message ---- >> From: zach cruise >> To: mapserver-users at lists.osgeo.org >> Cc: Dan Little ; Minka Stoyanova >> Sent: Wednesday, October 8, 2008 3:17:41 PM >> Subject: Re: [mapserver-users] nfs drive >> >> you mean >> http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? >> where g: is the mapped drive. >> >> it doesn't work. >> msLoadMap(): Unable to access file. (g:/nfs.map) >> >> On Wed, Oct 8, 2008 at 4:06 PM, Dan Little wrote: >> > You can use NFS. >> > >> > If you're using Windows and have mapped the drive then the path is just like >> it is in Explorer. >> > >> > In Linux/UNIX, then the path is where you mounted it. >> > >> > >> > >> > ----- Original Message ---- >> >> From: zach cruise >> >> To: mapserver-users at lists.osgeo.org >> >> Sent: Wednesday, October 8, 2008 3:01:54 PM >> >> Subject: Re: [mapserver-users] nfs drive >> >> >> >> can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes >> >> how to reference it >> >> >> >> http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ?? >> >> http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? >> >> >> >> any one notice any lag with nfs? tips?? >> >> >> >> On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova >> >> wrote: >> >> > Why in your path descriptions do you mix slashes and backslashes? >> >> > >> >> > >> >> > On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote: >> >> >> >> >> >> unable to map data (cities.shp) on nfs drive (g:). data pulls into >> >> >> qgis fine. know it can be done- >> >> >> >> >> >> >> >> >> http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, >> >> >> >> >> >> >> >> >> http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html >> >> >> >> >> >> MAP >> >> >> ... >> >> >> # SHAPEPATH "g:\" >> >> >> SHAPEPATH \\123.4.5.6\vol\data\ >> >> >> ... >> >> >> LAYER >> >> >> ... >> >> >> # DATA "poly/cities" >> >> >> DATA "poly/cities" >> >> >> ... >> >> >> END >> >> >> ... >> >> >> END >> >> >> _______________________________________________ >> >> >> mapserver-users mailing list >> >> >> mapserver-users at lists.osgeo.org >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> >> > >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > >> > > > > > > From danlittle at yahoo.com Wed Oct 8 13:51:58 2008 From: danlittle at yahoo.com (Dan Little) Date: Wed, 8 Oct 2008 13:51:58 -0700 (PDT) Subject: [mapserver-users] nfs drive Message-ID: <585917.11365.qm@web51403.mail.re2.yahoo.com> You have to have the drive mounted for whatever user that is, not just as your self. You'll have to excuse me if I cannot give you specific enough details, I'm generally a Unix/Linux guy and tend to need to work with Windows' face-to-face to figure stuff out. ----- Original Message ---- > From: zach cruise > To: mapserver-users at lists.osgeo.org > Cc: Dan Little ; Minka Stoyanova > Sent: Wednesday, October 8, 2008 3:37:33 PM > Subject: Re: [mapserver-users] nfs drive > > double checked! > local *.map can access *.shp on remote/nfs g:. > but local *.html can't access *.map on remote/nfs g: ?? > > anyway how do i allow webserver "user" access to remote/nfs? > > On Wed, Oct 8, 2008 at 4:23 PM, Dan Little wrote: > > If the NFS drive is mapped to "G:" and the file "G:/nfs.map" exists (double > check that), then you have a permissions error. The web server "user" doesn't > have permission to access that directory. > > > > > > > > ----- Original Message ---- > >> From: zach cruise > >> To: mapserver-users at lists.osgeo.org > >> Cc: Dan Little ; Minka Stoyanova > > >> Sent: Wednesday, October 8, 2008 3:17:41 PM > >> Subject: Re: [mapserver-users] nfs drive > >> > >> you mean > >> http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? > >> where g: is the mapped drive. > >> > >> it doesn't work. > >> msLoadMap(): Unable to access file. (g:/nfs.map) > >> > >> On Wed, Oct 8, 2008 at 4:06 PM, Dan Little wrote: > >> > You can use NFS. > >> > > >> > If you're using Windows and have mapped the drive then the path is just > like > >> it is in Explorer. > >> > > >> > In Linux/UNIX, then the path is where you mounted it. > >> > > >> > > >> > > >> > ----- Original Message ---- > >> >> From: zach cruise > >> >> To: mapserver-users at lists.osgeo.org > >> >> Sent: Wednesday, October 8, 2008 3:01:54 PM > >> >> Subject: Re: [mapserver-users] nfs drive > >> >> > >> >> can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes > >> >> how to reference it > >> >> > >> >> http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ?? > >> >> http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ?? > >> >> > >> >> any one notice any lag with nfs? tips?? > >> >> > >> >> On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova > >> >> wrote: > >> >> > Why in your path descriptions do you mix slashes and backslashes? > >> >> > > >> >> > > >> >> > On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote: > >> >> >> > >> >> >> unable to map data (cities.shp) on nfs drive (g:). data pulls into > >> >> >> qgis fine. know it can be done- > >> >> >> > >> >> >> > >> >> > >> > http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html, > >> >> >> > >> >> >> > >> >> > >> > http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html > >> >> >> > >> >> >> MAP > >> >> >> ... > >> >> >> # SHAPEPATH "g:\" > >> >> >> SHAPEPATH \\123.4.5.6\vol\data\ > >> >> >> ... > >> >> >> LAYER > >> >> >> ... > >> >> >> # DATA "poly/cities" > >> >> >> DATA "poly/cities" > >> >> >> ... > >> >> >> END > >> >> >> ... > >> >> >> END > >> >> >> _______________________________________________ > >> >> >> mapserver-users mailing list > >> >> >> mapserver-users at lists.osgeo.org > >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> >> > > >> >> _______________________________________________ > >> >> mapserver-users mailing list > >> >> mapserver-users at lists.osgeo.org > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > >> > > >> > > >> > > > > > > > > > > > From dmorissette at mapgears.com Wed Oct 8 13:55:11 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 08 Oct 2008 16:55:11 -0400 Subject: [mapserver-users] How to create a chart layer from a php function In-Reply-To: References: Message-ID: <48ED1E2F.4020000@mapgears.com> Sandra Liliana Moreno wrote: > Hi!!!! > > I want to create a chart layer from a PHP function, but in the style > of the class of the layer, > a parameter called "SIZE" in the mapfile, I do not know how to set in > the object styleObj. > Does anyone know how to do this? > [...] > $style->set("size","[rio]"); Try this: $style->setBinding(MS_STYLE_BINDING_SIZE, "rio"); For the record, the relevant docs are: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/styleobj and http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/class-constants Daniel -- Daniel Morissette http://www.mapgears.com/ From fabiodovidio at gmail.com Thu Oct 9 02:47:32 2008 From: fabiodovidio at gmail.com (Fabio D'Ovidio) Date: Thu, 09 Oct 2008 11:47:32 +0200 Subject: [mapserver-users] php_mapscript shared obj Message-ID: <48EDD334.9030403@gmail.com> Hi list ! I installed mapserver 4.10.0, PHP 5.2.0 and php_mapscript on Debian Etch. >From PHP Web GIS application i tryed to use php_mapscript functionalities but It is not possible. It is strange becaues I did as following: apt-get install php5 ( ****If i type php -m I have no mapscript module built in php!!!**** ) I compiled mapserver and I run: install -s mapscript/php3/php_mapscript.so /usr/lib/php5/20060613/ ln -s php_mapscript.so /usr/lib/php5/20060613/php_mapscript_4.10.0.so I wrote /etc/php5/apache2/conf.d/php_mapscript.ini as following: extension=php_mapscript_4.10.0.so If I run php.info with dl function to test mapscript installation I have the following: *Warning*: Module 'MapScript' already loaded in *Unknown* on line *0* *So, If I comment the line in php_mapscript.ini, the Warning disappear but Mapscript module is loaded !!! * *It's strange because mapscript module shouldn't be loaded because of my configuration in .ini file!! Is it ?* *I am confused... what's worng ?* *Thanks* -- Fabio D'Ovidio mail: fabiodovidio at gmail.com From mark.balman at gmail.com Thu Oct 9 03:00:39 2008 From: mark.balman at gmail.com (mark balman) Date: Thu, 9 Oct 2008 11:00:39 +0100 Subject: [mapserver-users] dynamic sql mapserver Message-ID: <39f1dcdf0810090300k39c944e2u85f59fef20318ca5@mail.gmail.com> Hi all I am trying to figure out the way to create dynamic sql using mapserver (using the basic demo application under MS4W) and postgres/postgis. I have created various queries that work ok as follows: LAYER CONNECTIONTYPE postgis NAME "qdistance" CONNECTION "user="" password="" dbname="test" host=localhost" DATA "the_geom from (select * from kbapoly where st_distance(the_geom,GeomFromText('Point(1 0)',4326)) <6) as myquery using SRID=4326 using unique gid" STATUS OFF TYPE POLYGON TEMPLATE "templates/kbas.html" CLASS COLOR 255 0 0 What I would like to be able to do is pass user defined variables e.g. latitude, longitude and distance somehow. I have read various mapserver/postgis workshop docs by Paul Ramsey and others but cannot get anything to work. I have defined the Layer thus: LAYER CONNECTIONTYPE postgis NAME "qdistance" CONNECTION "user="" password="" dbname="test" host=localhost" DATA "the_geom from (%sql%) as myquery using unique gid" STATUS OFF TYPE POLYGON TEMPLATE "templates/kbas.html" CLASS COLOR 255 0 0 Within the basic.html page I have added the following:

Query:

When I try adding the sql statement to the text box select * from kbapoly where st_distance(the_geom,GeomFromText('Point(1 0)',4326)) <6 I keep getting the following message: msDrawMap(): Image handling error. Failed to draw layer named 'qdistance'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (%sql%) as myquery WHERE the_geom && setSRID('BOX3D(-179.699499165275 -120.200333889816,180.300500834725 119.599332220367)'::BOX3D, find_srid('','(%sql%) as myquery','the_geom') )' Postgresql reports the error as 'ERROR: syntax error at or near "%" LINE 1: ...ection(force_2d(the_geom)),'NDR'),gid::text from (%sql%) as ... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. Can anyone provide me with some pointers? Many thanks Mark From pgiannini at bytewise.it Thu Oct 9 03:33:10 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 9 Oct 2008 12:33:10 +0200 (CEST) Subject: [mapserver-users] Integrate mapserver with PHP MIS In-Reply-To: <20081008192640.57A445B9F@mx1.iway.na> References: <113180.42869.qm@web51405.mail.re2.yahoo.com> <20081008192640.57A445B9F@mx1.iway.na> Message-ID: <51861.192.168.1.55.1223548390.squirrel@localhost.localdomain> hallo Andre, in a php environment you can query both PostgreSQL and MySQL data. If you want click over a POI to read his data, your application should query the MySQL MIS via the FeatureID and retrieve the budget data, then display them in a window or in a layer on your web page. It is different to show the POIs with a legend that depends of the budget data: it is better if you can set up an ETL to import mysql data into PostgreSQL, or vice versa only the X/Y coordinates of POIs from PostgreSQL to MySQL. These solutions allows you to create a legend for the POIs, i.e. a more exaustive classification of the POIs: not only grey & red but with a color ramp. Anoter way: you can to do this "on the fly" whit the php application, adding programmatically the POIs that overspends to a "red dots layer" I hope this can help greetings ................................ pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Ottobre 8, 2008 21:26, Andre Schoonbee wrote: > See, the map data is currently in postgis, and in the MySQL database, I > have > a FeatureID field that relates to the relevant PostGIS data element. > > I know this is doable, but my personal PHP development skills is extremely > limited. I can setup mapserver and have got the basic PHP system going, > but > going beyond - out of my current scope. > > -----Original Message----- > From: Dan Little [mailto:danlittle at yahoo.com] > Sent: Wednesday, October 08, 2008 8:47 PM > To: Andre Schoonbee > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Integrate mapserver with PHP MIS > > It is certainly possible to do this with mapserver. More accurately, it > is > very easy to setup these types of queries with "mapscript" the scripting > library provided with mapserver. > > There is also some constraints on your data. You'll need to have a table > (or column) describing the geographic locations of all of your projects. > Or > have a geocoder that can translate the project into geographic coordinates > "on the fly." > > > > ----- Original Message ---- >> From: Andre Schoonbee >> To: mapserver-users at lists.osgeo.org >> Sent: Wednesday, October 8, 2008 12:41:33 PM >> Subject: [mapserver-users] Integrate mapserver with PHP MIS >> >> Hi List >> >> I want to get expert opinion on if mapserver would be the best platform > for >> the following: >> >> I have a Management Information system (PHP, mySQL) and want to link it >> to > a >> map. When I click on a POI on the map I want to see the projects at that >> POI, the staff or budget for that place. OR if I want to see all POI >> that >> overspend their budget, I want to display the POI as RED Dots on the >> map. >> >> Comments would be appreciated! >> >> And if this is a great platform, any developers out there willing to > assist? >> >> Andre >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > __________ Information from ESET Smart Security, version of virus > signature > database 3504 (20081008) __________ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pgiannini at bytewise.it Thu Oct 9 04:48:16 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 9 Oct 2008 13:48:16 +0200 (CEST) Subject: [mapserver-users] dynamic sql mapserver In-Reply-To: <39f1dcdf0810090300k39c944e2u85f59fef20318ca5@mail.gmail.com> References: <39f1dcdf0810090300k39c944e2u85f59fef20318ca5@mail.gmail.com> Message-ID: <52092.192.168.1.55.1223552896.squirrel@localhost.localdomain> Hi Mark. I try... 1st one: add "using SRID=4326" to the layer query; 2nd one: try to send - with some javascript - the entire query as variable, not only the subquery, i.e. : LAYER ... DATA %sql% ... END on the mapfile and

on the html template. let us know, ciao ....................................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Ottobre 9, 2008 12:00, mark balman wrote: > Hi all > > I am trying to figure out the way to create dynamic sql using > mapserver (using the basic demo application under MS4W) and > postgres/postgis. I have created various queries that work ok as > follows: > > LAYER > CONNECTIONTYPE postgis > NAME "qdistance" > CONNECTION "user="" password="" dbname="test" host=localhost" > DATA "the_geom from (select * from kbapoly where > st_distance(the_geom,GeomFromText('Point(1 0)',4326)) <6) as myquery > using SRID=4326 using unique gid" > STATUS OFF > TYPE POLYGON > TEMPLATE "templates/kbas.html" > CLASS > COLOR 255 0 0 > > What I would like to be able to do is pass user defined variables e.g. > latitude, longitude and distance somehow. I have read various > mapserver/postgis workshop docs by Paul Ramsey and others but cannot > get anything to work. I have defined the Layer thus: > > LAYER > CONNECTIONTYPE postgis > NAME "qdistance" > CONNECTION "user="" password="" dbname="test" host=localhost" > DATA "the_geom from (%sql%) as myquery using unique gid" STATUS OFF > TYPE POLYGON > TEMPLATE "templates/kbas.html" > CLASS > COLOR 255 0 0 > > Within the basic.html page I have added the following: > >

Query:
> >

> > When I try adding the sql statement to the text box > > select * from kbapoly where st_distance(the_geom,GeomFromText('Point(1 > 0)',4326)) <6 > > I keep getting the following message: > > msDrawMap(): Image handling error. Failed to draw layer named > 'qdistance'. prepare_database(): Query error. Error executing POSTGIS > DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR > FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from (%sql%) as myquery WHERE the_geom && > setSRID('BOX3D(-179.699499165275 -120.200333889816,180.300500834725 > 119.599332220367)'::BOX3D, find_srid('','(%sql%) as > myquery','the_geom') )' Postgresql reports the error as 'ERROR: syntax > error at or near "%" LINE 1: > ...ection(force_2d(the_geom)),'NDR'),gid::text from (%sql%) as ... ^ ' > More Help: Error with POSTGIS data variable. You specified 'check your > .map file'. Standard ways of specifiying are : (1) 'geometry_column > from geometry_table' (2) 'geometry_column from (sub query) as foo > using unique column name using SRID=srid#' Make sure you put in the > 'using unique column name' and 'using SRID=#' clauses in. For more > help, please see http://postgis.refractions.net/documentation/ > Mappostgis.c - version of Jan 23/2004. > > Can anyone provide me with some pointers? > > Many thanks > > Mark > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From paulborodaev at gmail.com Thu Oct 9 06:19:49 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Thu, 9 Oct 2008 06:19:49 -0700 (PDT) Subject: [MAPSERVER-USERS] SLD benefits Message-ID: <19898313.post@talk.nabble.com> Could someone clarify for me what benefits has SLD's which supported in MS irrespective of WMS? Does some handy tools for editing SLD's extists? (desktop apps/web UI's) - to create theirs separately (by 'publishers') and then applying to mapfile -- View this message in context: http://www.nabble.com/SLD-benefits-tp19898313p19898313.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Thu Oct 9 06:26:18 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 9 Oct 2008 08:26:18 -0500 Subject: [mapserver-users] dynamic sql mapserver In-Reply-To: <52092.192.168.1.55.1223552896.squirrel@localhost.localdomain> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FC11D@s-sp22.pca.state.mn.us> Another debugging suggestion. Eliminate the html page from your testing and just make a direct GET call to MapServer through a URL, passing your value in that way. e.g. http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/myApp/myMap.map&mode=map&myDataVar=select+*+from+myTable I would change the var name from 'sql'. I don't know if it is a reserved word, but it could be somewhere. Also, if your query is mostly static and the only part that changes is a value in the where clause, I would write most of the query out explicitly in the map file and only pass in that part that changes. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro Giannini Sent: Thursday, October 09, 2008 6:48 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] dynamic sql mapserver Hi Mark. I try... 1st one: add "using SRID=4326" to the layer query; 2nd one: try to send - with some javascript - the entire query as variable, not only the subquery, i.e. : LAYER ... DATA %sql% ... END on the mapfile and on the html template. let us know, ciao ....................................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Ottobre 9, 2008 12:00, mark balman wrote: > Hi all > > I am trying to figure out the way to create dynamic sql using > mapserver (using the basic demo application under MS4W) and > postgres/postgis. I have created various queries that work ok as > follows: > > LAYER > CONNECTIONTYPE postgis > NAME "qdistance" > CONNECTION "user="" password="" dbname="test" host=localhost" DATA > "the_geom from (select * from kbapoly where > st_distance(the_geom,GeomFromText('Point(1 0)',4326)) <6) as myquery > using SRID=4326 using unique gid" STATUS OFF > TYPE POLYGON > TEMPLATE "templates/kbas.html" > CLASS > COLOR 255 0 0 > > What I would like to be able to do is pass user defined variables e.g. > latitude, longitude and distance somehow. I have read various > mapserver/postgis workshop docs by Paul Ramsey and others but cannot > get anything to work. I have defined the Layer thus: > > LAYER > CONNECTIONTYPE postgis > NAME "qdistance" > CONNECTION "user="" password="" dbname="test" host=localhost" DATA > "the_geom from (%sql%) as myquery using unique gid" STATUS OFF TYPE > POLYGON TEMPLATE "templates/kbas.html" > CLASS > COLOR 255 0 0 > > Within the basic.html page I have added the following: > >

Query:
> >

> > When I try adding the sql statement to the text box > > select * from kbapoly where st_distance(the_geom,GeomFromText('Point(1 > 0)',4326)) <6 > > I keep getting the following message: > > msDrawMap(): Image handling error. Failed to draw layer named > 'qdistance'. prepare_database(): Query error. Error executing POSTGIS > DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR > FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from (%sql%) as myquery WHERE the_geom && > setSRID('BOX3D(-179.699499165275 -120.200333889816,180.300500834725 > 119.599332220367)'::BOX3D, find_srid('','(%sql%) as > myquery','the_geom') )' Postgresql reports the error as 'ERROR: syntax > error at or near "%" LINE 1: > ...ection(force_2d(the_geom)),'NDR'),gid::text from (%sql%) as ... ^ ' > More Help: Error with POSTGIS data variable. You specified 'check your > .map file'. Standard ways of specifiying are : (1) 'geometry_column > from geometry_table' (2) 'geometry_column from (sub query) as foo > using unique column name using SRID=srid#' Make sure you put in the > 'using unique column name' and 'using SRID=#' clauses in. For more > help, please see http://postgis.refractions.net/documentation/ > Mappostgis.c - version of Jan 23/2004. > > Can anyone provide me with some pointers? > > Many thanks > > Mark > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From graham.carlyle at maplecroft.com Thu Oct 9 07:20:02 2008 From: graham.carlyle at maplecroft.com (Graham Carlyle) Date: Thu, 09 Oct 2008 15:20:02 +0100 Subject: [mapserver-users] Raster alignment problem Message-ID: <48EE1312.9010104@maplecroft.com> Hi I'm trying to render some maps using Mapserver that contain both vector and raster data. However the raster data doesn't consistently align with the vector data at different zoom levels. I've looked at the combination of raster and vector in qgis 11.0 and it displays fine. When rendering with Mapserver 5.2.0 the raster image positions differently at different zoom levels. I've also recreated the problem using a simple test raster of alternating values which I created programmatically with libgdal. Does anyone have any suggestions as to what I might be doing wrong or how I might debug my problem further? I'm very doubtful that its a bug in mapserver as surely other people would have encountered this. I'm using the PROJECTION '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' in the map file for both raster and vector gdalinfo on the test raster: Driver: GTiff/GeoTIFF Files: raster/test_qs.tif Size is 180, 180 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235629972, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-90.000000000000000,90.000000000000000) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( -90.0000000, 90.0000000) ( 90d 0'0.00"W, 90d 0'0.00"N) Lower Left ( -90.0000000, -90.0000000) ( 90d 0'0.00"W, 90d 0'0.00"S) Upper Right ( 90.0000000, 90.0000000) ( 90d 0'0.00"E, 90d 0'0.00"N) Lower Right ( 90.0000000, -90.0000000) ( 90d 0'0.00"E, 90d 0'0.00"S) Center ( 0.0000000, 0.0000000) ( 0d 0'0.01"E, 0d 0'0.01"N) Band 1 Block=180x45 Type=Byte, ColorInterp=Gray The shape file prj is... GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] thanks, Graham From thomas.bonfort at gmail.com Thu Oct 9 08:10:12 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 9 Oct 2008 17:10:12 +0200 Subject: [mapserver-users] Raster alignment problem In-Reply-To: <48EE1312.9010104@maplecroft.com> References: <48EE1312.9010104@maplecroft.com> Message-ID: there's no subpixel positioning for rasters by default, so for coarse rasters like the one you're showing, you can force that by adding a PROCESSING "resample=nearest" to your raster layer thomas On Thu, Oct 9, 2008 at 16:20, Graham Carlyle wrote: > Hi > > I'm trying to render some maps using Mapserver that contain both vector and > raster data. However the raster data doesn't consistently align with the > vector data at different zoom levels. > > I've looked at the combination of raster and vector in qgis 11.0 and it > displays fine. > > When rendering with Mapserver 5.2.0 the raster image positions differently > at different zoom levels. I've also recreated the problem using a simple > test raster of alternating values which I created programmatically with > libgdal. > > Does anyone have any suggestions as to what I might be doing wrong or how I > might debug my problem further? I'm very doubtful that its a bug in > mapserver as surely other people would have encountered this. > > I'm using the PROJECTION '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' > in the map file for both raster and vector > > gdalinfo on the test raster: > Driver: GTiff/GeoTIFF > Files: raster/test_qs.tif > Size is 180, 180 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.2572235629972, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]] > Origin = (-90.000000000000000,90.000000000000000) > Pixel Size = (1.000000000000000,-1.000000000000000) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left ( -90.0000000, 90.0000000) ( 90d 0'0.00"W, 90d 0'0.00"N) > Lower Left ( -90.0000000, -90.0000000) ( 90d 0'0.00"W, 90d 0'0.00"S) > Upper Right ( 90.0000000, 90.0000000) ( 90d 0'0.00"E, 90d 0'0.00"N) > Lower Right ( 90.0000000, -90.0000000) ( 90d 0'0.00"E, 90d 0'0.00"S) > Center ( 0.0000000, 0.0000000) ( 0d 0'0.01"E, 0d 0'0.01"N) > Band 1 Block=180x45 Type=Byte, ColorInterp=Gray > > The shape file prj is... > GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] > > thanks, > Graham > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Thu Oct 9 08:19:49 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 09 Oct 2008 11:19:49 -0400 Subject: [mapserver-users] Raster alignment problem In-Reply-To: <48EE1312.9010104@maplecroft.com> References: <48EE1312.9010104@maplecroft.com> Message-ID: <48EE2115.6010707@pobox.com> Graham Carlyle wrote: > Hi > > I'm trying to render some maps using Mapserver that contain both vector > and raster data. However the raster data doesn't consistently align with > the vector data at different zoom levels. > > I've looked at the combination of raster and vector in qgis 11.0 and it > displays fine. > > When rendering with Mapserver 5.2.0 the raster image positions > differently at different zoom levels. I've also recreated the problem > using a simple test raster of alternating values which I created > programmatically with libgdal. > > Does anyone have any suggestions as to what I might be doing wrong or > how I might debug my problem further? I'm very doubtful that its a bug > in mapserver as surely other people would have encountered this. Graham, A couple screen shots to show the problem you see would be helpful. I will note that the default rendering algorithm for raster data is insensitive to subpixel positioning of rasters which gives noticably alignment problems when zoomed far in such that one source raster pixel ends up being several pixels wide on screen. The issue is that we select the map region into which we need to put the raster data, and a corresponding region of the source raster and then just do a simple copy. Both the map and source region are represented using integer pixel coordinates, not subregions of a pixel. So, in an extreme case, if you were zoomed in so far that your map should be one pixel plus a bit of the next pixel (and the pixel below) we would compute the source region to be a 2x2 pixel area, and the destination region to be the whole map view and you would end up with a 2x2 pixel display with equal area for each pixel rather than it being proportional as it ought to be. (Hopefully that makes sense) The quick workaround is to force rendering to go through the generic resampling method by adding: PROCESSING "RESAMPLE=NEAREST" in your raster layer. But this is done at a significant cost in rendering speed for the raster layer, so I would discourage folks from doing it by default, unless they are quite concerned about this sub-pixel accuracy issue. I have contemplated having the renderer switch into this mode when zoomed very far in to a raster layer but I'm a bit nervous about unexpected side effects and doing this right would take a bit of time. (well, perhaps the same amount of time as explaining this problem four or five times!) 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 | Geospatial Programmer for Rent From silver_17 at hotmail.com Thu Oct 9 08:47:27 2008 From: silver_17 at hotmail.com (Bill Zborowski) Date: Thu, 9 Oct 2008 15:47:27 +0000 Subject: [mapserver-users] MapServer 5.2 and java Message-ID: Hi guys, I've been developing a bit with the mapscript.jar libraries in java using JDK version 1.6. Our department, though, has JDK 1.5 as the Java standard. Since MapScript.jar seems to be compiled for jdk1.6 is there a jdk1.5 version of this jar? Thanks, Bill Zborowski GIS Developer Agriculture Canada _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From willybas at gmail.com Thu Oct 9 09:17:38 2008 From: willybas at gmail.com (Willy-Bas Loos) Date: Thu, 9 Oct 2008 18:17:38 +0200 Subject: [mapserver-users] why 5.0.3 on latest linux distro's Message-ID: <1dd6057e0810090917t1b351616r51696c02eb3dd4e1@mail.gmail.com> Hi, Why do debian lenny and ubuntu 8.10 only have mapserver 5.0.3 in their package lists? MS4W has 5.2.0, this is feeling all wrong! cheers, WBL -- "Patriotism is the conviction that your country is superior to all others because you were born in it." - George Bernard Shaw -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.carlyle at maplecroft.com Thu Oct 9 09:32:33 2008 From: graham.carlyle at maplecroft.com (Graham Carlyle) Date: Thu, 09 Oct 2008 17:32:33 +0100 Subject: [mapserver-users] Raster alignment problem In-Reply-To: <48EE2115.6010707@pobox.com> References: <48EE1312.9010104@maplecroft.com> <48EE2115.6010707@pobox.com> Message-ID: <48EE3221.3020305@maplecroft.com> Frank Warmerdam wrote: > The quick workaround is to force rendering to go through the generic > resampling method by adding: > > PROCESSING "RESAMPLE=NEAREST" thomas bonfort wrote: > there's no subpixel positioning for rasters by default, so for coarse > rasters like the one you're showing, you can force that by adding a > PROCESSING "resample=nearest" to your raster layer Great, that fixed the problem! thanks Frank & Thomas for your help. Graham From ntiamoah578 at yahoo.com Thu Oct 9 11:11:41 2008 From: ntiamoah578 at yahoo.com (ntiamoah bernard) Date: Thu, 9 Oct 2008 11:11:41 -0700 (PDT) Subject: [mapserver-users] Run dbox on localhost Message-ID: <834869.62866.qm@web32506.mail.mud.yahoo.com> Hi guys, I am trying to run this dbox demo on my localhost. i don't have website yet but i want to run it on my home pc. How do i do that? I am using MS4W latest version. ? ? This is the mapfile: ? # #Start of map file, created by AmeiN! for ArcGis 02/06/2006, 2:06:22 PM # # MAP NAME 'Permits' STATUS ON #PROJECTION #?? 'init=epsg:HTML' #END ? SIZE 650 500 EXTENT 179285.663523 4471528.000000 758248.492727 4822132.500000 UNITS meters SHAPEPATH '' SYMBOLSET'E:\MS4W\Apache\htdocs\symbols.sym' FONTSET 'E:\MS4W\Apache\htdocs\fontset.txt' CONFIG PROJ_LIB "E:\ms4w\proj\nad\" IMAGECOLOR 255 255 255 IMAGETYPE jpeg ? # #Start of web interface definition # ? WEB TEMPLATE 'E:\MS4W\Apache\htdocs\SampleBox\Sample.html' IMAGEPATH 'E:\ms4w\tmp\ms_tmp\' IMAGEURL '/ms_tmp/' #Replace 'JasperMaps' with your website name. END #HEADER ? # # Start of querymap # QUERYMAP ? SIZE 660 580 ? STATUS ON ? STYLE selected ? COLOR 255 0 0 ? STYLE hilite End ? # #Start of legend # ? LEGEND STATUS on POSITION lr KEYSIZE 18 12 #TEMPLATE 'legend.html' LABEL ?COLOR 0 0 0 ?TYPE TRUETYPE ?FONT Arial ?SIZE 9 ?END # END LABEL END?? #LEGEND # # Start of scalebar # ? SCALEBAR STATUS embed POSITION ll ?STYLE 0 ? INTERVALS 2 ? IMAGECOLOR? 255 255 255 ? LABEL ?? COLOR 0 0 0 ?? SIZE SMALL ? END? #LABEL SIZE 200 3 OUTLINECOLOR 0 0 0 COLOR? 0 0 0 BACKGROUNDCOLOR? 255 255 255 UNITS FEET END?? #SCALEBAR # # Start of layer definitions # # ?LAYER ??? NAME 'County' ??? TYPE POLYGON ??? DATA 'E:\IowaLayers\wcounty.shp' ??? METADATA ????? 'wms_title' 'wcounty' ??? END ??? STATUS ON ??? TRANSPARENCY 100 ??? PROJECTION ??? 'proj=longlat' ??? 'ellps=WGS84' ??? 'datum=WGS84' ??? 'no_defs' ??? END ??? MINSCALE 600 ??? #MAXSCALE 250000 ??? LABELITEM 'CO_NAME' ??? CLASS ?????? NAME 'wcounty' ?????? STYLE ???????? SYMBOL 0 ???????? SIZE 6 ???????? OUTLINECOLOR 0 0 0 ???????? COLOR 0 255 127 ?????? END ???? LABEL ????? SIZE medium ????? COLOR 0 0 0 ????? ANGLE 0 ????? BUFFER 1 ???? END ??? END ? END ? LAYER ??? NAME 'Highways' ??? TYPE LINE ??? DATA 'E:\IowaLayers\highway.shp' ??? METADATA ????? 'wms_title' 'highway' ??? END ??? STATUS ON ??? TRANSPARENCY 100 ??? PROJECTION ??? 'proj=longlat' ??? 'ellps=WGS84' ??? 'datum=WGS84' ??? 'no_defs' ??? END ??? CLASS ?????? NAME 'highway' ?????? STYLE ???????? SYMBOL 0 ???????? SIZE 6 ???????? OUTLINECOLOR 241 45 105 ???????? COLOR 0 0 0 ?????? END ??? END ? END ? LAYER ??? NAME 'Towns' ??? TYPE POLYGON ??? DATA 'E:\IowaLayers\incorp.shp' ??? METADATA ????? 'wms_title' 'incorp' ??? END ??? STATUS ON ??? TRANSPARENCY 100 ??? PROJECTION ??? 'proj=utm' ??? 'zone=15' ??? 'ellps=clrk66' ??? 'datum=NAD27' ??? 'units=m' ??? 'no_defs' ??? END ??? CLASS ?????? NAME 'incorp' ?????? STYLE ???????? SYMBOL 0 ???????? SIZE 6 ???????? OUTLINECOLOR 0 0 0 ???????? COLOR 168 100 185 ?????? END ??? END ? END ? END #End of Mapfile ? ? ? ? Here is the template: ? My First Template (dBox) ? ??? ??? Menu: reset | refresh | live build home ???

??? ???
?????