初始化

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

View File

@ -30,7 +30,8 @@ public class App {
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");
// System.out.println(source.getOptions());
@ -65,10 +66,10 @@ public class App {
// System.out.println(mapService.findMapsByPage(5,1));
Set<String> mapIds = new HashSet<>();
mapIds.add("e49eed64-433b-4637-832e-b7292a867ba1");
mapService.deleteMapsById(mapIds);
System.out.println("删除成功");
// Set<String> mapIds = new HashSet<>();
// mapIds.add("e49eed64-433b-4637-832e-b7292a867ba1");
// mapService.deleteMapsById(mapIds);
// System.out.println("删除成功");
// Map map = new Map();
// map.setMapId(UUID.randomUUID().toString());

View File

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