<div dir="ltr">PFB the KML and MAP file.<div><br></div><div>KML file</div><div>------------------------</div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><kml xmlns="<a href="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2</a>" xmlns:gx="<a href="http://www.google.com/kml/ext/2.2">http://www.google.com/kml/ext/2.2</a>" xmlns:kml="<a href="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2</a>" xmlns:atom="<a href="http://www.w3.org/2005/Atom">http://www.w3.org/2005/Atom</a>"></div><div><Document></div><div><Folder></div><div> <name>Fibertech solution</name></div><div> <Placemark></div><div> <name>Westborough MSC - Build</name></div><div> <styleUrl>#msn_ylw-pushpin4</styleUrl></div><div> <LineString></div><div> <tessellate>1</tessellate></div><div> <coordinates></div><div> -71.58570500983306,42.28745742866225,0 -71.58563778135751,42.28308954118536,0 -71.58466087108053,42.28307704913402,0</div><div> </coordinates></div><div> </LineString></div><div> </Placemark></div><div> <Placemark></div><div> <name>Westborough MSC to Westborugh</name></div><div> <styleUrl>#msn_ylw-pushpin8</styleUrl></div><div> <LineString></div><div> <tessellate>1</tessellate></div><div> <coordinates></div><div> -71.62172195712955,42.27186897741407,0 -71.62194000095552,42.27189433043378,0 -71.6225634332947,42.27210480296427,0 -71.62308968672842,42.27236391420707,0 -71.62394597288645,42.27309147863262,0 -71.62737594489003,42.27740640295431,0 -71.62822373584245,42.27893783334968,0 -71.63091971519079,42.28164762788888,0 -71.63207040059587,42.28370221254578,0 -71.62599732629406,42.28418518334991,0 -71.60795611539982,42.28517668969011,0 -71.60267209851122,42.28504601944216,0 -71.60188701357249,42.28516492137062,0 -71.58850360403626,42.28849573666959,0 -71.5858004650346,42.28852197680775,0 -71.58571706491037,42.2874804233345,0</div><div> </coordinates></div><div> </LineString></div><div> </Placemark></div></div><div><div><Placemark></div><div> <name>NEW Danbury</name></div><div> <Camera></div><div> <longitude>-73.45375129836707</longitude></div><div> <latitude>41.390460041635</latitude></div><div> <altitude>419.0806930250601</altitude></div><div> <heading>13.43312150541231</heading></div><div> <tilt>28.58299225276625</tilt></div><div> <roll>-0.685026358787494</roll></div><div> <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode></div><div> </Camera></div><div> <styleUrl>#msn_ylw-stars</styleUrl></div><div> <Point></div><div> <gx:drawOrder>1</gx:drawOrder></div><div> <coordinates>-73.45404626023216,41.3929335947184,0</coordinates></div><div> </Point></div><div> </Placemark></div></div><div></Folder></div><div></Document></div><div></kml></div><div>-----------------------------------</div><div>MAP</div><div>=============</div><div><div>MAP</div><div> NAME "QGIS-MAP"</div><div> # Map image size</div><div> SIZE 500 400</div><div> UNITS meters</div><div><br></div><div> EXTENT -73.454046 41.392934 -71.584661 42.288522</div><div> #FONTSET './fonts/fonts.txt'</div><div> #SYMBOLSET './symbols/symbols.txt'</div><div> #PROJECTION</div><div> # 'proj=longlat'</div><div> # 'datum=WGS84'</div><div> # 'no_defs'</div><div> #END</div><div> PROJECTION</div><div> "init=epsg:4326"</div><div> END</div><div><br></div><div> # Background color for the map canvas -- change as desired</div><div> IMAGECOLOR 255 255 255</div><div> IMAGEQUALITY 95</div><div> IMAGETYPE png</div><div><br></div><div> OUTPUTFORMAT</div><div> NAME "png"</div><div> DRIVER GD/PNG</div><div> MIMETYPE "image/png"</div><div> IMAGEMODE RGBA</div><div> EXTENSION "png"</div><div> TRANSPARENT ON</div><div> END</div><div><br></div><div> # Legend</div><div> LEGEND</div><div> IMAGECOLOR 255 255 255</div><div> STATUS ON</div><div> KEYSIZE 18 12</div><div> LABEL</div><div> TYPE BITMAP</div><div> SIZE MEDIUM</div><div> COLOR 0 0 89</div><div> END</div><div> END</div><div><br></div><div> # Web interface definition. Only the template parameter</div><div> # is required to display a map. See MapServer documentation</div><div> WEB</div><div> # Set IMAGEPATH to the path where MapServer should</div><div> # write its output.</div><div> IMAGEPATH "/tmp/ms_tmp/"</div><div><br></div><div> # Set IMAGEURL to the url that points to IMAGEPATH</div><div> # as defined in your web server configuration</div><div> IMAGEURL "/ms_tmp/"</div><div><br></div><div> # WMS server settings</div><div>METADATA</div><div> "wms_enable_request" "*"</div><div> "wms_srs" "EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986"</div><div> "labelcache_map_edge_buffer" "-10"</div><div> "wms_title" "osm fiber data"</div><div> "wms_onlineresource" "<a href="http://haxv-onecontrol-154/cgi-bin/mapserv">http://haxv-onecontrol-154/cgi-bin/mapserv</a>?"</div><div> "ows_sld_enable" "true"</div><div> END</div><div><br></div><div><br></div><div> #Scale range at which web interface will operate</div><div> # Template and header/footer settings</div><div> # Only the template parameter is required to display a map. See MapServer documentation</div><div> #TEMPLATE 'fooOnlyForWMSGetFeatureInfo'</div><div> END</div><div># Start of LAYER DEFINITIONS -----------------------------</div><div> LAYER</div><div> NAME "kml_example_point"</div><div> TYPE POINT</div><div> STATUS DEFAULT</div><div> CONNECTIONTYPE OGR</div><div> CONNECTION "doc_test.kml"</div><div> DATA "Fibertech solution"</div><div> LABELITEM "NAME"</div><div> CLASS</div><div> #NAME "Fiber Names"</div><div> STYLE</div><div> COLOR 0 0 0</div><div># OUTLINECOLOR 255 255 255</div><div> SYMBOL 'pin.png'</div><div> SIZE 16</div><div> END</div><div># LABEL</div><div># SIZE TINY</div><div># COLOR 0 0 0</div><div># OUTLINECOLOR 255 255 255</div><div># POSITION AUTO</div><div># END</div><div># END</div><div>END</div><div>#############</div><div><br></div><div># Start of LAYER DEFINITIONS -----------------------------</div><div> LAYER</div><div> NAME "kml_example"</div><div> TYPE LINE</div><div> STATUS ON</div><div> CONNECTIONTYPE OGR</div><div> CONNECTION "doc_test.kml"</div><div> DATA "Fibertech solution"</div><div> LABELITEM "NAME"</div><div> CLASS</div><div> NAME "Fiber Names"</div><div> STYLE</div><div> COLOR 250 0 0</div><div> OUTLINECOLOR 255 255 255</div><div> #SYMBOL 'pin.png'</div><div> SIZE 6</div><div> END</div><div> LABEL</div><div> SIZE TINY</div><div> COLOR 0 0 0</div><div> OUTLINECOLOR 255 255 255</div><div> POSITION AUTO</div><div> END</div><div> END</div><div>END</div><div>#############</div><div><br></div><div>END</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 5:10 PM, alok mathur <span dir="ltr"><<a href="mailto:mathuralok.88@gmail.com" target="_blank">mathuralok.88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have a kml file in which there is a folder containing both Line and Point geometry placemarks. I want to show both line and point geomerty on map using mapserver. but the issue is that the data source is same. so how can i show the point and line data on map.</div><div>Please help me.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><p><font><a name="14bfe55fadef55e4_SafeHtmlFilter__MailAutoSig"><b><span style="font-family:Arial,sans-serif">Alok Mathur</span></b></a><span style="font-family:Arial,sans-serif"> <span style="color:red">|</span> <span style="color:gray">Software Engineer 2A</span> <span style="color:red">|</span><span style="color:purple"> </span><span style="color:gray">Ciena</span></span><span style="font-family:Arial,sans-serif;color:gray"><br></span><span style="font-family:Arial,sans-serif;color:gray">Mobile +91 9899413266</span></font></p></div></div></div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p><font><a name="SafeHtmlFilter__MailAutoSig"><b><span style="font-family:Arial,sans-serif">Alok Mathur</span></b></a><span style="font-family:Arial,sans-serif"> <span style="color:red">|</span> <span style="color:gray">Software Engineer 2A</span> <span style="color:red">|</span><span style="color:purple"> </span><span style="color:gray">Ciena</span></span><span style="font-family:Arial,sans-serif;color:gray"><br></span><span style="font-family:Arial,sans-serif;color:gray">Mobile +91 9899413266</span></font></p></div></div></div></div>
</div>