锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成在线播放网站,日本红怡院亚洲红怡院最新,亚洲一区二区三区四区视频 http://www.tkk7.com/siriusfx/zh-cnFri, 09 May 2025 12:51:49 GMTFri, 09 May 2025 12:51:49 GMT60Google Maps 5.0鎵嬫満鍦板浘鍏?D鐣岄潰婕旂ず錛堣漿杞斤級(jí)http://www.tkk7.com/siriusfx/archive/2010/12/12/340429.html澶╃嫾澶╃嫾Sun, 12 Dec 2010 13:54:00 GMThttp://www.tkk7.com/siriusfx/archive/2010/12/12/340429.htmlhttp://www.tkk7.com/siriusfx/comments/340429.htmlhttp://www.tkk7.com/siriusfx/archive/2010/12/12/340429.html#Feedback1http://www.tkk7.com/siriusfx/comments/commentRss/340429.htmlhttp://www.tkk7.com/siriusfx/services/trackbacks/340429.htmlAndroid鑰佸ぇ鍝ュ畨榪瞾瀹捐繎鏃ュ湪鍙戝竷2.3濮滈ゼ緋葷粺鍜孨exus S鐨勬椂鍊欐浘婕旂ず浜?jiǎn)鏈鏂扮増鏈殑Google Maps 5.0鎵嬫満鍦板浘錛屾渶澶х殑鍙樺寲灝辨槸閲囩敤浜?jiǎn)鍏?D鍦板浘銆?/p>

鍦ㄦ柊鐗堟墜鏈哄湴鍥句腑錛岀煝閲忓浘灝嗘浛鎹㈠師鏈殑2D鐢婚潰涓虹敤鎴峰憟鐜板嚭鍏ㄦ柊鐨?D鐣岄潰錛岀敤鎴峰彲浠ヨ嚜鐢辯殑杞姩鍜岀緝鏀俱傛澶栫敤鎴瘋繕灝嗕細(xì)鑾峰緱紱葷嚎鍦板浘嫻忚鍔熻兘錛屼笉鐢ㄥ湪嫻忚鍦板浘鏃朵繚鎸佸湪綰跨姸鎬併?/p>

Google鐜板湪鍦ㄥ叾瀹樻柟鎵嬫満棰戦亾鍙堟斁鍑轟簡(jiǎn)涓孌電敤Nexus S榪愯鏂扮増Maps搴旂敤鐨勫叏鍔熻兘婕旂ず錛岃繖嬈捐蔣浠跺皢浼?xì)闅廚exus S涓婂競(jìng)錛屼箣鍚庢彁渚涘叾浠栬澶囨洿鏂幫紝浣嗘槸瀵規(guī)墜鏈虹‖浠舵湁涓瀹氱殑瑕佹眰錛屾柊嬈?00MHz鑷?GHz澶勭悊鍣ㄤ笖閰嶆湁涓撶敤鍥懼艦鏍稿績(jī)鐨勬墜鏈烘墠鑳芥敮鎸?D瑙嗗浘銆?/p>

鍘熸枃瑙侀┍鍔ㄤ箣瀹?br /> http://news.mydrivers.com/1/181/181818.htm


澶╃嫾 2010-12-12 21:54 鍙戣〃璇勮
]]>
浣跨敤OpenLayers璁塊棶澶╁湴鍥網(wǎng)FS鏁版嵁http://www.tkk7.com/siriusfx/archive/2010/12/10/340250.html澶╃嫾澶╃嫾Fri, 10 Dec 2010 08:22:00 GMThttp://www.tkk7.com/siriusfx/archive/2010/12/10/340250.htmlhttp://www.tkk7.com/siriusfx/comments/340250.htmlhttp://www.tkk7.com/siriusfx/archive/2010/12/10/340250.html#Feedback3http://www.tkk7.com/siriusfx/comments/commentRss/340250.htmlhttp://www.tkk7.com/siriusfx/services/trackbacks/340250.html 涓嶈繃榪欏茍涓嶅獎(jiǎng)鍝嶆垜浠殑浣跨敤錛屽洜涓篛GC WFS瑙勮寖鍖呭惈鍏冩暟鎹煡璇㈠懡浠わ紝閫氳繃鍙戦乬etCapabilities璇鋒眰錛屾垜浠彲浠ュ緱鐭ユ湇鍔″櫒鎻愪緵鍝簺WFS鏈嶅姟銆?br />
鑾峰彇WFS鏈嶅姟鍣ㄥ厓鏁版嵁
http://search.tianditu.com/wfs?request=getCapabilities
榪斿洖淇℃伅濡備笅錛?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>姝﹀ぇ鍚夊ゥ淇℃伅鎶鏈湁闄愬叕鍙窯eoGlobe緗戠粶瑕佺礌鏈嶅姟鍣?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>

榪斿洖淇℃伅鍖呭惈浜?jiǎn)WFS鏈嶅姟鍣ㄧ殑寮鍙戝崟浣嶏紙姝﹀ぇ鍚夊ゥ錛夛紝W(xué)FS鍥懼眰鐨勫悕縐幫紙DOMAIN_POI_NEW鍜宨so19112:SI_Gazetteer錛夛紝鏀寔鐨勯昏緫鎿嶄綔絎﹀拰絀洪棿鎿嶄綔絎︺?br />
緇х畫嫻嬭瘯
http://search.tianditu.com/wfs?request=GetFeature&version=1.0.0&typeName=DOMAIN_POI_NEW&BBOX=105.99,29.99,106,30
榪斿洖
<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>浜氭床涓浗閲嶅簡(jiǎn)甯?jìng)閾滄鍘挎瀛愭?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>

鍒嗘瀽榪斿洖鐨凣ML鏁版嵁錛屽彲鐭OMAIN_POI_NEW鏄湴鍚嶅浘灞傦紝鍖呭惈鍚嶇О銆佷唬鐮併佺被鍒爜絳夊睘鎬у瓧孌點(diǎn)?br />
灝嗗浘灞傛敼涓篿so19112:SI_Gazetteer錛屾病鏈夎繑鍥炰換浣曚俊鎭紝google ISO19112錛屽緱鍒板涓嬭В閲婏細(xì)
DIN EN ISO 19112-2005 鍦扮悊淇℃伅.閫氳繃鍦扮悊鏍囪瘑絎︾殑絀洪棿瀹氫綅 鏍囧噯鍙鳳細(xì) DIN EN ISO 19112-2005 鏍囧噯鍚嶇О錛? 鍦扮悊淇℃伅.閫氳繃鍦扮悊鏍囪瘑絎︾殑絀洪棿瀹氫綅

寰楀埌浠ヤ笂淇℃伅鍚庯紝鎴戜滑灝濊瘯浣跨敤Openlayers鑾峰彇錛屽嵆鍏ㄥ浗鍦板悕鏁版嵁搴撱?br />
閫氳繃URL錛圙ET鏂瑰紡錛夎闂?#8220;澶╁湴鍥?#8221;WFS鏈嶅姟錛屽彲浠ヤ嬌鐢∣penLayers.Request.GET綾伙紝紺轟緥浠g爜濡備笅錛?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
    });


璇存槑錛?br /> url WFS鏈嶅姟鍣ㄥ湴鍧錛屽繀欏誨姞涓?request=GetFeature
typeName 鍥懼眰鍚嶇О
FEATUREID WFS鐨勫浘鍏僆D錛岄噰鐢ㄦ爣鍑嗘牸寮忥細(xì) [鍥懼眰鍚峕.[OID緙栧彿]
BBOX 鎸囧畾鍖哄煙鏌ヨ錛屾敞鎰忎笉瑕佽緗繃澶э紝鍚﹀垯嫻忚鍣ㄥ彲鑳藉け鍘誨搷搴斻?/p>

閫氳繃POST鏂瑰紡璁塊棶“澶╁湴鍥?#8221;WFS鏈嶅姟錛屽彲浠ヤ嬌鐢∣penLayers.Request.POST綾伙紝紺轟緥浠g爜濡備笅錛?/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>*瑙f斁紕?</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
    });
};

