// read(String vfString, WKTReadOptions options)
// readToMap(String vfString, WKTReadOptions options)
public VectorFeature[] read(String vectorFormatString)
{
JSObject out = FormatImpl.read(getJSObject(), vectorFormatString);
JObjectArray jObjectArray = JObjectArray.narrowToJObjectArray(out.ensureOpaqueArray());
int nr = jObjectArray.length();
VectorFeature[] vfs = new VectorFeature[nr];
for (int i = 0; i < nr; i++)
{
// get objects and narrow them to vector features
vfs[i] = VectorFeature.narrowToVectorFeature(jObjectArray.get(i));
}
return vfs;
}