statement = "'"+(String)value+"'";
}
else if(value instanceof Geometry){
if(value.getClass() == LatLngPoint.class){
LatLngPoint val = (LatLngPoint)value;
statement = "GeometryFromText('LINESTRING("+val.getLat()+" "+val.getLng()+","+val.getLat()+" "+val.getLng()+")',4030)";
//statement = "GeometryFromText('POINT("+val.getLat()+" "+val.getLng()+")')";
}
else if(value.getClass() == Polygon.class){
//TODO: insert statements for polygons
}
else if(value.getClass() == PolyLine.class){
PolyLine val = (PolyLine)value;
String ptList = "";
for(LatLngPoint pt : val.getPoints())ptList += pt.getLat()+" "+pt.getLng()+",";
ptList = ptList.substring(0, ptList.length()-1);
statement = "GeometryFromText('LINESTRING("+ptList+")',4030)";
}
else if(value.getClass() == Line.class){