File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
import com .backendless .persistence .GeoJSONParser ;
4
4
import com .backendless .persistence .Geometry ;
5
5
import com .backendless .persistence .GeometryDTO ;
6
+ import com .backendless .persistence .WKTParser ;
6
7
import weborb .reader .AnonymousObject ;
7
8
import weborb .reader .NamedObject ;
8
9
import weborb .reader .NullType ;
9
10
import weborb .reader .ReferenceCache ;
11
+ import weborb .reader .StringType ;
10
12
import weborb .types .IAdaptingType ;
11
13
import weborb .util .IArgumentObjectFactory ;
12
14
@@ -53,6 +55,11 @@ else if( adaptingType instanceof AnonymousObject )
53
55
refCache .addObject ( adaptingType , GeometryDTO .class , geometry );
54
56
return geometry ;
55
57
}
58
+ else if ( adaptingType instanceof StringType )
59
+ {
60
+ String wkt = ((StringType ) adaptingType ).getValue ();
61
+ return new WKTParser ().read ( wkt );
62
+ }
56
63
else
57
64
{
58
65
throw new RuntimeException ( "Can not create BackendlessGeometry from type " + adaptingType .getClass ().getName () );
You can’t perform that action at this time.
0 commit comments