| | |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 在线制图 |
| | | * @author WWW |
| | | */ |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class ExportEntity implements Serializable { |
| | | private static final long serialVersionUID = -2104359582441796685L; |
| | | |
| | |
| | | |
| | | private double xmax; |
| | | |
| | | private String wmtsUrl; |
| | | private List<Integer> layerIds; |
| | | |
| | | public ExportEntity() { |
| | | this.layerIds = new ArrayList<>(); |
| | | } |
| | | |
| | | public String getToken() { |
| | | return token; |
| | |
| | | this.xmax = xmax; |
| | | } |
| | | |
| | | public String getWmtsUrl() { |
| | | return wmtsUrl; |
| | | public List<Integer> getLayerIds() { |
| | | return layerIds; |
| | | } |
| | | |
| | | public void setWmtsUrl(String wmtsUrl) { |
| | | this.wmtsUrl = wmtsUrl; |
| | | public void setLayerIds(List<Integer> layerIds) { |
| | | this.layerIds = layerIds; |
| | | } |
| | | } |
| | |
| | | if (null == entity) { |
| | | return; |
| | | } |
| | | if (null == res) { |
| | | entity.writeTo(response.getOutputStream()); |
| | | return; |
| | | } |
| | | |
| | | switch (res.getCategory()) { |
| | | case 2: |
| | |
| | | import com.moon.server.helper.HttpHelper; |
| | | import com.moon.server.helper.RestHelper; |
| | | import com.moon.server.helper.StringHelper; |
| | | import com.moon.server.helper.WebHelper; |
| | | import com.moon.server.service.sys.LayerService; |
| | | import com.moon.server.service.sys.ResService; |
| | | import org.apache.commons.logging.Log; |
| | |
| | | httpHelper.service(req, res, null, url); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | WebHelper.writeJson2Page(res,ex.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | httpHelper.service(req, res, null, url); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | WebHelper.writeJson2Page(res,ex.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | httpHelper.service(req, res, null, url); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | WebHelper.writeJson2Page(res,ex.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | datasource: |
| | | name: prod |
| | | # JDBC 基本配置 ¤tSchema=public |
| | | #url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true |
| | | url: jdbc:postgresql://192.168.20.83:5433/moon?useAffectedRows=true |
| | | url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true |
| | | #url: jdbc:postgresql://192.168.20.83:5433/moon?useAffectedRows=true |
| | | #url: jdbc:postgresql://103.85.165.99:25432/moon?useAffectedRows=true |
| | | username: postgres |
| | | password: Postgres!_14_moon |
| | | #password: postgres |
| | | #password: Postgres!_14_moon |
| | | password: postgres |
| | | driver-class-name: org.postgresql.Driver |
| | | platform: POSTGRESQL |
| | | type: com.alibaba.druid.pool.DruidDataSource |