璇存槑錛?/p>

url WFS鏈嶅姟鍣ㄥ湴鍧

data WFS璇鋒眰姝f枃錛岃繑鍥炵殑GML鐢卞洖璋冨嚱鏁癶andler澶勭悊

handler璐熻矗澶勭悊鏈嶅姟绔繑鍥炵殑GML鏁版嵁錛屼篃灝辨槸鐭㈤噺鍖栫殑鍦板浘鏁版嵁錛屾牴鎹簲鐢ㄩ渶姹傜紪鍐欎唬鐮侊紝鑾峰彇feature鐨勯氱敤浠g爜濡備笅錛?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;
}

瀹氫箟榪囨護(hù)鏉′歡鏃惰浣跨敤STANDARDNAME瀛楁錛屼笉瑕佷嬌鐢―OMAINNAME瀛楁錛屽墠鑰呭簲璇ユ湁绱㈠紩鏀寔錛岃屽悗鑰呮病鏈夛紝鏌ヨ閫熷害宸埆寰堝ぇ銆?/p>

緇忚繃嫻嬭瘯錛宼ypeName="DOMAIN_POI_NEW"鍜宼ypeName="iso19112:SI_Gazetteer"閮借兘榪斿洖緇撴灉銆傜敱浜庣己灝戝畼鏂規(guī)枃妗h鏄庯紝涓嶇煡閬撹繖涓や釜鍥懼眰鏈変綍鍖哄埆銆?br />

灝濊瘯浣跨敤OpenLayers.Protocol.WFS鏃犳硶璁塊棶“澶╁湴鍥?#8221;WFS鏈嶅姟錛屾湇鍔″櫒榪斿洖: 璇鋒眰鍙傛暟[REQUEST]鐨勫間負(fù)絀烘垨涓嶆紜?/p>

鎻愰啋: 浣跨敤POST鏌ヨ鏃訛紝欏甸潰鏂囦歡鎴栦唬鐮佹枃浠跺姟蹇呬繚瀛樹負(fù)utf-8緙栫爜錛屽鏋滀嬌鐢╣bk銆乬b2312緙栫爜錛屾眽瀛楀湴鍚嶄細(xì)鍙樻垚涔辯爜錛屽鑷磈avascript浠g爜閿欒銆?/p>

