[mapserver-users] mapserver issues...(new user)
Hi all, I'm a new user to mapserver and having some issues with the mapfile that I have created from QGIS. Basically I am trying to create a map of Canada with major cities, highways, expressways, province names. The map outputs fine but when I change anything in the mapfile it doesnt work. I need to change the projection to a Lambert Conformal Conic, be able to display the highways if the layer is visible, the highways being only visible if zoomed in past 1:250, provinces labeled with the calibri font. For the major cities, I want to use a S3 symbol (green star) found in a symbol folder where all of the data is located while using the symbols.sty style sheet while only visible past 1:250 and labeled when zoomed in past 1:100. When I click any of the checkboxes that I created to help zoom in or out they work fine but when I click any of the checkboxes for the cities, provinces, roads etc it doesnt load. Here is my mapfile in green so I can seperate the text better. # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 0 0 255 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/"# Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/"# WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END#Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar LAYER NAME 'province_dd' TYPE POLYGON DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/province_dd.shp' METADATA 'ows_title' 'province_dd' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'NAME_ENG' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 30 158 173 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Alberta" EXPRESSION "Alberta" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 103 48 123 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = British Columbia" EXPRESSION "British Columbia" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 157 204 18 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Manitoba" EXPRESSION "Manitoba" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 132 187 236 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = New Brunswick" EXPRESSION "New Brunswick" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 190 235 139 END LABEL FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END END CLASS NAME "NAME_ENG = Newfoundl
Re: [mapserver-users] mapserver issues...(new user)
Thanks for the help but I'm still having difficulty! could someone send me a revised map file to show me what needs to be changed as I'm still a bit confused on where the changes need to be made on the map file! This way it will help me learning the process more! Thanks Mark Sent from my BlackBerry® powered by Virgin Mobile. -Original Message- From: Stephen Woodbridge Date: Fri, 15 Mar 2013 23:06:09 To: Subject: Re: [mapserver-users] mapserver issues...(new user) If you change the project in the MAP section of the mapfile you also need to change the UNITS and EXTENT to be consistent with the projection units. You current mapfile has proj=longlat which should have UNITS DD (for decimal degrees) and you EXTENT is consistent with that. -Steve W On 3/15/2013 5:58 PM, Mark Mirrlees wrote: > Hi all, > > I'm a new user to mapserver and having some issues with the mapfile that > I have created from QGIS. > > Basically I am trying to create a map of Canada with major cities, > highways, expressways, province names. The map outputs fine but when I > change anything in the mapfile it doesnt work. I need to change the > projection to a Lambert Conformal Conic, be able to display the highways > if the layer is visible, the highways being only visible if zoomed in > past 1:250, provinces labeled with the calibri font. For the major > cities, I want to use a S3 symbol (green star) found in a symbol folder > where all of the data is located while using the symbols.sty style sheet > while only visible past 1:250 and labeled when zoomed in past > 1:100. When I click any of the checkboxes that I created to help > zoom in or out they work fine but when I click any of the checkboxes for > the cities, provinces, roads etc it doesnt load. > > Here is my mapfile in green so I can seperate the text better. > > # Map file created from QGIS project file > C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -143.210462 39.001401 -50.461045 85.911094 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 0 255 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' > 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' > END > > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END # End for scalebar > > LAYER > NAME 'province_dd' > TYPE POLYGON > DUMP false > EXTENT -143.210462 39.001401 -50.461045 85.911094 > DATA '../data/province_dd.shp' > METADATA > 'ows_title' 'province_dd' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'datum=WGS84' > 'no_defs' > END > CLASSITEM 'NAME_ENG' > CLASS > NAME "default" > EXPRESSION "" > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 30 158 173 >
[mapserver-users] lcc projection doesnt output map
Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] lcc projection doesnt output map
I dont have linux, im using windows based mapserver...plus I can't figure out how to work the conversion. So i'm not sure what the numbers should be and do I have to change anything in what I have bolded? PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=-143" "lon_0=-39" "lat_1=-50" "lat_2=85" "datum=NAD83" "units=m" "no_defs" > Date: Sun, 17 Mar 2013 20:39:50 -0400 > From: wood...@swoodbridge.com > To: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] lcc projection doesnt output map > > Mark, > > You need to change > > UNITS DD > to > UNITS METERS > > and you need to change > > EXTENT -143 39 -50 85 > to > EXTENT ... > > where ... is the longlat coordinates above converted to their equivalent > values in LCC > > On linux you might from cs2cs command helpful, you might also find some > online projection conversion utilities. > > -Steve > > On 3/17/2013 8:26 PM, Mark Mirrlees wrote: > > Hi all, > > > > when I try to edit my projection to a LCC from a UTM in my mapfile my > > map fails to show up when I launch my mapserver link. > > > > Here is the first part of the mapfile... > > > > BEFORE: > > > > MAP > >NAME "QGIS-MAP" > ># Map image size > >SIZE 500 500 > >UNITS meters > >EXTENT -143 39 -50 85 > >FONTSET "/wwwroot/fonts/fontset.txt" > >SYMBOLSET "/wwwroot/symbols/symbols.sty" > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > >END > > > > AFTER: > > > > MAP > >NAME "QGIS-MAP" > ># Map image size > >SIZE 500 500 > >UNITS dd > >EXTENT -143 39 -50 85 > >FONTSET "/wwwroot/fonts/fontset.txt" > >SYMBOLSET "/wwwroot/symbols/symbols.sty" > >PROJECTION > > "proj=lcc" > > "ellps=GRS80" > > "lat_0=49" > > "lon_0=-95" > > "lat_1=49" > > "lat_2=77" > > "datum=NAD83" > > "units=m" > > "no_defs" > >END > > > > I'm not sure how to fix this...any suggestions? As i'm still fairly new > > at this. > > Mark > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] lcc projection doesnt output map
Ok so i managed to get the numbers somewhat converted...but when I click my start mapserver button it doesnt output my map...any suggestions. MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END If anyone needs the rest of the code let me know...thanks. From: mmirrl...@hotmail.com To: mapserver-users@lists.osgeo.org Date: Sun, 17 Mar 2013 20:26:55 -0400 Subject: [mapserver-users] lcc projection doesnt output map Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] lcc projection doesnt output map
How do I get those numbers? Sorry for all of the questions...as i'm still fairly new... From: steve.l...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] lcc projection doesnt output map Date: Mon, 18 Mar 2013 17:28:36 + Your extents need to be given in the projection you set. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Mark Mirrlees [mmirrl...@hotmail.com] Sent: Monday, March 18, 2013 12:15 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] lcc projection doesnt output map Ok so i managed to get the numbers somewhat converted...but when I click my start mapserver button it doesnt output my map...any suggestions. MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143.210462 39.001401 -50.461045 85.911094 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END If anyone needs the rest of the code let me know...thanks. From: mmirrl...@hotmail.com To: mapserver-users@lists.osgeo.org Date: Sun, 17 Mar 2013 20:26:55 -0400 Subject: [mapserver-users] lcc projection doesnt output map Hi all, when I try to edit my projection to a LCC from a UTM in my mapfile my map fails to show up when I launch my mapserver link. Here is the first part of the mapfile... BEFORE: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END AFTER: MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS dd EXTENT -143 39 -50 85 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END I'm not sure how to fix this...any suggestions? As i'm still fairly new at this. Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] label issues...
Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:100 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 100 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks,Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] label issues...
Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks,MarkFrom: david.fawc...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 + Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:100 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 100 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] label issues...
Ok so if I understand this is what it should look like? (stuff thats been added is in red) Please correct this if i'm wrong as I am still having a bit of problems... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 100 TRANSPARENCY 100CLASSLABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS falseENDPROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END From: david.fawc...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 20:05:55 + You want to create a class in your layer and place it there. http://mapserver.org/mapfile/class.html Like this: MAP LAYER CLASS LABEL END # end of label END # end of class END #end of layer END #end of map From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Monday, March 18, 2013 3:00 PM To: Fawcett, David (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] label issues... Ok so I want to stick this code into the .map file... where should it be placed in the section that i bolded? LABEL COLOR 255 255 255 FONT "arial" TYPE "truetype" SIZE 10 ANGLE 0 POSITION cc FORCE false ANTIALIAS false PARTIALS false END Thanks, Mark From: david.fawc...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] label issues... Date: Mon, 18 Mar 2013 19:51:42 + Mark, You will want to add a LABEL block to your mapfile. http://mapserver.org/mapfile/label.html I would also comment out the maxscale until you get the labels working. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Monday, March 18, 2013 2:48 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] label issues... Hi all, Ok so now I have a new problem with the labeling. I would like to get my labels to start showing up at a scale of 1:100 but nothing is working... here is a snippet of my mapfile... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALE 100 TRANSPARENCY 100 CLASSITEM 'NAME' LABELITEM 'NAME' PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END Thanks, Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] label issues...
Hi there, Ok so I have revised the mapfile to this... LAYER NAME 'mjcities' TYPE POINT DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS default MAXSCALEDENOM 100 TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 15.0 OUTLINECOLOR 0 0 0 COLOR 182 109 194 END LABEL COLOR 255 255 255 FONT "arial" TYPE truetype SIZE 10 ANGLE 0 POSITION cc FORCE false PARTIALS false END But when I zoom into my layers I see the symbols that were created but the labels still don't show up...any suggestions? Thanks for the help everyone as I do appreciate it!Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] label issues...
Hi Steve, Thanks for yor help! I managed to figure it out what I needed to do to make changes to the different font etc, and the main thing was I forgot to put "LABELNAME" near the top of the code as now it works! Mark > Date: Mon, 18 Mar 2013 18:21:04 -0400 > From: wood...@swoodbridge.com > To: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] label issues... > > So you want you labels to be white? > > What color is your background? > > Do you have a FONTSET "fonts.txt" that maps arial to a font. I assume > you probably do as it is not throwing an error about it. > > Also you can get some debug info if you add to the MAP section: > > CONFIG MS_ERRORFILE "stderr" > DEBUG 5 > > Then when you render you map look in the apache error.log file. Or try > it with: > > shp2img -m mymapfile.map -o image.png > > There are lots of other parameters, but that should be enough to get > some output. > > -Steve > > On 3/18/2013 5:30 PM, Mark Mirrlees wrote: > > Hi there, > > > > Ok so I have revised the mapfile to this... > > > >LAYER > > NAME 'mjcities' > > TYPE POINT > > DUMP false > >EXTENT -143.210462 39.001401 -50.461045 85.911094 > > DATA '../data/mjcities.shp' > > METADATA > >'ows_title' 'mjcities' > > END > > STATUS default > > MAXSCALEDENOM 100 > > TRANSPARENCY 100 > > PROJECTION > > 'proj=longlat' > > 'datum=WGS84' > > 'no_defs' > > END > > CLASS > > NAME 'mjcities' > > STYLE > > SYMBOL "circle" > > SIZE 15.0 > > OUTLINECOLOR 0 0 0 > > COLOR 182 109 194 > > END > > LABEL > > COLOR 255 255 255 > > FONT "arial" > > TYPE truetype > > SIZE 10 > > ANGLE 0 > > POSITION cc > > FORCE false > > PARTIALS false > > END > > > > But when I zoom into my layers I see the symbols that were created but > > the labels still don't show up...any suggestions? > > > > Thanks for the help everyone as I do appreciate it! > > > > Mark > > > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] query problems
Hey all, One last issue (well for know anyway)... I want to create a basic query so when I open the query I am able to select the major roads and expressways from the mjrroads layer that was created! I have already created the header and footers but not sure where to stick the particular code in the global.map file that contains the headers and footers... Here is my code.# Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -240 -90 310 400 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END # Background color for the map canvas -- change as desired IMAGECOLOR 0 100 250 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/"# Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/"# WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END#Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar QUERYMAP STATUS ON # sets the map to be queryable STYLE HILITE # the selected object is highligthed END # End for QueryMap WEB TEMPLATE global.html IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER"/maps/M_Mirrlees_assign3/header.html" FOOTER"maps/M_Mirrlees_assign3/footer.html" EMPTY "/maps/M_Mirrlees_Assign3/blank.html" END #End for WEB LAYER NAME 'mjrroads' TYPE LINE DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjrroads.shp' METADATA 'ows_title' 'mjrroads' END STATUS default TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'TYPE' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 COLOR 201 157 32 END END CLASS NAME "TYPE = Expressway" EXPRESSION "Expressway" STYLE WIDTH 2.0 COLOR 255 0 0 END END CLASS NAME "TYPE = Primary Highway" EXPRESSION "Primary Highway" MAXSCALEDENOM 250 STYLE WIDTH 1.0 COLOR 0 0 0 END END END I must apologize for all the questions, as i'm still fairly new at this but everyone who has taken the time to help me is quite appreciated as this is making a lot of sense now. Thanks,Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] query creation issues
Hello everyone, I'm trying to create a query so I can query the roads/expressways from the map. I'm pretty sure I have created the headers and footers correctly but not sure...regardless i'm not entirely too sure where to stick the particular code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark # Map file created from QGIS project file C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs # Edit this file to customize for your map interface # (Created with PyQgis MapServer Export plugin) MAP NAME "QGIS-MAP" # Map image size SIZE 500 500 UNITS meters EXTENT -240 -90 310 400 FONTSET "/wwwroot/fonts/fontset.txt" SYMBOLSET "/wwwroot/symbols/symbols.sty" PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" "datum=NAD83" "units=m" "no_defs" END # Background color for the map canvas -- change as desired IMAGECOLOR 0 100 250 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "/ms4w/tmp/ms_tmp/" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'C:/wwwroot/M_Mirrlees_Assign3/global.html' END SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # End for scalebar QUERYMAP STATUS ON # sets the map to be queryable STYLE HILITE # the selected object is highligthed END # End for QueryMap WEB TEMPLATE global.html IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER"/maps/M_Mirrlees_assign3/header.html" FOOTER"maps/M_Mirrlees_assign3/footer.html" EMPTY "/maps/M_Mirrlees_Assign3/blank.html" END #End for WEB LAYER NAME 'mjrroads' TYPE LINE DUMP false EXTENT -143.210462 39.001401 -50.461045 85.911094 DATA '../data/mjrroads.shp' METADATA 'ows_title' 'mjrroads' END STATUS default TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASSITEM 'TYPE' CLASS NAME "default" EXPRESSION "" STYLE WIDTH 0.91 COLOR 201 157 32 END END CLASS NAME "TYPE = Expressway" EXPRESSION "Expressway" STYLE WIDTH 2.0 COLOR 255 0 0 END END CLASS NAME "TYPE = Primary Highway" EXPRESSION "Primary Highway" MAXSCALEDENOM 250 STYLE WIDTH 1.0 COLOR 0 0 0 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] query creation issues
Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below Layer: Major Roads Name Type As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the and tags. Thanks,Mark> From: steve.l...@state.mn.us > To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 + > > Hi Mark: Personally I'd steer you to the simplified query templates as > described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from > presentation. No more header/footer's. Plus you can have multiple > presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no > TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use > qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template: > > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the > map. I'm pretty sure I have created the headers and footers correctly but not > sure...regardless i'm not entirely too sure where to stick the particular > code in my .map file (shown below). I have bolded the code that I'm trying to > incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file > C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -240 -90 310 400 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 0 100 250 > IMAGEQUALITY 95 > IMAGETYPE agg > OUTPUTFORMAT > NAME agg > DRIVER AGG/PNG > IMAGEMODE RGB > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "/ms4w/tmp/ms_tmp/" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'QGIS-MAP' > 'ows_onlineresource' > 'localhost.com/cgi-bin/mapserv.exe?map=C:/wwwroot/M_Mirrlees_Assign3/global.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer setti
Re: [mapserver-users] query creation issues
Hi Steve, Unfortunately that didn't work! But I did manage to get the ID chracteristic outputted as I forgot to include that previously. As when I went to edit the query.html page it shows this ID Name Type 1275 [name] [type] Here is the code that is causing issues for me... [shpidx] [name] [type] While this is the code for the header... Layer: Major Roads ID Name Type As what i'm trying to do is get the name (name of road outputted) and the type (either expressway or major road) Thanks,MarkFrom: steve.l...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:22:29 + You need to refer to the attributes next… [NAME][TYPE] Steve From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below Layer: Major Roads Name Type As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the and tags. Thanks, Mark > From: steve.l...@state.mn.us > To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 + > > Hi Mark: Personally I'd steer you to the simplified query templates as > described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from > presentation. No more header/footer's. Plus you can have multiple > presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no > TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use > qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template: > > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/expressways from the > map. I'm pretty sure I have created the headers and footers correctly but not > sure...regardless i'm not entirely too sure where to stick the particular > code in my .map file (shown below). I have bolded the code that I'm trying to incorporate into the .map file but not sure why it's not working. Thanks Mark > > # Map file created from QGIS project file > C:/wwwroot/M_Mirrlees_Assign3/markassign3.qgs > # Edit this file to customize for your map interface > # (Created with PyQgis MapServer Export plugin) > MAP > NAME "QGIS-MAP" > # Map image size > SIZE 500 500 > UNITS meters > EXTENT -240 -90 310 400 > FONTSET "/wwwroot/fonts/fontset.txt" > SYMBOLSET "/wwwroot/symbols/symbols.sty" > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > "datum=NAD83" > "units=m" > "no_defs" > END > # Background color for the map canvas -- change as desired &g
Re: [mapserver-users] query creation issues
Hi there, Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... IDNameType1164[name][type] Code from mjrroadsquery.html [shpidx] [name] [type] Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] Code from mjrroads.html Layer: Major Roads ID Name Type All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. Thanks,Mark From: steve.l...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:41:52 + Straight item tags like that ARE case sensitive. Try [item name=”name”] and [item name=”type”] instead. From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Wednesday, March 20, 2013 1:33 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Unfortunately that didn't work! But I did manage to get the ID chracteristic outputted as I forgot to include that previously. As when I went to edit the query.html page it shows this ID Name Type 1275 [name] [type] Here is the code that is causing issues for me... [shpidx] [name] [type] While this is the code for the header... Layer: Major Roads ID Name Type As what i'm trying to do is get the name (name of road outputted) and the type (either expressway or major road) Thanks, Mark From: steve.l...@state.mn.us To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Date: Wed, 20 Mar 2013 18:22:29 + You need to refer to the attributes next… [NAME][TYPE] Steve From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Wednesday, March 20, 2013 12:16 PM To: Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] query creation issues Hi Steve, Thanks for your help. I've managed to get the query outputted. I have a couple of additional questions...after creating my query I need the footer to show the "name" and the "type" (based on the shapefile information), as based on the footer.html below Layer: Major Roads Name Type As when I launch my query it only shows... Name Type Based on readings from the mapserver website, it looks like I have to edit the query.html to make this populated...but not sure where (global.map file?) I can get this information that is supposed to go between the and tags. Thanks, Mark > From: steve.l...@state.mn.us > To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org > Subject: RE: [mapserver-users] query creation issues > Date: Wed, 20 Mar 2013 17:00:47 + > > Hi Mark: Personally I'd steer you to the simplified query templates as > described here: > > http://mapserver.org/development/rfc/ms-rfc-36.html > > This allows you to put everything in one place and better separates data from > presentation. No more header/footer's. Plus you can have multiple > presentations for the same layer. > > That said, the mapfile below doesn't have any queryable layers. There is no > TEMPLATE defined for the one layer that is present. > > If you want to use the new style templating you'd do something like this: > > 1- Define an output format: > > OUTPUTFORMAT > NAME 'my-template' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html; subtype=compass' > FORMATOPTION "FILE=templates/my-template.html" > END > > 2- Optionally make it the default query format (otherwise you need to use > qformat CGI parameter): > > WEB > QUERYFORMAT 'my-template' > ... > END > > 3- Make layers queryable by adding something like: > > TEMPLATE 'void' > > 4- Write your template, for example my-template.html might look like: > > --- snip --- > > This is my template: > > [resultset layer="mjrroads"] > [feature]Type: [TYPE][/feature] > [/resultset] > > Done presenting layers. > --- snip --- > > Steve > > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees > Sent: Wednesday, March 20, 2013 10:45 AM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] query creation issues > > Hello everyone, > > I'm trying to create a query so I can query the roads/express
Re: [mapserver-users] query creation issues
Does anyone have any updates on how to fix this? As I mentioned before I managed to get the ID field populated whenever I query the map but I need to get the same thing for the name of the road and the type of road... If there is anything else that you require please let me know as this is causing a great deal of confusion why it won't work! Thanks,Mark From: mmirrl...@hotmail.com To: steve.l...@state.mn.us; mapserver-users@lists.osgeo.org Date: Wed, 20 Mar 2013 14:53:57 -0400 Subject: Re: [mapserver-users] query creation issues Hi there, Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... IDNameType1164[name][type] Code from mjrroadsquery.html [shpidx] [name] [type] Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] Code from mjrroads.html Layer: Major Roads ID Name Type All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. Thanks,Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] query creation issues
Hi there I guess I misread that! Thanks for everyone's help! As everything is working the way is needed! Mark Sent from my BlackBerry® powered by Virgin Mobile. -Original Message- From: Worth Lutz Date: Wed, 20 Mar 2013 20:13:52 To: ; Subject: RE: [mapserver-users] query creation issues Did you see this in Steve's email: > layer=mjrroads&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&ma > p=[map]">--> > > [shpidx] > [name] > [type] > Attribute binding is case sensitive. For shapefiles it should be UPPERCASE and for postgis it should be lowercase. Also, you tags are not nested correctly, you have a tr nested inside a tr. :-O -Steve W Your data comes from shapefiles. You need to put "name" and "type" in upper case. [NAME] [TYPE] Worth From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Wednesday, March 20, 2013 3:47 PM To: steve.l...@state.mn.us; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] query creation issues Does anyone have any updates on how to fix this? As I mentioned before I managed to get the ID field populated whenever I query the map but I need to get the same thing for the name of the road and the type of road... If there is anything else that you require please let me know as this is causing a great deal of confusion why it won't work! Thanks, Mark From: mmirrl...@hotmail.com To: steve.l...@state.mn.us; mapserver-users@lists.osgeo.org Date: Wed, 20 Mar 2013 14:53:57 -0400 Subject: Re: [mapserver-users] query creation issues Hi there, Ok I managed to get this outputted...but under the [name] and [type] I need to get these fields populated from the query of the mjrroads... ID Name Type 1164 [name] [type] Code from mjrroadsquery.html [shpidx] [name] [type] Now if I change the [name] to [map] in the mjrroadsquery.html I get the following... ID Name Type 1164 /wwwroot/M_Mirrlees_Assign3/global.map [type] Code from mjrroads.html Layer: Major Roads ID Name Type All i'm trying to do is get the Name and Type fields to be showing the name of the road, and the type of the road. Thanks, Mark No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] output issues (malformed template name)
Hello everyone, I am trying to create a new map and it is causing me some output issues. When I click my launch button to start the application it comes up with this message Content-type: text/html MapServer Message msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). I have attached my mapfile and I do apologize for the length of it. I'm not sure what's wrong in the map file! Any help would be greatly appreciated! Thanks, Mark global.map Description: application/navimap ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] adding gifs to index.html file?
Hi there, Ok I figured that part out! Thanks! Your a lifesaver! I have one other question I'm trying to add images (gif files) to my index.html file. When I place this code into my html file it neglects to show the image... It shows a white box with a black like square in the corner (see image)...not sure what i'm missing...any ideas? Thanks,Mark From: jukka.rahko...@mmmtike.fi To: mapserver-users@lists.osgeo.org Date: Thu, 4 Apr 2013 07:55:41 + Subject: Re: [mapserver-users] output issues (malformed template name) MapServer Message Hi, The immediate reason for the error is that you do not have a referred template file in your system TEMPLATE 'fooOnlyForWMSGetFeatureInfo' For correcting this error you must change TEMPLATE to refer to something that exists. The template file must contain at least the magic string ‘mapserver template’ in the first line of the template http://www.mapserver.org/mapfile/template.html However, I have a feeling that this will not be enough for making your application to launch. If this happens, please tell a bit more about your application, how it works and what happens when you press the launch button. And absolutely add CONFIG "MS_ERRORFILE" "c:\good_errorfile_path_for_you.txt” and DEBUG 5 into your mapfile. This way you will get much valuable information into the errorfile. Comment out the DEBUG line once everything works perfectly for you. The PyQgis MapServer Export plugin should really be fixed. At least it should write the “wms_enable_request” metadata item. Now it does not and no mapfile created with QGis will work for WMS without editing. Plugin is also using the deprecated TRANSPARENCY and I would rather see PROJECTION blocks to use "init=epsg:" but that may not be so important. I am not sure it the plugin writes always SYMBOLSET "/wwwroot/symbols/symbols.sty" and uses SYMBOL "circle" in some type of classes but if it does it can also lead to not working mapfiles. Is there anything else to complain? I can make a QGis feature request once I have collected the most important things to correct and checked that they have not been corrected already. -Jukka Rahkonen- Mark Mirrlees wrote: Hello everyone, I am trying to create a new map and it is causing me some output issues. When I click my launch button to start the application it comes up with this message Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). I have attached my mapfile and I do apologize for the length of it. I'm not sure what's wrong in the map file! Any help would be greatly appreciated! Thanks, Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users <>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] adding gifs to index.html file?
Ok so I've tried both ways and they both output another box. However this time with an X in the corner. See attached. Thanks,Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 19:52:56 -0400 MapServer Message Try: Or if “wwwroot” really is the web root: Worth Lutz From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Thursday, April 04, 2013 7:17 PM To: Rahkonen Jukka; mapserver-users@lists.osgeo.org Subject: [mapserver-users] adding gifs to index.html file? Hi there, Ok I figured that part out! Thanks! Your a lifesaver! I have one other question I'm trying to add images (gif files) to my index.html file. When I place this code into my html file it neglects to show the image... It shows a white box with a black like square in the corner (see image)...not sure what i'm missing...any ideas? Thanks, Mark From: jukka.rahko...@mmmtike.fi To: mapserver-users@lists.osgeo.org Date: Thu, 4 Apr 2013 07:55:41 + Subject: Re: [mapserver-users] output issues (malformed template name) Hi, The immediate reason for the error is that you do not have a referred template file in your system TEMPLATE 'fooOnlyForWMSGetFeatureInfo' For correcting this error you must change TEMPLATE to refer to something that exists. The template file must contain at least the magic string ‘mapserver template’ in the first line of the template http://www.mapserver.org/mapfile/template.html However, I have a feeling that this will not be enough for making your application to launch. If this happens, please tell a bit more about your application, how it works and what happens when you press the launch button. And absolutely add CONFIG "MS_ERRORFILE" "c:\good_errorfile_path_for_you.txt” and DEBUG 5 into your mapfile. This way you will get much valuable information into the errorfile. Comment out the DEBUG line once everything works perfectly for you. The PyQgis MapServer Export plugin should really be fixed. At least it should write the “wms_enable_request” metadata item. Now it does not and no mapfile created with QGis will work for WMS without editing. Plugin is also using the deprecated TRANSPARENCY and I would rather see PROJECTION blocks to use "init=epsg:" but that may not be so important. I am not sure it the plugin writes always SYMBOLSET "/wwwroot/symbols/symbols.sty" and uses SYMBOL "circle" in some type of classes but if it does it can also lead to not working mapfiles. Is there anything else to complain? I can make a QGis feature request once I have collected the most important things to correct and checked that they have not been corrected already. -Jukka Rahkonen- Mark Mirrlees wrote: Hello everyone, I am trying to create a new map and it is causing me some output issues. When I click my launch button to start the application it comes up with this message Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). I have attached my mapfile and I do apologize for the length of it. I'm not sure what's wrong in the map file! Any help would be greatly appreciated! Thanks, Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3267 / Virus Database: 3162/6224 - Release Date: 04/04/13 <>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] adding gifs to index.html file?
Here is my index.html file. !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Mark Mirrlees Assignment 4 http://localhost/maps/M_Mirrlees_Assign4/ is what I type in my internet browser to launch my map. Thanks, Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 20:11:55 -0400 MapServer Message Post the whole index.html here and give me what you are putting into your browser to show the index.html Worth From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Thursday, April 04, 2013 8:02 PM To: Worth Lutz; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Ok so I've tried both ways and they both output another box. However this time with an X in the corner. See attached. Thanks, Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 19:52:56 -0400 Try: Or if “wwwroot” really is the web root: Worth Lutz From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Thursday, April 04, 2013 7:17 PM To: Rahkonen Jukka; mapserver-users@lists.osgeo.org Subject: [mapserver-users] adding gifs to index.html file? Hi there, Ok I figured that part out! Thanks! Your a lifesaver! I have one other question I'm trying to add images (gif files) to my index.html file. When I place this code into my html file it neglects to show the image... It shows a white box with a black like square in the corner (see image)...not sure what i'm missing...any ideas? Thanks, Mark From: jukka.rahko...@mmmtike.fi To: mapserver-users@lists.osgeo.org Date: Thu, 4 Apr 2013 07:55:41 + Subject: Re: [mapserver-users] output issues (malformed template name) Hi, The immediate reason for the error is that you do not have a referred template file in your system TEMPLATE 'fooOnlyForWMSGetFeatureInfo' For correcting this error you must change TEMPLATE to refer to something that exists. The template file must contain at least the magic string ‘mapserver template’ in the first line of the template http://www.mapserver.org/mapfile/template.html However, I have a feeling that this will not be enough for making your application to launch. If this happens, please tell a bit more about your application, how it works and what happens when you press the launch button. And absolutely add CONFIG "MS_ERRORFILE" "c:\good_errorfile_path_for_you.txt” and DEBUG 5 into your mapfile. This way you will get much valuable information into the errorfile. Comment out the DEBUG line once everything works perfectly for you. The PyQgis MapServer Export plugin should really be fixed. At least it should write the “wms_enable_request” metadata item. Now it does not and no mapfile created with QGis will work for WMS without editing. Plugin is also using the deprecated TRANSPARENCY and I would rather see PROJECTION blocks to use "init=epsg:" but that may not be so important. I am not sure it the plugin writes always SYMBOLSET "/wwwroot/symbols/symbols.sty" and uses SYMBOL "circle" in some type of classes but if it does it can also lead to not working mapfiles. Is there anything else to complain? I can make a QGis feature request once I have collected the most important things to correct and checked that they have not been corrected already. -Jukka Rahkonen- Mark Mirrlees wrote: Hello everyone, I am trying to create a new map and it is causing me some output issues. When I click my launch button to start the application it comes up with this message Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). I have attached my mapfile and I do apologize for the length of it. I'm not sure what's wrong in the map file! Any help would be greatly appreciated! Thanks, Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3267 / Virus Database: 3162/6224 - Release Date: 04/04/13 No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3267 / Virus Database: 3162/6224 - Release Date: 04/04/13 ___
Re: [mapserver-users] adding gifs to index.html file?
Hi there, Unfortunately its still not working...is there anything else that you may need to look at? Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 20:24:51 -0400 MapServer Message See changes marked below in red: I think that should do it. Worth From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Thursday, April 04, 2013 8:18 PM To: Worth Lutz; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Here is my index.html file. !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Mark Mirrlees Assignment 4 http://localhost/maps/M_Mirrlees_Assign4/ is what I type in my internet browser to launch my map. Thanks, Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 20:11:55 -0400 Post the whole index.html here and give me what you are putting into your browser to show the index.html Worth From: Mark Mirrlees [mailto:mmirrl...@hotmail.com] Sent: Thursday, April 04, 2013 8:02 PM To: Worth Lutz; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Ok so I've tried both ways and they both output another box. However this time with an X in the corner. See attached. Thanks, Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 19:52:56 -0400 Try: Or if “wwwroot” really is the web root: Worth Lutz From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Mirrlees Sent: Thursday, April 04, 2013 7:17 PM To: Rahkonen Jukka; mapserver-users@lists.osgeo.org Subject: [mapserver-users] adding gifs to index.html file? Hi there, Ok I figured that part out! Thanks! Your a lifesaver! I have one other question I'm trying to add images (gif files) to my index.html file. When I place this code into my html file it neglects to show the image... It shows a white box with a black like square in the corner (see image)...not sure what i'm missing...any ideas? Thanks, Mark From: jukka.rahko...@mmmtike.fi To: mapserver-users@lists.osgeo.org Date: Thu, 4 Apr 2013 07:55:41 + Subject: Re: [mapserver-users] output issues (malformed template name) Hi, The immediate reason for the error is that you do not have a referred template file in your system TEMPLATE 'fooOnlyForWMSGetFeatureInfo' For correcting this error you must change TEMPLATE to refer to something that exists. The template file must contain at least the magic string ‘mapserver template’ in the first line of the template http://www.mapserver.org/mapfile/template.html However, I have a feeling that this will not be enough for making your application to launch. If this happens, please tell a bit more about your application, how it works and what happens when you press the launch button. And absolutely add CONFIG "MS_ERRORFILE" "c:\good_errorfile_path_for_you.txt” and DEBUG 5 into your mapfile. This way you will get much valuable information into the errorfile. Comment out the DEBUG line once everything works perfectly for you. The PyQgis MapServer Export plugin should really be fixed. At least it should write the “wms_enable_request” metadata item. Now it does not and no mapfile created with QGis will work for WMS without editing. Plugin is also using the deprecated TRANSPARENCY and I would rather see PROJECTION blocks to use "init=epsg:" but that may not be so important. I am not sure it the plugin writes always SYMBOLSET "/wwwroot/symbols/symbols.sty" and uses SYMBOL "circle" in some type of classes but if it does it can also lead to not working mapfiles. Is there anything else to complain? I can make a QGis feature request once I have collected the most important things to correct and checked that they have not been corrected already. -Jukka Rahkonen- Mark Mirrlees wrote: Hello everyone, I am trying to create a new map and it is causing me some output issues. When I click my launch button to start the application it comes up with this message Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo). I have attached my mapfile and I do apologize for the length of it. I'm not su
Re: [mapserver-users] adding gifs to index.html file?
The image shows up no problem...and your new changes helped fix the problem! Thanks Worth for your help! Mark From: w...@mindspring.com To: mmirrl...@hotmail.com; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] adding gifs to index.html file? Date: Thu, 4 Apr 2013 20:38:27 -0400 MapServer Message What happens if you type: http://localhost/maps/M_Mirrlees_Assign4\bos.gif into your browser? Does it show up then? Also look at the other changes marked below. Worth ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users