<html>
  <head>

  </head>
  <body style="font-variant: normal; line-height: normal; font-family: Comic Sans MS; margin-left: 4px; margin-right: 4px; margin-bottom: 1px; font-weight: normal; margin-top: 4px; font-style: normal; font-size: 12pt">
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">Ok&#44; here goes . . . &nbsp;:c&#41;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">Define a &quot;hack&quot; please&#63; &nbsp;It sounds like any change may be considered a hack&#44; and may also be dependent on who&#39;s looking at what.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">The publisher vs system admin argument has been a long standing conversation topic with me. &nbsp;I don&#39;t think the System admin should be getting in the way of the publishing process&#44; but rather&#44; they should be supplying the tools to make it easier to publish as well as consume the publised data.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">I think there are also more than a few instances where the rules can and do change for this argument. &nbsp;One is the commercial vs open environment. &nbsp;I need to mention here that I&#39;ve have focused most of my development life on the publishing of open data. &nbsp;On the commercial side&#44; the idea is to present a unified&#44; and too a large degree&#44; pre-scripted experience&#44; that doesn&#39;t change significantly over time. &nbsp;It&#39;s about the product and making it the same every time a user experiences it&#44; IE McDonaolds and Google&#44; for example. &nbsp;So they feel comfortable. &nbsp;On the open side&#44; I would say the reverse it true&#44; change is good&#44; as well as control&#44; over anything and everything &#40;if the users had their way&#41;&#44; it&#39;s in many instances why the open customer took a look at things in the open environment in the first place. &nbsp;Using just these two different publishing/consuming scenarios one can see that things can get into conflict quite easily&#44; and quickly&#44; with regard to perceived and desired capabilities by the publishers as well as the consumers. &nbsp;&nbsp;Lastly I&#39;m going out on a limb here and state that the Open version of publishing/consuming eventually settles into a commercial version over time&#44; especially the longer a tool has been in place. &nbsp;A form follows function sort of thing. </font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">My last piece here&#44; is to emphasize that it&#39;s all about the data&#44; not what&#39;s done with it. &nbsp;Now this is more than likely a open data publishing perspective&#44; but over the years&#44; software and techniques have come and gone&#44; the one thing that always remains&#44; is that there is data to use and manipulate&#44; preferably is good data and up to date.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">Ok&#44; I think I&#39;m done &#40;getting down off soap box&#41; . . .</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">:c&#41;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">Nice discussion BTW.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">bobb</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
      <br>
      &gt;&gt;&gt; Stephen Woodbridge &lt;woodbri@swoodbridge.com&gt; wrote:<br>    </p>
    <table style="margin-left: 15px; margin-right: 0; margin-bottom: 0; margin-top: 0; font-size: 1em" bgcolor="#f3f3f3" border="0">
      <tr>
        <td>
          <div style="padding-left: 7px; border-left: solid 1px #050505">
            <p style="margin-top: 0; margin-bottom: 0">
              On 2/2/2011 10:21 AM&#44; Bob Basques wrote:<br>&gt; Steve&#44;<br>&gt;<br>&gt;<br>&gt; Hmmm&#44; good point on the Copyright thing&#44; I suppose it&#39;s complicating<br>&gt; things&#44; but you could use a KEYWORD / function in the Mapfiles to<br>&gt; enforce the stamping&#44; or hide such layers from a &#91;toggle_layer&#93; listing.<br><br>Yes it is always possible to add another hack to fix an enhancement &#59;&#41;<br>but it probably means the enhancement is not well thought out.<br><br>&gt; It&#39;s sometimes easier to predict &#40;or assume&#41; that certain layers should<br>&gt; be on by default. In a GeoMoose configuration&#44; the data<br>&gt; owners/custodians can have their own publication controls&#44; and they will<br>&gt; have their preferences for default layers&#44; for particular users&#44; this<br>&gt; may work very well for them&#44; but other &#40;unpredicted&#41; users&#44; may<br>&gt; want/need to display things in different combinations of layers in their<br>&gt; view of the world.<br><br>I think that the data publisher should control this not the data<br>consumer. If I publish my data a certain way then it should be used that<br>way. If a user needs it some other way then maybe the use case changed<br>or something else and I should review the requirements with the user.<br>This just makes sense&#44; no it is not easier or quick and dirty fix&#44; but<br>... I&#39;m just saying&#33; This could also be an education&#160;&#32;or planning issue<br>for your data providers or a lack of requirements gathering between<br>producers and consumers. Or&#44; if using default causes problems then tell<br>them not to use that. If GeoMoose requires default&#44; then maybe you<br>should consider refactoring it&#44; if the above does not fix the problem.<br><br>&gt; I&#39;ve been a long &#40;LONG&#41; time user of the CGI model for MapServer&#44; even<br>&gt; building my own image generator before ever moving to using MapServer.<br>&gt; The CGI methods for me just seem easier and less verbose to use&#44; and<br>&gt; much quicker to implement on the fly&#44; especially when I have control of<br>&gt; everything from front to back. Some WMS queries are optional&#44; so not all<br>&gt; capabilities that a CGI approach would afford are necessarily available<br>&gt; via WMS all the time. The thread was aimed at making things more<br>&gt; flexible overall&#44; not just more complicated.<br><br>Yeah&#44; I agree CGI is good for quick and dirty prototyping in addition to<br>building good full blown application&#44; but now I like using OpenLayers to<br>handle talking to mapserver and writing PHP ajax handlers for other<br>stuff so the CGI is more than adequate for most of my needs. This may<br>not be the case for all users. I&#39;m not opposed to adding features to the<br>CGI&#44; but this one just does not seem like a good idea to me as the use<br>case can be implemented by the proper use of the existing CGI interface&#44;<br>ie: set the layers to off and request the layers you want and if you get<br>a default layer that you do not want&#44; then talk to the mapfile publisher.<br><br>&gt; Templates work very well&#44; and look like they will work for the layer<br>&gt; listing too &#40;I thought about this before sending the questions&#41;. Lastly&#44;<br>&gt; since MapServer is in the mix&#44; I can combine CGI with WMS calls as well.<br>&gt; I may need to run the request through some proxy&#44; but then I have even<br>&gt; more control over things&#44; A WMS&#43; service if you will.<br><br>Yup&#44; works great and I have used both of these tricks in other projects<br>in the past.<br><br>&gt; My parting thought on this&#44; would be&#44; if this is truly seen as a<br>&gt; cumbersome or time consuming thing to add to mapserver&#44; should some<br><br>I don&#39;t think it is either of these&#44; as I said above.<br><br>&gt; review of current capabilities be performed to see what redundant<br>&gt; capabilities might be removable from MapServer since they are now<br>&gt; available via other means&#44; like WMS&#44; or at the very least&#44;<br>&gt; implement/convert them to a WMS like call.<br><br>Sounds like this might be something to discuss for 7.0 as 6.0 is pretty<br>much locked up for now&#44; and any major change to the mapserver UI that<br>would not be backwards compatible would need to happen at a major<br>revision. If you want to lead the charge on this now it probably as good<br>as anytime to start a discussion and propose changes.<br><br>&gt; I prefer to keep both products/services in their own sand boxes&#44; and<br>&gt; apply the best capabilities list to each&#44; but maybe I&#39;m missing<br>&gt; something at the big&#40;ger&#41; picture level.<br><br>Sorry to rain on your parade&#44; I hear that this is a pain point for<br>geoMoose and implementing this would be a simple fix. I&#39;m also just one<br>voice so other dev&#39;s are certainly welcome to jump in here and disagree<br>with me.<br><br>That said&#44; I&#39;m pretty adamant that the publisher of a map&#44; should have<br>some control over it and should be able to limit the extent that a user<br>can modify it. If there is a simple solution that does not violate those<br>rights then I&#39;m all for it.<br><br>Best regards&#44;<br>&#160;&#160;&#32;-Steve W<br><br>&gt; :c&#41;<br>&gt;<br>&gt;<br>&gt; bobb<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;&#160;&#32;&gt;&gt;&gt; Stephen Woodbridge &lt;woodbri@swoodbridge.com&gt; wrote:<br>&gt;<br>&gt; I do not think this would be a good idea because it would allow a user<br>&gt; to turn off say a copyright layer for instance.<br>&gt;<br>&gt; I think it is better to plan out your application to turn things on that<br>&gt; you want on as Steve suggests.<br>&gt;<br>&gt; So while I do you the CGI even in OpenLayers over the WMS&#44; mostly<br>&gt; because I learned it first and partly because WMS just makes it too easy<br>&gt; for unwanted users to pull maps&#44; I am somewhat inclined to think the WMS<br>&gt; is the better way to go if you want all the capabilities of WMS. What is<br>&gt; your rationale for adding a all this stuff to the CGI&#63; Does working it<br>&gt; through the template system meet your needs&#63;<br>&gt;<br>&gt; Inquiring minds want to know :&#41;<br>&gt;<br>&gt; Best regards&#44;<br>&gt; -Steve W<br>&gt;<br>&gt; On 2/1/2011 10:54 PM&#44; Lime&#44; Steve D &#40;DNR&#41; wrote:<br>&gt;&#160;&#32;&gt; 1&#41; If your interface is smart enough to explicitly turn the<br>&gt;&#160;&#32;&gt; centerlines off why wouldn&#39;t you just set STATUS OFF in the mapfile<br>&gt;&#160;&#32;&gt; and explicitly turn them on&#63; I think the REQUIRES parameter is a<br>&gt;&#160;&#32;&gt; better means of triggering this auto-off capability in any regard.<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; 2&#41; You might already be able to do the layer list using the<br>&gt;&#160;&#32;&gt; &#91;toggle_layers&#93; tag. It returns a space delimited list of layers that<br>&gt;&#160;&#32;&gt; can be toggled. It&#39;s available in any query/browse template so I<br>&gt;&#160;&#32;&gt; imagine you could craft a URL that runs quickly to access them that<br>&gt;&#160;&#32;&gt; way... Just a thought.<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; Steve ________________________________________ From:<br>&gt;&#160;&#32;&gt; mapserver-dev-bounces@lists.osgeo.org<br>&gt;&#160;&#32;&gt; &#91;mapserver-dev-bounces@lists.osgeo.org&#93; On Behalf Of Bob Basques<br>&gt;&#160;&#32;&gt; &#91;Bob.Basques@ci.stpaul.mn.us&#93; Sent: Tuesday&#44; February 01&#44; 2011 2:43<br>&gt;&#160;&#32;&gt; PM To: MapServer Dev Mailing List Subject: &#91;mapserver-dev&#93; A thought<br>&gt;&#160;&#32;&gt; about a CGI parameter add&#44; basically a switch for turning a default<br>&gt;&#160;&#32;&gt; layer off.<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; All&#44;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; Is this doable&#63;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; Was wondering about a mechanism to turn a DEFAULT layer off via CGI&#44;<br>&gt;&#160;&#32;&gt; something like &quot;layers&#61;-centerlines&quot;&#44; where the negative sign &#40; - &#41;<br>&gt;&#160;&#32;&gt; would be used to indicate that a default layer should NOT be drawn<br>&gt;&#160;&#32;&gt; for a CGI request.<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; In short terms&#44; could adding a negative sign &#40; - &#41; to the front of a<br>&gt;&#160;&#32;&gt; layer name to NOT draw that layer be easily implemented in the CGI<br>&gt;&#160;&#32;&gt; calls&#63;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; WARNING: If the above is possible&#44; the next question would be to get<br>&gt;&#160;&#32;&gt; a list of the layers that are available in a MAPFILE &#40;like<br>&gt;&#160;&#32;&gt; GetCapabilities&#41; for drawing. And don&#39;t say use WMS&#44; otherwise you<br>&gt;&#160;&#32;&gt; should get rid of the LEGEND generation in MapServer too&#44; since that<br>&gt;&#160;&#32;&gt; can be done via WMS as well. :c&#41; I also have an inkling that<br>&gt;&#160;&#32;&gt; having the ability to poll the mapfile for the layers available might<br>&gt;&#160;&#32;&gt; be an interesting capability to add in that would allow for some<br>&gt;&#160;&#32;&gt; interesting user GUI elements to be built around.<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; ---------<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; Here is my use case &#40;if needed&#41;:<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; Say I have a centerline file of a street network for a map&#44; and then<br>&gt;&#160;&#32;&gt; add in a Aerial photo background&#44; I want to turn the centerlines off&#44;<br>&gt;&#160;&#32;&gt; but keep the labels as an overlay. Both the centerlines and the<br>&gt;&#160;&#32;&gt; labels are on by default at the mapfile.<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; Thanks<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; bobb<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt;<br>&gt;&#160;&#32;&gt; _______________________________________________ mapserver-dev mailing<br>&gt;&#160;&#32;&gt; list mapserver-dev@lists.osgeo.org<br>&gt;&#160;&#32;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>&gt;<br><br>
            </p>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>