澶╃嫾 2010-12-10 16:22 鍙戣〃璇勮
]]>
浣跨敤Openlayers璋冪敤澶╁湴鍥懼湪綰挎湇鍔℃暟鎹?/title><link>http://www.tkk7.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.tkk7.com/siriusfx/archive/2010/12/06/339818.html</guid><wfw:comment>http://www.tkk7.com/siriusfx/comments/339818.html</wfw:comment><comments>http://www.tkk7.com/siriusfx/archive/2010/12/06/339818.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/siriusfx/comments/commentRss/339818.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/siriusfx/services/trackbacks/339818.html</trackback:ping><description><![CDATA[鍥藉嫻嬬粯灞2010騫?0鏈?1鏃ユ寮忓彂甯冧腑鍥藉叕浼楃増鍥藉鍦扮悊淇℃伅鍏叡鏈嶅姟騫沖彴“澶╁湴鍥?#8221;錛屼綔涓轟腑鍥藉鍐呮暟鎹祫婧愭渶鍏ㄧ殑鍦扮悊淇℃伅鏈嶅姟緗戠珯錛?#8220;澶╁湴鍥?#8221;灝嗕負(fù)鍏紬鎻愪緵鏉冨▉銆佸彲淇°佺粺涓鐨勫湴鐞嗕俊鎭祫婧愩?span style="font-family: 瀹嬩綋;"><br /> <br /> </span><span style="font-family: 瀹嬩綋;">“澶╁湴鍥?#8221;鍏紑寮鏀句簡(jiǎn)鍦板浘鏁版嵁鏈嶅姟鎺ュ彛錛岀涓夋柟浣跨敤鑰?/span><span style="font-family: 瀹嬩綋;">鍙互鐩存帴閫氳繃浜掕仈緗戣幏鍙栧湴鍥炬暟鎹?/span><span style="font-family: 瀹嬩綋;">錛屾棤闇鎺堟潈璁よ瘉錛屽湪鍏紬鏈嶅姟淇℃伅鍏紑鏂歸潰鍙互璇存槸涓嬈¢潪甯稿ぇ鐨勮繘姝ャ?br /> </span><span style="font-family: 瀹嬩綋;">“澶╁湴鍥?#8221;鐨?/span><span style="font-family: 瀹嬩綋;">鍦ㄧ嚎鏈嶅姟鏁版嵁榪?/span><span lang="EN-US">10TB</span><span style="font-family: 瀹嬩綋;">錛?/span><span style="font-family: 瀹嬩綋;">浠ヤ笅鏄?#8220;澶╁湴鍥?#8221;</span><span style="font-family: 瀹嬩綋;">鎻愪緵</span><span style="font-family: 瀹嬩綋;">鐨勫湪綰垮湴鐞嗕俊鎭暟鎹祫婧愶細(xì)</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;">鏁版嵁綾誨瀷</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;">綰у埆</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: 瀹嬩綋;">綰垮垝鍦板浘</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: 瀹嬩綋;">綰?/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="msakvzw" 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: 瀹嬩綋;">綰?/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: 瀹嬩綋;">鍏ㄥ浗杞﹁澆瀵艱埅</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: 瀹嬩綋;">綰?/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: 瀹嬩綋;">綾沖崼鏄熷獎(jiǎng)鍍?/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: 瀹嬩綋;">綰?/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: 瀹嬩綋;">綾沖崼鏄熷獎(jiǎng)鍍?/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: 瀹嬩綋;">綰?/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: 瀹嬩綋;">綾沖崼鏄熷獎(jiǎng)鍍?/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: 瀹嬩綋;">綰?/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: 瀹嬩綋;">鍦扮駭鍩庡競(jìng)</span><span lang="EN-US">0.6</span><span style="font-family: 瀹嬩綋;">綾沖崼鏄熷獎(jiǎng)鍍?/span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="EN-US"><span> </span>(<span id="jvjoajc" class="SpellE">QuickBird</span></span><span style="font-family: 瀹嬩綋;">銆?/span><span id="ioaophb" class="SpellE"><span lang="EN-US">WorldView</span></span><span lang="EN-US"> I</span><span style="font-family: 瀹嬩綋;">銆?/span><span id="plmsnum" 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: 瀹嬩綋;">綰?/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: 瀹嬩綋;">綾蟲暟瀛楅珮紼嬫ā鍨?/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: 瀹嬩綋;">鍏ㄥ浗杞﹁澆瀵艱埅鍦板悕鍦板潃</span></p> </td> <td style="width: 50.55pt; padding: 0cm 5.4pt; height: 15.25pt;" width="67"><br /> </td> </tr> </tbody> </table> 闄ゅ湴鍚嶅湴鍧鏁版嵁浣跨敤OGC WFS鍗忚鍙戝竷澶栵紝鍏朵粬鏁版嵁鍏ㄩ儴閲囩敤鍩轟簬OGC WMS-C鍗忚鐨勫垎綰х摝鐗囧艦寮忓彂甯冿紝宸ヤ綔鍘熺悊綾諱技浜庤胺姝屽湴鍥懼拰OSM錛圤penStreetMap錛夈?br /> <span style="font-family: 瀹嬩綋;"><br /> </span><span style="font-family: 瀹嬩綋;">綾諱技</span><span style="font-family: 瀹嬩綋;">璋鋒瓕鍦板浘錛?#8220;澶╁湴鍥?#8221;涓轟簰鑱旂綉寮鍙戜漢鍛樻彁渚涗簡(jiǎn)浜屾寮鍙慉PI錛?/span>姝﹀ぇ鍚夊ゥ寮鍙戠殑GeoGlobe浜岀淮鍦板浘API錛夈?br /> <br /> 閫氳繃鍒嗘瀽GeoGlobe API浠g爜錛屽彂鐜板畠婧愯嚜Openlayers錛屽ぇ閮ㄥ垎浠g爜闄や簡(jiǎn)鎶奜penlayers鎹㈡垚<code class="jscript plain">GeoSurf</code>澶栵紝娌℃湁浠諱綍鍙樺寲銆備笉鐭ラ亾Openlayers欏圭洰緇勫氨姝や綔浣曟劅鎯熾?br /> 姝e洜涓哄姝わ紝鎴戜滑鍙互鍙傝僌penLayers.Layer.TileCache鍜孫penLayers.Layer.XYZ綾伙紝緙栧啓涓涓笓鐢ㄤ簬璇誨彇“澶╁湴鍥?#8221;鐨凾DTLayer綾伙紝浣縊penlayers鑳藉鐩存帴璁塊棶“澶╁湴鍥?#8221;鐨勫湪綰垮湴鍥炬暟鎹?br /> <br /> “澶╁湴鍥?#8221;閲囩敤256×256鍍忕礌錛宲ng鏍煎紡鐨勫湴鍥劇摝鐗囨枃浠訛紝璇誨彇鍗曚釜鏂囦歡闇瑕佸洓涓弬鏁幫細(xì)T銆乆銆乊銆丩<br /> T=鐡︾墖錛圱ile錛夊悕縐幫紝X=鐡︾墖妯悜緙栫爜錛孻=鐡︾墖綰靛悜緙栫爜錛孡=鐡︾墖綰у埆<br /> 榪欎釜鏄竴涓畬鏁寸殑璇鋒眰紺轟緥錛歨ttp://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: 瀹嬩綋;">鍦扮悊淇℃伅鏁版嵁璧勬簮鍒楄〃灝嗗湴鍥劇摝鐗囧垎涓?6綰э紙L=2-18錛夛紝鍏朵腑L=2綰ф瘮渚嬪昂鏈灝忥紝瀵瑰簲鍏ㄧ悆鍦板浘銆?br /> L=2綰у彧鏈?涓摝鐗囨枃浠訛紝鍒嗗埆鏄?/span>錛?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=3綰ф湁32涓摝鐗囨枃浠訛紝鍒嗗埆鏄細(xì)<br />  X= 0-7<br />  Y= 0-3<br /> L=4綰ф湁128涓摝鐗囨枃浠訛紝鍒嗗埆鏄細(xì)<br />  X= 0-15<br />  Y= 0-7<br /> 鍏朵綑鍚勭駭浠ユ綾繪帹錛屾瘡綰х殑鐡︾墖鏂囦歡鏁版瘮鍓嶄竴綰у鍔?鍊嶏紝鍏朵腑綰垮垝鍦板浘10綰т互涓婏紝鍗槦鍦板浘8綰т互涓婂彧鎻愪緵涓浗澧冨唴鐨勬暟鎹紝娌℃湁瑕嗙洊鍏ㄧ悆銆?br /> <br /> 鏌ョ湅</code>GeoGlobe API涓諱唬鐮?code class="jscript plain">GeoSurfJSAPI.js鏂囦歡錛堢浉褰撲簬</code>Openlayers.js<code class="jscript plain">錛?/code>錛屽彲浠ヤ簡(jiǎn)瑙(x_num)銆乊(y_num)銆丩(level)鐨勭敓鎴愭柟娉曪紝浼唬鐮佸涓嬶細(xì)<br /> level=getLevelForResolution(map.getResolution()); //璁$畻鐡︾墖綰у埆<br /> coef=TopTileSize.w/Math.pow(2,level); //涓棿緋繪暟<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ī)嵁褰撳墠鍒嗚鯨鐜囪綆楀湴鍥劇摝鐗囩駭鍒?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 /> 緇忚繃綆鍗曟祴璇曪紝“澶╁湴鍥?#8221;鍜岃胺姝屽湴鍥懼湪鏁版嵁涓婂樊鍒笉澶э紝浜屾寮鍙戞柟闈㈠熷姪浜庡己澶?code class="jscript plain"></code>鐨凮penlayers鍦板浘瀹㈡埛绔紩鎿庝笉浼?xì)寮变簬Google Map API錛屽敮鐙湪閫熷害涓婁笌璋鋒瓕鍦板浘瀛樺湪杈冨ぇ宸窛錛岀壒鍒槸鍦板浘鏀懼ぇ鍒?3綰?18綰ф椂錛屽歡榪熷彉寰楅潪甯告槑鏄撅紝鏈夋椂鐢氳嚦鏃犳硶鏄劇ず銆?br /> 浣跨敤Firebug璺熻釜榪愯鍙戠幇錛屽ぇ綰?/3鐨勫湴鍥劇摝鐗囪姹傝秴鏃訛紝瀵艱嚧瀹㈡埛绔鍙栧け璐ャ?br /> “澶╁湴鍥?#8221;鐩墠榪樺浜庢祴璇曢樁孌碉紝甯屾湜鐩稿叧鍗曚綅緇х畫鏀硅繘鍜屾彁鍗囨湇鍔″櫒绔ц兘錛屽揩閫熺ǔ瀹氱殑鍝嶅簲澶ч噺瀹㈡埛绔彂鍑虹殑騫跺彂璇鋒眰銆?br /> </pre> <span lang="EN-US"> 嫻嬭瘯涓彂鐜幫紝</span>“澶╁湴鍥?#8221;寮鏀劇殑鍦板浘鏁版嵁鏈嶅姟鎺ュ彛浠?span lang="EN-US">tile0.tianditu.com涓鐩村埌</span><span lang="EN-US">tile7.tianditu.com</span>銆備緷嬈ing 榪?涓湇鍔℃帴鍙o紝<span lang="EN-US">tile1鍒?/span><span lang="EN-US">tile7</span>鐨勫搷搴旈熷害鐩稿杈冨揩銆備慨鏀瑰鎴風(fēng)js浠g爜錛屽皢鐡︾墖鍦板浘璇鋒眰騫沖潎鍙戦佺粰<span lang="EN-US">tile0鍒?/span><span lang="EN-US">tile7 鍏釜鏈嶅姟鎺ュ彛錛屽彲浠ユ湁鏁堝姞蹇湴鍥炬樉紺洪熷害銆?/span><code plain="">“澶╁湴鍥?#8221;鎻愪緵鐨凣eoSurfJSAPI.js涓?/code>宸茬粡鍖呭惈鐩稿叧浠g爜錛岄氳繃緇橪ayer鐨刴irrorUrl灞炴ц祴鍊鹼紝鍙互鍧囪 璇誨彇鎸囧畾鐨勫涓湇鍔℃帴鍙o紝浠g爜濡備笅錛?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 /> 瀹㈡埛绔嬌鐢ㄤ笂榪拌鍙栫瓥鐣ュ悗錛屽嵆渚挎斁澶у埌17-18綰э紝鏁村箙鍦板浘涔熻兘澶熷畬鍏ㄦ樉紺猴紝閫熷害鏈夋槑鏄劇殑鎻愬崌銆?br /> <br /> <br /> <img src ="http://www.tkk7.com/siriusfx/aggbug/339818.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/siriusfx/" target="_blank">澶╃嫾</a> 2010-12-06 14:06 <a href="http://www.tkk7.com/siriusfx/archive/2010/12/06/339818.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MapServer浣跨敤絎旇錛堜笁錛?/title><link>http://www.tkk7.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.tkk7.com/siriusfx/archive/2010/12/01/339507.html</guid><wfw:comment>http://www.tkk7.com/siriusfx/comments/339507.html</wfw:comment><comments>http://www.tkk7.com/siriusfx/archive/2010/12/01/339507.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/siriusfx/comments/commentRss/339507.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/siriusfx/services/trackbacks/339507.html</trackback:ping><description><![CDATA[<strong>鍙戝竷</strong><strong>WFS</strong><strong>鐭㈤噺鍦板浘</strong> <br /> <br /> OGC WFS鍗忚瀹氫箟浜?jiǎn)鍦板洃之㈡堬L(fēng)鏌ヨ鍜屼紶閫佺煝閲忔暟鎹殑鏂規(guī)硶錛屽湪鏌ヨ銆佸垎鏋愩佸姩鎬佺粯鍥劇瓑瀹為檯搴旂敤涓潪甯告湁鐢ㄣ侻apServer鏀寔OGC WFS 1.0.0鍜?.1.0瑙勮寖銆?br /> <br /> 閲嶆柊瀹氫箟涓涓狹apfile鏂囦歡錛屽懡鍚嶄負(fù)ext2.map錛屽唴瀹瑰涓嬶細(xì)<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"   #鍦板浘鍧愭爣緋?        <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"  #鍥懼眰鍧愭爣緋?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 /> 璇ユ枃浠朵腑鏈変袱緇凪ETADATA鏍囩錛屾槸WFS錛圵MS錛?Server鎵闇瑕佺殑錛屽垎鍒槸MAP鐨凪ETADATA鏍囩鍜孡AYER鐨凪ETADATA鏍囩銆?br /> 鍓嶈呮槸閽堝鏁翠釜鍦板浘鐨勫叏灞瀹氫箟錛屽悗鑰呮槸姣忎釜鍥懼眰鐨勫厓鏁版嵁瀹氫箟銆?br /> <br /> 淇濆瓨Mapfile鏂囦歡錛屾墦寮嫻忚鍣ㄨ繘琛屾祴璇?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 /> 姝e父鎯呭喌涓嬶紝鍙互鐪嬪埌浠ヤ笅榪斿洖淇℃伅<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>鍦∣penLayers涓姞杞絎FS鍥懼眰</strong><br /> <br /> OpenLayers鏄竴涓姛鑳藉己澶х殑Web鍦板浘瀹㈡埛绔紩鎿庛?br /> <br /> 鎺ヤ笅鏉ワ紝鎴戜滑鍒╃敤OpenLayers鐨凮penLayers.Protocol.WFS綾伙紝鏄劇ず鍒氭墠鍙戝竷鐨刉FS鍥懼眰錛屼唬鐮佸涓?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鍦板浘鏈嶅姟鍣ㄧ殑url錛屽姞涓妋apfi浜?jiǎn)鏂囦欢鐨勮矾寰?br />                     featureType: "road", //layer鐨勫悕縐?br />                     srsName: "EPSG:4326", //layer鐨勫潗鏍囩郴<br />                     geometryName: "msGeometry", //geometry瀛楁鐨勫悕縐?br />                     featurePrefix: "ms"<br />                 });<br /> <br /> 浠ヤ笅鏄叏閮╦avascript浠g爜錛?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 /> 鍦ㄦ祻瑙堝櫒涓繍琛宧tml欏甸潰錛屽浗閬撴暟鎹皢浠ョ煝閲忔柟寮忎紶閫佸埌瀹㈡埛绔紝鐢眔penlayers鍔ㄦ佺粯鍒訛紝榧犳爣縐誨姩鍒伴亾璺笂鎴栬呴変腑閬撹礬錛岄亾璺皢瀹炴椂鏀瑰彉棰滆壊錛屽湪Web涓婂疄鐜頒笌浼犵粺妗岄潰GIS搴旂敤綾諱技鐨勪綋楠屾晥鏋溿?br /> <br /> <img src ="http://www.tkk7.com/siriusfx/aggbug/339507.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/siriusfx/" target="_blank">澶╃嫾</a> 2010-12-01 15:00 <a href="http://www.tkk7.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.tkk7.com/siriusfx/archive/2010/12/01/339477.html澶╃嫾澶╃嫾Wed, 01 Dec 2010 02:42:00 GMThttp://www.tkk7.com/siriusfx/archive/2010/12/01/339477.htmlhttp://www.tkk7.com/siriusfx/comments/339477.htmlhttp://www.tkk7.com/siriusfx/archive/2010/12/01/339477.html#Feedback0http://www.tkk7.com/siriusfx/comments/commentRss/339477.htmlhttp://www.tkk7.com/siriusfx/services/trackbacks/339477.html 鏂扮増鏈鍔犱簡(jiǎn)澶氶」寮曚漢娉ㄧ洰鐨勫姛鑳斤紝鍘熸枃濡備笅錛?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浣跨敤絎旇錛堜簩錛?/title><link>http://www.tkk7.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.tkk7.com/siriusfx/archive/2010/11/26/339138.html</guid><wfw:comment>http://www.tkk7.com/siriusfx/comments/339138.html</wfw:comment><comments>http://www.tkk7.com/siriusfx/archive/2010/11/26/339138.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/siriusfx/comments/commentRss/339138.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/siriusfx/services/trackbacks/339138.html</trackback:ping><description><![CDATA[<strong>涓篗apServer娣誨姞鐡︾墖緙撳瓨鏈嶅姟</strong><br /> <br /> 鍥介檯涓婃湁涓や釜姣旇緝嫻佽鐨勫紑婧愬湴鍥劇摝鐗囩紦瀛樻湇鍔″櫒錛歡eowebcache鍜宼ilecache銆?br /> geowebcache鍩轟簬J2EE鏋舵瀯錛屽叿鏈夊畬鏁寸殑Web鍥懼艦綆$悊鐣岄潰錛屾敮鎸佸榪涚▼騫跺彂鍒囧浘錛屽彲浠ラ殢鏃舵煡鐪嬪垏鍥捐繘搴﹀拰鍓╀綑鏃墮棿錛屾惌閰峠eoserver闈炲父鍚堥傘?br /> titlecache閲囩敤python緙栧啓錛孋GI宸ヤ綔妯″紡錛岄潪甯稿皬宸э紝2.11鐗堟湰鍙湁浠や漢鎯婅鐨?8K!(榪欎竴鐐瑰緢鍍廙apServer)銆?br /> titlecache閲囩敤SHELL鎴朌OS鍛戒護(hù)琛屾柟寮忚繍琛屽垏鍥劇▼搴忥紝瀹炴椂杈撳嚭鍒囧浘榪涘害淇℃伅銆?br /> mapserver閫夋嫨titlecache浣滀負(fù)鍦板浘鍒囩墖緙撳瓨鏈嶅姟鍣紝鍦╩s4w_3.0beta10涓寘鍚簡(jiǎn)tilecache鎻掍歡錛岀敱浜巄eta鐗堟湰瀛樺湪闂錛?br /> 鎴戜滑鍦╩s4w_2.3.1姝e紡鐗堜腑鎵嬪伐鍔犲叆tilecache鏈嶅姟鍣紝鍏蜂綋姝ラ濡備笅錛?br /> <br /> 1銆佷粠tilecache瀹樻柟緗戠珯涓嬭澆瀹夎鍖卼ilecache-2.11.tar.gz錛岃瀹夎鍖呴傜敤浜庢墍鏈夋搷浣滅郴緇燂紝鎴戜滑浣跨敤Windows XP銆?br /> 2銆佽В鍘嬪畨瑁呭寘錛屽皢鍏朵腑鐨則ilecache-2.11鐩綍鏁翠綋澶嶅埗鍒癿s4w鐨刟pps鐩綍涓嬨?br /> 3銆佽繘鍏s4w鐨刪ttp.d鐩綍錛屾柊寤轟竴涓悕涓篽ttpd_tilecache.conf鐨勬枃鏈枃浠訛紝鍐呭濡備笅錛?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銆佽繘鍏s4w/apps/tilecache-2.11鐩綍錛屾墦寮tilecache.cgi鏂囦歡錛屼慨鏀圭涓琛岀殑python緙栬瘧鍣ㄨ礬寰勶紝渚嬪<br /> #!E:\Python25\python.exe<br /> 5銆佹墦寮璇ョ洰褰曚笅鐨則ilecache.cfg鏂囦歡錛屼慨鏀筩ache鏍囩錛屾寚瀹氭湰鍦扮鐩樼紦瀛樼洰褰曪紝渚嬪<br /> [cache]<br /> type=Disk<br /> base=F:/tmp/tilecache<br /> 娣誨姞涓涓猺oad鏍囩錛屾寚瀹氬湴鍥炬湇鍔$被鍨嬶紝鏈嶅姟鍦板潃錛宮apfile鏂囦歡璺緞錛屽浘灞傚悕縐幫紝鏍呮牸鏍煎紡錛岀┖闂村弬鑰冪郴緇熺紪鐮侊紝渚嬪<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銆侀噸鏂板惎鍔ˋpache<br /> 7銆佹墦寮tilecache涓嬬殑index.html鏂囦歡錛屾牴鎹疄闄呮儏鍐典慨鏀筼penlayers.js鐨勮礬寰勶紝渚嬪<br /> <script src="/openlayers/OpenLayers.js"></script><br /> 淇敼layer鍙傛暟錛屼緥濡?br /> layer = new OpenLayers.Layer.WMS( "road", "tilecache.cgi?", {layers: 'road', format: 'image/png' } );<br /> <br /> 浣跨敤嫻忚鍣ㄨ闂甴ttp://127.0.0.1/tilecache錛學(xué)eb欏甸潰涓婂皢鏄劇ず緇忚繃tilecache澶勭悊鐨勫湴鍥撅紝瀹㈡埛绔祻瑙堣繃鐨勫湴鍥懼垏鐗囨枃浠惰淇濆瓨鍦╰ilecache.cfg鏂囦歡鎸囧畾鐨勪復(fù)鏃剁洰褰曚笅錛岃繖閲屾槸F:/tmp/tilecache鐩綍錛屽鏋滃叾涓寘鍚鎴風(fēng)姝e湪璇鋒眰鐨勫湴鍥撅紝榪欎簺鍦板浘灝嗕笉鍐嶉氳繃MapServer鍔ㄦ佺敓鎴愶紝鑰屾槸鐩存帴浠庣紦瀛樼洰褰曡鍙栭潤(rùn)鎬佸浘鐗囨枃浠躲傚浜庡ぇ鐢ㄦ埛閲忋侀珮騫跺彂鐨勫湴鍥捐闂紝鐡︾墖緙撳瓨鏈哄埗鍙互闈炲父鏈夋晥鐨勬彁楂樺鎴風(fēng)璇誨彇銆佹樉紺哄湴鍥劇殑閫熷害銆?br /> <br /> 閫氳繃鎵цtilecache_seed.py鑴氭湰錛屽彲浠ユ墜鍔ㄧ敓鎴愬湴鍥懼垏鐗囷紝涓嬮潰鐨勫懡浠ょ粰road鍥懼眰鍙戝竷0鍒?綰х殑鍦板浘鍒囩墖鏂囦歡銆?br /> python "F:\ms4w\apps\tilecache-2.11\tilecache_seed.py" road 0 6<br /> 絳夊緟鎵ц瀹屾瘯錛岃繘鍏ョ紦瀛樼洰褰曞彲浠ユ壘鍒板垰鎵嶅彂甯冪殑鍦板浘鍒囩墖鏂囦歡銆?br /> <br /> <br /> <img src ="http://www.tkk7.com/siriusfx/aggbug/339138.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/siriusfx/" target="_blank">澶╃嫾</a> 2010-11-26 15:45 <a href="http://www.tkk7.com/siriusfx/archive/2010/11/26/339138.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MapServer浣跨敤絎旇錛堜竴錛?/title><link>http://www.tkk7.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.tkk7.com/siriusfx/archive/2010/11/26/339044.html</guid><wfw:comment>http://www.tkk7.com/siriusfx/comments/339044.html</wfw:comment><comments>http://www.tkk7.com/siriusfx/archive/2010/11/26/339044.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/siriusfx/comments/commentRss/339044.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/siriusfx/services/trackbacks/339044.html</trackback:ping><description><![CDATA[<strong>榪炴帴Oracle Spatial<br /> <br /> </strong>鍓嶉潰鐨勬祴璇曚腑鎴戜滑浣跨敤shape鏂囦歡浣滀負(fù)鍦板浘鏁版嵁婧愶紝涓嬮潰鎴戜滑灝嗕粠Oracle Spatial絀洪棿鏁版嵁搴撹鍙栧湴鐞嗘暟鎹?br /> <br /> mapserver鎻愪緵涓ょ鏂瑰紡榪炴帴oracle絀洪棿鏁版嵁搴擄紝native oracle spatial鍜宱gr銆傚畨瑁呭寘鎻愪緵浜?jiǎn)鏀寔native oracle spatial鐨勪簩榪涘埗鏂囦歡錛宱gr鏂瑰紡闇瑕佽嚜琛岀紪璇戞簮浠g爜銆傚熺敤浠ュ線欏圭洰鐨凮racle 10.2.0.3鏁版嵁搴擄紝MapServer閲囩敤ms4w_2.3.1宸茬紪璇戝寘錛屽湴鍥炬湇鍔″櫒瀹夎Oracle10.2瀹㈡埛绔紝榪涜鏈湴緗戠粶閰嶇疆錛屾祴璇曡繛鎺ユ甯搞?br /> <br /> 鍏抽棴Apache MS4W Web Server鏈嶅姟錛岃繘鍏ms4w\Apache\cgi-bin\ignored-libmap\oracle11g鐩綍錛屽皢libmap.dll澶嶅埗綺樿創(chuàng)鍒癨ms4w\Apache\cgi-bin鐩綍錛屾浛鎹㈠師鏈夋枃浠訛紝鍚姩Apache MS4W Web Server鏈嶅姟銆?br /> <br /> 鏂板緩涓涓狹apfile鏂囦歡錛孡AYER閮ㄥ垎濡備笅<br /> LAYER<br />     NAME "road"<br />     TYPE LINE<br />     CONNECTION "geouser/123456@geodb" #鏁版嵁搴撹繛鎺ュ瓧絎︿覆<br />     CONNECTIONTYPE oraclespatial      #榪炴帴綾誨瀷涓簅racle spatial<br />     DATA "GEOLOC FROM NAV_ROAD1 USING SRID 4326"  #姝ゅGEOLOC涓篏EOMETRY瀛楁鍚嶏紝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>娉ㄦ剰錛氫笉瑕佸湪FROM涔嬪墠鍔犲叆灞炴у瓧孌靛悕錛屽睘鎬у瓧孌靛彲娣誨姞鍦‵ROM鍚庣殑瀛愭煡璇腑錛屽涓嬫墍紺?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鎴朣TYLE鐢ㄥ埌鐨勫睘鎬у瓧孌靛繀欏誨寘鍚湪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 /> 涓哄浘灞傛坊鍔犳爣娉紙Label錛?/strong><br /> <br /> 鍦ㄥ湴鍥句笂鏍囨敞鏂囧瓧錛屽繀鐒舵秹鍙?qiáng)鍒板瓧浣撳Q孧apServer閲囩敤涓庢搷浣滅郴緇熸棤鍏崇殑璁捐錛屼笉鑳借嚜鍔ㄨ幏鐭ュ綋鍓嶆搷浣滅郴緇熶笅瀹夎浜?jiǎn)鍝簺瀛椾綋锛屽繀椤绘墜宸ュ垱寰忓瓧浣撻泦FONTSET鏂囦歡銆?br /> 璇ユ枃浠剁殑鏍煎紡闈炲父綆鍗曪紝姣忚閰嶇疆涓涓瓧浣擄紝宸﹁竟鏄瓧浣撳悕錛堝彲鑷敱鍛藉悕錛夛紝鍙寵竟鏄瓧浣撴枃浠剁殑璺緞錛堣浣跨敤緇濆璺緞錛夛紝濡備笅鎵紺猴細(xì)<br /> arial   C:\WINDOWS\Fonts\arial.ttf<br /> sans    C:\WINDOWS\Fonts\SIMSUN.TTC<br /> 灝嗕互涓婂唴瀹逛繚瀛樹負(fù)鏂囨湰鏂囦歡錛屾枃浠跺悕鍜屾墿灞曞悕涓嶉檺錛屼緥濡備繚瀛樹負(fù)fonts.txt<br /> <br /> 鍦∕apfile鐨凪ap鏍囩涓嬫坊鍔犱竴琛?br /> FONTSET fonts.txt #鎸囨槑瀛椾綋闆嗘枃浠訛紝鍙互鍖呭惈璺緞<br /> <br /> 鍦∕apfile鐨凩ayer鏍囩涓坊鍔犱竴琛?br /> LABELITEM "NAME"  #鎸囨槑鏍囨敞鎵鐢ㄧ殑瀛楁鍚?br /> <br /> 鍦↙ayer涓嬬殑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 #姝ゅ涓烘枃瀛楃紪鐮侊紝濡傛灉涓嶈緗鍊鹼紝涓枃灝嗕笉鑳芥紜樉紺恒傚浜庝腑鏂嘩indows緋葷粺錛屾搷浣滅郴緇熺殑榛樿緙栫爜涓篏BK銆?br /> END<br /> <br /> 娉ㄦ剰錛歮s4w_3.0beta11灞炰簬寮鍙戠増鏈紝鏀寔shape鏂囦歡鏁版嵁婧愰厤緗甽abel鏍囩錛屼笉鏀寔oracle spatial鏁版嵁婧愰厤緗甽abel鏍囩銆?br /> 涓轟簡(jiǎn)璇誨彇oracle絀洪棿琛ㄤ腑鐨勫睘鎬х敓鎴愭爣絳撅紝鎴戜滑鎹㈢敤ms4w_2.3.1姝e紡鐗堬紝緋葷粺宸ヤ綔姝e父銆?br /> <br /> <strong>浣跨敤鍔ㄦ佹牱寮忥紙STYLE錛?/strong><br /> <br /> 瀹為檯搴旂敤涓鍦板浘鐨勬覆鏌撴湁寰堝瑕佹眰錛孧apServer鏀寔鍔ㄦ佽緗甋TYLE錛屼慨鏀筂apfile鏂囦歡LAYER鐨凷TYLE錛屼緥濡傦細(xì)<br /> STYLE<br />     COLOR [COLOR]<br /> END<br /> 姣忔潯閬撹礬鐨勯鑹茬敱閬撹礬琛ㄧ殑灞炴у瓧孌礐OLOR鍐沖畾錛屼笌涔嬬被浼鹼紝鍙互浠庢暟鎹簱鍙栧煎~鍏匰YMBOL,SIZE,ANGLE絳夋爣絳俱?br /> 鎻愮ず錛歁apServer鐨勯鑹茬爜鍙互浣跨敤[r] [g] [b]鍗佽繘鍒舵牸寮忥紝涔熷彲浠ヤ嬌鐢╓eb寮鍙戜腑甯哥敤鐨凴RGGBB鍗佸叚榪涘埗鏍煎紡錛屼緥濡傦細(xì)#FF0000<br /> <br /> <br /> <img src ="http://www.tkk7.com/siriusfx/aggbug/339044.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/siriusfx/" target="_blank">澶╃嫾</a> 2010-11-26 12:16 <a href="http://www.tkk7.com/siriusfx/archive/2010/11/26/339044.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MapServer鐨勫畨瑁呭拰浣跨敤http://www.tkk7.com/siriusfx/archive/2010/11/24/338955.html澶╃嫾澶╃嫾Wed, 24 Nov 2010 09:39:00 GMThttp://www.tkk7.com/siriusfx/archive/2010/11/24/338955.htmlhttp://www.tkk7.com/siriusfx/comments/338955.htmlhttp://www.tkk7.com/siriusfx/archive/2010/11/24/338955.html#Feedback5http://www.tkk7.com/siriusfx/comments/commentRss/338955.htmlhttp://www.tkk7.com/siriusfx/services/trackbacks/338955.htmlMapServer綆浠?/strong>
    鍦ㄥ紑婧怶ebGIS棰嗗煙錛孧apServer鐨勫巻鍙插拰鍚嶆皵閮借秴榪嘒eoServer錛?0涓栫邯90騫翠唬涓湡錛岀敱鏄庡凹鑻忚揪澶у鐮斿埗錛夛紝寰堟棭灝辮鍒楀叆OSGeo欏圭洰緇勩?
