初始化
This commit is contained in:
parent
eddd4ce40f
commit
647bec3f6d
15
pom.xml
15
pom.xml
@ -73,6 +73,21 @@
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>${mybatis.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis-spring</artifactId>
|
||||
<version>1.2.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
<version>1.0.29</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>42.1.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-beans</artifactId>
|
||||
|
||||
88
src/main/java/com/gis3c/ol/entity/Map.java
Normal file
88
src/main/java/com/gis3c/ol/entity/Map.java
Normal file
@ -0,0 +1,88 @@
|
||||
package com.gis3c.ol.entity;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Map {
|
||||
private String mapId;
|
||||
private String mapName;
|
||||
private String[] controls;
|
||||
private Integer pixelRatio;
|
||||
private String[] interactions;
|
||||
private String view;
|
||||
private String[] layers;
|
||||
private Boolean logo = Boolean.FALSE;
|
||||
private String description;
|
||||
|
||||
public String getMapId() {
|
||||
return mapId;
|
||||
}
|
||||
|
||||
public void setMapId(String mapId) {
|
||||
this.mapId = mapId;
|
||||
}
|
||||
|
||||
public String getMapName() {
|
||||
return mapName;
|
||||
}
|
||||
|
||||
public void setMapName(String mapName) {
|
||||
this.mapName = mapName;
|
||||
}
|
||||
|
||||
public String[] getControls() {
|
||||
return controls;
|
||||
}
|
||||
|
||||
public void setControls(String[] controls) {
|
||||
this.controls = controls;
|
||||
}
|
||||
|
||||
public Integer getPixelRatio() {
|
||||
return pixelRatio;
|
||||
}
|
||||
|
||||
public void setPixelRatio(Integer pixelRatio) {
|
||||
this.pixelRatio = pixelRatio;
|
||||
}
|
||||
|
||||
public String[] getInteractions() {
|
||||
return interactions;
|
||||
}
|
||||
|
||||
public void setInteractions(String[] interactions) {
|
||||
this.interactions = interactions;
|
||||
}
|
||||
|
||||
public String getView() {
|
||||
return view;
|
||||
}
|
||||
|
||||
public void setView(String view) {
|
||||
this.view = view;
|
||||
}
|
||||
|
||||
public String[] getLayers() {
|
||||
return layers;
|
||||
}
|
||||
|
||||
public void setLayers(String[] layers) {
|
||||
this.layers = layers;
|
||||
}
|
||||
|
||||
public Boolean getLogo() {
|
||||
return logo;
|
||||
}
|
||||
|
||||
public void setLogo(Boolean logo) {
|
||||
this.logo = logo;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
133
src/main/java/com/gis3c/ol/entity/View.java
Normal file
133
src/main/java/com/gis3c/ol/entity/View.java
Normal file
@ -0,0 +1,133 @@
|
||||
package com.gis3c.ol.entity;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class View {
|
||||
private String viewId;
|
||||
private String viewName;
|
||||
private Double[] center;
|
||||
private Double[] extent;
|
||||
private Double maxResolution;
|
||||
private Double minResolution;
|
||||
private Integer maxZoom;
|
||||
private Integer minZoom;
|
||||
private Integer zoom;
|
||||
private String projection;
|
||||
private Double resolution;
|
||||
private Double resolutions;
|
||||
private Double rotation;
|
||||
private String description;
|
||||
|
||||
public String getViewId() {
|
||||
return viewId;
|
||||
}
|
||||
|
||||
public void setViewId(String viewId) {
|
||||
this.viewId = viewId;
|
||||
}
|
||||
|
||||
public String getViewName() {
|
||||
return viewName;
|
||||
}
|
||||
|
||||
public void setViewName(String viewName) {
|
||||
this.viewName = viewName;
|
||||
}
|
||||
|
||||
public Double[] getCenter() {
|
||||
return center;
|
||||
}
|
||||
|
||||
public void setCenter(Double[] center) {
|
||||
this.center = center;
|
||||
}
|
||||
|
||||
public Double[] getExtent() {
|
||||
return extent;
|
||||
}
|
||||
|
||||
public void setExtent(Double[] extent) {
|
||||
this.extent = extent;
|
||||
}
|
||||
|
||||
public Double getMaxResolution() {
|
||||
return maxResolution;
|
||||
}
|
||||
|
||||
public void setMaxResolution(Double maxResolution) {
|
||||
this.maxResolution = maxResolution;
|
||||
}
|
||||
|
||||
public Double getMinResolution() {
|
||||
return minResolution;
|
||||
}
|
||||
|
||||
public void setMinResolution(Double minResolution) {
|
||||
this.minResolution = minResolution;
|
||||
}
|
||||
|
||||
public Integer getMaxZoom() {
|
||||
return maxZoom;
|
||||
}
|
||||
|
||||
public void setMaxZoom(Integer maxZoom) {
|
||||
this.maxZoom = maxZoom;
|
||||
}
|
||||
|
||||
public Integer getMinZoom() {
|
||||
return minZoom;
|
||||
}
|
||||
|
||||
public void setMinZoom(Integer minZoom) {
|
||||
this.minZoom = minZoom;
|
||||
}
|
||||
|
||||
public Integer getZoom() {
|
||||
return zoom;
|
||||
}
|
||||
|
||||
public void setZoom(Integer zoom) {
|
||||
this.zoom = zoom;
|
||||
}
|
||||
|
||||
public String getProjection() {
|
||||
return projection;
|
||||
}
|
||||
|
||||
public void setProjection(String projection) {
|
||||
this.projection = projection;
|
||||
}
|
||||
|
||||
public Double getResolution() {
|
||||
return resolution;
|
||||
}
|
||||
|
||||
public void setResolution(Double resolution) {
|
||||
this.resolution = resolution;
|
||||
}
|
||||
|
||||
public Double getResolutions() {
|
||||
return resolutions;
|
||||
}
|
||||
|
||||
public void setResolutions(Double resolutions) {
|
||||
this.resolutions = resolutions;
|
||||
}
|
||||
|
||||
public Double getRotation() {
|
||||
return rotation;
|
||||
}
|
||||
|
||||
public void setRotation(Double rotation) {
|
||||
this.rotation = rotation;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
88
src/main/java/com/gis3c/ol/entity/layer/BaseLayer.java
Normal file
88
src/main/java/com/gis3c/ol/entity/layer/BaseLayer.java
Normal file
@ -0,0 +1,88 @@
|
||||
package com.gis3c.ol.entity.layer;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public abstract class BaseLayer {
|
||||
private String layerId;
|
||||
private String layerName;
|
||||
private Double opacity;
|
||||
private Boolean visible = Boolean.TRUE;
|
||||
private Double[] extent;
|
||||
private Integer zIndex;
|
||||
private Double maxResolution;
|
||||
private Double minResolution;
|
||||
private String description;
|
||||
|
||||
public String getLayerId() {
|
||||
return layerId;
|
||||
}
|
||||
|
||||
public void setLayerId(String layerId) {
|
||||
this.layerId = layerId;
|
||||
}
|
||||
|
||||
public String getLayerName() {
|
||||
return layerName;
|
||||
}
|
||||
|
||||
public void setLayerName(String layerName) {
|
||||
this.layerName = layerName;
|
||||
}
|
||||
|
||||
public Double getOpacity() {
|
||||
return opacity;
|
||||
}
|
||||
|
||||
public void setOpacity(Double opacity) {
|
||||
this.opacity = opacity;
|
||||
}
|
||||
|
||||
public Boolean getVisible() {
|
||||
return visible;
|
||||
}
|
||||
|
||||
public void setVisible(Boolean visible) {
|
||||
this.visible = visible;
|
||||
}
|
||||
|
||||
public Double[] getExtent() {
|
||||
return extent;
|
||||
}
|
||||
|
||||
public void setExtent(Double[] extent) {
|
||||
this.extent = extent;
|
||||
}
|
||||
|
||||
public Integer getzIndex() {
|
||||
return zIndex;
|
||||
}
|
||||
|
||||
public void setzIndex(Integer zIndex) {
|
||||
this.zIndex = zIndex;
|
||||
}
|
||||
|
||||
public Double getMaxResolution() {
|
||||
return maxResolution;
|
||||
}
|
||||
|
||||
public void setMaxResolution(Double maxResolution) {
|
||||
this.maxResolution = maxResolution;
|
||||
}
|
||||
|
||||
public Double getMinResolution() {
|
||||
return minResolution;
|
||||
}
|
||||
|
||||
public void setMinResolution(Double minResolution) {
|
||||
this.minResolution = minResolution;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
16
src/main/java/com/gis3c/ol/entity/layer/TileLayer.java
Normal file
16
src/main/java/com/gis3c/ol/entity/layer/TileLayer.java
Normal file
@ -0,0 +1,16 @@
|
||||
package com.gis3c.ol.entity.layer;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class TileLayer extends BaseLayer {
|
||||
private String source;
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
}
|
||||
34
src/main/java/com/gis3c/ol/entity/layer/VectorLayer.java
Normal file
34
src/main/java/com/gis3c/ol/entity/layer/VectorLayer.java
Normal file
@ -0,0 +1,34 @@
|
||||
package com.gis3c.ol.entity.layer;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class VectorLayer extends BaseLayer {
|
||||
private String source;
|
||||
private String styleType;
|
||||
private String styleValue;
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public String getStyleType() {
|
||||
return styleType;
|
||||
}
|
||||
|
||||
public void setStyleType(String styleType) {
|
||||
this.styleType = styleType;
|
||||
}
|
||||
|
||||
public String getStyleValue() {
|
||||
return styleValue;
|
||||
}
|
||||
|
||||
public void setStyleValue(String styleValue) {
|
||||
this.styleValue = styleValue;
|
||||
}
|
||||
}
|
||||
70
src/main/java/com/gis3c/ol/entity/source/TileArcGISRest.java
Normal file
70
src/main/java/com/gis3c/ol/entity/source/TileArcGISRest.java
Normal file
@ -0,0 +1,70 @@
|
||||
package com.gis3c.ol.entity.source;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class TileArcGISRest {
|
||||
private String sourceId;
|
||||
private String sourceName;
|
||||
private String crossOrigin;
|
||||
private String projection;
|
||||
private String url;
|
||||
private Boolean wrapX;
|
||||
private String description;
|
||||
|
||||
public String getSourceId() {
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
public void setSourceId(String sourceId) {
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
public String getSourceName() {
|
||||
return sourceName;
|
||||
}
|
||||
|
||||
public void setSourceName(String sourceName) {
|
||||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
public String getCrossOrigin() {
|
||||
return crossOrigin;
|
||||
}
|
||||
|
||||
public void setCrossOrigin(String crossOrigin) {
|
||||
this.crossOrigin = crossOrigin;
|
||||
}
|
||||
|
||||
public String getProjection() {
|
||||
return projection;
|
||||
}
|
||||
|
||||
public void setProjection(String projection) {
|
||||
this.projection = projection;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Boolean getWrapX() {
|
||||
return wrapX;
|
||||
}
|
||||
|
||||
public void setWrapX(Boolean wrapX) {
|
||||
this.wrapX = wrapX;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.gis3c.ol.entity.source;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class TileSuperMapRest {
|
||||
private String sourceId;
|
||||
private String sourceName;
|
||||
private String url;
|
||||
private Boolean wrapX;
|
||||
private Boolean opaque;
|
||||
private String description;
|
||||
|
||||
public String getSourceId() {
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
public void setSourceId(String sourceId) {
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
public String getSourceName() {
|
||||
return sourceName;
|
||||
}
|
||||
|
||||
public void setSourceName(String sourceName) {
|
||||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Boolean getWrapX() {
|
||||
return wrapX;
|
||||
}
|
||||
|
||||
public void setWrapX(Boolean wrapX) {
|
||||
this.wrapX = wrapX;
|
||||
}
|
||||
|
||||
public Boolean getOpaque() {
|
||||
return opaque;
|
||||
}
|
||||
|
||||
public void setOpaque(Boolean opaque) {
|
||||
this.opaque = opaque;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
72
src/main/java/com/gis3c/ol/entity/source/Vector.java
Normal file
72
src/main/java/com/gis3c/ol/entity/source/Vector.java
Normal file
@ -0,0 +1,72 @@
|
||||
package com.gis3c.ol.entity.source;
|
||||
|
||||
import com.sun.org.apache.xpath.internal.operations.Bool;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Vector {
|
||||
private String sourceId;
|
||||
private String sourceName;
|
||||
private Boolean logo;
|
||||
private String url;
|
||||
private Boolean useSpatialIndex;
|
||||
private Boolean wrapX;
|
||||
private String description;
|
||||
|
||||
public String getSourceId() {
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
public void setSourceId(String sourceId) {
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
public String getSourceName() {
|
||||
return sourceName;
|
||||
}
|
||||
|
||||
public void setSourceName(String sourceName) {
|
||||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
public Boolean getLogo() {
|
||||
return logo;
|
||||
}
|
||||
|
||||
public void setLogo(Boolean logo) {
|
||||
this.logo = logo;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Boolean getUseSpatialIndex() {
|
||||
return useSpatialIndex;
|
||||
}
|
||||
|
||||
public void setUseSpatialIndex(Boolean useSpatialIndex) {
|
||||
this.useSpatialIndex = useSpatialIndex;
|
||||
}
|
||||
|
||||
public Boolean getWrapX() {
|
||||
return wrapX;
|
||||
}
|
||||
|
||||
public void setWrapX(Boolean wrapX) {
|
||||
this.wrapX = wrapX;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
79
src/main/java/com/gis3c/ol/entity/source/Wmts.java
Normal file
79
src/main/java/com/gis3c/ol/entity/source/Wmts.java
Normal file
@ -0,0 +1,79 @@
|
||||
package com.gis3c.ol.entity.source;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Wmts {
|
||||
private String sourceId;
|
||||
private String sourceName;
|
||||
private String url;
|
||||
private String layer;
|
||||
private String style;
|
||||
private String format;
|
||||
private String matrixSet;
|
||||
private String description;
|
||||
|
||||
public String getSourceId() {
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
public void setSourceId(String sourceId) {
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
public String getSourceName() {
|
||||
return sourceName;
|
||||
}
|
||||
|
||||
public void setSourceName(String sourceName) {
|
||||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getLayer() {
|
||||
return layer;
|
||||
}
|
||||
|
||||
public void setLayer(String layer) {
|
||||
this.layer = layer;
|
||||
}
|
||||
|
||||
public String getStyle() {
|
||||
return style;
|
||||
}
|
||||
|
||||
public void setStyle(String style) {
|
||||
this.style = style;
|
||||
}
|
||||
|
||||
public String getFormat() {
|
||||
return format;
|
||||
}
|
||||
|
||||
public void setFormat(String format) {
|
||||
this.format = format;
|
||||
}
|
||||
|
||||
public String getMatrixSet() {
|
||||
return matrixSet;
|
||||
}
|
||||
|
||||
public void setMatrixSet(String matrixSet) {
|
||||
this.matrixSet = matrixSet;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
7
src/main/java/com/gis3c/ol/entity/style/Circle.java
Normal file
7
src/main/java/com/gis3c/ol/entity/style/Circle.java
Normal file
@ -0,0 +1,7 @@
|
||||
package com.gis3c.ol.entity.style;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Circle {
|
||||
}
|
||||
7
src/main/java/com/gis3c/ol/entity/style/Fill.java
Normal file
7
src/main/java/com/gis3c/ol/entity/style/Fill.java
Normal file
@ -0,0 +1,7 @@
|
||||
package com.gis3c.ol.entity.style;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Fill {
|
||||
}
|
||||
7
src/main/java/com/gis3c/ol/entity/style/Icon.java
Normal file
7
src/main/java/com/gis3c/ol/entity/style/Icon.java
Normal file
@ -0,0 +1,7 @@
|
||||
package com.gis3c.ol.entity.style;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Icon {
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
package com.gis3c.ol.entity.style;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class RegularShape {
|
||||
}
|
||||
7
src/main/java/com/gis3c/ol/entity/style/Stroke.java
Normal file
7
src/main/java/com/gis3c/ol/entity/style/Stroke.java
Normal file
@ -0,0 +1,7 @@
|
||||
package com.gis3c.ol.entity.style;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Stroke {
|
||||
}
|
||||
61
src/main/java/com/gis3c/ol/entity/style/Style.java
Normal file
61
src/main/java/com/gis3c/ol/entity/style/Style.java
Normal file
@ -0,0 +1,61 @@
|
||||
package com.gis3c.ol.entity.style;
|
||||
|
||||
/**
|
||||
* Created by hukekuan on 2017/12/14.
|
||||
*/
|
||||
public class Style {
|
||||
private String styleId;
|
||||
private String getStyleName;
|
||||
private String fill;
|
||||
private String image;
|
||||
private String stroke;
|
||||
private String text;
|
||||
|
||||
public String getStyleId() {
|
||||
return styleId;
|
||||
}
|
||||
|
||||
public void setStyleId(String styleId) {
|
||||
this.styleId = styleId;
|
||||
}
|
||||
|
||||
public String getGetStyleName() {
|
||||
return getStyleName;
|
||||
}
|
||||
|
||||
public void setGetStyleName(String getStyleName) {
|
||||
this.getStyleName = getStyleName;
|
||||
}
|
||||
|
||||
public String getFill() {
|
||||
return fill;
|
||||
}
|
||||
|
||||
public void setFill(String fill) {
|
||||
this.fill = fill;
|
||||
}
|
||||
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getStroke() {
|
||||
return stroke;
|
||||
}
|
||||
|
||||
public void setStroke(String stroke) {
|
||||
this.stroke = stroke;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
@ -5,13 +5,30 @@ create table c3gis_ol_map(
|
||||
view varchar(50) not null,
|
||||
controls varchar(50) ARRAY,
|
||||
pixelRatio integer,
|
||||
interactions varchar(50) ARRAY,,
|
||||
interactions varchar(50) ARRAY,
|
||||
layers varchar(50) ARRAY,
|
||||
logo boolean,
|
||||
overlays varchar(50) ARRAY,
|
||||
description varchar(50)
|
||||
);
|
||||
|
||||
--视图图层
|
||||
create table c3gis_ol_view(
|
||||
viewid varchar(50) not null PRIMARY KEY,
|
||||
viewname varchar(50) not null,
|
||||
center decimal ARRAY[2],
|
||||
extent decimal ARRAY[4],
|
||||
maxresolution decimal,
|
||||
minresolution decimal,
|
||||
maxzoom int,
|
||||
minzoom int,
|
||||
zoom int,
|
||||
projection varchar(50),
|
||||
resolution decimal,
|
||||
resolutions decimal ARRAY,
|
||||
rotation decimal,
|
||||
description varchar(50)
|
||||
);
|
||||
|
||||
--样式类型枚举值
|
||||
CREATE TYPE c3gis_ol_vectorstyletype AS ENUM('entity', 'function');
|
||||
@ -71,10 +88,12 @@ create table c3gis_ol_source_tilesupermaprest(
|
||||
);
|
||||
|
||||
--矢量数据
|
||||
create table c3gis_ol_source_tilearcgisrest(
|
||||
create table c3gis_ol_source_vector(
|
||||
sourceid varchar(50) not null PRIMARY KEY,
|
||||
sourcename varchar(50) not null,
|
||||
url varchar(50) not null,
|
||||
logo boolean,
|
||||
url varchar(50),
|
||||
useSpatialIndex boolean,
|
||||
wrapX boolean,
|
||||
description varchar(50)
|
||||
);
|
||||
|
||||
@ -1,10 +1,5 @@
|
||||
gis.driverClassName=oracle.jdbc.driver.OracleDriver
|
||||
gis.url=jdbc:oracle:thin:@172.16.6.13:1521:orcl
|
||||
gis.username=spatial
|
||||
gis.password=spatial
|
||||
|
||||
|
||||
postgis.driverClassName=org.postgresql.Driver
|
||||
postgis.url=jdbc:postgresql://localhost:5432/gisdb
|
||||
postgis.username=postgres
|
||||
postgis.password=postgres
|
||||
sys.driverClassName=org.postgresql.Driver
|
||||
sys.url=jdbc:postgresql:gisdata
|
||||
sys.username=gis
|
||||
sys.password=gis
|
||||
@ -27,4 +27,18 @@
|
||||
<property name="properties" ref="configProperties" />
|
||||
</bean>
|
||||
<context:component-scan base-package="com.gis3c.*"/>
|
||||
|
||||
<!--生成数据源-->
|
||||
<bean id="dataSource_sys" class="com.alibaba.druid.pool.DruidDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="${sys.driverClassName}"/>
|
||||
<property name="url" value="${sys.url}"/>
|
||||
<property name="username" value="${sys.username}"/>
|
||||
<property name="password" value="${sys.password}"/>
|
||||
<property name="accessToUnderlyingConnectionAllowed" value="true"/>
|
||||
</bean>
|
||||
<bean id="sqlSessionFactory_sys" class="org.mybatis.spring.SqlSessionFactoryBean">
|
||||
<property name="dataSource" ref="dataSource_sys"/>
|
||||
<property name="configLocation" value="classpath:sql-map-config-mybatis.xml"/>
|
||||
<!--<property name="mapperLocations" value="classpath:mappings/ol/*.xml"/>-->
|
||||
</bean>
|
||||
</beans>
|
||||
8
src/main/resources/sql-map-config-mybatis.xml
Normal file
8
src/main/resources/sql-map-config-mybatis.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
<settings>
|
||||
<setting name="cacheEnabled" value="true"/>
|
||||
</settings>
|
||||
</configuration>
|
||||
Loading…
Reference in New Issue
Block a user