Giter VIP home page Giter VIP logo

twmap's Introduction

twmap's People

Contributors

happyman avatar k765107 avatar poi890poi avatar wiwari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twmap's Issues

自行編輯興趣點功能

permLinkURL 給的是 name, 但是 user A 的 name 並不會在其他 user 被載入, 所以分享還要想怎麼做.

svg2png issue

bug report from user
14370158_1301448073200300_8493077299736119876_n
so use imagemagick's convert to covert fix it.
but encounter this error
test

無法產生以下參數的地圖

Browser: Chrome, Version 49.0.2623.87 (64-bit)
產生座標的參數
298
2788
A4R 14x10
台灣
經建三
包含山友gps trace + 彩圖

error: svg2png fail: Entity: line 35341: parser error : internal error: Huge input lookup+031 L 3107.445312 633.96875 L 3108.570312 633.164062 L 3108.757812 633.398438 "/+ ^+Entity: line 35342: parser error : Extra content at the end of the document++^+Entity: line 35341: parser error : internal error: Huge input lookup+031 L 3107.445312 633.96875 L 3108.570312 633.164062 L 3108.757812 633.398438 "/+ ^+Entity: line 35342: parser error : Extra content at the end of the document++^++** (inkscape:25223): WARNING **: Specified document /srv/www/htdocs/map/out/024226/298000x2788000-14x10-v3.svg2 cannot be opened (does not exist or not a valid SVG file)

純 gpx track 的儲存/顯示

問題: 原先 gpx 用以出圖為主, 所以出圖才會匯入 db, 缺點是無法吃範圍太大的 gpx. 想存大範圍 gpx track 例如長程縱走, 並且可以將該行跡匯入 db.
規格:

  1. 另外加上 track table 直接 keep original gpx/gdb/kml/kmz, 並且存處理過的 gpx, kml 兩種檔案.
  2. 該 track 必須要能夠在地圖瀏覽器顯示. 提供下載. 並且能夠 bookmark.
  3. 使用者要能有簡易管理功能. 能夠被刪除/更名
  4. 能夠保存 oruxmaps 的 photo waypoint

實作:

  1. file drop upload (dropzone)
  2. upload oruxmaps kmz post-process (自己寫)
  3. table CRUD 使用 jquery jtable
  4. mid < 0 就去讀 track table. 改寫最少東西. api/getkml, import_gpx_to_gis, tilestahe_clean 其餘不用動.
  5. display track 加入 ?skml_id=mid or -tid

附帶解決:

  1. load kml 的提示. 使用 jquery noty
  2. 載入流程改進 saveMapState / restoreMapState 但 permLinkURL 還有點問題.

TODO:

  1. permLinkURL 改進: 與 show_line_of_sight 相同問題.打開之後便無法改. 目前 bookmark 步驟比較麻煩.
  2. max track limit 應該放在 user table 中
  3. 針對 keepon 大範圍的 gpx, 可以 keep. 如果要 keep, 則要產生可以 update 回 keepon 的 url. 並且改寫 import utility.

facebook login unable to get email address

request for scope "public_profile,email", but
image

[identifier] => xxxxxx [webSiteURL] => [profileURL] => https://www.facebook.com/xxxx [photoURL] => https://graph.facebook.com/v8.0/xxxxx/picture?width=150&height=150 [displayName] =>XYZ [description] => [firstName] => Q [lastName] => XYZ [gender] => [language] => [age] => [birthDay] => 0 [birthMonth] => 0 [birthYear] => 0 [email] => [emailVerified] => [phone] => [address] => [country] => [region] => [city] => [zip] => [data] => Array ( )

so fb login is broken.

KML drawOrder tag

地圖產生器產出的 KML 中的 依 OGC KML 2.2 的規範應該要在 之外,也就是兩者是同層級的,還請修正,感恩。

畫線測距離

image

距離會是需要考慮高程的
利用畢氏定理即可。c = sqrt(a^2+b^2)

整合 Rudy 的 MOI_OSM 地圖

https://www.facebook.com/groups/taiwan.topo/

MOI.OSM - Taiwan TOPO v2016.11.03 發行

好消息,Taiwan TOPO Mapsforge (Android) 地圖正式開始發行。
https://dl.dropboxusercontent.com/u/8997…/…/taiwan_topo.html

Happyman: Rudy Chung 感謝你的成果。因為我對非山區實在沒興趣, 我可以拿你的 maps 做基礎, 去產生地圖產生器想要的圖資嗎?
Rudy Chung: 可以呀,非常歡迎。若需要協助,請跟我說,謝謝! 🗡

plan

  1. 將 OSM 置換成 MOI_OSM
  2. 在 MOI_OSM 上疊合 gpx layer 當前景圖取代經建一版.
  3. 出 MOI_OSM 的圖??

加上台灣三家電信公司涵蓋率

使用者反應加上電信公司涵蓋率資料:
中華電信: http://www.emome.net/internet_coverage (http://221.120.19.26/coverage/tw.html)
台灣大哥大: https://www.taiwanmobile.com/mobile/calculate/cover_map.html
遠傳 :http://www.fetnet.net/service/roadtestresult/signal/cover_communica.html

初步看了一下都是用 Groundoverlay 去做的.
CHT: http://221.120.19.26/coverage/jss/mobile/mobileMap.js

有 voice, 3-3.5G, 4G 三個背景圖.

舉例: https://www.taiwanmobile.com/mobile/calculate/maps/4G/TW.png?r=20160816
資料(image url)還要整理, 官方的更新頻率未知.
直接引用官方 image 不一定可行, 可能需要砍圖下來比較保險.