涓嶨eoServer涓嶅悓錛孧apServer鐢–璇█緙栧啓錛岄噰鐢ㄤ紶緇熺殑CGI鏋舵瀯錛岃瀺鍚堜簡(jiǎn)Pro4j銆丟DAL絳夊紑婧愰」鐩傚姣擩2EE鏋舵瀯鐨凣eoServer錛孧apServer鏄懼緱闈炲父綺懼閥錛?.6鐗堟湰鐨勬牳蹇?jī)閮ㄥ垎鍙?3KB錛屾簮浠g爜鍙湁2.2M錛屽寘鎷珹pache銆丳hp銆丳ro4j銆丟DAL銆丮apScript鍦ㄥ唴鐨勫畬鏁村畨瑁呭寘涔熷彧鏈?5M銆?br />
瀹夎榪囩▼
    鍜孞ava涓鏍鳳紝C鍏鋒湁鑹ソ鐨勮法騫沖彴鐗規(guī)э紝MapServer鏀寔Windows銆丩inux銆丮ac OS X絳夋搷浣滅郴緇熴?br />
    瀹樻柟緗戠珯瀵筓nix鍜學(xué)indows騫沖彴涓嬬殑婧愪唬鐮佸畨瑁呮楠ょ粰鍑轟簡(jiǎn)璇︾粏璇存槑銆傛牴鎹鏄庝笅杞介渶瑕佺殑絎笁鏂瑰簱錛岀劧鍚庡湪Shell鍛戒護(hù)琛屾ā寮忎笅緙栬瘧婧愪唬鐮侊紝瀵逛簬緙哄皯Unix Shell鎴朌OS鎿嶄綔緇忛獙鐨勭敤鎴鳳紝 榪欐槸涓浠舵瘮杈冨ご鐤肩殑浜嬫儏銆傚ソ鍦∕apServer宸茬粡鑰冭檻鍒頒笉涔?fàn)鎯懡渥o(hù)琛屾搷浣滅殑Windows鐢ㄦ埛錛岀粰鍑轟簡(jiǎn)Windows涓嬬殑宸茬紪璇戝畨瑁呭寘ms4w錛岀洰鍓嶆渶鏂扮増鏈槸3.0beta11銆?
   
    ms4w鐨勫畨瑁呰繃紼嬪緢綆鍗曪紝涓嬭澆ms4w錛岃В鍘嬬緝鍒扮‖鐩樹換鎰忕洰褰曪紙鐩綍鍚嶆渶濂戒笉瑕佸寘鍚腑鏂囧瓧絎︼級(jí)錛屾墦寮鍛戒護(hù)鎻愮ず絎︾獥鍙o紝鍒囨崲鍒癿s4w鎵鍦ㄧ洰褰曪紝閿叆apache-install鍗沖彲銆傦紙鎻愮ず錛氬鏋滄満鍣ㄤ笂瀹夎鏈堿pache鎴朓IS錛岃繍琛宎pache-install涔嬪墠錛岃灝嗗畠浠叧闂俶s4w瀹夎鍚庝笉浼?xì)鍜屽師鏈夌殑Apache鍐茬獊銆傦級(jí)

