Layer.java [src/m/utils] Revision: default Date:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package m.utils;
import m.utils.Feature;
import m.utils.Database;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
/**
*
* @author ktraff
*/
public class Layer extends Table {
protected final Logger LOG = Logger.getLogger(getClass().getSimpleName());
ArrayList<Feature> features;
private String srid;
public Layer(String schema, String table, Database db) {
super(schema, table, db);
features = new ArrayList<>();
}
public String getSchemaTable() {
return this.schema + ".\"" + this.table + "\"";
}
public void addFeature(Feature feat) {
features.add(feat);
}
public String toString() {
return getSchemaTable();
}
}