note เกี่ยวกับ GIS


convert kml to shapefile, using:
$ogr2ogr -f "ESRI Shapefile" shpBangkok.shp kmlBangkok2.kml

convert to database
ogr2ogr -f MySQL MySQL:Bangkok,user=root shpBangkok.shp -nln Bangkok -update -overwrite -lco GEOMETRY_NAME=SHAPE

ogr2ogr -f PostgreSQL PG:"host=localhost user=postgres dbname=postgis_ogr password=12345" Bangkok.shp

view information
ogrinfo MySQL:Bangkok,user=root Bangkok -so
ogrinfo -ro PG:"host=localhost user=postgres password=12345 dbname=postgis_ogr" bangkok

คำสำคัญ (Tags): #convert#esri#gis
หมายเลขบันทึก: 270844เขียนเมื่อ 25 มิถุนายน 2009 10:31 น. ()แก้ไขเมื่อ 23 พฤษภาคม 2012 19:47 น. ()สัญญาอนุญาต: ครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า-อนุญาตแบบเดียวกันจำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท