??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲v日本v欧美v久久精品,91精品国产99久久久久久红楼,成人亚洲欧美http://www.aygfsteel.com/siriusfx/zh-cnThu, 01 May 2025 18:40:03 GMTThu, 01 May 2025 18:40:03 GMT60Google Maps 5.0手机地图?D界面演示Q{载)http://www.aygfsteel.com/siriusfx/archive/2010/12/12/340429.html天狼天狼Sun, 12 Dec 2010 13:54:00 GMThttp://www.aygfsteel.com/siriusfx/archive/2010/12/12/340429.htmlhttp://www.aygfsteel.com/siriusfx/comments/340429.htmlhttp://www.aygfsteel.com/siriusfx/archive/2010/12/12/340429.html#Feedback1http://www.aygfsteel.com/siriusfx/comments/commentRss/340429.htmlhttp://www.aygfsteel.com/siriusfx/services/trackbacks/340429.htmlAndroid老大哥安q鲁宾近日在发布2.3姜饼pȝ和Nexus S的时候曾演示了最新版本的Google Maps 5.0手机地图Q最大的变化是采用了全3D地图?/p>

在新版手机地图中Q矢量图替换原本的2D画面为用户呈现出全新?D界面Q用户可以自q转动和羃放。此外用戯会获得ȝ地图览功能Q不用在览地图时保持在U状态?/p>

Google现在在其官方手机频道又放Z一D는Nexus Sq行新版Maps应用的全功能演示Q这ƾY件将会随Nexus S上市Q之后提供其他设备更斎ͼ但是Ҏ(gu)机硬件有一定的要求Q新?00MHz?GHz处理器且配有专用囑Ş核心的手机才能支?D视图?/p>

原文见驱动之?br /> http://news.mydrivers.com/1/181/181818.htm


天狼 2010-12-12 21:54 发表评论
]]>
使用OpenLayers讉K天地图W(wng)FS数据http://www.aygfsteel.com/siriusfx/archive/2010/12/10/340250.html天狼天狼Fri, 10 Dec 2010 08:22:00 GMThttp://www.aygfsteel.com/siriusfx/archive/2010/12/10/340250.htmlhttp://www.aygfsteel.com/siriusfx/comments/340250.htmlhttp://www.aygfsteel.com/siriusfx/archive/2010/12/10/340250.html#Feedback3http://www.aygfsteel.com/siriusfx/comments/commentRss/340250.htmlhttp://www.aygfsteel.com/siriusfx/services/trackbacks/340250.html 不过qƈ不媄响我们的使用Q因为OGC WFS规范包含元数据查询命令,通过发送getCapabilitieshQ我们可以得知服务器提供哪些WFS服务?br />
获取WFS服务器元数据
http://search.tianditu.com/wfs?request=getCapabilities
q回信息如下Q?br /> <WFS_Capabilities version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net//wfs/1.0.0/WFS-capabilities.xsd">
<Service>
<Name>GeoGlobe WFS</Name>
<Title>GeoGlobe|络要素服务?lt;/Title>
<Abstract>武大吉奥信息技术有限公司GeoGlobe|络要素服务?lt;/Abstract>
<KeywordList/>
<OnlineResource>http://search.tianditu.com:80/wfs</OnlineResource>
</Service>
<Capability>
<Request>
<GetCapabilities>
<DCPType>
<HTTP>
<Get onlineResource="http://search.tianditu.com:80/wfs"/>
</HTTP>
</DCPType>
</GetCapabilities>
<GetFeature>
<ResultFormat>
<GML2/>
</ResultFormat>
<DCPType>
<HTTP>
<Get onlineResource="http://search.tianditu.com:80/wfs"/>
<Post onlineResource="http://search.tianditu.com:80/wfs"/>
</HTTP>
</DCPType>
</GetFeature>
<DescribeFeatureType>
<SchemaDescriptionLanguage>
<XMLSCHEMA/>
</SchemaDescriptionLanguage>
<DCPType>
<HTTP>
<Get onlineResource="http://search.tianditu.com:80/wfs"/>
</HTTP>
</DCPType>
</DescribeFeatureType>
</Request>
<VendorSpecificCapabilities/>
</Capability>
<FeatureTypeList>
<Operations>
<Query/>
</Operations>
<FeatureType>
<Name>DOMAIN_POI_NEW</Name>
<Title>DOMAIN_POI_NEW</Title>
<Abstract>DOMAIN_POI_NEW</Abstract>
<Keywords>DOMAIN_POI_NEW</Keywords>
<SRS>EPSG:4326</SRS>
<LatLongBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</FeatureType>
<FeatureType>
<Name>iso19112:SI_Gazetteer</Name>
<Title>iso19112:SI_Gazetteer</Title>
<SRS>EPSG:4326</SRS>
<LatLongBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</FeatureType>
</FeatureTypeList>
<ogc:Filter_Capabilities>
<ogc:Spatial_Capabilities>
<ogc:Spatial_Operators>
<ogc:BBOX/>
<ogc:Equals/>
<ogc:Disjoint/>
<ogc:Intersect/>
<ogc:Touches/>
<ogc:Crosses/>
<ogc:Within/>
<ogc:Contains/>
<ogc:Overlaps/>
<ogc:Beyond/>
</ogc:Spatial_Operators>
</ogc:Spatial_Capabilities>
<ogc:Scalar_Capabilities>
<ogc:Logical_Operators/>
<ogc:Comparison_Operators>
<ogc:Simple_Comparisons/>
<ogc:Like/>
<ogc:Between/>
</ogc:Comparison_Operators>
</ogc:Scalar_Capabilities>
</ogc:Filter_Capabilities>
</WFS_Capabilities>

