package com.se.simu.domain.dto; import org.gdal.osr.SpatialReference; import org.gdal.osr.osr; @SuppressWarnings("ALL") public class GeDb { private String dbid; private String name; private Integer epsg; private String bbox; private SpatialReference sr; public GeDb() { } public SpatialReference getSpatialReference() { if (null == sr) { sr = new SpatialReference(); sr.ImportFromEPSG(epsg); sr.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER); } return sr; } public String getDbid() { return dbid; } public void setDbid(String dbid) { this.dbid = dbid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getEpsg() { return epsg; } public void setEpsg(Integer epsg) { this.epsg = epsg; } public String getBbox() { return bbox; } public void setBbox(String bbox) { this.bbox = bbox; } }