SeLayer layer = new SeLayer(conn); layer.setSpatialColumnName(colName); layer.setTableName(tableName); layer.setShapeTypes(shapeType); layer.setGridSizes(1100.0, 0.0, 0.0);; layer.setDescription(description); // layer.setStorageTypes(SeLayer.SE_STORAGE_SQL_TYPE); SeExtent ext = new SeExtent(-180, -90, 180, 90); layer.setExtent(ext); layer.setCreationKeyword("DEFAULTS"); /* * Define the layer's Coordinate Reference */ SeCoordinateReference coordref = new SeCoordinateReference(); long wgs84 = new Long(4326); coordref.setCoordSysByID(new SeObjectId(wgs84)); coordref.setXY(-210,-120,1000000); layer.setCoordRef(coordref); layer.create(3, 4);
SQL> select sde.st_astext(shape) from envtest2; SDE.ST_ASTEXT(SHAPE) -------------------------------------------------------------------------------- POINT ( 4.97444600 12.51409000) POINT ( 14.33015500 -12.69905900) POINT ( -5.24724800 -7.37888000) POINT ( 0.17672500 17.48991500) POINT ( 11.33672200 -4.02122600) POINT ( 18.29875200 19.66650600) POINT ( -13.42461700 8.07447900) POINT ( 5.70494200 -16.03418000) POINT ( 0.77471700 -18.01138300) POINT ( -19.03184400 12.74311800) POINT ( -15.18393200 9.95293200) ... 50 rows selected.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.