q回信息包含了WFS服务器的开发单位(武大吉奥Q,W(xu)FS囑ֱ的名UͼDOMAIN_POI_NEW和iso19112:SI_GazetteerQ,支持的逻辑操作W和I间操作W?br />
l箋试
http://search.tianditu.com/wfs?request=GetFeature&version=1.0.0&typeName=DOMAIN_POI_NEW&BBOX=105.99,29.99,106,30
q回
<wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs WFS_Basic.xsd http://www.geostart.com.cn/geoglobe describe.xsd">
<gml:boundedBy>
<gml:Box>
<gml:coordinates>-180.0,-90.0 180.0,90.0</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<DOMAIN_POI_NEW>
<OID>6764930</OID>
<Geometry>
<gml:Point srsName="-1">
<gml:coordinates>105.999183,29.995258</gml:coordinates>
</gml:Point>
</Geometry>
<DOMAINNAME>梅子?lt;/DOMAINNAME>
<DOMAINCODE>1CHN50022400000130172</DOMAINCODE>
<NLEVEL>16</NLEVEL>
<X>105.999183</X>
<Y>29.995258</Y>
<COLDATE/>
<NAMETIME/>
<ENDTIME/>
<CLASSID/>
<STANDARDNAME>亚洲中国重庆市铜梁县梅子?lt;/STANDARDNAME>
<TELEPHONE/>
<ADDRESS/>
<KIND>BB80</KIND>
<ZIPCODE/>
<ADMINCODE>500224</ADMINCODE>
<POI_ID>5000000130172</POI_ID>
<PID/>
<DATATYPE>chinapoi</DATATYPE>
<FENAME/>
<locationType>
<SI_LocationType>
<name>DOMAIN_POI_NEW</name>
</SI_LocationType>
</locationType>
</DOMAIN_POI_NEW>
</gml:featureMember>
</wfs:FeatureCollection>

分析q回的GML数据Q可知DOMAIN_POI_NEW是地名图层,包含名称、代码、类别码{属性字Dc?br />
图层改为iso19112:SI_GazetteerQ没有返回Q何信息,google ISO19112Q得到如下解释:
DIN EN ISO 19112-2005 地理信息.通过地理标识W的I间定位 标准P DIN EN ISO 19112-2005 标准名称Q? 地理信息.通过地理标识W的I间定位

得到以上信息后,我们试使用Openlayers获取Q即全国地名数据库?br />
通过URLQGET方式Q访?#8220;天地?#8221;WFS服务Q可以用OpenLayers.Request.GETc,CZ代码如下Q?br />    //使用FEATUREID查询

   new OpenLayers.Request.GET( {
        url : "http://search.tianditu.com/wfs?request=GetFeature",
        params: {
            typeName: "DOMAIN_POI_NEW",
            FEATUREID: "DOMAIN_POI_NEW.6649356"
        },
        callback : handler
    });


   //使用BBOX查询

    new OpenLayers.Request.GET( {
        url : "http://search.tianditu.com/wfs?request=GetFeature",
        params: {
            typeName: "DOMAIN_POI_NEW",
            BBOX: "105.99,29.99,106,30"  //map.getExtent().toBBOX()
        },
        callback : handler
    });


说明Q?br /> url WFS服务器地址Q必d?request=GetFeature
typeName 囑ֱ名称
FEATUREID WFS的图元IDQ采用标准格式: [囑ֱ名].[OID~号]
BBOX 指定区域查询Q注意不要设|过大,否则览器可能失d应?/p>

通过POST方式讉K“天地?#8221;WFS服务Q可以用OpenLayers.Request.POSTc,CZ代码如下Q?/p>

    var xmlPara = "<?xml version='1.0' encoding='UTF-8'?>"
            + "<wfs:GetFeature maxFeatures='100' service='WFS' version='1.0.0' "
            + "xmlns:wfs='http://www.opengis.net/wfs' "
            + "xmlns:gml='http://www.opengis.net/gml' "
            + "xmlns:ogc='http://www.opengis.net/ogc' "
            + "xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' "
            + "xsi:schemaLocation='http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd'>"
            + "<wfs:Query typeName='iso19112:SI_Gazetteer' srsName='EPSG:4326'>"
            + "<ogc:Filter xmlns:ogc='http://www.opengis.net/ogc'>"
            + "<ogc:And><ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>"
            + "<ogc:PropertyName>STANDARDNAME</ogc:PropertyName>"
            + "<ogc:Literal>*解放?</ogc:Literal>"
            + "</ogc:PropertyIsLike></ogc:And></ogc:Filter>"
            + "</wfs:Query></wfs:GetFeature>";
    
    var request = OpenLayers.Request.POST( {
        url : "http://search.tianditu.com/wfs?",
        data : xmlPara,
        callback : handler
    });
};

说明Q?/p>

url WFS服务器地址

data WFSh正文Q返回的GML由回调函数handler处理

handler负责处理服务端返回的GML数据Q也是矢量化的地图数据Q根据应用需求编写代码,获取feature的通用代码如下Q?br /> var g = new OpenLayers.Format.GML();
var features = g.read(req.responseText);
for ( var i = 0; i < features.length; ++i) {
   var feature = features[i];
   var geometry = feature.geometry;
   var attributes = feature.attributes;
}

定义qo条g时请使用STANDARDNAME字段Q不要用DOMAINNAME字段Q前者应该有索引支持Q而后者没有,查询速度差别很大?/p>

l过试QtypeName="DOMAIN_POI_NEW"和typeName="iso19112:SI_Gazetteer"都能q回l果。由于缺官Ҏ(gu)档说明,不知道这两个囑ֱ有何区别?br />

试使用OpenLayers.Protocol.WFS无法讉K“天地?#8221;WFS服务Q服务器q回: h参数[REQUEST]的gؓI或不正?/p>

提醒: 使用POST查询Ӟ面文g或代码文件务必保存ؓutf-8~码Q如果用gbk、gb2312~码Q汉字地名会变成qQ导致javascript代码错误?/p>

天狼 2010-12-10 16:22 发表评论
]]>
使用Openlayers调用天地囑֜U服务数?/title><link>http://www.aygfsteel.com/siriusfx/archive/2010/12/06/339818.html</link><dc:creator>天狼</dc:creator><author>天狼</author><pubDate>Mon, 06 Dec 2010 06:06:00 GMT</pubDate><guid>http://www.aygfsteel.com/siriusfx/archive/2010/12/06/339818.html</guid><wfw:comment>http://www.aygfsteel.com/siriusfx/comments/339818.html</wfw:comment><comments>http://www.aygfsteel.com/siriusfx/archive/2010/12/06/339818.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.aygfsteel.com/siriusfx/comments/commentRss/339818.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/siriusfx/services/trackbacks/339818.html</trackback:ping><description><![CDATA[国家绘局2010q?0?1日正式发布中国公众版国家地理信息公共服务q_“天地?#8221;Q作Z国境内数据资源最全的地理信息服务|站Q?#8220;天地?#8221;ؓ公众提供权威、可信、统一的地理信息资源?span style="font-family: 宋体;"><br /> <br /> </span><span style="font-family: 宋体;">“天地?#8221;公开开放了地图数据服务接口Q第三方使用?/span><span style="font-family: 宋体;">可以直接通过互联|获取地图数?/span><span style="font-family: 宋体;">Q无需授权认证Q在公众服务信息公开斚w可以说是一ơ非常大的进步?br /> </span><span style="font-family: 宋体;">“天地?#8221;?/span><span style="font-family: 宋体;">在线服务数据q?/span><span lang="EN-US">10TB</span><span style="font-family: 宋体;">Q?/span><span style="font-family: 宋体;">以下?#8220;天地?#8221;</span><span style="font-family: 宋体;">提供</span><span style="font-family: 宋体;">的在U地理信息数据资源:</span> <table class="MsoTableLightListAccent1" style="width: 556.35pt; border-collapse: collapse; border: medium none;" border="1" cellpadding="0" cellspacing="0" width="742"> <tbody> <tr style="height: 15.25pt;"> <td style="width: 87.6pt; background: none repeat scroll 0% 0% #4f81bd; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="117"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><strong><span style="font-family: 宋体; color: white;">数据cd</span></strong></p> </td> <td style="width: 164.85pt; background: none repeat scroll 0% 0% #4f81bd; padding: 0cm 5.4pt; height: 15.25pt;" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><strong><span style="font-family: 宋体; color: white;">数据?/span></strong></p> </td> <td style="width: 50.55pt; background: none repeat scroll 0% 0% #4f81bd; padding: 0cm 5.4pt; height: 15.25pt;" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><strong><span style="font-family: 宋体; color: white;">U别</span></strong></p> </td> <td style="width: 253.35pt; background: none repeat scroll 0% 0% #4f81bd; padding: 0cm 5.4pt; height: 15.25pt;" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><strong><span style="font-family: 宋体; color: white;">服务地址</span></strong></p> </td> </tr> <tr style="height: 15.25pt;"> <td rowspan="3" style="width: 87.6pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="117"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-family: 宋体;">U划地图</span></strong></p> </td> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 15.25pt;" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span style="font-family: 宋体;">全球</span><span lang="EN-US">1:100</span><span style="font-family: 宋体;">万地理底?/span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 15.25pt;" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span lang="EN-US">2-10</span><span style="font-family: 宋体;">U?/span></p> </td> <td style="width: 253.35pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/A0512_EMap</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/AB0512_Anno</span></p> </td> </tr> <tr style="height: 7.7pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全国</span><span lang="EN-US">1:25</span><span style="font-family: 宋体;">万公开<span id="wmqeeuq" class="GramE">版数?/span>地Ş?/span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">11-12</span><span style="font-family: 宋体;">U?/span></p> </td> <td style="width: 253.35pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/B0627_EMap1112</span></p> </td> </tr> <tr style="height: 7.7pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全国车蝲D</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">13-18</span><span style="font-family: 宋体;">U?/span></p> </td> <td style="width: 253.35pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/siwei0608</span></p> </td> </tr> <tr style="height: 15.25pt;"> <td rowspan="4" style="width: 87.6pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="117"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-family: 宋体;">卫星影像</span></strong></p> </td> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全球</span><span lang="EN-US">250</span><span style="font-family: 宋体;">c_星媄?/span><span lang="EN-US"> (MODIS)</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">2-7</span><span style="font-family: 宋体;">U?/span></p> </td> <td rowspan="2" style="width: 253.35pt; padding: 0cm 5.4pt; height: 15.25pt;" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/sbsm0210</span></p> </td> </tr> <tr style="height: 7.7pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全国</span><span lang="EN-US">15</span><span style="font-family: 宋体;">c_星媄?/span><span lang="EN-US"> (ETM)</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">8-10</span><span style="font-family: 宋体;">U?/span><strong></strong></p> </td> </tr> <tr style="height: 7.7pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 7.7pt;" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span style="font-family: 宋体;">全国</span><span lang="EN-US">2.5</span><span style="font-family: 宋体;">c_星媄?/span><span lang="EN-US"> (P5)</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 7.7pt;" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span lang="EN-US">11-14</span><span style="font-family: 宋体;">U?/span></p> </td> <td style="width: 253.35pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/e11</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/e12<br /> http://tile0.tianditu.com/services/e13<br /> http://tile0.tianditu.com/services/eastdawnall</span></p> </td> </tr> <tr style="height: 7.7pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 7.7pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">地城市</span><span lang="EN-US">0.6</span><span style="font-family: 宋体;">c_星媄?/span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US"><span> </span>(<span id="wmqeeuq" class="SpellE">QuickBird</span></span><span style="font-family: 宋体;">?/span><span id="wmqeeuq" class="SpellE"><span lang="EN-US">WorldView</span></span><span lang="EN-US"> I</span><span style="font-family: 宋体;">?/span><span id="wmqeeuq" class="SpellE"><span lang="EN-US">WorldView</span></span><span lang="EN-US"> II)</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 7.7pt;" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span lang="EN-US">15-18</span><span style="font-family: 宋体;">U?/span></p> </td> <td style="width: 253.35pt; padding: 0cm 5.4pt; height: 7.7pt;" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/sbsm1518</span></p> </td> </tr> <tr style="height: 12.45pt;"> <td style="width: 87.6pt; padding: 0cm 5.4pt; height: 12.45pt;" valign="top" width="117"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-family: 宋体;">数字高程模型</span></strong></p> </td> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 12.45pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全球</span><span lang="EN-US">90X90</span><span style="font-family: 宋体;">cx字高E模?/span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 12.45pt;" valign="top" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US"> </span></p> </td> <td style="width: 253.35pt; padding: 0cm 5.4pt; height: 12.45pt;" valign="top" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US">http://tile0.tianditu.com/services/J07098</span></p> </td> </tr> <tr style="height: 15.25pt;"> <td rowspan="3" style="width: 87.6pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="117"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-family: 宋体;">地名地址</span></strong></p> </td> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全球</span><span lang="EN-US">1:100</span><span style="font-family: 宋体;">万地名地址</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="67"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US"> </span></p> </td> <td rowspan="3" style="width: 253.35pt; padding: 0cm 5.4pt; height: 15.25pt;" width="338"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span lang="EN-US">http://search.tianditu.com/wfs</span></p> </td> </tr> <tr style="height: 15.25pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全国</span><span lang="EN-US">1:25</span><span style="font-family: 宋体;">万地名地址</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 15.25pt;" width="67"><br /> </td> </tr> <tr style="height: 15.25pt;"> <td style="width: 164.85pt; padding: 0cm 5.4pt; height: 15.25pt;" valign="top" width="220"> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-family: 宋体;">全国车蝲D地名地址</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 15.25pt;" width="67"><br /> </td> </tr> </tbody> </table> 除地名地址数据使用OGC WFS协议发布外,其他数据全部采用ZOGC WMS-C协议的分U瓦片Ş式发布,工作原理cM于谷歌地囑֒OSMQOpenStreetMapQ?br /> <span style="font-family: 宋体;"><br /> </span><span style="font-family: 宋体;">cM</span><span style="font-family: 宋体;">h地图Q?#8220;天地?#8221;Z联网开发h员提供了二次开发APIQ?/span>武大吉奥开发的GeoGlobe二维地图APIQ?br /> <br /> 通过分析GeoGlobe API代码Q发现它源自OpenlayersQ大部分代码除了把Openlayers换成<code class="jscript plain">GeoSurf</code>外,没有M变化。不知道Openlayers目l就此作何感惟?br /> 正因为如此,我们可以参考OpenLayers.Layer.TileCache和OpenLayers.Layer.XYZc,~写一个专用于d“天地?#8221;的TDTLayerc,使Openlayers能够直接讉K“天地?#8221;的在U地图数据?br /> <br /> “天地?#8221;采用256×256像素Qpng格式的地囄片文Ӟd单个文g需要四个参敎ͼT、X、Y、L<br /> T=瓦片QTileQ名UͼX=瓦片横向~码QY=瓦片U向~码QL=瓦片U别<br /> q个是一个完整的hCZQhttp://tile0.tianditu.com/DataServer?T=AB0512_Anno&X=50&Y=12&L=6<br /> <code class="jscript plain"> <br /> “</code><span style="font-family: 宋体;">天地?#8221;</span><span style="font-family: 宋体;">地理信息数据资源列表地囄片分?6U(L=2-18Q,其中L=2U比例尺最,对应全球地图?br /> L=2U只?个瓦片文Ӟ分别?/span>Q?br />  X= 0 1 2 3 0 1 2 3<br /> <code class="jscript plain"> Y= 0 0 0 0 1 1 1 1<br /> L=3U有32个瓦片文Ӟ分别是:<br />  X= 0-7<br />  Y= 0-3<br /> L=4U有128个瓦片文Ӟ分别是:<br />  X= 0-15<br />  Y= 0-7<br /> 其余各以此cLQ每U的瓦片文g数比前一U增?倍,其中U划地图10U以上,卫星地图8U以上只提供中国境内的数据,没有覆盖全球?br /> <br /> 查看</code>GeoGlobe APIM?code class="jscript plain">GeoSurfJSAPI.js文gQ相当于</code>Openlayers.js<code class="jscript plain">Q?/code>Q可以了解X(x_num)、Y(y_num)、L(level)的生成方法,伪代码如下:<br /> level=getLevelForResolution(map.getResolution()); //计算瓦片U别<br /> coef=TopTileSize.w/Math.pow(2,level); //中间pL<br /> x_num=this.pyramid.topTileFromX<this.pyramid.topTileToX?Math.round((bounds.left-this.pyramid.topTileFromX)/coef):Math.round((this.pyramid.topTileFromX-bounds.right)/coef);<br /> y_num=this.pyramid.topTileFromY<this.pyramid.topTileToY?Math.round((bounds.bottom-this.pyramid.topTileFromY)/coef):Math.round((this.pyramid.topTileFromY-bounds.top)/coef);<br /> <pre>Ҏ(gu)当前分L率计地囄片?br /> function getLevelForResolution(res){<br /> var ratio=map.getMaxResolution()/res;<br /> if(ratio<1)return 0;<br /> for(var level=0;ratio/2>=1;)<br /> {level++;ratio/=2;}<br /> return level;<br /> }<br /> <br /> l过单测试,“天地?#8221;和谷歌地囑֜数据上差别不大,二次开发方面借助于强?code class="jscript plain"></code>的Openlayers地图客户端引擎不会弱于Google Map APIQ唯独在速度上与h地图存在较大差距Q特别是地图攑֤?3U?18U时Qgq变得非常明显,有时甚至无法昄?br /> 使用Firebug跟踪q行发现Q大U?/3的地囄片请求超ӞD客户端读取失败?br /> “天地?#8221;目前q处于测试阶D,希望相关单位l箋改进和提升服务器端性能Q快速稳定的响应大量客户端发出的q发h?br /> </pre> <span lang="EN-US"> 试中发玎ͼ</span>“天地?#8221;开攄地图数据服务接口?span lang="EN-US">tile0.tianditu.com一直到</span><span lang="EN-US">tile7.tianditu.com</span>。依ơping q?个服务接口,<span lang="EN-US">tile1?/span><span lang="EN-US">tile7</span>的响应速度相对较快。修改客L(fng)js代码Q将瓦片地图hq_发送给<span lang="EN-US">tile0?/span><span lang="EN-US">tile7 八个服务接口Q可以有效加快地图显C速度?/span><code plain="">“天地?#8221;提供的GeoSurfJSAPI.js?/code>已经包含相关代码Q通过lLayer的mirrorUrl属性赋|可以均衡d指定的多个服务接口,代码如下Q?br />                         var layer3 = new GeoSurf.Layer.GlobeTile("siwei0608", "http://tile6.tianditu.com/services/siwei0608", {<br />                                 transitionEffect: "resize",<br />                                 topLevel: 13,<br />                                 bottomLevel: 18,<br />                                 maxExtent: new GeoSurf.Bounds(100, 27, 110, 34),<br />                                 mirrorUrls: [<br />                                     "http://tile1.tianditu.com/services/siwei0608",<br />                                     "http://tile2.tianditu.com/services/siwei0608",<br />                                     "http://tile3.tianditu.com/services/siwei0608",<br />                                     "http://tile4.tianditu.com/services/siwei0608",<br />                                     "http://tile5.tianditu.com/services/siwei0608",<br />                                     "http://tile6.tianditu.com/services/siwei0608"<br />                                 ]<br />                             });<br /> <br /> 客户端用上q读取策略后Q即便放大到17-18U,整幅地图也能够完全显C,速度有明昄提升?br /> <br /> <br /> <img src ="http://www.aygfsteel.com/siriusfx/aggbug/339818.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/siriusfx/" target="_blank">天狼</a> 2010-12-06 14:06 <a href="http://www.aygfsteel.com/siriusfx/archive/2010/12/06/339818.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MapServer使用W记Q三Q?/title><link>http://www.aygfsteel.com/siriusfx/archive/2010/12/01/339507.html</link><dc:creator>天狼</dc:creator><author>天狼</author><pubDate>Wed, 01 Dec 2010 07:00:00 GMT</pubDate><guid>http://www.aygfsteel.com/siriusfx/archive/2010/12/01/339507.html</guid><wfw:comment>http://www.aygfsteel.com/siriusfx/comments/339507.html</wfw:comment><comments>http://www.aygfsteel.com/siriusfx/archive/2010/12/01/339507.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/siriusfx/comments/commentRss/339507.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/siriusfx/services/trackbacks/339507.html</trackback:ping><description><![CDATA[<strong>发布</strong><strong>WFS</strong><strong>矢量地图</strong> <br /> <br /> OGC WFS协议定义了地囑֮L(fng)查询和传送矢量数据的Ҏ(gu)Q在查询、分析、动态绘囄实际应用中非常有用。MapServer支持OGC WFS 1.0.0?.1.0规范?br /> <br /> 重新定义一个Mapfile文gQ命名ؓext2.mapQ内容如下:<br /> MAP<br /> <br />   NAME "vector"<br />     SHAPEPATH "I://cn_data"<br />     <br />     FONTSET fonts.txt<br />     IMAGECOLOR 255 255 255<br />     IMAGETYPE agg<br /> <br />     SIZE 800 600<br />     STATUS ON<br />     UNITS DD<br />     EXTENT 115.275 39.2204 117.475 40.9462<br />     <br />     OUTPUTFORMAT<br />         NAME agg<br />         DRIVER AGG/PNG<br />         IMAGEMODE RGB<br />         FORMATOPTION "INTERLACE=false"<br />         MIMETYPE "image/png"<br />     END<br /> <br />     PROJECTION<br />         "init=epsg:4326"<br />     END<br /> <br />     WEB<br />         METADATA<br />             "wms_title"                       "road wms"<br />             "wfs_title"                       "road wfs"<br />             "wms_onlineresource"              "http://192.98.151.23/cgi-bin/mapserv.exe?"  #mapserver服务器的url<br />             "wms_srs"                         "EPSG:4326"   #地图坐标p?        <br />         END<br />     END<br /> <br />     LAYER<br />         NAME "road"<br />         METADATA<br />             "wms_title"                       "road"<br />             "wfs_title"                       "road"<br />             "wms_srs"                         "EPSG:4326"  #囑ֱ坐标p?br />             "gml_include_items"             "all" <br />             "gml_featureid"                 "id" #必须指定id<br />         END<br />         STATUS ON<br />         DATA "roa_4m.shp"<br />         TYPE line<br />         DUMP TRUE<br />         CLASS<br />             STYLE<br />                 COLOR "#00FF00"<br />             END<br />         END<br />     END<br /> <br /> END<br /> <br /> 该文件中有两lMETADATA标签Q是WFSQWMSQ?Server所需要的Q分别是MAP的METADATA标签和LAYER的METADATA标签?br /> 前者是针对整个地图的全局定义Q后者是每个囑ֱ的元数据定义?br /> <br /> 保存Mapfile文gQ打开览器进行测?br /> http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities<br /> 正常情况下,可以看到以下q回信息<br /> <WFS_Capabilities version="1.0.0" updateSequence="0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"><br /> <!--<br />  MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE <br /> --><br /> <Service><br /> <Name>MapServer WFS</Name><br /> <Title>road wfs</Title><br /> <OnlineResource><br /> http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&<br /> </OnlineResource><br /> </Service><br /> <Capability><br /> <Request><br /> <GetCapabilities><br /> <DCPType><br /> <HTTP><br /> <Get onlineResource="http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&"/><br /> </HTTP><br /> </DCPType><br /> <DCPType><br /> <HTTP><br /> <Post onlineResource="http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&"/><br /> </HTTP><br /> </DCPType><br /> </GetCapabilities><br /> <DescribeFeatureType><br /> <SchemaDescriptionLanguage><br /> <XMLSCHEMA/><br /> </SchemaDescriptionLanguage><br /> <DCPType><br /> <HTTP><br /> <Get onlineResource="http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&"/><br /> </HTTP><br /> </DCPType><br /> <DCPType><br /> <HTTP><br /> <Post onlineResource="http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&"/><br /> </HTTP><br /> </DCPType><br /> </DescribeFeatureType><br /> <GetFeature><br /> <ResultFormat><br /> <GML2/><br /> </ResultFormat><br /> <DCPType><br /> <HTTP><br /> <Get onlineResource="http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&"/><br /> </HTTP><br /> </DCPType><br /> <DCPType><br /> <HTTP><br /> <Post onlineResource="http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&"/><br /> </HTTP><br /> </DCPType><br /> </GetFeature><br /> </Request><br /> </Capability><br /> <FeatureTypeList><br /> <Operations><br /> <Query/><br /> </Operations><br /> <FeatureType><br /> <Name>road</Name><br /> <Title>road</Title><br /> <SRS>EPSG:4326</SRS><br /> <LatLongBoundingBox minx="80.3869" miny="18.2823" maxx="132.515" maxy="49.6272"/><br /> </FeatureType><br /> </FeatureTypeList><br /> <ogc:Filter_Capabilities><br /> <ogc:Spatial_Capabilities><br /> <ogc:Spatial_Operators><br /> <ogc:Equals/><br /> <ogc:Disjoint/><br /> <ogc:Touches/><br /> <ogc:Within/><br /> <ogc:Overlaps/><br /> <ogc:Crosses/><br /> <ogc:Intersect/><br /> <ogc:Contains/><br /> <ogc:DWithin/><br /> <ogc:BBOX/><br /> </ogc:Spatial_Operators><br /> </ogc:Spatial_Capabilities><br /> <ogc:Scalar_Capabilities><br /> <ogc:Logical_Operators/><br /> <ogc:Comparison_Operators><br /> <ogc:Simple_Comparisons/><br /> <ogc:Like/><br /> <ogc:Between/><br /> </ogc:Comparison_Operators><br /> </ogc:Scalar_Capabilities><br /> </ogc:Filter_Capabilities><br /> </WFS_Capabilities><br /> <br /> <strong>在OpenLayers中加载WFS囑ֱ</strong><br /> <br /> OpenLayers是一个功能强大的Web地图客户端引擎?br /> <br /> 接下来,我们利用OpenLayers的OpenLayers.Protocol.WFSc,昄刚才发布的WFS囑ֱQ代码如?br /> <br />        var protocol = OpenLayers.Protocol.WFS({<br />                     url: "http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&", //mapserver地图服务器的urlQ加上mapfi了文件的路径<br />                     featureType: "road", //layer的名U?br />                     srsName: "EPSG:4326", //layer的坐标系<br />                     geometryName: "msGeometry", //geometry字段的名U?br />                     featurePrefix: "ms"<br />                 });<br /> <br /> 以下是全部javascript代码Q?br />         window.onload = function() {<br />                 var map = new OpenLayers.Map('mapdiv', {<br />                     projection: "EPSG:4326",<br />                     units: "degree"<br />                 });<br />                 <br />                 var roads = new OpenLayers.Layer.WMS("road", "http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&", {<br />                     layers: 'road',<br />                     transparent: 'true',<br />                     format: 'image/png'<br />                 }, {<br />                     isBaseLayer: false,<br />                     visibility: true,<br />                     buffer: 0<br />                 });<br />                 <br />                 <br />                 var empty = new OpenLayers.Layer("empty", {<br />                     isBaseLayer: true<br />                 });<br />                 <br />                 var select = new OpenLayers.Layer.Vector("Selection", {<br />                     styleMap: new OpenLayers.Style(OpenLayers.Feature.Vector.style["select"]),<br />                     displayInLayerSwitcher: false<br />                 });<br />                 <br />                 var hover = new OpenLayers.Layer.Vector("Hover", {<br />                     displayInLayerSwitcher: false<br />                 });<br />                 <br />                 map.addLayers([roads, hover, select, empty]);<br />                 <br />                 var protocol = OpenLayers.Protocol.WFS({<br />                     url: "http://192.98.151.23/cgi-bin/mapserv.exe?map=I:/cn_data/ext2.map&",<br />                     featureType: "road",<br />                     srsName: "EPSG:4326",<br />                     geometryName: "msGeometry",<br />                     featurePrefix: "ms"<br />                 });<br />                 <br />                 var control = new OpenLayers.Control.GetFeature({<br />                     protocol: protocol,<br />                     box: true,<br />                     hover: true,<br />                     multipleKey: "shiftKey",<br />                     toggleKey: "ctrlKey"<br />                 });<br />                 <br />                 control.events.register("featureselected", this, function(e){<br />                     select.addFeatures([e.feature]);<br />                 });<br />                 control.events.register("featureunselected", this, function(e){<br />                     select.removeFeatures([e.feature]);<br />                 });<br />                 control.events.register("hoverfeature", this, function(e){<br />                     hover.addFeatures([e.feature]);<br />                 });<br />                 <br />                 control.events.register("outfeature", this, function(e){<br />                     hover.removeFeatures([e.feature]);<br />                 });<br />                 <br />                 map.addControl(control);<br />                 control.activate();<br />                 <br />                 map.addControl(new OpenLayers.Control.LayerSwitcher());<br />                 map.addControl(new OpenLayers.Control.MousePosition());<br />                 <br />                 if (!map.getCenter()) {<br />                     map.zoomToMaxExtent();<br />                 }<br /> <br />             }<br /> <br /> 在浏览器中运行html面Q国道数据将以矢量方式传送到客户端,由openlayers动态绘Ӟ鼠标Ud到道路上或者选中道\Q道路将实时改变颜色Q在Web上实C传统桌面GIS应用cM的体验效果?br /> <br /> <img src ="http://www.aygfsteel.com/siriusfx/aggbug/339507.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/siriusfx/" target="_blank">天狼</a> 2010-12-01 15:00 <a href="http://www.aygfsteel.com/siriusfx/archive/2010/12/01/339507.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Geoserver 2.1Beta1发布http://www.aygfsteel.com/siriusfx/archive/2010/12/01/339477.html天狼天狼Wed, 01 Dec 2010 02:42:00 GMThttp://www.aygfsteel.com/siriusfx/archive/2010/12/01/339477.htmlhttp://www.aygfsteel.com/siriusfx/comments/339477.htmlhttp://www.aygfsteel.com/siriusfx/archive/2010/12/01/339477.html#Feedback0http://www.aygfsteel.com/siriusfx/comments/commentRss/339477.htmlhttp://www.aygfsteel.com/siriusfx/services/trackbacks/339477.html 新版本增加了多项引h注目的功能,原文如下Q?br />

WMS Cascading

Something users have asked for since the addition of WMS support itself is cascading, the ability of GeoServer to proxy for another remote WMS server like MapServer or another GeoServer. This feature has many uses such as pulling in a remote base layer and overlaying local vector data onto it or securing a locally unsecured map server. Special thanks to the University of Perugia for sponsoring this feature.

Read more about WMS cascading.

Virtual Services

Anyone who has published a large number of layers or feature types with GeoServer has probably at some point been annoyed by the fact that every single layer is published by a single global service. WMS has the ability to group and nest layers but WFS and WCS have no such equivalent. Well now with virtual services one can create multiple service endpoints within a single physical geoserver instance.

Special thanks to Landgate for funding this work.

Read more about virtual services.

Layers from SQL

GeoServer has always been good at publishing a flat database table. But users often need to do more such as pre filter the data in a table, or join two tables together, or generate column values on the fly with a function. Before this feature the recommendation was to create a view. However views can be a maintenance burden and are at times problematic.

Now one can create a layer directly from an SQL query. And on top of that query definitions can be parameterized which allows one to create dynamic queries on the fly. These parameters can be restricted with regular expressions in order to prevent an SQL injection security hole.

Special thanks to Andrea for spending much of his personal time on this one. And also to OBIS who provided the funding for the parametric component of the work.