鐪嬪埌濡備笅淇℃伅錛岃鏄庡畨瑁呮垚鍔熴?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.exe錛孧apServer榪斿洖濡備笅鎻愮ず淇℃伅
No query information to decode. QUERY_STRING is set, but empty.

鍙戝竷鍦板浘鏁版嵁
    綾諱技浜嶢rcgis Server鍜孏eoServer錛孧apServer閲囩敤闆朵唬鐮佺紪鍐欑殑閰嶇疆鏂囦歡鏂瑰紡綆$悊鍦板浘鍙戝竷錛岄厤緗枃浠惰縐頒負(fù)Mapfile錛屽悗緙鍚嶄負(fù)map銆?

    Mapfile鏈変笁縐嶇紪鍐欐柟寮忥細(xì)
    1銆佸弬鑰冨畼鏂規(guī)枃妗apfile绔犺妭錛屾墜宸ョ紪鍐?
    榪欑鏂瑰紡瑕佹眰寮鍙戜漢鍛樺Mapfile鐨勭紪鍐欒鍒欓潪甯哥啛鎮(zhèn)夛紝鍚﹀垯寰堝鏄撳嚭閿欍?br />     2銆佺被浼糀rcgis Server鍜孏eoServer鎻愪緵鐨刉eb鍥懼艦鍖栭厤緗晫闈紝MapServer鏈変竴涓搴旂殑寮婧愰」鐩甅apLab錛屾彁渚涘熀浜嶹eb鐨勫浘褰㈠寲閰嶇疆鐣岄潰
    涓嶈繃涓漢鎰熻錛孧apLab鐨勬槗鐢ㄦц繙閫婁簬Arcgis Server鍜孏eoServer銆?
    3銆佷嬌鐢ㄥ紑婧愭闈㈠鉤鍙癚GIS錛岃嚜鍔ㄧ敓鎴怣apfile鏂囦歡
    瀵逛簬鏂版墜錛屾帹鑽愪嬌鐢ㄧ涓夌鏂瑰紡銆?

