摘要: 创建序列 可以用语句 ,也可以在navicat中使用【其它】--》【序列】来实现CREATE SEQUENCE "public"."sys_config_id_seq" INCREMENT 1MINVALUE 1MAXVALUE 999999999START 1CACHE 1; 为主键设置Seque 阅读全文
posted @ 2021-07-06 14:38 守望者2710 阅读(397) 评论(0) 推荐(0) 编辑
摘要: var yourlayer= new ol.layer.Image({ source: new ol.source.ImageWMS({ ratio: 1, url: 'http://192.168.0.164:5081/geoserver/pg/wms', params: {'FORMAT': f 阅读全文
posted @ 2021-05-17 18:06 守望者2710 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 加载wfs图层,和wms不一样,样式需要自己在前端代码进行设置。 此例中为加在的geojson格式数据 function addwms() { var vs = new ol.source.Vector({ format: new ol.format.GeoJSON(), url: function 阅读全文
posted @ 2021-05-17 17:57 守望者2710 阅读(959) 评论(0) 推荐(0) 编辑
摘要: //监听分辨率变化Map.map.getView().on('change:resolution', function(){ var zoom = Map.map.getView().getZoom(); if(zoom>=10){ console.info("当前层级:"+zoom); var e 阅读全文
posted @ 2021-05-12 17:49 守望者2710 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: var point = new ol.geom.Point(ol.proj.fromLonLat([87.646 ,40.309], 'EPSG:4326'));var lineT = new ol.geom.LineString([[87.646 ,40.309], [87.646 ,40.323 阅读全文
posted @ 2021-05-12 17:43 守望者2710 阅读(605) 评论(0) 推荐(0) 编辑
摘要: function getDemInfo(geomObj,map){ var point = new ol.geom.Point(ol.proj.fromLonLat([94.085 ,42.118])); point = [94.085 ,42.118]; let offset = 0.00001; 阅读全文
posted @ 2021-05-12 17:35 守望者2710 阅读(788) 评论(0) 推荐(0) 编辑
摘要: update table set geom=st_geomfromtext('POINT('|| easting ||' '|| northing ||')',4326); 阅读全文
posted @ 2021-04-19 16:10 守望者2710 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$ 带1- 阅读全文
posted @ 2021-04-19 15:58 守望者2710 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 一个线程OOM后,其他线程还能运行吗? 可以正常运行 ,测试用例如下: public class TsetUtil { public static void main(String[] args) { // 线程1 (此thread会OOM 堆溢出) Thread thread = new Thre 阅读全文
posted @ 2021-04-08 13:54 守望者2710 阅读(165) 评论(0) 推荐(0) 编辑
摘要: pg数据库命令行执行sql语句 D:\Program Files (x86)\PostgreSQL\9.6\bin>psql -d thematic_xjlf -h 192.168.0.164 -p 5432 -U postgres -c "select * from ctrl_area " mys 阅读全文
posted @ 2021-04-01 10:59 守望者2710 阅读(1291) 评论(0) 推荐(0) 编辑