Read more about SQL layers.

WPS

With 2.1 and the arrival of WPS we welcome a new OGC service to the family. The Web Processing Service is an OGC service for performing geospatial analysis functions over the web. The specification is extensible in nature and allows for simple processes like buffering a geometry to more complex processes such as image processing.

Historically GeoServer has been focused primarily on data delivery without any tools for performing analysis of spatial data. WPS fills that gap making GeoServer a more compete solution for geospatial web services.

Thanks to Refractions Research for the initial contribution of the WPS module and to Andrea once again for taking personal time to bring WPS support to its current state.

Read more about WPS. Download the WPS extension now to try it out.

Unit of Measure

Support for units in SLD allows one to specify values in measurements other than pixels such as feet or meters. This adds a very powerful capability to SLD that in many cases alleviates the need for multiple scale dependent rendering rules. This has the upside of greatly simplifying complex SLD documents.

Special thanks to Milton Jonathan who did the initial GeoTools work to make unit of measure support possible and to Andrea for working with Milton to improve the initial patch. Note that this feature has also been backported to the stable 2.0.x branch. Thanks to SWECO and Malmö City of Sweden for sponsoring the backport.

Read more about UOM support.

DPI Scaling

By default GeoServer renders images at a resolution of 90 DPI. While this is acceptable for the standard screen it is not acceptable for print which requires a higher resolution. Now it is possible to supply a format option to a WMS request on the fly that controls the DPI setting.