浠ヤ笅鏄祴璇曠敤鐨凪apfile鏂囦歡錛孧apServer瀵筂apfile鏂囦歡鐨勫瓨鏀句綅緗病鏈夌壒孌婅姹傦紝鍙互瀛樻斁鍦ㄤ笉鍚岀殑璁$畻鏈轟笂銆?br />
# Mapfile鏂囦歡蹇呴』浠AP寮澶?
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琛ㄧず緇忕含搴?
UNITS DD
# Map鐨勮儗鏅鑹?鐧借壊
IMAGECOLOR 255 255 255
# 鐢熸垚鐨勫浘鐗囩被鍨嬶紝甯哥敤gif鎴杙ng
IMAGETYPE gif
# shp鏂囦歡鐨勮礬寰勶紝璇蜂嬌鐢ㄧ粷瀵硅礬寰?
SHAPEPATH "I://cn_data"
#
# Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation
# MapServer鍐呯疆浜?jiǎn)鍦板洃之㈡堬L(fēng)鍔熻兘錛屾澶勬槸Web瀹㈡埛绔浉鍏寵緗?
# 鐢變簬鎴戜滑浣跨敤Openlayers浣滀負(fù)鍦板浘瀹㈡埛绔紝MapServer鍋氫負(fù)鍦板浘鏈嶅姟鍣紝姝ゅ涓嶅仛璁劇疆
WEB
# HEADER
# TEMPLATE
# FOOTER
# 鏈灝忋佹渶澶ф瘮渚嬪昂絳夌駭
MINSCALE 1
MAXSCALE 13
# 璁劇疆IMAGEPATH錛岄粯璁よ礬寰勫涓嬶紝璇蜂嬌鐢ㄧ粷瀵硅礬寰?
IMAGEPATH 'I:/ms4w/Apache/htdocs/tmp'
# 璁劇疆IMAGEURL錛岄粯璁よ礬寰勫涓?
IMAGEURL '/tmp/'
END
# 璁劇疆鍥懼眰錛屼竴涓狹ap涓嬪彲浠ュ寘鍚涓狶AYER
LAYER NAME polyline  # 鍥懼眰鍚嶇О錛孧apServer浣跨敤璇ュ悕縐?
TYPE LINE # 鍑犱綍綾誨瀷
STATUS ON
DATA "roa_4m" # shp鏂囦歡鍚嶏紝涓嶉渶瑕佸甫鎵╁睍鍚嶏紝璺緞鍦ㄥ墠闈㈢殑SHAPEPATH欏逛腑鎸囧畾
CLASS NAME "roa_4m" # 綾誨悕
# TEMPLATE
COLOR 112 0 0 # 棰滆壊
END
END
END # Map File