蘭嶼的堡圖偏移

蘭嶼堡圖的位置偏移。目前是界接中研院地使百年地圖的

  • JM20K_1904(明治版)
  • tileurl: //gis.sinica.edu.tw/tileserver/file-exists.php?img=JM20K_1921-jpg-"+zoom+"-"+ tile.x + "-" + tile.y;
  • JM20K_1921 (大正版)
  • tileurl: //gis.sinica.edu.tw/tileserver/file-exists.php?img=JM20K_1921-jpg-"+zoom+"-"+ tile.x + "-" + tile.y;

大概看起來像是這樣:
image

標石 icon refectory

基石種類為主 icon, 分為 一等 二等 三等 森林 自然石 其他
套上 主 次 補
狀態 存在 未知 破損 遺失 存在位移

再想想是不是大部分的日本時代標石都放得進去

cwb 更新為 v8 雨量圖出不來

inkscape 更新

舊版的 inkscape 處理許多物件會 crash, 擬跟系統一起升級.

broken Xuite login

因為 google login broken 所以將 hydridauth 更新成 2.8.2, 加上 fb 的 sdk. 但是 xuite 也壞掉了。
初步判斷是因為 xuite oauth2 不是很標準的緣故。

SQL-Injection in pointdata2.php

In the pointdata2.php file, you can use the GET parameter "id" to execute your own SQL statements. An example exploit is:

/twmap3/data/ajaxCRUD/pointdata2.php?id=1%20OR%201=1

The problem can be solved by first escaping the parameter (line 12):
$id = mysqli_real_escape_string ($mysqliConn, $_GET ['id']);

In addition, the parameter must then be put into a string environment in the query (line 22):
$sql. = "where id = '$id'";

After that, the $id parameter can no longer be misused for SQL injection attacks.

The vulnerability also exists in the ajaxCRUD_old directory

keepon id 更新 但是資料庫中已有舊的.

3 doing mid 71634 金鳥樂園後山、馬武督舊路新開20151017.gpx 8da5fdd3-1576-e511-93ee-000e04b74954skip.. 71635
4 doing mid 71635 金鳥樂園後山、馬武督舊路新開20151017.gpx 8da5fdd3-1576-e511-93ee-000e04b74954skip.. 71634
8 doing mid 71664 東水山、北霞山、霞山.gpx ab26320f-c4fb-e411-93ec-000e04b74954skip.. 71665
9 doing mid 71665 東水山、北霞山、霞山.gpx ab26320f-c4fb-e411-93ec-000e04b74954skip.. 71664
10 doing mid 71666 東水山、北霞山、霞山.gpx ab26320f-c4fb-e411-93ec-000e04b74954skip.. 71664
11 doing mid 71667 東水山、北霞山、霞山.gpx ab26320f-c4fb-e411-93ec-000e04b74954skip.. 71664

skip 的話, 這個圖永遠不會被參考到
應該是更新 keepon id.

vector tile 實作

  1. 是否能用 vector tile 來呈現 gps tracks?
  2. 是否可以產生 offline track map 給手機使用?

TWD97 Grid output

目前有至少三位網友跟我提需要 TWD97 TM2 Grid Output,看起來是有這個需求?

支援畫圓圈

goal: 如果地圖產生器上 可以協助 輸入座標 和半徑 並畫圓
這樣會很方便....如果可以同時畫多個圓 就滿分了
我想消防就很夠用...甚至警察也是可以用.

輸入:

  1. 輸入 座標 半徑(m)
  2. 輸入 api key/mmc/mnc/lac/cellid/radio 利用下列 API
http://www.opencellid.org/cell/get?key=<api_key>&mcc=466&mnc=92&lac=10419&cellid=24900&radio=umts
得到
<rsp stat="ok">
<cell lat="24.083701" lon="121.180778" mcc="466" mnc="92" lac="10419" cellid="24900" averageSignalStrength="0" range="13515" samples="1" changeable="1" radio="UMTS" rnc="0" cid="0" tac="0" sid="0" nid="0" bid="0"/>
</rsp>

輸出:
園形 (是否夾帶資訊? 需那些資訊,輸出 kml ?)

有關debug圖層

https issue

image

  1. https and http mix (it's okay)
  2. script not goes through https

APE server use wildcard subdomain
https://github.com/APE-Project/APE_Server/wiki/APE-Server-Configuration-Apache
which letsencrypt not support now.
https://certbot.eff.org/faq/#will-let-s-encrypt-issue-wildcard-certificates
install certbot
https://certbot.eff.org/all-instructions/#ubuntu-16-04-xenial-apache

okay. since APE hash user to 0..9
https://github.com/APE-Project/APE_Server/wiki/Configuration-DNS

so we can create seperate virtual hosts and let certbot do the job.

航跡圖層 map tiles

  1. 各種圖資的疊圖需求 例如老五萬 (阿超)
  2. osm 描圖需求
    將原本 gpx layer 公布出來 變成路圖的圖層
  3. 設計:航跡切換是否改變?
  4. 檢查出圖流程是否影響 原先參數改變?

session expired while making map

backend_make takes long time.

  1. when cmd_make is done, the session is gone. unable to register map (save metadata to db).
  2. when map registered, session is gone. unable to migrate map to correct place.
    (path still in temp dir, so unable to download the map)

try to solve it by

  1. make the session alive by ajax
  2. clone the session vars in the beginning of script, and use them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.