Special thanks again to SWECO and to Malmö City of Sweden for sponsoring this work. Note also that this feature has also been backported to the stable 2.0.x branch.

Read more about DPI scaling.





天狼 2010-12-01 10:42 发表评论
]]>
MapServer使用W记Q二Q?/title><link>http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339138.html</link><dc:creator>天狼</dc:creator><author>天狼</author><pubDate>Fri, 26 Nov 2010 07:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339138.html</guid><wfw:comment>http://www.aygfsteel.com/siriusfx/comments/339138.html</wfw:comment><comments>http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339138.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.aygfsteel.com/siriusfx/comments/commentRss/339138.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/siriusfx/services/trackbacks/339138.html</trackback:ping><description><![CDATA[<strong>为MapServerd瓦片~存服务</strong><br /> <br /> 国际上有两个比较行的开源地囄片缓存服务器Qgeowebcache和tilecache?br /> geowebcacheZJ2EE架构Q具有完整的Web囑Ş理界面Q支持多q程q发切图Q可以随时查看切图进度和剩余旉Q搭配geoserver非常合适?br /> titlecache采用python~写QCGI工作模式Q非常小巧,2.11版本只有令h惊讶?8K!(q一点很像MapServer)?br /> titlecache采用SHELL或DOS命o行方式运行切囄序,实时输出切图q度信息?br /> mapserver选择titlecache作ؓ地图切片~存服务器,在ms4w_3.0beta10中包含了tilecache插gQ由于beta版本存在问题Q?br /> 我们在ms4w_2.3.1正式版中手工加入tilecache服务器,具体步骤如下Q?br /> <br /> 1、从tilecache官方|站下蝲安装包tilecache-2.11.tar.gzQ该安装包适用于所有操作系l,我们使用Windows XP?br /> 2、解压安装包Q将其中的tilecache-2.11目录整体复制到ms4w的apps目录下?br /> 3、进入ms4w的http.d目录Q新Z个名为httpd_tilecache.conf的文本文Ӟ内容如下Q?br /> Alias /tilecache/ "/ms4w/apps/tilecache-2.11/"<br /> <Directory "/ms4w/apps/tilecache-2.11/"><br />   AllowOverride None<br />   Options ExecCGI<br />   Order allow,deny<br />   Allow from all<br /> </Directory><br /> addHandler cgi-script .cgi .py<br /> 4、进入ms4w/apps/tilecache-2.11目录Q打开tilecache.cgi文gQ修改第一行的python~译器\径,例如<br /> #!E:\Python25\python.exe<br /> 5、打开该目录下的tilecache.cfg文gQ修改cache标签Q指定本地磁盘缓存目录,例如<br /> [cache]<br /> type=Disk<br /> base=F:/tmp/tilecache<br /> d一个road标签Q指定地图服务类型,服务地址Qmapfile文g路径Q图层名Uͼ栅格格式Q空间参考系l编码,例如<br /> [road]<br /> type=WMS<br /> url=http://127.0.0.1/cgi-bin/mapserv.exe?map=I:/cn_data/c2.map&transparent=true&<br /> layers=road<br /> extension=png<br /> srs=EPSG:4326<br /> 6、重新启动Apache<br /> 7、打开tilecache下的index.html文gQ根据实际情况修改openlayers.js的\径,例如<br /> <script src="/openlayers/OpenLayers.js"></script><br /> 修改layer参数Q例?br /> layer = new OpenLayers.Layer.WMS( "road", "tilecache.cgi?", {layers: 'road', format: 'image/png' } );<br /> <br /> 使用览器访问http://127.0.0.1/tilecacheQW(xu)eb面上将昄l过tilecache处理的地图,客户端浏览过的地囑ֈ片文件被保存在tilecache.cfg文g指定的(f)时目录下Q这里是F:/tmp/tilecache目录Q如果其中包含客L(fng)正在h的地图,q些地图不再通过MapServer动态生成,而是直接从缓存目录读取静态图片文件。对于大用户量、高q发的地图访问,瓦片~存机制可以非常有效的提高客L(fng)d、显C地囄速度?br /> <br /> 通过执行tilecache_seed.py脚本Q可以手动生成地囑ֈ片,下面的命令给road囑ֱ发布0?U的地图切片文g?br /> python "F:\ms4w\apps\tilecache-2.11\tilecache_seed.py" road 0 6<br /> {待执行完毕Q进入缓存目录可以找到刚才发布的地图切片文g?br /> <br /> <br /> <img src ="http://www.aygfsteel.com/siriusfx/aggbug/339138.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/siriusfx/" target="_blank">天狼</a> 2010-11-26 15:45 <a href="http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339138.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MapServer使用W记Q一Q?/title><link>http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339044.html</link><dc:creator>天狼</dc:creator><author>天狼</author><pubDate>Fri, 26 Nov 2010 04:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339044.html</guid><wfw:comment>http://www.aygfsteel.com/siriusfx/comments/339044.html</wfw:comment><comments>http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339044.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/siriusfx/comments/commentRss/339044.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/siriusfx/services/trackbacks/339044.html</trackback:ping><description><![CDATA[<strong>q接Oracle Spatial<br /> <br /> </strong>前面的测试中我们使用shape文g作ؓ地图数据源,下面我们从Oracle SpatialI间数据库读取地理数据?br /> <br /> mapserver提供两种方式q接oracleI间数据库,native oracle spatial和ogr。安装包提供了支持native oracle spatial的二q制文gQogr方式需要自行编译源代码。借用以往目的Oracle 10.2.0.3数据库,MapServer采用ms4w_2.3.1已编译包Q地图服务器安装Oracle10.2客户端,q行本地|络配置Q测试连接正常?br /> <br /> 关闭Apache MS4W Web Server服务Q进入\ms4w\Apache\cgi-bin\ignored-libmap\oracle11g目录Q将libmap.dll复制_脓(chung)到\ms4w\Apache\cgi-bin目录Q替换原有文Ӟ启动Apache MS4W Web Server服务?br /> <br /> 新徏一个Mapfile文gQLAYER部分如下<br /> LAYER<br />     NAME "road"<br />     TYPE LINE<br />     CONNECTION "geouser/123456@geodb" #数据库连接字W串<br />     CONNECTIONTYPE oraclespatial      #q接cd为oracle spatial<br />     DATA "GEOLOC FROM NAV_ROAD1 USING SRID 4326"  #此处GEOLOC为GEOMETRY字段名,NAV_ROAD1?br />     PROJECTION<br />        "init=epsg:4326" #必须指定SRS~码<br />     END<br />     DUMP TRUE<br />     CLASS<br />         STYLE<br />             COLOR 0 128 128<br />         END<br />     END<br /> END<br /> <br /> DATA标签使用如下格式<br /> "[geom_column]<br /> FROM<br /> [table]| [(SELECT [...]<br /> FROM [table]|[Spatial Operator]<br /> [WHERE condition] )]<br /> [USING [UNIQUE column]| [SRID #srid]| [FUNCTION]| [VERSION #version]<br /> ]"<br /> <pre>注意Q不要在FROM之前加入属性字D名Q属性字D可d在FROM后的子查询中Q如下所C?br /> <br /> <br /> <br /> GEOLOC FROM (SELECT MI_PRINX AS OID, NAME AS ONAME, COLOR AS COLOR, GEOLOC AS GEOLOC FROM NAV_ROAD1) USING SRID 4326<br /> <br /> <br /> <br /> LABEL或STYLE用到的属性字D必d含在SELECT子查询中?br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> 修改openlayers客户端代?br /> <br /> <br /> <br /> var ms_layer = new OpenLayers.Layer.WMS(<br /> <br /> <br /> <br /> </pre>                 "Test Map",<br />                 "/cgi-bin/mapserv.exe",<br />                 {   <br />                     layers: 'road',<br />                     map: 'I:/cn_data/c2.map',<br />                     format: 'png'<br />                 },<br />                 {<br />                     reproject: false,<br />                     'numZoomLevels': 20,<br />                     gutter: 15,<br />                     buffer: 0<br />                 }<br />             );<br /> <br /> 打开览器,查看效果?br /> <strong><br /> 为图层添加标注(LabelQ?/strong><br /> <br /> 在地图上标注文字Q必然涉及到字体QMapServer采用与操作系l无关的设计Q不能自动获知当前操作系l下安装了哪些字体,必须手工创徏字体集FONTSET文g?br /> 该文件的格式非常单,每行配置一个字体,左边是字体名Q可自由命名Q,双是字体文件的路径Q请使用l对路径Q,如下所C:<br /> arial   C:\WINDOWS\Fonts\arial.ttf<br /> sans    C:\WINDOWS\Fonts\SIMSUN.TTC<br /> 以上内容保存ؓ文本文gQ文件名和扩展名不限Q例如保存ؓfonts.txt<br /> <br /> 在Mapfile的Map标签下添加一?br /> FONTSET fonts.txt #指明字体集文Ӟ可以包含路径<br /> <br /> 在Mapfile的Layer标签中添加一?br /> LABELITEM "NAME"  #指明标注所用的字段?br /> <br /> 在Layer下的CLASS标签中添加以下内?br /> LABEL<br />     COLOR  0 0 0<br />     OUTLINECOLOR 255 255 255<br />     FONT "sans"  #此处sans对应宋体SIMSUN.TTC<br />     TYPE truetype<br />     SIZE 6<br />     POSITION AUTO<br />     PARTIALS FALSE<br />     ENCODING GBK #此处为文字编码,如果不设|该|中文不能正显C。对于中文WindowspȝQ操作系l的默认~码为GBK?br /> END<br /> <br /> 注意Qms4w_3.0beta11属于开发版本,支持shape文g数据源配|label标签Q不支持oracle spatial数据源配|label标签?br /> ZdoracleI间表中的属性生成标{,我们换用ms4w_2.3.1正式版,pȝ工作正常?br /> <br /> <strong>使用动态样式(STYLEQ?/strong><br /> <br /> 实际应用中对地图的渲染有很多要求QMapServer支持动态设|STYLEQ修改Mapfile文gLAYER的STYLEQ例如:<br /> STYLE<br />     COLOR [COLOR]<br /> END<br /> 每条道\的颜色由道\表的属性字DCOLOR军_Q与之类|可以从数据库取值填充SYMBOL,SIZE,ANGLE{标{?br /> 提示QMapServer的颜色码可以使用[r] [g] [b]十进制格式,也可以用Web开发中常用的RRGGBB十六q制格式Q例如:#FF0000<br /> <br /> <br /> <img src ="http://www.aygfsteel.com/siriusfx/aggbug/339044.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/siriusfx/" target="_blank">天狼</a> 2010-11-26 12:16 <a href="http://www.aygfsteel.com/siriusfx/archive/2010/11/26/339044.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MapServer的安装和使用http://www.aygfsteel.com/siriusfx/archive/2010/11/24/338955.html天狼天狼Wed, 24 Nov 2010 09:39:00 GMThttp://www.aygfsteel.com/siriusfx/archive/2010/11/24/338955.htmlhttp://www.aygfsteel.com/siriusfx/comments/338955.htmlhttp://www.aygfsteel.com/siriusfx/archive/2010/11/24/338955.html#Feedback5http://www.aygfsteel.com/siriusfx/comments/commentRss/338955.htmlhttp://www.aygfsteel.com/siriusfx/services/trackbacks/338955.htmlMapServer?/strong>
    在开源WebGIS领域QMapServer的历史和名气都超qGeoServerQ?0世纪90q代中期Q由明尼苏达大学研制Q,很早p列入OSGeo目l?