瀹㈡埛绔祴璇?/strong>
    鎺ヤ笅鏉ユ祴璇曞垰鎵嶅緩绔嬬殑Mapfile錛屽湪嫻忚鍣ㄥ湴鍧鏍忎腑杈撳叆 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.5縐掑悗錛堝垵嬈″姞杞斤級(jí)錛屾祻瑙堝櫒鏄劇ず鍑轟腑鍥?錛?00涓囬亾璺綉錛屽湴鍥懼彂甯冩垚鍔燂紒 鐔熸?zhèn)塐GC鏍囧噯鐨勬湅鍙嬪彲鑳藉凡緇忓彂鐜幫紝涓婇潰鐨刄RL鏄疻MS鍦板浘璇鋒眰銆?

鐩存帴閫氳繃CGI璇鋒眰錛屽緱鍒扮殑鏄竴騫呴潤(rùn)鎬佸湴鍥撅紝涓轟簡(jiǎn)瀹炵幇鍦板浘鐨勭緝鏀俱佹極娓革紝鎴戜滑閫夌敤Openlayers鍦板浘瀹㈡埛绔? 閫氳繃OpenLayers.Layer.WMS鍙互鐩存帴璋冪敤MapServer鍦板浘鏈嶅姟錛屾祴璇曚唬鐮佸涓嬶細(xì)
var ms_layer = new OpenLayers.Layer.WMS(
   "polyline", //OpenLayers涓殑鍥懼眰鍚?
   "/cgi-bin/mapserv.exe", //MapServer鍦板浘鏈嶅姟鍣ㄧ殑璺緞
   { layers: 'polyline', //Mapfile涓畾涔夌殑鍥懼眰鍚?
     map: 'I:/cn_data/my.map', //Mapfile鏂囦歡鐨勭粷瀵硅礬寰勶紝娉ㄦ剰蹇呴』浣跨敤'/'鑰屼笉鏄?\'錛屼嬌鐢ㄧ浉瀵硅礬寰勬棤娉曟樉紺哄湴鍥?
     format: 'gif' },
   { reproject: false,
     'numZoomLevels': 20,
     gutter: 15,
     buffer: 0 }
);

