[mapserver-users] OWSRequest raw post data
Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank -- Frank Broniewski Metrico s.àr.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OWSRequest raw post data
Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank Frank Broniewski Metrico s.àr.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] symbol circle (ellipse) rendered not round but oval
hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval
hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] OWSRequest raw post data
What language are you using, is this PHP? - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frank Broniewski Sent: Tuesday, January 12, 2010 4:33 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] OWSRequest raw post data Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank Frank Broniewski Metrico s.àr.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 ___ 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] OWSRequest raw post data
Sorry, I forgot to mention that. I'm using Python ... -- From: Nolte, Tim tim.no...@ipcswirelessinc.com Sent: Tuesday, January 12, 2010 3:56 PM To: Frank Broniewski b...@metrico.lu; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] OWSRequest raw post data What language are you using, is this PHP? - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Support: 616-929-0289 Fax: 616-554-6484 -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frank Broniewski Sent: Tuesday, January 12, 2010 4:33 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] OWSRequest raw post data Hello list, I am wondering how I could load / pass a raw post body to the owsrequest object. GET is simply done with setParameter. I see that there is a postrequest attribute for the owsrequest object, but there is no documentation for it. Can I set it manually? I am using a WSGI Framework and the documented req.loadParams() function does not work with it. Or is there a parameter 'post' or 'xml' which I can set with the raw post data with setParameter()? Many Thanks Frank Frank Broniewski Metrico s.àr.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 ___ 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] symbol circle (ellipse) rendered not round but oval
Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ - Original Message - From: thomas bonfort To: Oliver Christen Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] symbol circle (ellipse) rendered not round but oval
symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol dots size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen oliver.chris...@camptocamp.com wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png ) any other idea? ^_^ - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 3:18 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] symbol circle (ellipse) rendered not round but oval
GAP 20 is really giving unwanted result: http://dev.camptocamp.com/~ochriste/tilecache9.png though using only one style instead of two seems to solve the oval problem (but why ???) style symbol dots size 8 color 204 102 0 outlinecolor 102 51 0 end I dont understand how GAP is supposed working: with GAP 2, I had ~10px between dots, with GAP 3, I had ~18px between dots, with GAP 4, I had ~26px between dots whats the logic ? - Original Message - From: thomas bonfort To: Oliver Christen Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, January 12, 2010 4:36 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol dots size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen oliver.chris...@camptocamp.com wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png) any other idea? ^_^ - Original Message - From: thomas bonfort To: Oliver Christen Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, January 12, 2010 3:18 PM Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] symbol circle (ellipse) rendered not round but oval
gap in pixels = symbol-gap * style-size On Tue, Jan 12, 2010 at 16:52, Oliver Christen oliver.chris...@camptocamp.com wrote: GAP 20 is really giving unwanted result: http://dev.camptocamp.com/~ochriste/tilecache9.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache9.png though using only one style instead of two seems to solve the oval problem (but why ???) style symbol dots size 8 color 204 102 0 outlinecolor 102 51 0 end I dont understand how GAP is supposed working: with GAP 2, I had ~10px between dots, with GAP 3, I had ~18px between dots, with GAP 4, I had ~26px between dots whats the logic ? - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 4:36 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval symbol name dots type ellipse points 1 1 end gap 20 end ... style symbol dots size 8 color r g b outlinecolor r g b end On Tue, Jan 12, 2010 at 16:31, Oliver Christen oliver.chris...@camptocamp.com wrote: Hi Thomas :) thanks for the answer, but sadely it didnt solve my problem: here are a few tests I did: using GAP 20 gave me really weird result: http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png using PATTERN 1 22 END gave me better result, but the dot are still slightly oval: http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png I wondered if the visual effect may have come from the fact im pilling up two circle one over the other, but even when trying to display only the outer or inner circles, the circle are still slightly off: http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png (both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png ) any other idea? ^_^ - Original Message - *From:* thomas bonfort thomas.bonf...@gmail.com *To:* Oliver Christen oliver.chris...@camptocamp.com *Cc:* mapserver-users@lists.osgeo.org *Sent:* Tuesday, January 12, 2010 3:18 PM *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval hi Oliver :) try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN now) cheers, thomas On Tue, Jan 12, 2010 at 15:04, Oliver Christen oliver.chris...@camptocamp.com wrote: hello I have a weird problem with symbology. Im rendering a line with dots, but the dots are not round but slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png Any idea what could be the cause ? Here is my symbol definition: SYMBOL NAME linie-gepunkt10 TYPE ELLIPSE POINTS 1 1 END STYLE 1 20 END FILLED TRUE END and my layer's class definition: CLASS EXPRESSION 3 MAXSCALEDENOM 21 STYLE SYMBOL linie-gepunkt10 SIZE 10 COLOR 102 51 0 END STYLE SYMBOL linie-gepunkt10 SIZE 8 COLOR 204 102 0 END END and the map outputformat: OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF END ___ 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] Templates JOIN object (one to many)
Hi guys, I have a query layer that joins two PostGIS tables. Mapserver objects if a TEMPLATE is not declared in the JOIN object, but I couldn't find a reference to a template being needed in the documentation other than in the LAYER object. The GetFeatureInfo request for this layer returns an empty page (browser). I believe the primary problem is either in the template tags or the template references in either the LAYER or JOIN objects. Please note that the same template is specified for both objects. I am not able to get a clear understanding from the docs regarding the template tags or the placement of the TEMPLATE directive. The code /* GetFeatureInfo url */ http://url.com/cgi-bin/mapserv? map=/path/to/cad.map SERVICE=WMS VERSION=1.1.1 REQUEST=GetFeatureInfo SRS=EPSG%3A102740 WIDTH=800 HEIGHT=800 BBOX=3102785.400463,13832395.006499,3104115.230452,13833724.836488 LAYERS=building_comp_query STYLES= FORMAT=image%2Fpng QUERY_LAYERS=building_comp_query X=398Y=390 INFO_FORMAT=text/html /* layer definition */ LAYER NAME 'building_comp_query' TYPE QUERY STATUS ON DEBUG 3 TEMPLATE bldgCompGetFeatureInfo.html HEADERbldgCompGetFeatureInfo_header.html FOOTERbldgCompGetFeatureInfo_footer.html PROCESSING CLOSE_CONNECTION=DEFER PROCESSING 'LABEL_NO_CLIP=1' DUMP TRUE MAXSCALEDENOM 1 CONNECTIONTYPE POSTGIS CONNECTION dbname=cad1 user=user password=password host=localhost port=5432 DATA the_geom from (select b.the_geom AS the_geom, b.gid AS gid, b.hcad_num AS hcad_num FROM parcels b) as foo using unique gid using srid=-1 JOIN NAME building_components CONNECTION dbname=cad1 user=user password=password host=localhost port=5432 CONNECTIONTYPE ogr TABLE building_component_areas FROM hcad_num TO hcad_acct TYPE ONE-TO-MANY TEMPLATE bldgCompGetFeatureInfo.html END PROJECTION init=epsg:102740 END METADATA wms_title Building Component Areas Query Layer wfs_title Building Component Areas Query Layer wms_srs epsg:102740 epsg:4326 gml_include_items all wms_include_items all gml_featureid ogc_fid ## REQUIRED qstring_validation_pattern '.' END END # End layer 'building_component_areas_query' /* template bldgCompGetFeatureInfo_header.html */ !-- Mapserver Template -- br / !-- Build javascript to handle output -- script language=javascript /* We are retrieving three attributes: building_num, building_component, and area. There will be one or more values for each attribute. Build an array for attribute. Use the arrays in a for loop where MapServer fills in the array values. Then write out the array values in an html table after MapServer finishes filling in the array values. */ /* The arrays */ var building_num = new Array(); var building_component = new Array(); var area = new Array(); /* template bldgCompGetFeatureInfo.html */ /* Mapserver Template */ building_num = building_num.push('[building_components_building_num]'); building_component = building_component.push('[building_components_building_component]'); area = area.push('[building_components_area]'); /* template bldgCompGetFeatureInfo_footer.html */ !-- Mapserver Template -- /* Write out the table by accessing the arrays */ document.write( table id=\bldg_comp_areas\ tr th colspan=\2\Building Details/th /tr tr tdBuilding Number/td tdBuilding Component/td tdArea/td tdunits/td /tr ); for(key in building_num){ document.write(trtd + building_num[key] + /tdtd + building_component[key] + /tdtd + area[key] + /tdtd + sq ft); } document.write( /table br / ); Thanks for taking a look! Ted S -- View this message in context: http://n2.nabble.com/Templates-JOIN-object-one-to-many-tp4293738p4293738.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
Thanks Steve, Lets see something simple that is changing in the new Mapserver version, here's the LAYER definition: LAYER NAME my name TYPE annotation STATUS ON TRANSFORM ll UNITS PIXELS FEATURE POINTS 135 -10 END TEXT my text END CLASS LABEL FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END And now the MAP definition: MAP EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 FONTSET fonts/fonts.txt SYMBOLSET symbols.txt SIZE 640 480 STATUS ON OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END QUERYMAP COLOR 255 255 0 STYLE NORMAL END RESOLUTION 99 UNITS meters I've attached how it looks with the 5.4 version (before.jpg) and how it looks now with the 5.6.1 version (after.jpg). Hope this helps you to find this strange behavior Thanks in advance ! IC Carlos Ruiz From: Lime, Steve D (DNR) steve.l...@state.mn.us To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Mon, January 11, 2010 3:55:08 PM Subject: RE: [mapserver-users] 5.6.1 version and labels What does your layer def look like? What renderer are you using? Are you setting a specific RESOLUTION? There may be some subtle sizing changes but I haven’t run across anything significant yet. Before and after images are helpful too. Steve From:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Monday, January 11, 2010 3:43 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] 5.6.1 version and labels Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
Hey Alan, Using DEFRESOLUTION 99 now makes all the labels smaller than they was. Any other idea ? Thanks for helping me on this issue IC Carlos Ruiz From: Alan Boudreault aboudrea...@mapgears.com To: mapserver-users@lists.osgeo.org Cc: Carlos Ruiz boolean10...@yahoo.com; Lime, Steve D (DNR) steve.l...@state.mn.us Sent: Tue, January 12, 2010 1:43:48 PM Subject: Re: [mapserver-users] 5.6.1 version and labels Carlos, you haven't attached the images. What's happen if you add the following line into your map definition: DEFRESOLUTION 99 Alan On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: Thanks Steve, Lets see something simple that is changing in the new Mapserver version, here's the LAYER definition: LAYER NAME my name TYPE annotation STATUS ON TRANSFORM ll UNITS PIXELS FEATURE POINTS 135 -10 END TEXT my text END CLASS LABEL FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END And now the MAP definition: MAP EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 FONTSET fonts/fonts.txt SYMBOLSET symbols.txt SIZE 640 480 STATUS ON OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END QUERYMAP COLOR 255 255 0 STYLE NORMAL END RESOLUTION 99 UNITS meters I've attached how it looks with the 5.4 version (before.jpg) and how it looks now with the 5.6.1 version (after.jpg). Hope this helps you to find this strange behavior Thanks in advance ! IC Carlos Ruiz From: Lime, Steve D (DNR) steve.l...@state.mn.us To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Mon, January 11, 2010 3:55:08 PM Subject: RE: [mapserver-users] 5.6.1 version and labels What does your layer def look like? What renderer are you using? Are you setting a specific RESOLUTION? There may be some subtle sizing changes but I haven’t run across anything significant yet. Before and after images are helpful too. Steve From:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Monday, January 11, 2010 3:43 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] 5.6.1 version and labels Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
emm, I mean, did you *added* the DEFRESOLUTION 99 ? and not replaced the RESOLUTION 99. You should have both. Alan On January 12, 2010 03:35:00 pm Carlos Ruiz wrote: Hey Alan, Using DEFRESOLUTION 99 now makes all the labels smaller than they was. Any other idea ? Thanks for helping me on this issue IC Carlos Ruiz From: Alan Boudreault aboudrea...@mapgears.com To: mapserver-users@lists.osgeo.org Cc: Carlos Ruiz boolean10...@yahoo.com; Lime, Steve D (DNR) steve.l...@state.mn.us Sent: Tue, January 12, 2010 1:43:48 PM Subject: Re: [mapserver-users] 5.6.1 version and labels Carlos, you haven't attached the images. What's happen if you add the following line into your map definition: DEFRESOLUTION 99 Alan On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: Thanks Steve, Lets see something simple that is changing in the new Mapserver version, here's the LAYER definition: LAYER NAME my name TYPE annotation STATUS ON TRANSFORM ll UNITS PIXELS FEATURE POINTS 135 -10 END TEXT my text END CLASS LABEL FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END And now the MAP definition: MAP EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 FONTSET fonts/fonts.txt SYMBOLSET symbols.txt SIZE 640 480 STATUS ON OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END QUERYMAP COLOR 255 255 0 STYLE NORMAL END RESOLUTION 99 UNITS meters I've attached how it looks with the 5.4 version (before.jpg) and how it looks now with the 5.6.1 version (after.jpg). Hope this helps you to find this strange behavior Thanks in advance ! IC Carlos Ruiz From: Lime, Steve D (DNR) steve.l...@state.mn.us To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Mon, January 11, 2010 3:55:08 PM Subject: RE: [mapserver-users] 5.6.1 version and labels What does your layer def look like? What renderer are you using? Are you setting a specific RESOLUTION? There may be some subtle sizing changes but I haven’t run across anything significant yet. Before and after images are helpful too. Steve From:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Monday, January 11, 2010 3:43 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] 5.6.1 version and labels Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
Oh, I tought it was one or the other. Adding DEFRESOLUTION fixes the label's visual size. Why do I need now to add this tag if I never used before ? Thanks for all, Alan IC Carlos Ruiz From: Alan Boudreault aboudrea...@mapgears.com To: Carlos Ruiz boolean10...@yahoo.com Cc: mapserver-users mapserver-users@lists.osgeo.org Sent: Tue, January 12, 2010 2:37:46 PM Subject: Re: [mapserver-users] 5.6.1 version and labels emm, I mean, did you *added* the DEFRESOLUTION 99 ? and not replaced the RESOLUTION 99. You should have both. Alan On January 12, 2010 03:35:00 pm Carlos Ruiz wrote: Hey Alan, Using DEFRESOLUTION 99 now makes all the labels smaller than they was. Any other idea ? Thanks for helping me on this issue IC Carlos Ruiz From: Alan Boudreault aboudrea...@mapgears.com To: mapserver-users@lists.osgeo.org Cc: Carlos Ruiz boolean10...@yahoo.com; Lime, Steve D (DNR) steve.l...@state.mn.us Sent: Tue, January 12, 2010 1:43:48 PM Subject: Re: [mapserver-users] 5.6.1 version and labels Carlos, you haven't attached the images. What's happen if you add the following line into your map definition: DEFRESOLUTION 99 Alan On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: Thanks Steve, Lets see something simple that is changing in the new Mapserver version, here's the LAYER definition: LAYER NAME my name TYPE annotation STATUS ON TRANSFORM ll UNITS PIXELS FEATURE POINTS 135 -10 END TEXT my text END CLASS LABEL FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END And now the MAP definition: MAP EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 FONTSET fonts/fonts.txt SYMBOLSET symbols.txt SIZE 640 480 STATUS ON OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END QUERYMAP COLOR 255 255 0 STYLE NORMAL END RESOLUTION 99 UNITS meters I've attached how it looks with the 5.4 version (before.jpg) and how it looks now with the 5.6.1 version (after.jpg). Hope this helps you to find this strange behavior Thanks in advance ! IC Carlos Ruiz From: Lime, Steve D (DNR) steve.l...@state.mn.us To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Mon, January 11, 2010 3:55:08 PM Subject: RE: [mapserver-users] 5.6.1 version and labels What does your layer def look like? What renderer are you using? Are you setting a specific RESOLUTION? There may be some subtle sizing changes but I haven’t run across anything significant yet. Before and after images are helpful too. Steve From:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Monday, January 11, 2010 3:43 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] 5.6.1 version and labels Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
Carlos, glad to hear that your issue is fixed. This is a new feature of MapServer 5.6: the ability to automatically scale the symbology when resolution changes so that the map maintains the same look at each resolution. For more info: http://www.mapserver.org/development/rfc/ms- rfc-55.html What's happen with your mapfile is that you set the resolution to 99 (which means that you wanted an output map of reso 99), but you did not set the defresolution (which tells mapserver the initial resolution your mapfile is supposed to be). In this case, the behavior of mapserver is to scale all the values to preserve the look of the mapfile. Without this functionnality, to convert a mapfile that use initialy a resolution of 72 to a printable mapfile of resolution 300 (example), you would have to convert all the value/size of symbol line etc... manually. regards, Alan On January 12, 2010 03:56:46 pm Carlos Ruiz wrote: Oh, I tought it was one or the other. Adding DEFRESOLUTION fixes the label's visual size. Why do I need now to add this tag if I never used before ? Thanks for all, Alan IC Carlos Ruiz From: Alan Boudreault aboudrea...@mapgears.com To: Carlos Ruiz boolean10...@yahoo.com Cc: mapserver-users mapserver-users@lists.osgeo.org Sent: Tue, January 12, 2010 2:37:46 PM Subject: Re: [mapserver-users] 5.6.1 version and labels emm, I mean, did you *added* the DEFRESOLUTION 99 ? and not replaced the RESOLUTION 99. You should have both. Alan On January 12, 2010 03:35:00 pm Carlos Ruiz wrote: Hey Alan, Using DEFRESOLUTION 99 now makes all the labels smaller than they was. Any other idea ? Thanks for helping me on this issue IC Carlos Ruiz From: Alan Boudreault aboudrea...@mapgears.com To: mapserver-users@lists.osgeo.org Cc: Carlos Ruiz boolean10...@yahoo.com; Lime, Steve D (DNR) steve.l...@state.mn.us Sent: Tue, January 12, 2010 1:43:48 PM Subject: Re: [mapserver-users] 5.6.1 version and labels Carlos, you haven't attached the images. What's happen if you add the following line into your map definition: DEFRESOLUTION 99 Alan On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: Thanks Steve, Lets see something simple that is changing in the new Mapserver version, here's the LAYER definition: LAYER NAME my name TYPE annotation STATUS ON TRANSFORM ll UNITS PIXELS FEATURE POINTS 135 -10 END TEXT my text END CLASS LABEL FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END And now the MAP definition: MAP EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 FONTSET fonts/fonts.txt SYMBOLSET symbols.txt SIZE 640 480 STATUS ON OUTPUTFORMAT NAME jpeg DRIVER GD/JPEG MIMETYPE image/jpeg IMAGEMODE RGB EXTENSION jpg FORMATOPTION QUALITY=80 END QUERYMAP COLOR 255 255 0 STYLE NORMAL END RESOLUTION 99 UNITS meters I've attached how it looks with the 5.4 version (before.jpg) and how it looks now with the 5.6.1 version (after.jpg). Hope this helps you to find this strange behavior Thanks in advance ! IC Carlos Ruiz From: Lime, Steve D (DNR) steve.l...@state.mn.us To: Carlos Ruiz boolean10...@yahoo.com; mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Sent: Mon, January 11, 2010 3:55:08 PM Subject: RE: [mapserver-users] 5.6.1 version and labels What does your layer def look like? What renderer are you using? Are you setting a specific RESOLUTION? There may be some subtle sizing changes but I haven’t run across anything significant yet. Before and after images are helpful too. Steve From:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Monday, January 11, 2010 3:43 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] 5.6.1 version and labels Hi all, I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 because the queries). There's something odd with the labels because appears bigger than i had defined. Does anybody knows why ? Thanks in advance IC Carlos Ruiz -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Templates JOIN object (one to many)
Ok, I pieced the tidbits of info together. I thought I would go ahead and post it all in one place in case anyone else is ever interested. I don't know what I would do with out the postings in this list. The bottom line is that the JOIN object and the LAYER object both require a template directive. The LAYER template functions only to redirect to the JOIN template. The redirect is done with a template tag of the format: [join_joinname] (literal word join followed by underscore then the JOIN object name). The tags in the JOIN template have the format: [joinname_selectitem]. Here they are in context. Ted Spradley wrote: JOIN NAME building_components CONNECTION dbname=cad1 user=user password=password host=localhost port=5432 CONNECTIONTYPE ogr TABLE building_component_areas FROM hcad_num TO hcad_acct TYPE ONE-TO-MANY TEMPLATE bldgCompGetFeatureInfo.html END The JOIN object needs its own template defined. TEMPLATE bldgCompGetFeatureInfo_join.html Evidently when the layer is queried the function of the LAYER TEMPLATE directive is to say 'Hey, process JOIN building_components '. Ted Spradley wrote: /* template bldgCompGetFeatureInfo.html */ /* Mapserver Template */ building_num = building_num.push('[building_components_building_num]'); building_component = building_component.push('[building_components_building_component]'); area = area.push('[building_components_area]'); should be: /* template bldgCompGetFeatureInfo.html */ /* Mapserver Template */ [join_building_components] and then you need the template for the JOIN object with errors corrected in the js: /* template bldgCompGetFeatureInfo_join.html */ /* Mapserver Template */ building_num.push('[building_components_building_num]'); building_component.push('[building_components_building_component]'); area.push('[building_components_area]'); Ted Spradley wrote: /* template bldgCompGetFeatureInfo_footer.html */ !-- Mapserver Template -- /* Write out the table by accessing the arrays */ document.write( table id=\bldg_comp_areas\ tr th colspan=\2\Building Details/th /tr tr tdBuilding Number/td tdBuilding Component/td tdArea/td tdunits/td /tr ); for(key in building_num){ document.write(trtd + building_num[key] + /tdtd + building_component[key] + /tdtd + area[key] + /tdtd + sq ft); } document.write( /table br / ); should be: /* Write out the table by accessing the arrays */ document.write(table id='bldg_comp_areas'trth colspan='4'Building Details/th/trtrtdBuilding Number/tdtdBuilding Component/tdtdArea/tdtdunits/td/tr); for(key in building_num){ document.write(trtd + building_num[key] + /tdtd + building_component[key] + /tdtd + area[key] + /tdtd + sq ft + /td/tr); } document.write(/tablebr /); /script The result is a table listing all of the building components. Building Details Building Number Building Component Areaunits 1 ONE STORY MAS UPR 24 sq ft 1 OPEN MAS PORCH PRI 24 sq ft 1 BASE AREA PRI 1164sq ft 1 MAS/BRK GARAGE PRI 400 sq ft 1 OPEN MAS PORCH PRI 16 sq ft 1 BASE AREA UPR 1164sq ft 1 ONE STORY FRAME PRI 60 sq ft 1 ONE STORY MAS UPR 400 sq ft 1 OPEN MAS PORCH PRI 31 sq ft This will work using GetFeatureInfo in the URL, but if you are accessing your WMS with OpenLayers, you are already in a javascript, so you need to use straight html in your templates. /* template bldgCompGetFeatureInfo_header.html */ !-- Mapserver Template -- !-- No javascript, must be straight html to handle output -- table tr td colspan=4Building Details/td /tr tr tdBuilding Number/td tdBuilding Component/td tdArea/td tdUnits/td /tr /* template bldgCompGetFeatureInfo.html */ !-- Mapserver Template -- [join_building_components] /* template bldgCompGetFeatureInfo_join.html */ !-- Mapserver Template -- tr td[building_components_building_num]/td td[building_components_building_component]/td td[building_components_area]/td tdsq ft/td /tr /* template bldgCompGetFeatureInfo_footer.html */ !-- Mapserver Template -- /table Cheers everybody! Hope it helps someone. - Gracias a todo! Ted S MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Linux/Fedora7 -- View this message in context: http://n2.nabble.com/Templates-JOIN-object-one-to-many-tp4293738p4306948.html Sent from