@@ -168,12 +168,12 @@ class GeoScript {
168168 */
169169 static Object wrap (Object obj ) {
170170 // SimpleFeature -> Feature
171- if (obj instanceof org.opengis .feature.simple.SimpleFeature ) {
172- return new Feature (obj as org.opengis .feature.simple.SimpleFeature )
171+ if (obj instanceof org.geotools.api .feature.simple.SimpleFeature ) {
172+ return new Feature (obj as org.geotools.api .feature.simple.SimpleFeature )
173173 }
174174 // SimpleFeatureType -> Schema
175- else if (obj instanceof org.opengis .feature.simple.SimpleFeatureType ) {
176- return new Schema (obj as org.opengis .feature.simple.SimpleFeatureType )
175+ else if (obj instanceof org.geotools.api .feature.simple.SimpleFeatureType ) {
176+ return new Schema (obj as org.geotools.api .feature.simple.SimpleFeatureType )
177177 }
178178 // JTS Geometry -> Geometry
179179 else if (obj instanceof org.locationtech.jts.geom.Geometry ) {
@@ -184,40 +184,40 @@ class GeoScript {
184184 return new Bounds (obj as org.geotools.geometry.jts.ReferencedEnvelope )
185185 }
186186 // GeoTools Expression -> Expression
187- else if (obj instanceof org.opengis .filter.expression.Expression ) {
188- return new Expression (obj as org.opengis .filter.expression.Expression )
187+ else if (obj instanceof org.geotools.api .filter.expression.Expression ) {
188+ return new Expression (obj as org.geotools.api .filter.expression.Expression )
189189 }
190190 // GeoTools Filter -> Filter
191- else if (obj instanceof org.opengis .filter.Filter ) {
192- return new Filter (obj as org.opengis .filter.Filter )
191+ else if (obj instanceof org.geotools.api .filter.Filter ) {
192+ return new Filter (obj as org.geotools.api .filter.Filter )
193193 }
194194 // FeatureCollection -> Cursor
195195 else if (obj instanceof org.geotools.feature.FeatureCollection ) {
196196 return new Cursor (obj as org.geotools.feature.FeatureCollection )
197197 }
198198 // FeatureSource -> Layer
199- else if (obj instanceof org.geotools.data.FeatureSource ) {
200- return new Layer (obj as org.geotools.data.FeatureSource )
199+ else if (obj instanceof org.geotools.api. data.FeatureSource ) {
200+ return new Layer (obj as org.geotools.api. data.FeatureSource )
201201 }
202202 /* // GeoTools Process -> Process
203203 else if (obj instanceof org.geotools.process.Process) {
204204 return new Process((obj as org.geotools.process.Process)
205205 }*/
206206 // CoordinateReferenceSystem -> Projection
207- else if (obj instanceof org.opengis .referencing.crs.CoordinateReferenceSystem ) {
208- return new Projection (obj as org.opengis .referencing.crs.CoordinateReferenceSystem )
207+ else if (obj instanceof org.geotools.api .referencing.crs.CoordinateReferenceSystem ) {
208+ return new Projection (obj as org.geotools.api .referencing.crs.CoordinateReferenceSystem )
209209 }
210210 // DefaultEllipsoid -> Geodetic
211211 else if (obj instanceof org.geotools.referencing.datum.DefaultEllipsoid ) {
212212 return new Geodetic (obj as org.geotools.referencing.datum.DefaultEllipsoid )
213213 }
214214 // DataStore -> Workspace
215- else if (obj instanceof org.geotools.data.DataStore ) {
216- return new Workspace (obj as org.geotools.data.DataStore )
215+ else if (obj instanceof org.geotools.api. data.DataStore ) {
216+ return new Workspace (obj as org.geotools.api. data.DataStore )
217217 }
218218 // GridCoverage -> Raster
219- else if (obj instanceof org.opengis .coverage.grid.GridCoverage ) {
220- def grid = obj as org.opengis .coverage.grid.GridCoverage
219+ else if (obj instanceof org.geotools.api .coverage.grid.GridCoverage ) {
220+ def grid = obj as org.geotools.api .coverage.grid.GridCoverage
221221 return new Raster (grid)
222222 }
223223 // GridFormat -> Format
0 commit comments