婊氬姩榧犳爣婊氳疆錛屽湴鍥劇殑鍒鋒柊閫熷害淇濇寔鍦?.5縐掍互鍐呫侻apServer緇ф壙浜?jiǎn)C璇█鐨勭壒鐐癸紝鍦板浘娓叉煋鏁堢巼寰堥珮銆?br />
鍐欏湪鏈鍚?/strong>
    MapServer鎻愪緵涓ょ宸ヤ綔鏂瑰紡錛孋GI鏂瑰紡錛堥傜敤浜嶤GI銆丄JAX銆丗LEX寮鍙戜漢鍛橈級(jí)鍜孧apScript鏂瑰紡錛堥傜敤浜嶱hp銆丣ava銆丆#銆丳ython寮鍙戜漢鍛橈級(jí)銆備互鍘熺敓CGI鏂瑰紡鏁堢巼鏈楂橈紝閰嶅悎TileCache錛屽彲浠ュ揩閫熺敓鎴愬ぇ鑼冨洿鐨勫湴鍥劇摝鐗囨暟鎹傛瘮杈冨熀浜?Net鍜孞2EE鐨勫晢涓氭垨寮婧愬鉤鍙幫紝MapServer鏇撮傚悎楂樿礋鑽風(fēng)殑澶у瀷浜掕仈緗戝湴鍥懼簲鐢ㄣ?br />


澶╃嫾 2010-11-24 17:39 鍙戣〃璇勮
]]>
Openlayers 2.10鍙戝竷http://www.tkk7.com/siriusfx/archive/2010/09/13/331884.html澶╃嫾澶╃嫾Mon, 13 Sep 2010 04:22:00 GMThttp://www.tkk7.com/siriusfx/archive/2010/09/13/331884.htmlhttp://www.tkk7.com/siriusfx/comments/331884.htmlhttp://www.tkk7.com/siriusfx/archive/2010/09/13/331884.html#Feedback0http://www.tkk7.com/siriusfx/comments/commentRss/331884.htmlhttp://www.tkk7.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 鍙戣〃璇勮
]]>
浣跨敤浠g悊瑙e喅AJAX璺ㄥ煙璁塊棶闂http://www.tkk7.com/siriusfx/archive/2010/08/26/329944.html澶╃嫾澶╃嫾Thu, 26 Aug 2010 02:36:00 GMThttp://www.tkk7.com/siriusfx/archive/2010/08/26/329944.htmlhttp://www.tkk7.com/siriusfx/comments/329944.htmlhttp://www.tkk7.com/siriusfx/archive/2010/08/26/329944.html#Feedback0http://www.tkk7.com/siriusfx/comments/commentRss/329944.htmlhttp://www.tkk7.com/siriusfx/services/trackbacks/329944.html
鏍規(guī)嵁搴旂敤緋葷粺鏋舵瀯鐨勪笉鍚岋紝浠g悊鐨勫疄鐜版柟寮忔湁寰堝縐嶏紝鍖呮嫭web鏈嶅姟鍣ㄥ唴緗唬鐞嗭紙濡侫pache錛夈乧gi鏂瑰紡浠g悊銆乸hp浠g悊銆乯sp浠g悊銆乤spx浠g悊絳夈?br /> openlayers瀹樻柟鎻愪緵浜?jiǎn)涓涓噰鐢╬ython緙栧啓鐨刢gi浠g悊錛屾帹鑽愬湪Apache2.2涓嬩嬌鐢ㄣ?br />
openlayers瀹樻柟浠g悊瀹夎姝ラ錛?br /> 1銆佸畨瑁匬ython2.5錛岃浣忓畨瑁呰礬寰勩?br /> 2銆佸皢openlayers瀹樻柟鎻愪緵鐨刾roxy.cgi澶嶅埗鍒癮pache鐨刢gi-bin鐩綍涓嬨?br /> 淇敼絎竴琛孭ython25鐨勫畨瑁呰礬寰勶紝娉ㄦ剰涓嶈鍘繪帀鏈鍓嶉潰鐨?鍙楓?br /> 淇敼allowedHosts涓殑geoserver/mapserver ip:geoserver/mapserver port閮ㄥ垎銆?br /> 3銆佹墦寮conf鐩綍涓嬬殑httpd.conf鏂囦歡錛屼慨鏀筩gi閮ㄥ垎錛屼緥濡傦細(xì)
<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
淇濆瓨鍚庨噸鏂板惎鍔ˋpache錛屽湪嫻忚鍣ㄥ湴鍧鏍忎腑濉叆http://apache ip/cgi-bin/proxy.cgi錛屾祴璇曚唬鐞嗘槸鍚﹀伐浣滄甯搞?br />
浠ヤ笅鏄痯roxy.cgi鐨勫唴瀹癸細(xì)
#!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

澶囨敞錛氶儴緗插湪鍚屼竴涓満鍣ㄣ佷笉鍚屾湇鍔″櫒涓婏紙鐩稿悓ip錛屼笉鍚岀鍙e彿錛夊悓鏍鋒槸璺ㄥ煙璁塊棶銆備緥濡傚湴鍥炬湇鍔″櫒geoserver鍦╰omcat錛岀鍙?080錛屽簲鐢ㄧ郴緇熷湪Apache鎴朓IS錛岀鍙?0錛夛紝榪欑鎯呭喌涓嬪彧鏈塈E6鑳藉姝e父璁塊棶錛屾潯浠舵槸灝唅p鍦板潃鍔犲叆鍙俊绔欑偣鍒楄〃錛孖E7銆両E8銆丗F3.6閮戒細(xì)紱佹璁塊棶銆?br />



澶╃嫾 2010-08-26 10:36 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 黄页网址在线免费观看| 亚洲国产精品成人精品无码区| 久久天天躁狠狠躁夜夜免费观看| 全部免费毛片在线播放| 女人体1963午夜免费视频| 国产午夜精品久久久久免费视| 中文字幕的电影免费网站| 成人一区二区免费视频| 中文字幕不卡免费高清视频| 中文字幕视频在线免费观看| 久久精品免费网站网| 韩日电影在线播放免费版| 国产自国产自愉自愉免费24区 | 亚洲精品岛国片在线观看| 亚洲成a人一区二区三区| 亚洲女同成人AⅤ人片在线观看| 亚洲国产综合久久天堂| 久久亚洲欧洲国产综合| 国产亚洲无线码一区二区| 九月丁香婷婷亚洲综合色| 亚洲AV无码久久精品色欲| 久久精品国产亚洲av麻豆小说 | 亚洲 国产 图片| 精品国产日韩亚洲一区| 亚洲精品国精品久久99热一| 亚洲福利在线视频| 亚洲电影唐人社一区二区| 色婷五月综激情亚洲综合| 久久精品国产亚洲av瑜伽| 国产VA免费精品高清在线| 久久精品视频免费播放| 在线观看H网址免费入口| 免费特级黄毛片在线成人观看| 亚洲av区一区二区三| 国产A在亚洲线播放| 亚洲一区二区三区深夜天堂| 精品久久久久亚洲| 中国好声音第二季免费播放| 足恋玩丝袜脚视频免费网站| 成人爱做日本视频免费| 亚洲色无码一区二区三区|