It aims to make Korea version of Twittermap. Currently, Twittermap only provides the version of US. It will help the extension of Twittermap.
This issue is written all of errors while our team has been making Korean Twitter Map.
Progress
Current State of Korean Twittermap
Match format
1. Convert polygon coordinate UTM-K to WGS84
Before we develop, we need the Korea administrative district data file.
You can download here : gisdeveloper
The polygons of Cloudberry were written by WGS84, that is longitude and latitude. But datas of Korea were written by UTM-K.
This is formula that converts UTM-K to WGS84:
After making the account of Twitter developer, we could get the data real time in the server.
We changed the Twitter data file into .adm file using this command.
gunzip -c Tweets_xxxx.gz | ./geotag.sh 1 2> /dev/null | gzip > somefilename.adm.gz;
Put the lastest data in the directory : Cloudberry/cloudberry/examples/twittermap/script
Overview
Progress
Match format
1. Convert polygon coordinate UTM-K to WGS84
Before we develop, we need the Korea administrative district data file. You can download here : gisdeveloper
The polygons of Cloudberry were written by WGS84, that is longitude and latitude. But datas of Korea were written by UTM-K. This is formula that converts UTM-K to WGS84:
2. Match properties of json file
Match the properties of Korean json file for working well on original Cloudberry.
{"geoID": "11", "stateID": 11, "name": "Seoul", "area": 1.0, "korName": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc"}
{"geoID": "11110", "name": "Jongno-gu", "area": 1.0, "countyID": 110, "stateName": "Seoul", "stateID": 11, "korStateName": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc", "korName": "\uc885\ub85c\uad6c"}
{"geoID": "11110101", "name": "Cheongun-dong", "landArea": 1.0, "waterArea": 1.0, "stateID": 11, "countyID": 110, "cityID": 101, "stateName": "Seoul", "countyName": "Jongno-gu", "korStateName": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc", "korCountyName": "\uc885\ub85c\uad6c", "korCityName": "\uccad\uc6b4\ub3d9"}
3. Simplify data file
4. Solve linestring closed error
5. Korean crash problem
6. Bring Korea Twitter Data
gunzip -c Tweets_xxxx.gz | ./geotag.sh 1 2> /dev/null | gzip > somefilename.adm.gz;
What we have to do