与GeoServer不同QMapServer用C语言~写Q采用传l的CGI架构Q融合了Pro4j、GDAL{开源项目。对比J2EE架构的GeoServerQMapServer昑־非常_yQ?.6版本的核心部分只?3KBQ源代码只有2.2MQ包括Apache、Php、Pro4j、GDAL、MapScript在内的完整安装包也只?5M?br />
安装q程
    和Java一PCh良好的跨q_Ҏ(gu),MapServer支持Windows、Linux、Mac OS X{操作系l?br />
    官方|站对Unix和W(xu)indowsq_下的源代码安装步骤给Z详细说明。根据说明下载需要的W三方库Q然后在Shell命o行模式下~译源代码,对于~少Unix Shell或DOS操作l验的用P q是一件比较头疼的事情。好在MapServer已经考虑C习惯命o行操作的Windows用户Q给ZWindows下的已编译安装包ms4wQ目前最新版本是3.0beta11?
   
    ms4w的安装过E很单,下蝲ms4wQ解压羃到硬盘Q意目录(目录名最好不要包含中文字W)Q打开命o提示W窗口,切换到ms4w所在目录,键入apache-install卛_。(提示Q如果机器上安装有Apache或IISQ运行apache-install之前Q请它们关闭。ms4w安装后不会和原有的Apache冲突。)

看到如下信息Q说明安装成功?br /> Installing the Apache MS4W Web Server service
The Apache MS4W Web Server service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service
can be started.
The Apache MS4W Web Server service is starting.
The Apache MS4W Web Server service was started successfully.

安装完成后,使用览器访?http://127.0.0.1/cgi-bin/mapserv.exeQMapServerq回如下提示信息
No query information to decode. QUERY_STRING is set, but empty.

发布地图数据
    cM于Arcgis Server和GeoServerQMapServer采用零代码编写的配置文g方式理地图发布Q配|文件被UCؓMapfileQ后~名ؓmap?

    Mapfile有三U编写方式:
    1、参考官Ҏ(gu)档Mapfile章节Q手工编?
    q种方式要求开发h员对Mapfile的编写规则非常熟(zhn),否则很容易出错?br />     2、类似Arcgis Server和GeoServer提供的Web囑Ş化配|界面,MapServer有一个对应的开源项目MapLabQ提供基于Web的图形化配置界面
    不过个h感觉QMapLab的易用性远逊于Arcgis Server和GeoServer?
    3、用开源桌面^台QGISQ自动生成Mapfile文g
    对于新手Q推荐用第三种方式?

以下是测试用的Mapfile文gQMapServer对Mapfile文g的存放位|没有特D要求,可以存放在不同的计算Z?br />
# Mapfile文g必须以MAP开?
MAP
# Map的名?test
NAME test
STATUS ON
# 地图大小
SIZE 800 600
# Projection definition
# Projections are not currenlty supported. If desired, add your own # projection information based on Mapserver documentation.
# Map的坐标系
PROJECTION "init=epsg:4326"
END

# Map的全图范?
EXTENT 75 15 140 55
# Map的坐标单?DD表示l纬?
UNITS DD
# Map的背景颜?白色
IMAGECOLOR 255 255 255
# 生成的图片类型,常用gif或png
IMAGETYPE gif
# shp文g的\径,请用绝对\?
SHAPEPATH "I://cn_data"
#
# Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation
# MapServer内置了地囑֮L(fng)功能Q此处是Web客户端相兌|?
# ׃我们使用Openlayers作ؓ地图客户端,MapServer做ؓ地图服务器,此处不做讄
WEB
# HEADER
# TEMPLATE
# FOOTER
# 最、最大比例尺{
MINSCALE 1
MAXSCALE 13
# 讄IMAGEPATHQ默认\径如下,请用绝对\?
IMAGEPATH 'I:/ms4w/Apache/htdocs/tmp'
# 讄IMAGEURLQ默认\径如?
IMAGEURL '/tmp/'
END
# 讄囑ֱQ一个Map下可以包含多个LAYER
LAYER NAME polyline  # 囑ֱ名称QMapServer使用该名U?
TYPE LINE # 几何cd
STATUS ON
DATA "roa_4m" # shp文g名,不需要带扩展名,路径在前面的SHAPEPATH中指定
CLASS NAME "roa_4m" # cd
# TEMPLATE
COLOR 112 0 0 # 颜色
END
END
END # Map File

客户端测?/strong>
    接下来测试刚才徏立的MapfileQ在览器地址栏中输入 http://127.0.0.1/cgi-bin/mapserv.exe?LAYERS=polyline&MAP=I:/ms4w/Apache/htdocs/my.map&FORMAT=gif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=75,15,140,55&WIDTH=800&HEIGHT=600
大约0.5U后Q初ơ加载)Q浏览器昄Z?Q?00万道路网Q地囑֏布成功! 熟?zhn)OGC标准的朋友可能已l发玎ͼ上面的URL是WMS地图h?

