自2009/01/01 以來已有 人次上線瀏覽         Feed on Posts or Comments

Google Map API &教學 廖泫銘 on 30 三月 2012 01:08 下午

Google Map API讀取ArcGIS Server Cache Tile Images

之前曾經發表一篇《符合Google tile schema規範之ArcGIS Server圖資發佈流程》專文,主要是要分享如何利用ArcGIS Server來進行切圖,同時讓切圖規則(投影方式、比例尺、解析度、坐標參考原點)符合Google tile schema規格,雖然國內NGIS也開始參考OGC的標準,開始制定《臺灣WMTS服務規範》,不過這項工作只是在規範如何描述發佈的Tiles Service服務內容,而非直接規範tiles image切圖規則,簡單地說前者是交換標準,後者是資料標準。如果能在資料標準(切圖規格)上優先下手規範或尋求統一,其實也不需要再去發展WMTS標準,不過這件事情在國內似乎很困難有共識,每一個NGIS主題系統的圖臺與服務都會依照各自需求與想法,發展出不同的tile切圖規則,預見將來相關服務的整合會相對地困難。

回到正題,利用ArcGIS Server照Google規範切圖就可以使用了嗎?其實也不然,還涉及到一個問題就是tile images的命名規則(檔案存放的規則),但這問題比較不大,可以透過簡單的公式(函式)轉換即可,所以本文主要是介紹如何在Goolge Map API直接調用ArcGIS Server的Cache Tile Images,而不需要使用ArcGIS Server Map Tile Service,這樣一來就可以把龐大的GIS怪物關掉。

1.設定

如果要直接使用ArcGIS Server來進行切圖成果,在產生tile時並需設定成Exploded類別(如下圖), 如果是Compact類別,因為tile圖檔會被打包起來,所以無法直接讀取。

如果要發佈的是大量影像(例如衛星影像或航照正射影像的cache tile images時,為了增加效率可以,採用mosaic dataset方式,將單幅影像加入mosaic dataset並建好overview, 然後再把它加到ArcMap Map Document去發佈成map services, 如此一來建立cache的就會比較快速。相關的說明可參考下列網址:

2.了解命名規則

要了解ArcGIS Server來tile images的命名規則(檔案存放的規則),詳細可以參閱《多重解析度影像地圖在開放式網路GIS環境之應用》(作者:林佳樺、顏守韓)一文,分析ArcGIS Server Tiles Services的外部連接路徑與真實檔案儲存位置,可以發現以下規則:

3.應用

理解了編碼原則,在應用端(或 Client端),只要透過簡單的公式(函式)轉換就可以跟其他Google Map相關圖資整合,例如利用一段小的javascript轉碼:

這樣就可以利用Google Map API調用到ArcGIS Server的Cache Tile Images,範例如下:

 

No Responses to “Google Map API讀取ArcGIS Server Cache Tile Images”

  1. on 31 一月 2018 at 19:57:27 1.Santo Henschen said …

    I really like your writing style, excellent information, regards for posting : D.

  2. on 31 一月 2018 at 23:48:14 2.Alana Granberg said …

    Absolutely pent subject matter, thankyou for entropy.

  3. on 01 二月 2018 at 01:58:03 3.Napoleon Sewall said …

    Respect to op, some wonderful information .

  4. on 02 二月 2018 at 05:43:58 4.get private proxies said …

    I know this if off topic but I’m looking into starting my own weblog and was curious what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100 positive. Any suggestions or advice would be greatly appreciated. Many thanks

  5. on 06 二月 2018 at 08:19:47 5.Hobert Covitz said …

    Heya just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading properly. I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show the same outcome.

  6. on 06 二月 2018 at 11:02:55 6.Quentin Elshant said …

    I have been absent for some time, but now I remember why I used to love this website. Thank you, I will try and check back more often. How frequently you update your website?

  7. on 07 二月 2018 at 00:17:26 7.Elroy Mergen said …

    Greetings from Florida! I’m bored to death at work so I decided to check out your blog on my iphone during lunch break. I really like the information you present here and can’t wait to take a look when I get home. I’m shocked at how fast your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyways, superb blog!

  8. on 07 二月 2018 at 03:10:38 8.Simonne Koeppl said …

    I was curious if you ever thought of changing the page layout of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?

  9. on 07 二月 2018 at 11:10:08 9.Billie Ozaki said …

    Keep functioning ,great job!

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply