| | |
| | | srid = geomMapper.selectSrid(tab); |
| | | } |
| | | |
| | | SpatialReference sr = new SpatialReference(); |
| | | sr.ImportFromEPSG(null == srid ? StaticData.I104903 : srid); |
| | | // SpatialReference sr = new SpatialReference(); sr.ImportFromEPSG(null == srid || 0 == srid ? StaticData.I104903 : srid) |
| | | SpatialReference sr; |
| | | if (null == srid || 0 == srid) { |
| | | sr = new SpatialReference(StaticData.MOON_2000_WKT); |
| | | } else { |
| | | sr = new SpatialReference(); |
| | | sr.ImportFromEPSG(srid); |
| | | } |
| | | |
| | | return dataSource.CreateLayer(tab.replace(".", "_"), sr, getGeomType(geomType), null); |
| | | } |