直接通过CGIhQ得到的是一q静态地图,Z实现地图的羃放、O游,我们选用Openlayers地图客户端? 通过OpenLayers.Layer.WMS可以直接调用MapServer地图服务Q测试代码如下:
var ms_layer = new OpenLayers.Layer.WMS(
   "polyline", //OpenLayers中的囑ֱ?
   "/cgi-bin/mapserv.exe", //MapServer地图服务器的路径
   { layers: 'polyline', //Mapfile中定义的囑ֱ?
     map: 'I:/cn_data/my.map', //Mapfile文g的绝对\径,注意必须使用'/'而不?\'Q用相对\径无法显C地?
     format: 'gif' },
   { reproject: false,
     'numZoomLevels': 20,
     gutter: 15,
     buffer: 0 }
);

滚动鼠标滚轮Q地囄h速度保持?.5U以内。MapServerl承了C语言的特点,地图渲染效率很高?br />
写在最?/strong>
    MapServer提供两种工作方式QCGI方式Q适用于CGI、AJAX、FLEX开发h员)和MapScript方式Q适用于Php、Java、C#、Python开发h员)。以原生CGI方式效率最高,配合TileCacheQ可以快速生成大范围的地囄片数据。比较基?Net和J2EE的商业或开源^収ͼMapServer更适合高负L(fng)大型互联|地囑ֺ用?br />


