欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
arcims 兩種連接方式(java connector,servlet connecto...
arcims 兩種連接方式(java connector,servlet connector)的一些比較- -
                                      
 (1) java connector主要是利用ims自封裝的一些java類(lèi)(ConnectionProxy,Map)來(lái)實(shí)現,通過(guò)api方法進(jìn)行調用,
     舉例如下:
  
    ConnectionProxy mapCon=new ConnectionProxy();
    if(connectiontype.equalsIgnoreCase("http"))
    {
      mapCon.setConnectionType(ConnectionProxy.HTTP);
      URL url = new URL(host);
       mapCon.setUrl(url);
     }
    else if (connectiontype.equalsIgnoreCase("tcp"))
    {
      mapCon.setConnectionType(ConnectionProxy.TCP);
      mapCon.setHost(host);
    }
    mapCon.setPort(port);
    mapCon.setService(datasource);
    mapCon.setDisplayMessages(true);
    map=new Map();
    map.initMap(mapCon,750,false,false,false,false);
   
    map.setHeight(option.getHeight());
    map.setWidth(option.getWidth());
    .................
   
    map.refresh();  
    String mapurl=map.getMapOutput().getURL();
    String legendurl=map.getLegend().getLegendOutput().getURL();
   
    在此過(guò)程中,Map對象的方法主要工作為構造arcxml request,并解析arcxml response
    優(yōu)點(diǎn):基于api接口實(shí)現起來(lái)方便易用
    缺點(diǎn):解析map對象,影響速度。且調用map.refresh()方法,默認為做兩次arcims request. 第一次為遍歷axl的request,第二次為實(shí)際的request.
(2)servlet connector主要通過(guò)向servlet地址發(fā)送請求,然后獲得返回的url流,得到響應
     舉例如下:
     String serverUrl="http://localhost:8888/servlet/com.esri.esrimap.Esrimap?ServiceName=SantaClara";
     URL imsURL =new URL(serverUrl);
     URLConnection connection=imsURL.openConnection();   
    connection.setDoOutput(true);
    connection.setDoInput(true);
    BufferedOutputStream bos = new BufferedOutputStream(connection.getOutputStream());
    OutputStreamWriter out = new OutputStreamWriter(bos, "UTF8");
    out.write(arcimsRequest, 0, arcimsRequest.length());
    out.flush();     
    out.close();
    BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF8"));
    String ln;
    String tempString=null;
    while ((ln = in.readLine()) != null)
    {
     if (tempString == null)
     {
        tempString = ln;
     }
     else
     {
        tempString = tempString + ln;
     }
    }
    arcxmlReponseStr = tempString.trim();
   out.close();
   in.close();
  其中arcimsRequest格式如下:
Arcxml request:
<?xml version="1.0" encoding="UTF-8"?>
 <ARCXML version="1.1">
  <REQUEST>
    <GET_IMAGE autoresize="false">
      <ENVIRONMENT>
       <SEPARATORS cs=" " ts=";"/>
      </ENVIRONMENT>
       //scalebar is set
      <LAYER id="8" name="LayerName" type="acetate" visible="true">
       <OBJECT units="pixel">
         <SCALEBAR antialiasing="true" barcolor="255,255,255" bartransparency="1.0" barwidth="12" coords="100.0 3.0" distance="0.0" font="Arial" fontcolor="0,0,0" fontsize="10" fontstyle="regular" mapunits="degrees" mode="cartesian" outline="255,255,255" overlap="true" precision="2" round="0.0" scaleunits="meters" screenlength="40" texttransparency="1.0"/>
       </OBJECT>
      </LAYER>
      <PROPERTIES>
       <ENVELOPE maxx="-121.87677055355464" maxy="37.33222499720282" minx="-121.90701583922555" miny="37.316082232930746"/>
       <IMAGESIZE dpi="750" height="350" scalesymbols="false" width="500"/>
       <BACKGROUND color="215,215,215"/>
       <OUTPUT type="jpg"/>
       <LEGEND antialiasing="false" autoextend="true" cansplit="false" cellspacing="2" columns="1" display="true" font="宋體" height="300" layerfontsize="12" reverseorder="false" splittext="(cont)" swatchheight="14" swatchwidth="18" title="圖例" titlefontsize="15" valuefontsize="10" width="125"/>
        <LAYERLIST dynamicfirst="false" nodefault="false" order="true">
         <LAYERDEF id="0" name="boundary" visible="true"/>
         <LAYERDEF id="1" name="tract" visible="true"/>
         <LAYERDEF id="2" name="sc_streets" visible="true"/>
         <LAYERDEF id="3" name="rivers" visible="false"/>
         <LAYERDEF id="4" name="hospital" visible="true"/>
         <LAYERDEF id="5" name="cities" visible="true"/>
         <LAYERDEF id="6" name="topoq24" visible="false"/>
           // scalebar is set
         <LAYERDEF id="8" name="LayerName" visible="true"/>
        </LAYERLIST>
      </PROPERTIES>
    </GET_IMAGE>
  </REQUEST>
</ARCXML>
返回的arcxmlReponseStr ,格式如下:
<?xml version="1.0" encoding="UTF-8"?>
 <ARCXML version="1.1">
  <RESPONSE>
   <IMAGE>
    <ENVELOPE minx="-121.907015839225" miny="37.3135677650819" maxx="-121.876770553554" maxy="37.3347394650516" />
    <OUTPUT file="C:\oc4j\j2ee\home\default-web-app\output\SantaClara_CHXW24002560270.jpg" url="http://chxw:8888/output/SantaClara_CHXW24002560270.jpg" />
    <LEGEND file="C:\oc4j\j2ee\home\default-web-app\output\SantaClara_CHXW24002568263.jpg" url="http://chxw:8888/output/SantaClara_CHXW24002568263.jpg" />
   </IMAGE>
  </RESPONSE>
 </ARCXML>
通過(guò)xml parse解析即可得到輸出url.
優(yōu)點(diǎn):向arcims應用服務(wù)器,只需請求arcxml request一次,只需調用自己的建構的arcimsrequest對象,此類(lèi)對象為開(kāi)源,可實(shí)現自?xún)?yōu)化
缺點(diǎn):需要自己定義arcims request 對象,沒(méi)有java connector簡(jiǎn)潔明了。
優(yōu)化:可直接進(jìn)行socket通信,通過(guò)tcp協(xié)議實(shí)現。
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
ArcIMS--基于WEB的GIS開(kāi)發(fā)
Tomcat服務(wù)器配置參考-Coyote HTTP/1.1 Connector
FCKEditor使用說(shuō)明
http連接配置說(shuō)明
Tomcat介紹
ArcIMS問(wèn)題集中解決精華
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久