if (checkAttr(fm.getName())) {
fml.add(fm);
}
}
for (int i = 0; i < fml.size(); i++) {
FieldMeta f = fml.get(i);
printArg(f.getName(), f.getAlias(), i < fml.size() - 1);
}
levelDown();
println("},");
printArg("geometryType", "esriGeometryPolygon", true);
println("\"spatialReference\": { \"wkid\": " +getOutputSpatialReference()+ " },");
println("\"fields\": [");
levelUp();
for (int i = 0; i < fml.size(); i++) {
FieldMeta f = fml.get(i);
printField(f, i < fml.size() - 1);
}
levelDown();
println("],");