KML 转 GML

KML 转 GMLbr/?xmlversion=”1.0″encoding=”iso-8859-1″?br/ xsl:stylesheetversion=”1.0″xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”xmlns:gml=”http://www.opengis.net/gml”xmlns:wfs=”http://www.opengis.net/wfs”br/ br/        xsl:outputmethod

大家好,欢迎来到IT知识分享网。KML 转 GML

<?xml version=”1.0″ encoding=”iso-8859-1″?>
 <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” xmlns:gml=”http://www.opengis.net/gml” xmlns:wfs=”http://www.opengis.net/wfs“>
 
         <xsl:output method=”xml” indent=”yes” encoding=”ISO-8859-1″ omit-xml-declaration=”no” />
 
         <xsl:template match=”/”>
                 <wfs:FeatureCollection>                 
                         <xsl:apply-templates />
                 </wfs:FeatureCollection>
         </xsl:template>
         
         <xsl:template match=”open” />
         
         <xsl:template match=”Placemark”>
                 <gml:featureMember>
                         <myFeature>
                                 <xsl:apply-templates />
                         </myFeature>
                 </gml:featureMember>
         </xsl:template>
         
         <xsl:template match=”LookAt” />
         <xsl:template match=”visibility” />
         <xsl:template match=”styleUrl” />
         <xsl:template match=”Style” />
         
         <xsl:template match=”name”>
                 <gml:name><xsl:value-of select=”.” /></gml:name>
         </xsl:template>
         
         <xsl:template match=”description”>
                 <gml:description><xsl:value-of select=”.” /></gml:description>
         </xsl:template>
 
         <xsl:template match=”Point”>
                 <gml:Point>
                         <xsl:apply-templates />
                 </gml:Point>
         </xsl:template>
         
         <xsl:template match=”LineString”>
                 <gml:LineString>
                         <xsl:apply-templates />
                 </gml:LineString>
         </xsl:template>
 
         <xsl:template match=”Polygon”>
                 <gml:Polygon>
                         <xsl:apply-templates />
                 </gml:Polygon>
         </xsl:template>
         
         <xsl:template match=”extrude” />
         <xsl:template match=”tessellate” />
         <xsl:template match=”altitudeMode” />
         
         <xsl:template match=”outerBoundaryIs”>
                 <gml:outerBoundaryIs>
                         <xsl:apply-templates />
                 </gml:outerBoundaryIs>
         </xsl:template>
         
         <xsl:template match=”innerBoundaryIs”>
                 <gml:innerBoundaryIs>
                         <xsl:apply-templates />
                 </gml:innerBoundaryIs>
         </xsl:template>
         
         <xsl:template match=”LinearRing”>
                 <gml:LinearRing>
                         <xsl:apply-templates />
                 </gml:LinearRing>
         </xsl:template>
 
         <xsl:template match=”coordinates”>
                 <gml:coordinates>
                         <xsl:value-of select=”.” />
                 </gml:coordinates>
         </xsl:template>
         
 </xsl:stylesheet>

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/14864.html

(0)

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

关注微信