初始化
This commit is contained in:
parent
f84e6e039c
commit
470274def3
@ -1,7 +1,11 @@
|
|||||||
package com.gis3c;
|
package com.gis3c;
|
||||||
|
|
||||||
import com.gis3c.ol.entity.View;
|
import com.gis3c.ol.entity.View;
|
||||||
|
import com.gis3c.ol.entity.layer.TileLayer;
|
||||||
|
import com.gis3c.ol.entity.source.Wmts;
|
||||||
|
import com.gis3c.ol.service.LayerService;
|
||||||
import com.gis3c.ol.service.MapService;
|
import com.gis3c.ol.service.MapService;
|
||||||
|
import com.gis3c.ol.service.SourceService;
|
||||||
import com.gis3c.ol.service.ViewService;
|
import com.gis3c.ol.service.ViewService;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||||
@ -19,11 +23,43 @@ public class App {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
ApplicationContext context = ApplicationInit();
|
ApplicationContext context = ApplicationInit();
|
||||||
ViewService viewService = context.getBean(ViewService.class);
|
ViewService viewService = context.getBean(ViewService.class);
|
||||||
|
SourceService sourceService = context.getBean(SourceService.class);
|
||||||
|
LayerService layerService = context.getBean(LayerService.class);
|
||||||
|
MapService mapService = context.getBean(MapService.class);
|
||||||
|
|
||||||
View view = viewService.findeViewById("a20d41b4-208d-47da-8c02-e7023fc4e9f4");
|
|
||||||
System.out.println("["+ ((Double[])view.getCenter())[0] + ", " + ((Double[])view.getCenter())[1] + "]");
|
|
||||||
|
|
||||||
|
|
||||||
|
//图层接口
|
||||||
|
// TileLayer wmtsLayer = new TileLayer();
|
||||||
|
// wmtsLayer.setLayerId(UUID.randomUUID().toString());
|
||||||
|
// wmtsLayer.setLayerName("全国行政区图层");
|
||||||
|
// wmtsLayer.setSource(new String[]{"Wmts","b2729474-5988-410c-b6a0-8834b19d5832"});
|
||||||
|
// layerService.insertTileLayer(wmtsLayer);
|
||||||
|
// System.out.println("插入成功");
|
||||||
|
|
||||||
|
|
||||||
|
//资源接口
|
||||||
|
// Wmts wmts = new Wmts();
|
||||||
|
// wmts.setSourceId(UUID.randomUUID().toString());
|
||||||
|
// wmts.setSourceName("山东省行政区图");
|
||||||
|
// wmts.setUrl("http://www.sdmap.gov.cn/tileservice/SDPubMap");
|
||||||
|
// wmts.setLayer("0");
|
||||||
|
// wmts.setFormat("image/png");
|
||||||
|
// wmts.setMatrixSet("tianditu2013");
|
||||||
|
// wmts.setStyle("default");
|
||||||
|
//
|
||||||
|
// sourceService.insertWmts(wmts);
|
||||||
|
// System.out.println("插入成功");
|
||||||
|
|
||||||
|
// Wmts wmts = sourceService.findWmtsById("b2729474-5988-410c-b6a0-8834b19d5832");
|
||||||
|
// System.out.println(wmts.getUrl());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 视图接口
|
||||||
|
// View view = viewService.findeViewById("ee2f96a0-097a-4f0a-9767-f52b8dae28e0");
|
||||||
|
// System.out.println("["+ ((Double[])view.getCenter())[0] + ", " + ((Double[])view.getCenter())[1] + "]");
|
||||||
|
|
||||||
// View view = new View();
|
// View view = new View();
|
||||||
// String id = UUID.randomUUID().toString();
|
// String id = UUID.randomUUID().toString();
|
||||||
//
|
//
|
||||||
|
|||||||
@ -9,9 +9,9 @@ public abstract class BaseLayer {
|
|||||||
private Double opacity;
|
private Double opacity;
|
||||||
private Boolean visible = Boolean.TRUE;
|
private Boolean visible = Boolean.TRUE;
|
||||||
private Double[] extent;
|
private Double[] extent;
|
||||||
private Integer zIndex;
|
|
||||||
private Double maxResolution;
|
private Double maxResolution;
|
||||||
private Double minResolution;
|
private Double minResolution;
|
||||||
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
public String getLayerId() {
|
public String getLayerId() {
|
||||||
@ -54,14 +54,6 @@ public abstract class BaseLayer {
|
|||||||
this.extent = extent;
|
this.extent = extent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getzIndex() {
|
|
||||||
return zIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setzIndex(Integer zIndex) {
|
|
||||||
this.zIndex = zIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getMaxResolution() {
|
public Double getMaxResolution() {
|
||||||
return maxResolution;
|
return maxResolution;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,13 +4,13 @@ package com.gis3c.ol.entity.layer;
|
|||||||
* Created by hukekuan on 2017/12/14.
|
* Created by hukekuan on 2017/12/14.
|
||||||
*/
|
*/
|
||||||
public class TileLayer extends BaseLayer {
|
public class TileLayer extends BaseLayer {
|
||||||
private String source;
|
private String[] source;
|
||||||
|
|
||||||
public String getSource() {
|
public String[] getSource() {
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSource(String source) {
|
public void setSource(String[] source) {
|
||||||
this.source = source;
|
this.source = source;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,17 +5,10 @@ package com.gis3c.ol.entity.layer;
|
|||||||
*/
|
*/
|
||||||
public class VectorLayer extends BaseLayer {
|
public class VectorLayer extends BaseLayer {
|
||||||
private String source;
|
private String source;
|
||||||
|
private Integer zIndex;
|
||||||
private String styleType;
|
private String styleType;
|
||||||
private String styleValue;
|
private String styleValue;
|
||||||
|
|
||||||
public String getSource() {
|
|
||||||
return source;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSource(String source) {
|
|
||||||
this.source = source;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStyleType() {
|
public String getStyleType() {
|
||||||
return styleType;
|
return styleType;
|
||||||
}
|
}
|
||||||
@ -31,4 +24,20 @@ public class VectorLayer extends BaseLayer {
|
|||||||
public void setStyleValue(String styleValue) {
|
public void setStyleValue(String styleValue) {
|
||||||
this.styleValue = styleValue;
|
this.styleValue = styleValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getzIndex() {
|
||||||
|
return zIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setzIndex(Integer zIndex) {
|
||||||
|
this.zIndex = zIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource() {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource(String source) {
|
||||||
|
this.source = source;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -62,7 +62,7 @@ create table c3gis_ol_layer_tile(
|
|||||||
extent decimal ARRAY[4],
|
extent decimal ARRAY[4],
|
||||||
minResolution decimal,
|
minResolution decimal,
|
||||||
maxResolution decimal,
|
maxResolution decimal,
|
||||||
source varchar(50) not null,
|
source varchar(50) ARRAY[2] not null,
|
||||||
description varchar(50)
|
description varchar(50)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
137
src/main/resources/mappings/ol/LayerDao.xml
Normal file
137
src/main/resources/mappings/ol/LayerDao.xml
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.gis3c.ol.dao.LayerDao">
|
||||||
|
<resultMap id="tileLayerResult" type="com.gis3c.ol.entity.layer.TileLayer">
|
||||||
|
<result property="layerId" column="layerid" />
|
||||||
|
<result property="layerName" column="layername" />
|
||||||
|
<result property="opacity" column="opacity" />
|
||||||
|
<result property="visible" column="visible" />
|
||||||
|
<result property="extent" column="extent" javaType="ObjectArray"/>
|
||||||
|
<result property="maxResolution" column="minResolution" />
|
||||||
|
<result property="minResolution" column="maxResolution" />
|
||||||
|
<result property="source" column="source" javaType="ObjectArray"/>
|
||||||
|
<result property="description" column="description" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap id="vectorLayerResult" type="com.gis3c.ol.entity.layer.VectorLayer">
|
||||||
|
<result property="layerId" column="layerid" />
|
||||||
|
<result property="layerName" column="layername" />
|
||||||
|
<result property="opacity" column="opacity" />
|
||||||
|
<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="source" column="source" />
|
||||||
|
<result property="styleType" column="styletype" />
|
||||||
|
<result property="styleValue" column="stylevalue" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="tileLayerColumns">
|
||||||
|
layerid
|
||||||
|
, layername
|
||||||
|
, opacity
|
||||||
|
, visible
|
||||||
|
, extent
|
||||||
|
, minResolution
|
||||||
|
, maxResolution
|
||||||
|
, source
|
||||||
|
, description
|
||||||
|
</sql>
|
||||||
|
<sql id="vectorLayerColumns">
|
||||||
|
layerid
|
||||||
|
, layername
|
||||||
|
, opacity
|
||||||
|
, visible
|
||||||
|
, extent
|
||||||
|
, zIndex
|
||||||
|
, minResolution
|
||||||
|
, maxResolution
|
||||||
|
, source
|
||||||
|
, styletype
|
||||||
|
, stylevalue
|
||||||
|
, description
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="findeTileLayerById" resultMap="tileLayerResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="tileLayerColumns"/>
|
||||||
|
FROM c3gis_ol_layer_tile
|
||||||
|
WHERE layerid = #{layerId, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findeTileLayerByName" resultMap="tileLayerResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="tileLayerColumns"/>
|
||||||
|
FROM c3gis_ol_layer_tile
|
||||||
|
WHERE layername = #{layerName, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTileLayer" parameterType="com.gis3c.ol.entity.layer.TileLayer">
|
||||||
|
INSERT INTO c3gis_ol_layer_tile(
|
||||||
|
layerid
|
||||||
|
, layername
|
||||||
|
, opacity
|
||||||
|
, visible
|
||||||
|
, extent
|
||||||
|
, minResolution
|
||||||
|
, maxResolution
|
||||||
|
, source
|
||||||
|
, description
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#{layerId}
|
||||||
|
, #{layerName}
|
||||||
|
, #{opacity}
|
||||||
|
, #{visible}
|
||||||
|
, #{extent, javaType=ObjectArray}
|
||||||
|
, #{maxResolution}
|
||||||
|
, #{minResolution}
|
||||||
|
, #{source, javaType=ObjectArray}
|
||||||
|
, #{description});
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<select id="findeVectorLayerById" resultMap="vectorLayerResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="vectorLayerColumns"/>
|
||||||
|
FROM c3gis_ol_layer_vector
|
||||||
|
WHERE layerid = #{layerId, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findeVectorLayerByName" resultMap="vectorLayerResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="tileLayerColumns"/>
|
||||||
|
FROM c3gis_ol_layer_vector
|
||||||
|
WHERE layername = #{layerName, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertVectorLayer" parameterType="com.gis3c.ol.entity.layer.VectorLayer">
|
||||||
|
INSERT INTO c3gis_ol_layer_tile(
|
||||||
|
layerid
|
||||||
|
, layername
|
||||||
|
, opacity
|
||||||
|
, visible
|
||||||
|
, extent
|
||||||
|
, zIndex
|
||||||
|
, minResolution
|
||||||
|
, maxResolution
|
||||||
|
, source
|
||||||
|
, styletype
|
||||||
|
, stylevalue
|
||||||
|
, description
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#{layerId}
|
||||||
|
, #{layerName}
|
||||||
|
, #{opacity}
|
||||||
|
, #{visible}
|
||||||
|
, #{extent, javaType=ObjectArray}
|
||||||
|
, #{zIndex}
|
||||||
|
, #{maxResolution}
|
||||||
|
, #{minResolution}
|
||||||
|
, #{source}
|
||||||
|
, #{styleType}
|
||||||
|
, #{styleValue}
|
||||||
|
, #{description});
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
@ -5,12 +5,12 @@
|
|||||||
<id property="mapId" column="mapid" />
|
<id property="mapId" column="mapid" />
|
||||||
<result property="mapName" column="mapname" />
|
<result property="mapName" column="mapname" />
|
||||||
<result property="view" column="view" />
|
<result property="view" column="view" />
|
||||||
<result property="controls" column="controls" javaType="Object"/>
|
<result property="controls" column="controls" javaType="ObjectArray"/>
|
||||||
<result property="pixelRatio" column="pixelRatio" />
|
<result property="pixelRatio" column="pixelRatio" />
|
||||||
<result property="interactions" column="interactions" javaType="Object"/>
|
<result property="interactions" column="interactions" javaType="ObjectArray"/>
|
||||||
<result property="layers" column="layers" javaType="Object"/>
|
<result property="layers" column="layers" javaType="ObjectArray"/>
|
||||||
<result property="logo" column="logo" />
|
<result property="logo" column="logo" />
|
||||||
<result property="overlays" column="overlays" javaType="Object"/>
|
<result property="overlays" column="overlays" javaType="ObjectArray"/>
|
||||||
<result property="description" column="description" />
|
<result property="description" column="description" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|||||||
220
src/main/resources/mappings/ol/SourceDao.xml
Normal file
220
src/main/resources/mappings/ol/SourceDao.xml
Normal file
@ -0,0 +1,220 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.gis3c.ol.dao.SourceDao">
|
||||||
|
<resultMap id="wmtsResult" type="com.gis3c.ol.entity.source.Wmts">
|
||||||
|
<result property="sourceId" column="sourceid" />
|
||||||
|
<result property="sourceName" column="sourcename" />
|
||||||
|
<result property="url" column="url" />
|
||||||
|
<result property="layer" column="layer" />
|
||||||
|
<result property="style" column="style" />
|
||||||
|
<result property="format" column="format" />
|
||||||
|
<result property="matrixSet" column="matrixSet" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap id="vectorResult" type="com.gis3c.ol.entity.source.Vector">
|
||||||
|
<result property="sourceId" column="sourceid" />
|
||||||
|
<result property="sourceName" column="sourcename" />
|
||||||
|
<result property="url" column="url" />
|
||||||
|
<result property="logo" column="logo" />
|
||||||
|
<result property="useSpatialIndex" column="useSpatialIndex" />
|
||||||
|
<result property="wrapX" column="wrapX" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap id="arcgisResult" type="com.gis3c.ol.entity.source.TileArcGISRest">
|
||||||
|
<result property="sourceId" column="sourceid" />
|
||||||
|
<result property="sourceName" column="sourcename" />
|
||||||
|
<result property="url" column="url" />
|
||||||
|
<result property="crossOrigin" column="crossOrigin" />
|
||||||
|
<result property="projection" column="projection" />
|
||||||
|
<result property="wrapX" column="wrapX" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap id="supermapResult" type="com.gis3c.ol.entity.source.TileSuperMapRest">
|
||||||
|
<result property="sourceId" column="sourceid" />
|
||||||
|
<result property="sourceName" column="sourcename" />
|
||||||
|
<result property="url" column="url" />
|
||||||
|
<result property="wrapX" column="wrapX" />
|
||||||
|
<result property="opaque" column="opaque" />
|
||||||
|
<result property="description" column="description" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="wmtsColumns">
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, layer
|
||||||
|
, style
|
||||||
|
, format
|
||||||
|
, matrixSet
|
||||||
|
, description
|
||||||
|
</sql>
|
||||||
|
<sql id="vectorColumns">
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, logo
|
||||||
|
, useSpatialIndex
|
||||||
|
, wrapX
|
||||||
|
, description
|
||||||
|
</sql>
|
||||||
|
<sql id="arcgisColumns">
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, crossOrigin
|
||||||
|
, projection
|
||||||
|
, wrapX
|
||||||
|
, description
|
||||||
|
</sql>
|
||||||
|
<sql id="supermapColumns">
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, wrapX
|
||||||
|
, opaque
|
||||||
|
, description
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findTileArcGISRestById" resultMap="arcgisResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="arcgisColumns"/>
|
||||||
|
FROM c3gis_ol_source_tilearcgisrest
|
||||||
|
WHERE sourceid = #{sourceId, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findTileArcGISRestByName" resultMap="arcgisResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="arcgisColumns"/>
|
||||||
|
FROM c3gis_ol_source_tilearcgisrest
|
||||||
|
WHERE sourcename = #{sourceName, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTileArcGISRest" parameterType="com.gis3c.ol.entity.source.TileArcGISRest">
|
||||||
|
INSERT INTO c3gis_ol_source_tilearcgisrest(
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, crossOrigin
|
||||||
|
, projection
|
||||||
|
, wrapX
|
||||||
|
, description
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#{sourceId}
|
||||||
|
, #{sourceName}
|
||||||
|
, #{url}
|
||||||
|
, #{crossOrigin}
|
||||||
|
, #{projection}
|
||||||
|
, #{wrapX}
|
||||||
|
, #{description});
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findTileTileSuperMapRestById" resultMap="supermapResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="supermapColumns"/>
|
||||||
|
FROM c3gis_ol_source_tilesupermaprest
|
||||||
|
WHERE sourceid = #{sourceId, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findTileTileSuperMapRestByName" resultMap="supermapResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="supermapColumns"/>
|
||||||
|
FROM c3gis_ol_source_tilesupermaprest
|
||||||
|
WHERE sourcename = #{sourceName, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTileSuperMapRest" parameterType="com.gis3c.ol.entity.source.TileSuperMapRest">
|
||||||
|
INSERT INTO c3gis_ol_source_tilesupermaprest(
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, wrapX
|
||||||
|
, opaque
|
||||||
|
, description
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#{sourceId}
|
||||||
|
, #{sourceName}
|
||||||
|
, #{url}
|
||||||
|
, #{wrapX}
|
||||||
|
, #{opaque}
|
||||||
|
, #{description});
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findVectorById" resultMap="vectorResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="vectorColumns"/>
|
||||||
|
FROM c3gis_ol_source_vector
|
||||||
|
WHERE sourceid = #{sourceId, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findVectorByName" resultMap="vectorResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="vectorColumns"/>
|
||||||
|
FROM c3gis_ol_source_vector
|
||||||
|
WHERE sourcename = #{sourceName, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertVector" parameterType="com.gis3c.ol.entity.source.Vector">
|
||||||
|
INSERT INTO c3gis_ol_source_vector(
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, logo
|
||||||
|
, useSpatialIndex
|
||||||
|
, wrapX
|
||||||
|
, description
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#{sourceId}
|
||||||
|
, #{sourceName}
|
||||||
|
, #{url}
|
||||||
|
, #{logo}
|
||||||
|
, #{useSpatialIndex}
|
||||||
|
, #{wrapX}
|
||||||
|
, #{description});
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findWmtsById" resultMap="wmtsResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="wmtsColumns"/>
|
||||||
|
FROM c3gis_ol_source_wmts
|
||||||
|
WHERE sourceid = #{sourceId, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findWmtsByName" resultMap="wmtsResult">
|
||||||
|
SELECT
|
||||||
|
<include refid="wmtsColumns"/>
|
||||||
|
FROM c3gis_ol_source_wmts
|
||||||
|
WHERE sourcename = #{sourceName, javaType=java.lang.String};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertWmts" parameterType="com.gis3c.ol.entity.source.Wmts">
|
||||||
|
INSERT INTO c3gis_ol_source_wmts(
|
||||||
|
sourceid
|
||||||
|
, sourcename
|
||||||
|
, url
|
||||||
|
, layer
|
||||||
|
, style
|
||||||
|
, format
|
||||||
|
, matrixSet
|
||||||
|
, description
|
||||||
|
)
|
||||||
|
VALUES(
|
||||||
|
#{sourceId}
|
||||||
|
, #{sourceName}
|
||||||
|
, #{url}
|
||||||
|
, #{layer}
|
||||||
|
, #{style}
|
||||||
|
, #{format}
|
||||||
|
, #{matrixSet}
|
||||||
|
, #{description}
|
||||||
|
);
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user