From jagdesh_singh at hotmail.com Wed Oct 3 13:15:08 2007 From: jagdesh_singh at hotmail.com (Jagdesh Singh) Date: Wed Oct 3 13:15:15 2007 Subject: [ms4w-users] RE: Welcome to the "ms4w-users" mailing list (Digest mode) In-Reply-To: References: Message-ID: Jagdesh Singh Head - Forest Resources Information Unit Guyana Forestry Commission 1 Water Street, Kingston, Georgetown, Guyana, South America Tel: + (592) 226-7271/4 (ext 232), Mobile: 641-1451 Fax: + (592) 226-8956 Email: jagdesh@forestry.gov.gy Website: www.forestry.gov.gy > Subject: Welcome to the "ms4w-users" mailing list (Digest mode)> From: ms4w-users-request@lists.maptools.org> To: jagdesh_singh@hotmail.com> Date: Wed, 3 Oct 2007 13:09:50 -0400> > Welcome to the ms4w-users@lists.maptools.org mailing list!> > To post to this list, send your email to:> > ms4w-users@lists.maptools.org> > General information about the mailing list is at:> > http://lists.maptools.org/mailman/listinfo/ms4w-users> > If you ever want to unsubscribe or change your options (eg, switch to> or from digest mode, change your password, etc.), visit your> subscription page at:> > http://lists.maptools.org/mailman/options/ms4w-users/jagdesh_singh%40hotmail.com> > > You can also make such adjustments via email by sending a message to:> > ms4w-users-request@lists.maptools.org> > with the word `help' in the subject or body (don't include the> quotes), and you will get back a message with instructions.> > You must know your password to change your options (including changing> the password, itself) or to unsubscribe. It is:> > jaggis> > Normally, Mailman will remind you of your lists.maptools.org mailing> list passwords once every month, although you can disable this if you> prefer. This reminder will also include instructions on how to> unsubscribe or change your account options. There is also a button on> your options page that will email your current password to you. _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071003/76f27192/attachment.html From ceri.whitmore at hotmail.co.uk Fri Oct 5 05:57:11 2007 From: ceri.whitmore at hotmail.co.uk (ceri whitmore) Date: Fri Oct 5 05:57:38 2007 Subject: [ms4w-users] help with legend template Message-ID: Hi all I'm new to mapserver and would like to use a legend template. I've created a template as below: The problem i'm having is the visibility flag for the classes is not working. Classes which are out of scale (maxscale) are still showing up in the legend. I've done a test and when using the embed option for the legend these same classes are not showing(which is what i'd expect). Any help or ideas would be appreciated. thanks Ceri [leg_header_html] [/leg_header_html] [leg_layer_html visibility_flag=15] [if name=layer_status oper=eq value=1][/if] [/leg_layer_html] [leg_class_html visibility_flag=15] [/leg_class_html] [leg_footer_html]
[leg_layer_name]
[leg_class_name]
[/leg_footer_html] _________________________________________________________________ Feel like a local wherever you go. http://www.backofmyhand.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071005/2722dc14/attachment.html From jmckenna at dmsolutions.ca Thu Oct 11 11:34:08 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Thu Oct 11 11:34:28 2007 Subject: [ms4w-users] ms4w - with Mapbender and Mapstorer In-Reply-To: <46FCD442.7040508@wheregroup.com> References: <46FCD442.7040508@wheregroup.com> Message-ID: <470E4270.2040905@dmsolutions.ca> Hello Astrid and Sebastian! Yes I had a blast at FOSS4G but we missed your gang there, bigtime. Comments below: Astrid Emde (WhereGroup) wrote: > > Sebastian and I where thinking about an integration of Mapbender and > Mapstorer in the ms4w package. > > We could send the configured code and some demo data and set everything > up, so it can run out of the box. Excellent! Please do send me (directly) the Mapbender and Mapstorer packages (in the same format as the other packages, so users just need to extract at their root). > > Here a short summary of our concept: > > For Mapbender > /ms4w/apps/mapbender > /ms4w/apps/mapbender/conf/mapbender.conf --> we configure mapbender.conf > so everything will work at once great > > > For Mapstorer: > /ms4w/apps/mapstorer > - pear we use ms4w\Apache\php\PEAR About PEAR: having installed the necessary pear packages for mapstorer in ms4w on several machines I am very familiar with the pain of that task, which I would hope would not be required for an ms4w user. Plus I see on the mapstorer-devel list that there is plans to no longer require that additional installation. So...how do we handle this for ms4w now? > > For both programms we need a database - we would prefer a postgresql > database: > - we could write a batch so the sqls for the databses will be loaded on > klick > - we need a database mapbender and mapstorer I thought that sql script already exists? Sure if you want to wrap it around a simple batch file great, just make sure you note that in your mapstorer/mapbender package instructions for users. > > Installation of PostgreSQL > - would it be possible to run the nstallation of postgresql / postgis > with a script? Did you think about this before? Yes we used to have a PostgreSQL/PostGIS package (as noted at the bottom of the MS4W downloads page), but when postgres 8.0 came out with a nice installer for windows it's easier for users to just use that one (and now postgis has a nice installer too, which is again noted and pointed to on the ms4w downloads page). If you want to include a script in your /apps/mapstorer directory that downloads those installers and runs them then sure, go for it. > - if the databse would be there, we could create our dbs ( mapbender, > mapstorer) and maybe a world database for some demo data > > > Add new directory for very basic sample data: > - could be: /ms4w/data/world/ > world.map (mapbender, mapstorer > could use the map) > /data/ put some shapes /raster data > here hmm. I see that data package as a separate MS4W package (I would not want to include it in the default base installer, because of size). So your package's readmes could say: 1) run this script to install postgres/postgis, 2) run this script to create necessary databases, 3) download the "MS4W sample data" package from the MS4W downloads page. Or, your mapstorer and mapbender packages could both include that sample data. Let me know what you prefer. > > ALIAS in httpd.d > - two file to add aliases for Mapbender and mapstorer > > Add mapbender and Mapstorer link to /ms4w/Apache/htdocs/index.html sure. > > What do you think about the idea? For us the database is the > prerequisite. Without an easy installation of the database, people would > not use the software. But if there would be an easy way to install > postgresql/postgis it would be no problem for us. > I think I answered this above. -- jeff From Jessica.Fendos at state.mn.us Thu Oct 11 21:37:37 2007 From: Jessica.Fendos at state.mn.us (Jessica Fendos) Date: Thu Oct 11 21:38:55 2007 Subject: [ms4w-users] MS4W in IIS Environment Message-ID: Hi list: I am using MS4W package with Chameleon in an IIS environment. Some of my mapping applications will display map images (containing both shapefiles and PostGIS data) in Apache but when I tried to display both types of data in IIS, I got an broken image. It seems that I can display only multiple shapefiles OR only PostGIS data but not both in IIS. In addition, when I tested using a php file, ?php dl("php_mapscript.dll"); $oMap = ms_newMapObj("/ms4w/apps/chameleon/samples/map/world_wms.map"); $oImage = $oMap->draw(); header("Content-type: image/png"); $oImg->saveImage("/ms4w/tmp/ms_tmp/test.png"); ?> I got this error message: The image "http://mapt.deed.state.mn.us:8080/chameleon/samples/test.php";; > cannot be displayed, because it contains errors. However, "The image created by the script is fine when accessed via: http:// mapt.deed.state.mn.us:8080/ms_tmp/test.png" . I am really lost as to how to fix this problem. Could someone please guide me on this? Thank you for your time. Regards, Jessica From pb at dic.ohc.cu Fri Oct 12 11:13:07 2007 From: pb at dic.ohc.cu (Jorge L. Batista E.) Date: Fri Oct 12 11:10:46 2007 Subject: [ms4w-users] problem with CONNECTION (MS4W and postgreSQL+Postgis 8.2) Message-ID: Hi list, I have a problem with MS4W and postgreSQL+Postgis 8.2 CONNECTION In the same server (Windows 2003 Server) I have 2 different versions of postgreSQL+Postgis using different ports postgreSQL+Postgis 8.1 uses the default port 5432 and this CONNECTION works: LAYER CONNECTIONTYPE postgis NAME manzanas CONNECTION "host=myHostName dbname=myDBName user=myUser password=myPassword" DATA "the_gemon from my_table_name" STATUS default TYPE polygon CLASS OUTLINECOLOR 182 182 184 COLOR 251 249 234 END METADATA "wms_title" "manzanas" END END postgreSQL+Postgis 8.2 uses the port 5433 and this CONNECTION DO NOT WORKS: LAYER CONNECTIONTYPE postgis NAME manzanas CONNECTION "host=myHostName dbname=myDBName user=myUser password=myPassword port=5433" DATA "the_gemon from my_table_name" STATUS default TYPE polygon CLASS OUTLINECOLOR 182 182 184 COLOR 251 249 234 END METADATA "wms_title" "manzanas" END END Some one can helpme, please? ss PB ________________________________________________ Las siguientes l?neas de texto son agregadas por los Servidores Centrales de Correo de la Oficina del Historiador de la Ciudad de la Habana. Cartelera Interactiva de Opus Habana: http://opushabana.ohc.cu/cartelera.php con la programaci?n cultural del Centro Hist?rico. From pb at dic.ohc.cu Fri Oct 12 12:49:50 2007 From: pb at dic.ohc.cu (Jorge L. Batista E.) Date: Fri Oct 12 12:47:29 2007 Subject: [ms4w-users] problem with CONNECTION (MS4W and postgreSQL+Postgis 8.2) Message-ID: Hi list, I have a problem with MS4W and postgreSQL+Postgis 8.2 CONNECTION In the same server (Windows 2003 Server) I have 2 different versions of postgreSQL+Postgis using different ports postgreSQL+Postgis 8.1 uses the default port 5432 and this CONNECTION works: LAYER CONNECTIONTYPE postgis NAME manzanas CONNECTION "host=myHostName dbname=myDBName user=myUser password=myPassword" DATA "the_gemon from my_table_name" STATUS default TYPE polygon CLASS OUTLINECOLOR 182 182 184 COLOR 251 249 234 END METADATA "wms_title" "manzanas" END END postgreSQL+Postgis 8.2 uses the port 5433 and this CONNECTION DO NOT WORKS: LAYER CONNECTIONTYPE postgis NAME manzanas CONNECTION "host=myHostName dbname=myDBName user=myUser password=myPassword port=5433" DATA "the_gemon from my_table_name" STATUS default TYPE polygon CLASS OUTLINECOLOR 182 182 184 COLOR 251 249 234 END METADATA "wms_title" "manzanas" END END Some one can helpme, please? ss PB ________________________________________________ Las siguientes l?neas de texto son agregadas por los Servidores Centrales de Correo de la Oficina del Historiador de la Ciudad de la Habana. Cartelera Interactiva de Opus Habana: http://opushabana.ohc.cu/cartelera.php con la programaci?n cultural del Centro Hist?rico. From kusum at infobase.in Sat Oct 13 02:33:58 2007 From: kusum at infobase.in (kusum) Date: Sat Oct 13 02:33:04 2007 Subject: [ms4w-users] Tilling of map images Message-ID: <002a01c80d63$0b3d76c0$f301a8c0@infobase.com> Hii i m new to mapserver and my application works in php mapscript Now i want ti implement tilling in ms4w. I have studied ka -map and want to implement the same tilling functionality in my ms4w pmapper application. I m confused about where to start from Pls guide. Thanks in advance. Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071013/ec3825ef/attachment.html From jagdesh_singh at hotmail.com Thu Oct 11 13:13:57 2007 From: jagdesh_singh at hotmail.com (Jagdesh Singh) Date: Mon Oct 15 09:54:06 2007 Subject: [ms4w-users] msEvalRegex(): Regular expression error. String () failed expression test. Message-ID: Dear All, This is my first question to the mailing list and I am afraid is a familiar one. I believe Mr. Tony Gangemi last posted the same question in October 2006, but I am not sure if he has made any progress since. I am currently doing the exercises from Bill Kropla?s book ?Beginning MapServer: Open Source GIS Development?. Like Mr. Gangemi, despite the book having a slant towards the UNIX environment, I made the necessary adjustments to the map and html files to suit my windows configuration. However, I am stuck at chapter 4 example. When I execute the source code in IE 6, I received the familiar message ?msEvalRegex(): Regular expression error. String () failed expression test.? I am not sure what this mean, since the problem layer is not specified in the error message returned to IE. However, without any luck, I attempted to debug the mapfile by removing one layer at a time to try to isolate the problem layer, as suggested by Mr. Jeff McKenna. This did not solve my problem. What I observed though is that even if the map file has one layer, the same error message is returned to the browser. I am not sure if it is a problem with the mapfile or the html file. Hopefully someone else has experienced this problem and can provide some guidance. I have pasted below, for your reference, the codes from the mapfile and the html files and the map layers I am using in the example. Look forward to hearing from you. Best regards, Jag MapLayer Source: http://nationalatlas.gov/atlasftp.html_ citiesx020.tar.gz http://nationalatlas.gov/atlasftp.html#citiesx/citiesx020.tar.gz_ roadtrl020.tar.gz http://nationalatlas.gov/atlasftp.html#citiesx/roadtrl020.tar.gz_ statesp020.tar.gz http://nationalatlas.gov/atlasftp.html#citiesx/statesp020.tar.gz_ hydrogm020.tar.gz http://nationalatlas.gov/atlasftp.html#citiesx/hydrogm020.tar.gz urbanap020.tar.gz http://nationalatlas.gov/atlasftp.html#citiesx/urbanap020.tar.gz_ MapFile third.map # This is our third map file NAME "third" UNITS DD EXTENT -180.00 0.00 -60.00 90.00 SIZE 640 480 IMAGECOLOR 189 202 222 IMAGETYPE PNG SHAPEPATH "/ms4w/apps/firstmap/mapdata/" FONTSET "/ms4w/apps/firstmap/fonts/fonts.txt" ##################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### # Web object # WEB TEMPLATE "c:/ms4w/apps/firstmap/htdocs/third.html" IMAGEPATH "c:/ms4w/apps/firstmap/tmp" IMAGEURL "c:/ms4w/tmp/" END ##################################### # Reference map # REFERENCE IMAGE "c:/ms4w/apps/firstmap/htdocs/third_usaref.gif" SIZE 300 225 EXTENT -180.00 0.00 -60.00 90.00 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END ##################################### # Scalebar # SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 255 0 0 IMAGECOLOR 255 255 255 COLOR 128 128 128 OUTLINECOLOR 0 0 255 TRANSPARENT off END ##################################### # Legend # LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "arial" COLOR 0 0 0 SIZE 10 ANTIALIAS true END END ##################################### # State boundaries layer - polygon (for shading) # LAYER NAME "states" DATA "statesp020" STATUS on TYPE polygon LABELCACHE on LABELITEM "STATE" CLASS STYLE COLOR 255 246 189 END END END ##################################### # State boundaries layer - line (for fat boundary) # LAYER NAME "states" DATA "statesp020" STATUS on TYPE line LABELCACHE on LABELITEM "STATE" CLASS NAME "State Line" STYLE SYMBOL "BigLine" SIZE 2 COLOR 0 0 0 END END END ##################################### # Urban areas layer # LAYER NAME "urbanareas" DATA "urbanap020" STATUS on TYPE polygon LABELCACHE on LABELITEM "NAME" MAXSCALE 1999999 CLASS STYLE COLOR 212 192 100 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "arialbd" SIZE 10 OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION auto END END END ##################################### # hydrographic layer - lakes # LAYER NAME "lakes" DATA "hydrogp020" STATUS on TYPE polygon LABELCACHE on LABELITEM "NAME" CLASSITEM "FEATURE" CLASS EXPRESSION ('[FEATURE]' eq 'Lake') STYLE SIZE 1 COLOR 189 202 222 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "arial" SIZE 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 100 POSITION lr MINFEATURESIZE auto WRAP ' ' END END END ##################################### # Road layer - interstates only at large scale # LAYER NAME "interstate1" GROUP "roads" DATA "roadtrl020" STATUS on TYPE line LABELCACHE on LABELITEM "NAME" CLASSITEM "FEATURE" MINSCALE 7500001 CLASS NAME "Interstate Hwy" EXPRESSION /Limited Access*/ STYLE SYMBOL "BigLine" SIZE 1 COLOR 0 0 0 END LABEL TYPE truetype FONT "arial" SIZE 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 200 POSITION auto ANGLE auto MINFEATURESIZE 50 END END END ##################################### # Road layer - interstates only # LAYER NAME "interstate2" GROUP "roads" DATA "roadtrl020" STATUS on TYPE line LABELCACHE on LABELITEM "NAME" CLASSITEM "Feature" MAXSCALE 7500000 CLASS NAME "Interstate Hwy" EXPRESSION /Limited Access*/ STYLE SYMBOL "BigLine" SIZE 3 COLOR 0 0 0 END OVERLAYSYMBOL "DashedLine" OVERLAYSIZE 1 OVERLAYCOLOR 255 255 255 # TEXT ([FEATURE],[NAME]) LABEL TYPE truetype FONT "arial" SIZE 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 200 POSITION auto ANGLE auto MINFEATURESIZE 50 WRAP ' ' END END END ##################################### # Road layer - principal highways # LAYER NAME "principal" GROUP "roads" DATA "roadtrl020" STATUS on TYPE line LABELCACHE on LABELITEM "NAME" CLASSITEM "Feature" MAXSCALE 4000000 CLASS NAME "Principal Hwy" EXPRESSION /Principal Highway*/ STYLE SYMBOL "BigLine" SIZE 3 COLOR 197 129 65 END OVERLAYSYMBOL "DashedLine" OVERLAYSIZE 1 OVERLAYCOLOR 255 255 255 # TEXT ([FEATURE],[NAME]) LABEL TYPE truetype FONT "arial" MINFEATURESIZE 50 MINDISTANCE 100 ANGLE auto COLOR 0 0 0 SIZE 8 END END END ##################################### # Road layer - other through highways # LAYER NAME "thru" GROUP "roads" DATA "roadtrl020" STATUS on TYPE line LABELCACHE on LABELITEM "NAME" CLASSITEM "Feature" MAXSCALE 1000000 CLASS NAME "Through Hwy" EXPRESSION /Other Through*/ STYLE SYMBOL "BigLine" SIZE 3 COLOR 197 129 65 END OVERLAYSYMBOL "DashedLine" OVERLAYSIZE 1 OVERLAYCOLOR 0 255 0 LABEL TYPE truetype FONT "arial" MINFEATURESIZE 100 MINDISTANCE 100 ANGLE auto COLOR 0 0 0 SIZE 8 END END END ##################################### # Road layer - other highways # LAYER NAME "other" GROUP "roads" DATA "roadtrl020" STATUS on TYPE line LABELCACHE on LABELITEM "NAME" CLASSITEM "FEATURE" MAXSCALE 500000 CLASS NAME "Other Hwy" EXPRESSION /Other Highway*/ STYLE SYMBOL "BigLine" SIZE 2 COLOR 197 129 65 END LABEL TYPE truetype FONT "arial" ANGLE auto # requires ttfonts MINFEATURESIZE 100 MINDISTANCE 100 ANGLE auto COLOR 0 0 0 SIZE 6 END END END ##################################### # Hydrographic layer - streams & rivers # LAYER NAME "rivers" DATA "hydrogl020" STATUS DEFAULT TYPE line LABELCACHE on LABELITEM "NAME" CLASSITEM "FEATURE" MAXSCALE 1000000 CLASS EXPRESSION ('[FEATURE]' eq 'Stream') STYLE SYMBOL "BigLine" SIZE 1 COLOR 156 182 205 END LABEL TYPE truetype FONT "arial" COLOR 0 0 0 ANGLE auto SIZE 7 ANTIALIAS true END END END ##################################### # Cities layer - State capitals and cities pop. > 1000000 # LAYER NAME "majorcities" DATA "citiesx020" STATUS default TYPE point LABELITEM "NAME" LABELCACHE on LABELMAXSCALE 15000000 CLASSITEM "FEATURE" MINSCALE 2000000 CLASS NAME "State Capitals" EXPRESSION /State*/ STYLE SYMBOL "Circle" SIZE 6 COLOR 0 255 0 END LABEL TYPE truetype FONT "arialbd" SIZE 9 POSITION auto OUTLINECOLOR 255 255 255 COLOR 0 0 0 END END CLASS EXPRESSION ([Pop_2000] > 1000000) NAME "Major Cities" STYLE SYMBOL "Circle" SIZE 10 COLOR 255 0 0 END LABEL TYPE truetype FONT "arialbd" SIZE 10 OUTLINECOLOR 255 255 255 COLOR 0 0 0 POSITION auto END END END ##################################### # Cities layer - Large cities, pop. < 1000000 # LAYER NAME "largecities" DATA "citiesx020" STATUS default TYPE point LABELCACHE on LABELITEM "NAME" MINSCALE 2000000 CLASS EXPRESSION(([Pop_2000]>100000)and([Pop_2000]<=1000000)) NAME "Cities" STYLE SYMBOL "Circle" SIZE 4 COLOR 255 0 0 BACKGROUNDCOLOR 255 0 0 END LABEL TYPE truetype FONT "arialbd" SIZE 8 POSITION auto OUTLINECOLOR 255 255 255 COLOR 0 0 0 END END END ##################################### # City layer - Cities LAYER NAME "cities" DATA "citiesx020" STATUS default TYPE point LABELCACHE on LABELITEM "NAME" LABELMAXSCALE 500000 MAXSCALE 2000000 CLASS NAME "Small Cities" EXPRESSION ([Pop_2000] < 100000) STYLE SYMBOL "Circle" SIZE 3 COLOR 255 0 0 END LABEL TYPE truetype FONT "arialbd" SIZE 7 POSITION auto OUTLINECOLOR 255 255 255 COLOR 0 0 0 END END END ##################################### # State boundaries layer - annotation (for labels) # LAYER NAME "states" DATA "statesp020" STATUS on TYPE annotation LABELCACHE on LABELITEM "STATE" LABELMINSCALE 2000000 CLASS LABEL TYPE truetype FONT "arialbd" SIZE 14 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 200 MINFEATURESIZE 10 END END END END # mapfile Html Codes Third.html Third Map
Map scale:      1:[scale]
Click x,y:        [mapx], [mapy]
Map Extent:  [mapext]
Legend
Navigation
Layers
Pan
Zoom In
Zoom Out
Size
Urban Areas
Lakes
State Boundaries
Roads
third_i.html MapServer Third Map
Jagdesh Singh Head - Forest Resources Information Unit Guyana Forestry Commission 1 Water Street, Kingston, Georgetown, Guyana, South America Tel: + (592) 226-7271/4 (ext 232), Mobile: (592) 641-1451 Fax: + (592) 226-8956 Email: jagdesh_singh@hotmail.com Website: www.forestry.gov.gy _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071011/8110b769/attachment-0001.html From jmckenna at dmsolutions.ca Mon Oct 15 10:38:08 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Mon Oct 15 10:38:20 2007 Subject: [ms4w-users] help with legend template In-Reply-To: References: Message-ID: <47137B50.5020500@dmsolutions.ca> hmmm. Look at section 1.4.5 of the html_legends doc (http://mapserver.gis.umn.edu/docs/howto/html_legend/#class-block)...I would try that example: ************ e.g. opt_flag=14 (shown below) means do not show classes in the legend that are out of scale. [leg_class_html opt_flag=14] ... [/leg_class_html] ************ ceri whitmore wrote: > Hi all > > I'm new to mapserver and would like to use a legend template. > > I've created a template as below: > > The problem i'm having is the visibility flag for the classes is not > working. Classes which are out of scale (maxscale) are still showing up > in the legend. I've done a test and when using the embed option for the > legend these same classes are not showing(which is what i'd expect). > > Any help or ideas would be appreciated. > > thanks > > Ceri > > [leg_header_html] > [/leg_header_html] > [leg_layer_html visibility_flag=15] > [if name=layer_status oper=eq value=1][/if] > [/leg_layer_html] > [leg_class_html visibility_flag=15] > > > > > [/leg_class_html] > [leg_footer_html] >
colspan='2'>[leg_layer_name]
[leg_class_name]
> [/leg_footer_html] > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at dmsolutions.ca Mon Oct 15 10:47:32 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Mon Oct 15 10:47:38 2007 Subject: [ms4w-users] msEvalRegex(): Regular expression error. String () failed expression test. In-Reply-To: References: Message-ID: <47137D84.4030901@dmsolutions.ca> Try the following: 1) Use the shp2img commandline utility (it is included in MS4W) to verify that your mapfile works and that it is not an application problem: C:\ms4w> setenv.bat cd apps\myapp shp2img -m mymap.map -o mymapimage.png -map_debug 3 That utility just takes a mapfile and creates a map image, or reports mapfile errors. 2) Again remove all layers until only the problem layer is left. Or remove ALL layers and see if you still get that error with shp2img, and keep removing other mapfile objects until you don't get an error with shp2img. Jagdesh Singh wrote: > Dear All, > > This is my first question to the mailing list and I am afraid is a > familiar one. I believe Mr. Tony Gangemi last posted the same question > in October 2006, but I am not sure if he has made any progress since. > > I am currently doing the exercises from Bill Kropla?s book ?Beginning > MapServer: Open Source GIS Development?. Like Mr. Gangemi, despite the > book having a slant towards the UNIX environment, I made the necessary > adjustments to the map and html files to suit my windows configuration. > > However, I am stuck at chapter 4 example. When I execute the source code > in IE 6, I received the familiar message ?msEvalRegex(): Regular > expression error. String () failed expression test.? I am not sure what > this mean, since the problem layer is not specified in the error message > returned to IE. > > However, without any luck, I attempted to debug the mapfile by removing > one layer at a time to try to isolate the problem layer, as suggested by > Mr. Jeff McKenna. This did not solve my problem. What I observed though > is that even if the map file has one layer, the same error message is > returned to the browser. I am not sure if it is a problem with the > mapfile or the html file. Hopefully someone else has experienced this > problem and can provide some guidance. I have pasted below, for your > reference, the codes from the mapfile and the html files and the map > layers I am using in the example. > > Look forward to hearing from you. > > Best regards, > > Jag > > MapLayer Source: http://nationalatlas.gov/atlasftp.html_ > > > citiesx020.tar.gz > > _http://nationalatlas.gov/atlasftp.html#citiesx/citiesx020.tar.gz__ > > roadtrl020.tar.gz > > _http://nationalatlas.gov/atlasftp.html#citiesx/roadtrl020.tar.gz__ > > statesp020.tar.gz > > _http://nationalatlas.gov/atlasftp.html#citiesx/statesp020.tar.gz__ > > hydrogm020.tar.gz > > _http://nationalatlas.gov/atlasftp.html#citiesx/hydrogm020.tar.gz_ > > urbanap020.tar.gz > > http://nationalatlas.gov/atlasftp.html#citiesx/urbanap020.tar.gz_ > > *_MapFile_* > > *_third.map_* > > > > # This is our third map file > > NAME "third" > > UNITS DD > > EXTENT -180.00 0.00 -60.00 90.00 > > SIZE 640 480 > > IMAGECOLOR 189 202 222 > > IMAGETYPE PNG > > SHAPEPATH "/ms4w/apps/firstmap/mapdata/" > > FONTSET "/ms4w/apps/firstmap/fonts/fonts.txt" > > ##################################### > > # Symbol for drawing fat lines > > # > > SYMBOL > > NAME "BigLine" > > TYPE ELLIPSE > > POINTS 1 1 END > > END > > ##################################### > > # Symbol for drawing dashed lines > > # > > SYMBOL > > NAME "DashedLine" > > TYPE ELLIPSE > > POINTS 1 1 END > > STYLE 10 10 END > > END > > ##################################### > > # Symbol for drawing spots > > # > > SYMBOL > > NAME "Circle" > > FILLED true > > TYPE ellipse > > POINTS 1 1 END > > END > > ##################################### > > # Web object > > # > > WEB > > TEMPLATE "c:/ms4w/apps/firstmap/htdocs/third.html" > > IMAGEPATH "c:/ms4w/apps/firstmap/tmp" > > IMAGEURL "c:/ms4w/tmp/" > > END > > ##################################### > > # Reference map > > # > > REFERENCE > > IMAGE "c:/ms4w/apps/firstmap/htdocs/third_usaref.gif" > > SIZE 300 225 > > EXTENT -180.00 0.00 -60.00 90.00 > > STATUS ON > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > END > > ##################################### > > # Scalebar > > # > > SCALEBAR > > LABEL > > COLOR 0 0 0 > > ANTIALIAS true > > SIZE small > > END > > POSITION lr > > INTERVALS 5 > > STATUS embed > > SIZE 144 5 > > STYLE 0 > > UNITS miles > > BACKGROUNDCOLOR 255 0 0 > > IMAGECOLOR 255 255 255 > > COLOR 128 128 128 > > OUTLINECOLOR 0 0 255 > > TRANSPARENT off > > END > > ##################################### > > # Legend > > # > > LEGEND > > STATUS on > > IMAGECOLOR 230 230 230 > > LABEL > > TYPE truetype > > FONT "arial" > > COLOR 0 0 0 > > SIZE 10 > > ANTIALIAS true > > END > > END > > ##################################### > > # State boundaries layer - polygon (for shading) > > # > > LAYER > > NAME "states" > > DATA "statesp020" > > STATUS on > > TYPE polygon > > LABELCACHE on > > LABELITEM "STATE" > > CLASS > > STYLE > > COLOR 255 246 189 > > END > > END > > END > > ##################################### > > # State boundaries layer - line (for fat boundary) > > # > > LAYER > > NAME "states" > > DATA "statesp020" > > STATUS on > > TYPE line > > LABELCACHE on > > LABELITEM "STATE" > > CLASS > > NAME "State Line" > > STYLE > > SYMBOL "BigLine" > > SIZE 2 > > COLOR 0 0 0 > > END > > END > > END > > ##################################### > > # Urban areas layer > > # > > LAYER > > NAME "urbanareas" > > DATA "urbanap020" > > STATUS on > > TYPE polygon > > LABELCACHE on > > LABELITEM "NAME" > > MAXSCALE 1999999 > > CLASS > > STYLE > > COLOR 212 192 100 > > OUTLINECOLOR 0 0 0 > > END > > LABEL > > TYPE truetype > > FONT "arialbd" > > SIZE 10 > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > POSITION auto > > END > > END > > END > > ##################################### > > # hydrographic layer - lakes > > # > > LAYER > > NAME "lakes" > > DATA "hydrogp020" > > STATUS on > > TYPE polygon > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "FEATURE" > > CLASS > > EXPRESSION ('[FEATURE]' eq 'Lake') > > STYLE > > SIZE 1 > > COLOR 189 202 222 > > OUTLINECOLOR 0 0 0 > > END > > LABEL > > TYPE truetype > > FONT "arial" > > SIZE 8 > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > MINDISTANCE 100 > > POSITION lr > > MINFEATURESIZE auto > > WRAP ' ' > > END > > END > > END > > ##################################### > > # Road layer - interstates only at large scale > > # > > LAYER > > NAME "interstate1" > > GROUP "roads" > > DATA "roadtrl020" > > STATUS on > > TYPE line > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "FEATURE" > > MINSCALE 7500001 > > CLASS > > NAME "Interstate Hwy" > > EXPRESSION /Limited Access*/ > > STYLE > > SYMBOL "BigLine" > > SIZE 1 > > COLOR 0 0 0 > > END > > LABEL > > TYPE truetype > > FONT "arial" > > SIZE 8 > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > MINDISTANCE 200 > > POSITION auto > > ANGLE auto > > MINFEATURESIZE 50 > > END > > END > > END > > ##################################### > > # Road layer - interstates only > > # > > LAYER > > NAME "interstate2" > > GROUP "roads" > > DATA "roadtrl020" > > STATUS on > > TYPE line > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "Feature" > > MAXSCALE 7500000 > > CLASS > > NAME "Interstate Hwy" > > EXPRESSION /Limited Access*/ > > STYLE > > SYMBOL "BigLine" > > SIZE 3 > > COLOR 0 0 0 > > END > > OVERLAYSYMBOL "DashedLine" > > OVERLAYSIZE 1 > > OVERLAYCOLOR 255 255 255 > > # TEXT ([FEATURE],[NAME]) > > LABEL > > TYPE truetype > > FONT "arial" > > SIZE 8 > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > MINDISTANCE 200 > > POSITION auto > > ANGLE auto > > MINFEATURESIZE 50 > > WRAP ' ' > > END > > END > > END > > ##################################### > > # Road layer - principal highways > > # > > LAYER > > NAME "principal" > > GROUP "roads" > > DATA "roadtrl020" > > STATUS on > > TYPE line > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "Feature" > > MAXSCALE 4000000 > > CLASS > > NAME "Principal Hwy" > > EXPRESSION /Principal Highway*/ > > STYLE > > SYMBOL "BigLine" > > SIZE 3 > > COLOR 197 129 65 > > END > > OVERLAYSYMBOL "DashedLine" > > OVERLAYSIZE 1 > > OVERLAYCOLOR 255 255 255 > > # TEXT ([FEATURE],[NAME]) > > LABEL > > TYPE truetype > > FONT "arial" > > MINFEATURESIZE 50 > > MINDISTANCE 100 > > ANGLE auto > > COLOR 0 0 0 > > SIZE 8 > > END > > END > > END > > ##################################### > > # Road layer - other through highways > > # > > LAYER > > NAME "thru" > > GROUP "roads" > > DATA "roadtrl020" > > STATUS on > > TYPE line > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "Feature" > > MAXSCALE 1000000 > > CLASS > > NAME "Through Hwy" > > EXPRESSION /Other Through*/ > > STYLE > > SYMBOL "BigLine" > > SIZE 3 > > COLOR 197 129 65 > > END > > OVERLAYSYMBOL "DashedLine" > > OVERLAYSIZE 1 > > OVERLAYCOLOR 0 255 0 > > LABEL > > TYPE truetype > > FONT "arial" > > MINFEATURESIZE 100 > > MINDISTANCE 100 > > ANGLE auto > > COLOR 0 0 0 > > SIZE 8 > > END > > END > > END > > ##################################### > > # Road layer - other highways > > # > > LAYER > > NAME "other" > > GROUP "roads" > > DATA "roadtrl020" > > STATUS on > > TYPE line > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "FEATURE" > > MAXSCALE 500000 > > CLASS > > NAME "Other Hwy" > > EXPRESSION /Other Highway*/ > > STYLE > > SYMBOL "BigLine" > > SIZE 2 > > COLOR 197 129 65 > > END > > LABEL > > TYPE truetype > > FONT "arial" > > ANGLE auto # requires ttfonts > > MINFEATURESIZE 100 > > MINDISTANCE 100 > > ANGLE auto > > COLOR 0 0 0 > > SIZE 6 > > END > > END > > END > > ##################################### > > # Hydrographic layer - streams & rivers > > # > > LAYER > > NAME "rivers" > > DATA "hydrogl020" > > STATUS DEFAULT > > TYPE line > > LABELCACHE on > > LABELITEM "NAME" > > CLASSITEM "FEATURE" > > MAXSCALE 1000000 > > CLASS > > EXPRESSION ('[FEATURE]' eq 'Stream') > > STYLE > > SYMBOL "BigLine" > > SIZE 1 > > COLOR 156 182 205 > > END > > LABEL > > TYPE truetype > > FONT "arial" > > COLOR 0 0 0 > > ANGLE auto > > SIZE 7 > > ANTIALIAS true > > END > > END > > END > > ##################################### > > # Cities layer - State capitals and cities pop. > 1000000 > > # > > LAYER > > NAME "majorcities" > > DATA "citiesx020" > > STATUS default > > TYPE point > > LABELITEM "NAME" > > LABELCACHE on > > LABELMAXSCALE 15000000 > > CLASSITEM "FEATURE" > > MINSCALE 2000000 > > CLASS > > NAME "State Capitals" > > EXPRESSION /State*/ > > STYLE > > SYMBOL "Circle" > > SIZE 6 > > COLOR 0 255 0 > > END > > LABEL > > TYPE truetype > > FONT "arialbd" > > SIZE 9 > > POSITION auto > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > END > > END > > CLASS > > EXPRESSION ([Pop_2000] > 1000000) > > NAME "Major Cities" > > STYLE > > SYMBOL "Circle" > > SIZE 10 > > COLOR 255 0 0 > > END > > LABEL > > TYPE truetype > > FONT "arialbd" > > SIZE 10 > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > POSITION auto > > END > > END > > END > > ##################################### > > # Cities layer - Large cities, pop. < 1000000 > > # > > LAYER > > NAME "largecities" > > DATA "citiesx020" > > STATUS default > > TYPE point > > LABELCACHE on > > LABELITEM "NAME" > > MINSCALE 2000000 > > CLASS > > EXPRESSION(([Pop_2000]>100000)and([Pop_2000]<=1000000)) > > NAME "Cities" > > STYLE > > SYMBOL "Circle" > > SIZE 4 > > COLOR 255 0 0 > > BACKGROUNDCOLOR 255 0 0 > > END > > LABEL > > TYPE truetype > > FONT "arialbd" > > SIZE 8 > > POSITION auto > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > END > > END > > END > > ##################################### > > # City layer - Cities > > LAYER > > NAME "cities" > > DATA "citiesx020" > > STATUS default > > TYPE point > > LABELCACHE on > > LABELITEM "NAME" > > LABELMAXSCALE 500000 > > MAXSCALE 2000000 > > CLASS > > NAME "Small Cities" > > EXPRESSION ([Pop_2000] < 100000) > > STYLE > > SYMBOL "Circle" > > SIZE 3 > > COLOR 255 0 0 > > END > > LABEL > > TYPE truetype > > FONT "arialbd" > > SIZE 7 > > POSITION auto > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > END > > END > > END > > ##################################### > > # State boundaries layer - annotation (for labels) > > # > > LAYER > > NAME "states" > > DATA "statesp020" > > STATUS on > > TYPE annotation > > LABELCACHE on > > LABELITEM "STATE" > > LABELMINSCALE 2000000 > > CLASS > > LABEL > > TYPE truetype > > FONT "arialbd" > > SIZE 14 > > OUTLINECOLOR 255 255 255 > > COLOR 0 0 0 > > MINDISTANCE 200 > > MINFEATURESIZE 10 > > END > > END > > END > > END # mapfile > > *_Html Codes_* > > *_Third.html_* > > > > Third Map > > > >
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
> > > width=640 height=480 border=2> > > > > > >
> > Map scale:      1:[scale]
> > Click x,y:        [mapx], [mapy]
> > Map Extent:  [mapext]
Legend
Navigation
Layers
> > > > Pan
> > > > Zoom In
> > > > Zoom Out
> > > > Size
> >
> >
> > > [urbanareas_check]> > > Urban Areas
> > > > Lakes
> > > > State Boundaries
> > > > Roads
> >
> > > > > > > > > > value="[map_web_imagepath]"> > >
> > > > > > > *_third_i.html_* > > > > > MapServer Third Map > > > >
> > > > > > value=""c:/ms4w/apps/firstmap/htdocs/third.map"> > > > > > > > > > value="urbanareas lakes states roads capitals"> > >
> > > > > > > Jagdesh Singh > > Head - Forest Resources Information Unit > > Guyana Forestry Commission > > 1 Water Street, Kingston, Georgetown, > > Guyana, South America > > Tel: + (592) 226-7271/4 (ext 232), Mobile: (592) 641-1451 > > Fax: + (592) 226-8956 > > Email: jagdesh_singh@hotmail.com > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at dmsolutions.ca Mon Oct 15 13:01:09 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Mon Oct 15 13:01:18 2007 Subject: [ms4w-users] help with legend template In-Reply-To: References: <47137B50.5020500@dmsolutions.ca> Message-ID: <47139CD5.1000309@dmsolutions.ca> First, always respond to the mailing list...or if you want my direct support you can purchase a block of time (http://www.dmsolutions.ca/premiere/index.html). It looks to me like your layer setting is overriding the class setting (see the note in section 1.4.5 "Note that using this parameter for the CLASS block has the same effect as using the opt_flag parameter in the LAYER block."). Otherwise maybe someone else on this list has an idea. ceri whitmore wrote: > I had tried that and have just checked again. But with the following > template I get all layers and all classes whether they are on or off and > in or out of scale. > thanks for help. Code below. > > [leg_header_html] > [/leg_header_html] > [leg_layer_html opt_flag=15] > [if name=layer_name oper=neq value=Mask] [/if] > [/leg_layer_html] > [leg_class_html opt_flag=14] > [if name=layer_name oper=neq value=Mask] > > > > > [/if] > [/leg_class_html] > [leg_footer_html] >
colspan='2'>[leg_layer_name]
[leg_class_name]
> [/leg_footer_html] > Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Jessica.Fendos at state.mn.us Mon Oct 15 13:00:34 2007 From: Jessica.Fendos at state.mn.us (Jessica Fendos) Date: Mon Oct 15 13:01:29 2007 Subject: [ms4w-users] Resend- MS4W in IIS Message-ID: Hi list: I am using MS4W package with Chameleon in an IIS environment. Some of my mapping applications will display map images (containing both shapefiles and PostGIS data) in Apache but when I tried to display both types of data in IIS, I got an broken image. It seems that I can display only multiple shapefiles OR only PostGIS data but not both in IIS. In addition, when I tested using a php file, ?php dl("php_mapscript.dll"); $oMap = ms_newMapObj("/ms4w/apps/chameleon/samples/map/world_wms.map"); $oImage = $oMap->draw(); header("Content-type: image/png"); $oImg->saveImage("/ms4w/tmp/ms_tmp/test.png"); ?> I got this error message: The image "http://mapt.deed.state.mn.us:8080/chameleon/samples/test.php";; > cannot be displayed, because it contains errors. However, "The image created by the script is fine when accessed via: http:// mapt.deed.state.mn.us:8080/ms_tmp/test.png" . I am really lost as to how to fix this problem. Could someone please guide me on this? Thank you for your time. Regards, Jessica -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071015/930ec634/attachment.html From jmckenna at dmsolutions.ca Mon Oct 15 13:16:17 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Mon Oct 15 13:16:27 2007 Subject: [ms4w-users] Tilling of map images In-Reply-To: <002a01c80d63$0b3d76c0$f301a8c0@infobase.com> References: <002a01c80d63$0b3d76c0$f301a8c0@infobase.com> Message-ID: <4713A061.70905@dmsolutions.ca> I guess you could join the ka-Map email list and ask there (http://lists.maptools.org/mailman/listinfo/ka-map-users). kusum wrote: > Hii > i m new to mapserver > and my application works in php mapscript > Now i want ti implement tilling in ms4w. > I have studied ka -map and want to implement the same tilling > functionality in my ms4w pmapper application. > I m confused about where to start from > Pls guide. > Thanks in advance. > Kusum > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jagdesh_singh at hotmail.com Fri Oct 19 10:47:21 2007 From: jagdesh_singh at hotmail.com (Jagdesh Singh) Date: Fri Oct 19 10:49:32 2007 Subject: [ms4w-users] re: msEvalRegex(): Regular expression error. String() failed expression test. Message-ID: Hi all, Thanks to all who have responded to my question. Using the shp2img command in ms4w, as suggested by Jeff, I found an error with the font types I have been using in the map file. I managed to sort this and was able to create an image using the shp2img command. Further, I imported the map file into MapLab 2.2.1 and was also able to view and browse the map. However, when I execute the codes in IE 6 I still get the error msEvalRegex(): Regular expression error. String() failed expression test. I am not sure how to sort this or what to do next. So I would be grateful for some guidance on this. Look forward to hearing from you. Best Regards, Jagdesh Jagdesh Singh Head - Forest Resources Information Unit Guyana Forestry Commission 1 Water Street, Kingston, Georgetown, Guyana, South America Tel: + (592) 226-7271/4 (ext 232), Mobile: 641-1451 Fax: + (592) 226-8956 Email: jagdesh@forestry.gov.gy Website: www.forestry.gov.gy _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071019/063cee59/attachment.html From jmckenna at dmsolutions.ca Sun Oct 21 15:39:31 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Sun Oct 21 15:39:38 2007 Subject: [ms4w-users] Resend- MS4W in IIS In-Reply-To: References: Message-ID: <471BAAF3.9020908@dmsolutions.ca> Comments inline: Jessica Fendos wrote: > Hi list: > > I am using MS4W package with Chameleon in an IIS environment. Some > of my mapping applications will display map images (containing both > shapefiles and PostGIS data) in Apache but when I tried to display > both types of data in IIS, I got an broken image. It seems that I > can display only multiple shapefiles OR only PostGIS data but not > both in IIS. I have never come across or heard of such a problem. > In addition, when I tested using a php file, > ?php > > dl("php_mapscript.dll"); > > $oMap = > ms_newMapObj("/ms4w/apps/chameleon/samples/map/world_wms.map"); > $oImage = $oMap->draw(); > header("Content-type: image/png"); > $oImg->saveImage("/ms4w/tmp/ms_tmp/test.png"); > > ?> > I got this error message: The image > "http://mapt.deed.state.mn.us:8080/chameleon/samples/test.php";; > > cannot be displayed, because it contains errors. > However, > "The image created by the script is fine when accessed via: > http:// mapt.deed.state.mn.us:8080/ms_tmp/test.png" . > > I am really lost as to how to fix this problem. Could someone please > guide me on this? Thank you for your time. > Odd. By the way a nice little test script for php/mapscript is included in ms4w at /ms4w/Apache/htdocs/quickmap.php. What happens when you try your mapfile with a shp2img command? -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From astrid.emde at wheregroup.com Mon Oct 22 03:02:15 2007 From: astrid.emde at wheregroup.com (Astrid Emde (WhereGroup)) Date: Mon Oct 22 03:02:49 2007 Subject: [ms4w-users] News: Mapbender is now integrated in MS4W as an additional package Message-ID: <41173.192.168.0.5.1193036535.squirrel@vogon.ccgis.de> Hello, Mapbender is now available as an additional package for MS4W (MapServer for Windows). Mapbender is an OSGeo Project. Mapbender provides interfaces for displaying, navigating and querying OGC OWS services (e.g. WMS, WFS-T, WMC). Mapbender also provides an interface to digitize using WFS-T. The Mapbender framework additionally provides interfaces for user and group administration and management functionality for accessing maps rendered and data served by OGC Open Web Services. Mapbender is implemented in PHP, HTML/JavaScript and XML and needs an administrative database (PostgreSQl,MySQL). To find out more about Mapbender have a look at http://www.mapbender.org If you want to have a look at some Mapbender solutions have a look at the Mapbender Gallery at http://www.mapbender.org/index.php/Mapbender_Gallery. How can you integrate Mapbender to your MS4W installation? Following the link http://www.maptools.org/ms4w/index.phtml?page=downloads.html you can downnload the package and integrate Mapbender easily to your MS4W installation. Folllow the Install Notes (http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapbender.html) to configure Mapbender. Thanks to Jeff McKenna, who assisted me to integrate Mapbender in the MS4W package. You can contact me, if you have any questions or remarks on the Mapbender MS4W integration. For questions concerning Mapbender join the Mapbender mailing lists http://www.mapbender.org/index.php/Mapbender_Mailing_Lists. Hope you will enjoy Mapbender! Best Regards Astrid Emde ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Siemensstra?e 8 D-53121 Bonn Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde@wheregroup.com http://www.wheregroup.com ******************************************** Where2B-Konferenz Die L?sungskonferenz der WhereGroup am 29. November 2007 in Bonn http://www.where2b-conference.com ******************************************** From christoph.baudson at wheregroup.com Mon Oct 22 08:24:05 2007 From: christoph.baudson at wheregroup.com (Christoph Baudson (WhereGroup)) Date: Mon Oct 22 08:25:22 2007 Subject: [ms4w-users] Problem w/ download site Message-ID: <471C9665.8090408@wheregroup.com> Hi there, downloads at http://www.maptools.org/ms4w/index.phtml?page=downloads.html don't seem to work. Or is there a problem at my end? Cheers Christoph -- *************************************** Where2B-Konferenz Die L?sungskonferenz der WhereGroup am 29. November 2007 in Bonn http://www.where2b-conference.com *************************************** _______________________________________ W h e r e G r o u p GmbH & Co. KG Siemensstra?e 8 53121 Bonn Germany Christoph Baudson Anwendungsentwickler Fon: +49 (0)228 / 90 90 38 - 17 Fax: +49 (0)228 / 90 90 38 - 11 olaf.knopp@wheregroup.com http://www.wheregroup.com Amtsgericht Bonn, HRA 6788 _______________________________________ Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Arnulf Christl, Olaf Knopp, Peter Stamm _______________________________________ From jmckenna at dmsolutions.ca Mon Oct 22 10:12:27 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Mon Oct 22 10:12:39 2007 Subject: [ms4w-users] Problem w/ download site In-Reply-To: <471C9665.8090408@wheregroup.com> References: <471C9665.8090408@wheregroup.com> Message-ID: <471CAFCB.6000600@dmsolutions.ca> Thanks for letting us know, it's fixed for now. Apparently this is caused by people using download accelerators which causes too many parallel downloads crashing the server, and we have noticed this happening more frequently recently. Christoph Baudson (WhereGroup) wrote: > Hi there, > > downloads at > > http://www.maptools.org/ms4w/index.phtml?page=downloads.html > > don't seem to work. Or is there a problem at my end? > > Cheers > > Christoph > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From dmorissette at mapgears.com Mon Oct 22 10:34:00 2007 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon Oct 22 10:34:08 2007 Subject: [ms4w-users] Problem w/ download site In-Reply-To: <471CAFCB.6000600@dmsolutions.ca> References: <471C9665.8090408@wheregroup.com> <471CAFCB.6000600@dmsolutions.ca> Message-ID: <471CB4D8.2080701@mapgears.com> Jeff McKenna wrote: > Thanks for letting us know, it's fixed for now. Apparently this is > caused by people using download accelerators which causes too many > parallel downloads crashing the server, and we have noticed this > happening more frequently recently. > Actually the server is not exactly crashing (it would take more than that to take Apache down)... the download accelerators when they are misconfigured will use all available connections, making the site appear as if it's down, but in reality it's just that all available connections are in use. I have pumped up the number of allowed concurrent connections, hopefully that will help. Note that in addition to locking out legitimate users, download accelerators tend to waste bandwidth big time, without any real benefit for the actual user of the download accelerator... so I would discourage the use of download accelerators by anyone who cares about the efficient use of internet resources and the long term availability of free services such as maptools.org. Daniel -- Daniel Morissette http://www.mapgears.com/ From Jessica.Fendos at state.mn.us Mon Oct 22 14:06:32 2007 From: Jessica.Fendos at state.mn.us (Jessica Fendos) Date: Mon Oct 22 14:07:30 2007 Subject: [ms4w-users] Re: Resend - ms4w in IIS - image display problem Message-ID: Thanks Jeff: I tried using the quickmap.php in ms4w/apps/chameleon/htdocs. Same thing occured, if I used http://mapt.deed.state.mn.us:8080/chameleon/quickmap.php (Apache) I got a map image but if I used http://mapt.deed.state.mn.us/chameleon/quickmap.php the image is broken. How can I test with shp2img command? Could you advise? Thanks! Jessica -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071022/4f3f0bbb/attachment.html From jmckenna at dmsolutions.ca Mon Oct 22 14:53:31 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Mon Oct 22 14:53:40 2007 Subject: [ms4w-users] Re: Resend - ms4w in IIS - image display problem In-Reply-To: References: Message-ID: <471CF1AB.5000103@dmsolutions.ca> Jessica Fendos wrote: > > How can I test with shp2img command? Could you advise? > See my response here: http://www.nabble.com/msEvalRegex%28%29%3A-Regular-expression-error.-String-%28%29-failed-expression-test.-tf4627779.html -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From saengpole at yahoo.com Thu Oct 25 15:33:11 2007 From: saengpole at yahoo.com (Krung Saengpole) Date: Thu Oct 25 15:33:16 2007 Subject: [ms4w-users] Error when create annotaion layer in phpmapscript. Message-ID: <482990.61482.qm@web90403.mail.mud.yahoo.com> Hi all, I just used MS4W 2.2.5 for the first time. I created annotation layer by code as: $map=ms_newMapObj(...map file name...); $layer=ms_newLayerObj($map); $layer->set("name", "amp"); $layer->set("data", "ampdata"); $layer->set("type", MS_LAYER_ANNOTAION); $layer->set("status", MS_ON); $layer->set("labelitem", "amp_name"); $class=ms_newClassObj($layer); $class->label->color->setRGB(0,0,0); $class->label->set("type", MS_TRUETYPE); $class->label->set("font", "cordia"); // this is set in fontlist file $class->label->set("size", 14); $class->label->set("position", MS_CC); but when it came to $image=$map->draw(); it showed warnings 9 or 10 sentences like below: Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. in D:\Work\test\area50.php on line 42 ... ... so $image->saveImage(..image file..); was error. But if I created polygon layer with this data it showed as it should. So, I tried to use the above code with previous phpmapscript (not in ms4w suit), php_mapscript_48.dll, it worked. What's wrong with my code for using with ms4w? TIA Krung __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071025/682410db/attachment.html From aberenyi at burken.hu Fri Oct 26 08:27:02 2007 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Fri Oct 26 08:29:13 2007 Subject: [ms4w-users] OGR and DGN: doesn't work Message-ID: <4721DD16.9040407@burken.hu> Hi there, I'm a newbie to ms4w, but I've my maps in DGN format and I want to publish them with mapserver. I've installed and it woks great but if I add a dgn layer to the .map file it doesn't shows anything. If I switch the dgn layer off it shows the remaining layers correct (chameleon). Did I forget to install something? Could someone send me a correct, working map file with DGN layer in it? Thanks in advance, Attila From jmckenna at dmsolutions.ca Fri Oct 26 09:40:24 2007 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Fri Oct 26 09:41:10 2007 Subject: [ms4w-users] OGR and DGN: doesn't work In-Reply-To: <4721DD16.9040407@burken.hu> References: <4721DD16.9040407@burken.hu> Message-ID: <4721EE48.7020003@dmsolutions.ca> You can verify that your ms4w suppports DNG data by executing the following at the commandline: - execute: /ms4w/setenv.bat - execute: ogrinfo --formats - look for a '"DGN" (read/write)' line - now try a shp2img command with your mapfile (see http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) - make sure your dng layer is in the same projection as your other data - possibly remove all other layers. projection objects, and set the map's EXTENT to that DNG layer, and then retry shp2img Mapfile example: http://mapserver.gis.umn.edu/docs/reference/vector_data/dgn Here's more reading on how OGR support DGN files: http://www.gdal.org/ogr/drv_dgn.html have fun. Ber?nyi Attila wrote: > Hi there, > > I'm a newbie to ms4w, but I've my maps in DGN format and I want to > publish them with mapserver. I've installed and it woks great but if I > add a dgn layer to the .map file it doesn't shows anything. If I switch > the dgn layer off it shows the remaining layers correct (chameleon). Did > I forget to install something? > Could someone send me a correct, working map file with DGN layer in it? > > Thanks in advance, > > Attila -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From warmerdam at pobox.com Fri Oct 26 11:57:38 2007 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri Oct 26 09:57:20 2007 Subject: [ms4w-users] OGR and DGN: doesn't work In-Reply-To: <4721EE48.7020003@dmsolutions.ca> References: <4721DD16.9040407@burken.hu> <4721EE48.7020003@dmsolutions.ca> Message-ID: <47220E72.9030602@pobox.com> Jeff McKenna wrote: > You can verify that your ms4w suppports DNG data by executing the > following at the commandline: > - execute: /ms4w/setenv.bat > - execute: ogrinfo --formats > - look for a '"DGN" (read/write)' line > - now try a shp2img command with your mapfile (see > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) > - make sure your dng layer is in the same projection as your other data > - possibly remove all other layers. projection objects, and set the > map's EXTENT to that DNG layer, and then retry shp2img > > Mapfile example: > http://mapserver.gis.umn.edu/docs/reference/vector_data/dgn > > Here's more reading on how OGR support DGN files: > http://www.gdal.org/ogr/drv_dgn.html Attila, The only thing I would add to the above is that while DGN support is standard in OGR, it only supports pre version 8 DGN files, not the modern microstation v8 files. Currently there is no way to directly read v8 files in MapServer or via OGR. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From aberenyi at burken.hu Fri Oct 26 10:19:50 2007 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Fri Oct 26 10:22:09 2007 Subject: [ms4w-users] OGR and DGN: doesn't work In-Reply-To: <47220E72.9030602@pobox.com> References: <4721DD16.9040407@burken.hu> <4721EE48.7020003@dmsolutions.ca> <47220E72.9030602@pobox.com> Message-ID: <4721F786.2040305@burken.hu> Thank you both for the fast response. The key was the version of the dgn files. With v7 files it looks like the mapserver works correct, although the whole map area is white and i don't see my map in the map area...maybe it's because of the false configuration of the .map file? Here it is: # # Start of map file # # Sample map file for a chameleon app. # NAME DEMO STATUS ON SIZE 800 600 SYMBOLSET ../etc/symbols.sym EXTENT -100 -100 100 100 UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt TRANSPARENT FALSE # # Start of web interface definition # WEB #MINSCALE 2000000 #MAXSCALE 50000000 # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" METADATA END END # # Start of reference map # REFERENCE IMAGE images/keymap.gif EXTENT -100 -100 100 100 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 5 STATUS ON END QUERYMAP STYLE HILITE COLOR 255 0 0 END PROJECTION "init=epsg:42304" END # # Start of layer definitions # LAYER NAME dgn TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "kicsi_v7.dgn" STYLEITEM "AUTO" CLASS NAME "teszt" SYMBOL 3 COLOR 0 0 255 END END # Layer END # Map File Any suggestion? Thanks in advance, Attila Frank Warmerdam wote: > Jeff McKenna wrote: >> You can verify that your ms4w suppports DNG data by executing the >> following at the commandline: >> - execute: /ms4w/setenv.bat >> - execute: ogrinfo --formats >> - look for a '"DGN" (read/write)' line >> - now try a shp2img command with your mapfile (see >> http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) >> - make sure your dng layer is in the same projection as your other data >> - possibly remove all other layers. projection objects, and set >> the map's EXTENT to that DNG layer, and then retry shp2img >> >> Mapfile example: >> http://mapserver.gis.umn.edu/docs/reference/vector_data/dgn >> >> Here's more reading on how OGR support DGN files: >> http://www.gdal.org/ogr/drv_dgn.html > > Attila, > > The only thing I would add to the above is that while DGN support is > standard > in OGR, it only supports pre version 8 DGN files, not the modern > microstation > v8 files. Currently there is no way to directly read v8 files in > MapServer > or via OGR. > > Best regards, From dilusha2001 at yahoo.com Tue Oct 30 02:56:33 2007 From: dilusha2001 at yahoo.com (Dilusha) Date: Tue Oct 30 02:57:00 2007 Subject: [ms4w-users] pan the map with ASP.NET Message-ID: <199928.10971.qm@web33414.mail.mud.yahoo.com> Hi list, I'm using ms4w with ASP.NET in IIS. My map displays correctly and zoom function is also work nicely. But I cannot find a way to pan the map smoothly. if anyone tried this please help me. If anyone can provide with sample code that will be a great help. Thank you, Dilusha __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071029/ecbb9aaa/attachment.html From armin.waespy at lubw.bwl.de Tue Oct 30 11:37:25 2007 From: armin.waespy at lubw.bwl.de (=?UTF-8?Q?Armin=20W=C3=A4spy?=) Date: Tue Oct 30 11:38:44 2007 Subject: [ms4w-users] Prolbem with SDE connection Message-ID: <47275DC5.89E7.004B.0@lubw.bwl.de> hi list, i'm trying to connect to a SDE. Followed the instructions in the README_install.txt --> Steps to Enable SDE 9.1 and 9.2 Support in MS4W's MapServer. But it don't work. get this error: msDrawMap(): Image handling error. Failed to draw layer named 'states'. loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll msGetSymbol(): General error message. Can't load requested dynamic library: C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll the dlls in the right place... any help? ---------------------------------- LAYER NAME states TYPE POLYGON CONNECTION "sdename,port:5151,sde,user,pass" CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" DATA "ADMIN.UIS_0100000006700001,polygon,SDE.DEFAULT" FILTER "where MYCOLUMN is not NULL" PROCESSING "QUERYORDER=ATTRIBUTE" # <-- MapServer 4.10 and above # Within database one-to-one join support PROCESSING "JOINTABLE=SDE_MASTER.GEOSERVWRITE.JOINTABLE" # <-- MapServer 5.0 and above CLASSITEM "SDE_MASTER.GEOSERVWRITE.JOINTABLE.VAL" # <-- MapServer 5.0 and above FILTER "SDE_MASTER.GEOSERVWRITE.JOINTABLE.AQ_TAG=SDE_MASTER.GEOSERVWRITE.JOINTESTLAYER.AQ_TAG" #<-- MapServer 5.0 and above # ObjectID column manipulation PROCESSING "OBJECTID=OBJECTID" # <-- MapServer 5.0 and above #TEMPLATE '/where/the/template/file/is/located' CLASS STYLE SYMBOL 0 SIZE 3 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END #end SDE Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071030/c54fa0db/attachment.html From IANT at napier.govt.nz Tue Oct 30 22:36:01 2007 From: IANT at napier.govt.nz (Ian Tidy) Date: Tue Oct 30 22:40:38 2007 Subject: [ms4w-users] Apache SSL Module Message-ID: Hi All, Where can I get the mod_ssl.so file for MapServer? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant@napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071031/8eda5186/attachment.html From Gerard.Troost at sovon.nl Wed Oct 31 03:46:11 2007 From: Gerard.Troost at sovon.nl (Gerard Troost) Date: Wed Oct 31 03:45:27 2007 Subject: [ms4w-users] Apache SSL Module In-Reply-To: Message-ID: I am also interested in this answer. A search one month ago doesnt get me the answer. Mapserver deeds to be compiled with SSL-support, and in MS4W it is not (why not??) Regards Gerard ________________________________ From: ms4w-users-bounces@lists.maptools.org [mailto:ms4w-users-bounces@lists.maptools.org] On Behalf Of Ian Tidy Sent: woensdag 31 oktober 2007 3:36 To: ms4w-users@lists.maptools.org Subject: [ms4w-users] Apache SSL Module Hi All, Where can I get the mod_ssl.so file for MapServer? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext 8115 Fax +64-6-834-4195 mailto:iant@napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071031/9ac959a6/attachment.html