????
Current Path : C:/ProgramData/GeoServer/workspaces/gdt/ptd/GeoViewDv/ |
Current File : C:/ProgramData/GeoServer/workspaces/gdt/ptd/GeoViewDv/featuretype.xml |
<featureType> <id>FeatureTypeInfoImpl-70f8bf6e:18682704e56:-7e1a</id> <name>GeoViewDv</name> <nativeName>GeoViewDv</nativeName> <namespace> <id>NamespaceInfoImpl-5ff23a21:18672e34c10:-7fff</id> </namespace> <title>GeoViewDv</title> <keywords> <string>features</string> <string>GeoViewDv</string> </keywords> <nativeCRS>GEOGCS["WGS 84", 
 DATUM["World Geodetic System 1984", 
 SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], 
 AUTHORITY["EPSG","6326"]], 
 PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], 
 UNIT["degree", 0.017453292519943295], 
 AXIS["Geodetic longitude", EAST], 
 AXIS["Geodetic latitude", NORTH], 
 AUTHORITY["EPSG","4326"]]</nativeCRS> <srs>EPSG:4326</srs> <nativeBoundingBox> <minx>108.7862578242748</minx> <maxx>109.2896421857928</maxx> <miny>13.616699727666</miny> <maxy>14.588070291761401</maxy> <crs>EPSG:4326</crs> </nativeBoundingBox> <latLonBoundingBox> <minx>108.7862578242748</minx> <maxx>109.2896421857928</maxx> <miny>13.616699727666</miny> <maxy>14.588070291761401</maxy> <crs>EPSG:4326</crs> </latLonBoundingBox> <projectionPolicy>FORCE_DECLARED</projectionPolicy> <enabled>true</enabled> <metadata> <entry key="JDBC_VIRTUAL_TABLE"> <virtualTable> <name>GeoViewDv</name> <sql>SELECT ldv.fid, sdv.TenDonVi, 
 sdv.Id as DonViId, dvtt.Email, dvtt.Fax,
 dvtt.DienThoai, dvtt.Website, 
 dvtt.DiaChi +', '+ px.TenPhuongXa+', '+qh.TenQuanHuyen as DiaChi, 
 ldv.SHAPE,
 (SELECT count(*) from DM_PhuongTienDo ptd where ptd.DonViId = sdv.Id and ptd.HieuLuc is not null and DATEDIFF(day, GETDATE(), ptd.HieuLuc) < 0) HetHan,
 (SELECT count(*) from DM_PhuongTienDo ptd where ptd.DonViId = sdv.Id and ptd.HieuLuc is not null and DATEDIFF(day, GETDATE(), ptd.HieuLuc) >= 0 and DATEDIFF(day, GETDATE(), ptd.HieuLuc) <= 30) SapHetHan
 FROM Layer_DonVi ldv 
 join SYS_DonVi sdv on ldv.LoaiDonVi_Id = sdv.Id
 join DonViThongTin dvtt on dvtt.Id = sdv.DonViThongTin_Id 
 JOIN PhuongXa px on dvtt.MaPhuongXa = px.Id 
 JOIN QuanHuyen qh on dvtt.MaQuanHuyen = qh.Id </sql> <escapeSql>false</escapeSql> <geometry> <name>SHAPE</name> <type>Point</type> <srid>4326</srid> </geometry> </virtualTable> </entry> </metadata> <store class="dataStore"> <id>DataStoreInfoImpl-caf9a26:18672eec35f:-8000</id> </store> <serviceConfiguration>false</serviceConfiguration> <simpleConversionEnabled>false</simpleConversionEnabled> <internationalTitle/> <internationalAbstract/> <maxFeatures>0</maxFeatures> <numDecimals>0</numDecimals> <padWithZeros>false</padWithZeros> <forcedDecimal>false</forcedDecimal> <overridingServiceSRS>false</overridingServiceSRS> <skipNumberMatched>false</skipNumberMatched> <circularArcPresent>false</circularArcPresent> </featureType>