}
if (geometry == null) {
throw ScriptRuntime.constructError("Error",
"The write function expects a single geometry argument");
}
return wktWriter.write((com.vividsolutions.jts.geom.Geometry) geometry.unwrap());
}
/**
* Create object with read/write methods.
* @param scope