摘要: 捣腾node-mapnik时发现,瓦片渲染特费时,分析发现,渲染时不停读取一个600多M的文件land_polygons.shp,转换成SQL: shp2pgsql land_polygons.shp >lp.sql ,psql -d gis <lp.sql;创建索引:create index pl 阅读全文
posted @ 2017-09-27 21:58 李王 阅读(424) 评论(2) 推荐(0)
摘要: X=(lon_deg+180)/360*POWER(2,Z) Y=(1-LN(TAN(Lat_deg*PI()/180)+1/COS(Lat_deg*PI()/180))/PI())*POWER(2,Z-1) 网上有部分公式根据就是错误的,不知从那抄少了!! 阅读全文
posted @ 2017-09-08 14:44 李王 阅读(813) 评论(0) 推荐(0)
摘要: 最快捷径: 1. 从官网直接 下载postgresql-9.6.5-1-windows-x64-binaries.zip,解压,手动执行cmd,...安装完毕! 2. http://download.osgeo.org/postgis/windows/pg96/ ,挑选合适的版本,其它无可言。 注: 阅读全文
posted @ 2017-09-06 16:55 李王 阅读(853) 评论(0) 推荐(0)
摘要: *{box-sizing:border-box;} 此情,容器元素css属性必含overflow:hidden,不然会出问题 $(window).resize(()=>{ $('#willAdjustDiv').width($('#divContainer').width()); }) ; 记录一下 阅读全文
posted @ 2017-08-03 17:15 李王 阅读(938) 评论(0) 推荐(0)