摘要: 第一次安装时没有密码 登录用root用户 不填密码直接可以登录进去 阅读全文
posted @ 2017-03-10 07:09 marost 阅读(127) 评论(0) 推荐(0) 编辑
摘要: var features=jiance_layer.getFeaturesByAttribute("name",name); if(features.length == 1){ var feature=features[0]; selectControl.select(feature); map.setCenter(feature.geometry.getBounds... 阅读全文
posted @ 2017-03-09 20:54 marost 阅读(773) 评论(0) 推荐(0) 编辑
摘要: 调用 阅读全文
posted @ 2017-03-09 17:06 marost 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 本文参考http://firefish.blog.51cto.com/298258/112794/的解决方案 问题: 本文在Ubuntu上利用scrapy抓取数据写入mysql数据库时,用到sqlalchemy。但是写入数据库的中文全部为乱码,网上查了一通本以为是数据库编码的问题,折腾了一通原来是这 阅读全文
posted @ 2017-01-03 18:07 marost 阅读(2090) 评论(0) 推荐(0) 编辑
摘要: php请求MySQL数据库返回GeoJSON数据的实现方法请参见: http://www.cnblogs.com/marost/p/6234514.html OpenLayers【v3.19.1-dist】添加GeoJSON数据源图层 阅读全文
posted @ 2016-12-30 00:08 marost 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 【官方文档请参见http://www.highcharts.com/docs/working-with-data/getting-data-across-domains-jsonp】 【实例http://highcharts-mzm.rhcloud.com/】 1、index.html 阅读全文
posted @ 2016-12-30 00:03 marost 阅读(2065) 评论(0) 推荐(0) 编辑
摘要: db_connect.php config中配置数据库连接的信息 阅读全文
posted @ 2016-12-29 18:35 marost 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: 将credits属性设为false 阅读全文
posted @ 2016-12-19 04:21 marost 阅读(406) 评论(0) 推荐(0) 编辑
摘要: js跨域访问提示错误:XMLHttpRequest cannot load http://...... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is the 阅读全文
posted @ 2016-12-19 00:20 marost 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 使用apt-get方法安装的软件,所有下载的deb包都缓存到了/var/cache/apt/archives目录下了,所以可以把常用的deb包备份出来,甚至做成ISO工具包、刻盘,以后安装Ubuntu时就可以在没有网络环境的情况下进行了 Ubuntu软件包格式为deb,安装方法如下: sudo dp 阅读全文
posted @ 2016-12-17 02:34 marost 阅读(899) 评论(0) 推荐(0) 编辑