<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That approach worked perfectly! Thanks Steve, <br>
<br>
Plus, if you access the layer in question through a service (wms
getfeatureinfo) then you have a makeshift (standards non-compliant?)&nbsp;
KML web service. <br>
<br>
I noticed on the template side that [shpclass] gives an index. Not a
problem, my style IDs are hard wired anyway. I was wondering what
mechanisms are available to use this index (what does it access) in the
template context?<br>
<br>
Thanks again, this was a great help, <br>
<br>
Josh<br>
<br>
Steve Lime wrote:
<blockquote cite="mid:4A9DA9D60200008F00027E71@co5.dnr.state.mn.us"
 type="cite">
  <pre wrap="">Josh, you can use MapServer templates to do this sort of thing. With this approach
you can control most aspects of the output file because you have to write the
basics. MapServer then adds feature specific things like geometries and attributes
based on your template. You can run this nightly using a command line approach
like so:

  mapserv -nh "QUERY_STRING=map=your.map&amp;mode=nsquery&amp;qformat=mykml&amp;layer=somelayer" &gt; somelayer.kml

The -nh surpresses the http headers so you can redirect your output to a file easily.

This approach does not convert MapServer styling to KML, you'd need to make that
part of your template. You can also build multi layer KML with this approach with one
template used to represent multiple layers. Let me know if you need an example.

Steve

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">Josh Hevenor <a class="moz-txt-link-rfc2396E" href="mailto:jhevenor@rogers.com">&lt;jhevenor@rogers.com&gt;</a> 09/01/09 6:21 PM &gt;&gt;&gt;
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->I've been using the ogr2ogr kml exporter to build some nightly conversions
of shape data. I'm wondering if there's a way to include symbolization
here...something that accepts a mapfile and a layername (or just a
mapfile, or whatever) and exports kml.

Alternatively, I've used the ArcObjects 9.3 LayerToKML_converter and I have
nicely symbolized features coming outbut no attributes.  

Has anyone used open source tools and gotten both?  Any advice would be
appreciated. If anyone has advice on an Arc approach they can contact me
off-list.

Thanks,

Josh

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
  </pre>
  <pre wrap="">
<hr size="4" width="90%">

No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a> 
Version: 8.5.409 / Virus Database: 270.13.74/2339 - Release Date: 09/01/09 06:52:00

  </pre>
</blockquote>
</body>
</html>