天狼 2010-11-24 17:39 发表评论
]]>
Openlayers 2.10发布http://www.aygfsteel.com/siriusfx/archive/2010/09/13/331884.html天狼天狼Mon, 13 Sep 2010 04:22:00 GMThttp://www.aygfsteel.com/siriusfx/archive/2010/09/13/331884.htmlhttp://www.aygfsteel.com/siriusfx/comments/331884.htmlhttp://www.aygfsteel.com/siriusfx/archive/2010/09/13/331884.html#Feedback0http://www.aygfsteel.com/siriusfx/comments/commentRss/331884.htmlhttp://www.aygfsteel.com/siriusfx/services/trackbacks/331884.html #2493: Google layer instances with overridden methods may need to be modified, because some methods are now mixed in from OpenLayers.Layer.Google.v2. Affected API methods are
onMapResize,
getMapObjectBoundsFromOLBounds,
setMapObjectCenter,
dragPanMapObject,
getMapObjectLonLatFromMapObjectPixel,
getMapObjectPixelFromMapObjectLonLat,
getMapObjectZoomFromMapObjectBounds,
getMapObjectLonLatFromLonLat and getMapObjectPixelFromXY.
This means that when calling any of these methods on the prototype, the code needs to be changed to call it on OpenLayers.Layer.Google.v2 instead. You would e.g. have to change
OpenLayers.Layer.Google.prototype.onMapResize.apply(this, arguments);
to
OpenLayers.Layer.Google.v2.onMapResize.apply(this, arguments);
OpenLayers.Control.Panel
#2764: OpenLayers.Control.Panel does not change the active state of controls with a type of OpenLayers.Control.TYPE_BUTTON any more. If you want to retain the old behavior, create your panel with an overridden activateControl method like this:
var panel = new OpenLayers.Control.Panel({ activateControl: function(control) { OpenLayers.Control.Panel.prototype.activateControl.apply(this, arguments); if (control.active &amp;&amp; control.type == OpenLayers.Control.TYPE_TOOL) { for (var i=panel.controls.length-1; i&gt;=0; --i) { panel.controls[i].type == OpenLayers.Control.TYPE_BUTTON &amp;&amp; panel.controls[i].deactivate(); } } }
});
New Addins
InlineXhtml - adds support for WMS layers with SVG as image format, for SVG enabled browsers.

天狼 2010-09-13 12:22 发表评论
]]>
使用代理解决AJAX跨域讉K问题http://www.aygfsteel.com/siriusfx/archive/2010/08/26/329944.html天狼天狼Thu, 26 Aug 2010 02:36:00 GMThttp://www.aygfsteel.com/siriusfx/archive/2010/08/26/329944.htmlhttp://www.aygfsteel.com/siriusfx/comments/329944.htmlhttp://www.aygfsteel.com/siriusfx/archive/2010/08/26/329944.html#Feedback0http://www.aygfsteel.com/siriusfx/comments/commentRss/329944.htmlhttp://www.aygfsteel.com/siriusfx/services/trackbacks/329944.html
Ҏ(gu)应用pȝ架构的不同,代理的实现方式有很多U,包括web服务器内|代理(如ApacheQ、cgi方式代理、php代理、jsp代理、aspx代理{?br /> openlayers官方提供了一个采用python~写的cgi代理Q推荐在Apache2.2下用?br />
openlayers官方代理安装步骤Q?br /> 1、安装Python2.5Q记住安装\径?br /> 2、将openlayers官方提供的proxy.cgi复制到apache的cgi-bin目录下?br /> 修改W一行Python25的安装\径,注意不要L最前面?受?br /> 修改allowedHosts中的geoserver/mapserver ip:geoserver/mapserver port部分?br /> 3、打开conf目录下的httpd.conf文gQ修改cgi部分Q例如:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
AddHandler cgi-script .cgi .py
保存后重新启动ApacheQ在览器地址栏中填入http://apache ip/cgi-bin/proxy.cgiQ测试代理是否工作正常?br />
以下是proxy.cgi的内容:
#!C:\Python25\python.exe
# -*- coding: utf-8 -*-

import urllib2
import cgi
import sys, os

# Designed to prevent Open Proxy type stuff.

allowedHosts = ['geoserver/mapserver ip:geoserver/mapserver port',
                                'www.openlayers.org',
                                'openlayers.org']

method = os.environ["REQUEST_METHOD"]

if method == "POST":
    qs = os.environ["QUERY_STRING"]
    d = cgi.parse_qs(qs)
    if d.has_key("url"):
        url = d["url"][0]
    else:
        url = "http://www.openlayers.org"
else:
    fs = cgi.FieldStorage()
    url = fs.getvalue('url', "http://www.openlayers.org")

try:
    host = url.split("/")[2]
    if allowedHosts and not host in allowedHosts:
        print "Status: 502 Bad Gateway"
        print "Content-Type: text/plain"
        print
        print "This proxy does not allow you to access that location (%s)." % (host,)
        print
        print os.environ
 
    elif url.startswith("http://") or url.startswith("https://"):
  
        if method == "POST":
            length = int(os.environ["CONTENT_LENGTH"])
            headers = {"Content-Type": os.environ["CONTENT_TYPE"]}
            body = sys.stdin.read(length)
            r = urllib2.Request(url, body, headers)
            y = urllib2.urlopen(r)
        else:
            y = urllib2.urlopen(url)
      
        # print content type header
        i = y.info()
        if i.has_key("Content-Type"):
            print "Content-Type: %s" % (i["Content-Type"])
        else:
            print "Content-Type: text/plain"
        print
      
        print y.read()
      
        y.close()
    else:
        print "Content-Type: text/plain"
        print
        print "Illegal request."

except Exception, E:
    print "Status: 500 Unexpected Error"
    print "Content-Type: text/plain"
    print
    print "Some unexpected error occurred. Error text was:", E

备注Q部|在同一个机器、不同服务器上(相同ipQ不同端口号Q同h跨域讉K。例如地图服务器geoserver在tomcatQ端?080Q应用系l在Apache或IISQ端?0Q,q种情况下只有IE6能够正常讉KQ条件是ip地址加入可信站点列表QIE7、IE8、FF3.6都会止讉K?br />



天狼 2010-08-26 10:36 发表评论
]]>
վ֩ģ壺 ƽɽ| | ƽ| ³| ͨ| ˳| | | Ͱ| մ| | | ޽| | ˿| | | ɽ| | ƽ| ɽ| | ֵ| ʯ| ˳| | | | | | ̩| | ̫| | մ| | ī񹤿| ƽ| ԭ| ³ɽ| |