摘要:
网上关于Pgrouting的使用介绍太简单了,这里想详细的总结一下Pgrouting的使用,其实主要参照官方文档:http://workshop.pgrouting.org/ 第一步:配置环境 关于PostgreSQL 、postgis以及pgrouting可以去官网下载,这里使用Pgrouting2.0 PostgreSQL与postgis安装可以参照网上教程 ... 阅读全文
摘要:
#!/usr/bin/env python #****************************************************************************** # $Id$ # # Project: GDAL Python Interface # Purpose: Script to merge greyscale as intensity ... 阅读全文
摘要:
计算坡度与坡向 #!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess # SLOPE # - To generate a slope map from any GDAL-supported elevation raster : # gdaldem slope input_dem output_slope_map" # [-... 阅读全文
摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- from osgeo import gdal from numpy import gradient from numpy import pi from numpy import arctan from numpy import arctan2 from numpy import sin from numpy... 阅读全文
摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, gdal, os from gdalconst import GA_ReadOnly from os.path import realpath from shapely.geometry import LineString #根据坐标点计算该点所在栅格上的值 def get_ele... 阅读全文
摘要:
裁剪(求异) 合并(无dissolve) 合并(有dissolve) utils.py union_dissolve.py identity 阅读全文
摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import os from shapely.geometry import shape, Point import json def pairs(lst): """ yield iterator of two coordinates of linestring ... 阅读全文
摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- import gdal import xlrd import shapefile # open the excel file excel_file = xlrd.open_workbook("../geodata/highest-mountains-europe.xlsx") # get the fi... 阅读全文
摘要:
dojo.require("esri.tasks.closestfacility"); var closestFacilityTask, params; var facilityPointGraphicsLayerName = "facilityPointGraphicsLayer"; var incidentPointGraphicsLayerName = "incidentPointGrap... 阅读全文