初始化

This commit is contained in:
hukekuan@163.com 2018-01-31 15:58:17 +08:00
parent 2a3edf2500
commit 88d4f45ac5
3 changed files with 18 additions and 16 deletions

View File

@ -1,5 +1,6 @@
package com.gis3c.ol.entity; package com.gis3c.ol.entity;
import java.math.BigDecimal;
import java.util.*; import java.util.*;
import java.util.Map; import java.util.Map;
@ -13,10 +14,10 @@ public class Layer {
private Double opacity = 1.0; private Double opacity = 1.0;
private String source; private String source;
private Boolean visible = Boolean.TRUE; private Boolean visible = Boolean.TRUE;
private Double[] extent; private BigDecimal[] extent;
private Integer zIndex = 0; private Integer zIndex = 0;
private Double maxResolution; private BigDecimal maxResolution;
private Double minResolution; private BigDecimal minResolution;
private String type; private String type;
private java.util.Map<String,Object> options; private java.util.Map<String,Object> options;
private String description; private String description;
@ -69,11 +70,11 @@ public class Layer {
this.visible = visible; this.visible = visible;
} }
public Double[] getExtent() { public BigDecimal[] getExtent() {
return extent; return extent;
} }
public void setExtent(Double[] extent) { public void setExtent(BigDecimal[] extent) {
this.extent = extent; this.extent = extent;
} }
@ -85,19 +86,19 @@ public class Layer {
this.zIndex = zIndex; this.zIndex = zIndex;
} }
public Double getMaxResolution() { public BigDecimal getMaxResolution() {
return maxResolution; return maxResolution;
} }
public void setMaxResolution(Double maxResolution) { public void setMaxResolution(BigDecimal maxResolution) {
this.maxResolution = maxResolution; this.maxResolution = maxResolution;
} }
public Double getMinResolution() { public BigDecimal getMinResolution() {
return minResolution; return minResolution;
} }
public void setMinResolution(Double minResolution) { public void setMinResolution(BigDecimal minResolution) {
this.minResolution = minResolution; this.minResolution = minResolution;
} }

View File

@ -30,7 +30,8 @@ public class App {
TestService testService = context.getBean(TestService.class); TestService testService = context.getBean(TestService.class);
Layer layer = layerService.findeLayerById("d804360f-eb5f-4e29-94ab-fdafbf224e02");
System.out.println(layer.getExtent());
// Source source = sourceService.findSourceByName("cva"); // Source source = sourceService.findSourceByName("cva");
// System.out.println(source.getOptions()); // System.out.println(source.getOptions());
@ -65,10 +66,10 @@ public class App {
// System.out.println(mapService.findMapsByPage(5,1)); // System.out.println(mapService.findMapsByPage(5,1));
Set<String> mapIds = new HashSet<>(); // Set<String> mapIds = new HashSet<>();
mapIds.add("e49eed64-433b-4637-832e-b7292a867ba1"); // mapIds.add("e49eed64-433b-4637-832e-b7292a867ba1");
mapService.deleteMapsById(mapIds); // mapService.deleteMapsById(mapIds);
System.out.println("删除成功"); // System.out.println("删除成功");
// Map map = new Map(); // Map map = new Map();
// map.setMapId(UUID.randomUUID().toString()); // map.setMapId(UUID.randomUUID().toString());

View File

@ -10,8 +10,8 @@
<result property="visible" column="visible" /> <result property="visible" column="visible" />
<result property="extent" column="extent" javaType="ObjectArray"/> <result property="extent" column="extent" javaType="ObjectArray"/>
<result property="zIndex" column="zIndex" /> <result property="zIndex" column="zIndex" />
<result property="maxResolution" column="minResolution" /> <result property="maxResolution" column="maxResolution" />
<result property="minResolution" column="maxResolution" /> <result property="minResolution" column="minResolution" />
<result property="type" column="type" /> <result property="type" column="type" />
<result property="options" column="options" javaType="ObjectJSON"/> <result property="options" column="options" javaType="ObjectJSON"/>
<result property="description" column="description" /> <result property="description" column="description" />