/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2014, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.data.geojson.binding; import org.geotoolkit.data.geojson.utils.GeoJSONTypes; import java.util.HashMap; import java.util.Map; /** * @author Quentin Boileau (Geomatys) */ public class GeoJSONFeature extends GeoJSONObject { private GeoJSONGeometry geometry = null; private String id = null; private Map<String, Object> properties = new HashMap<>(); public GeoJSONFeature() { setType(GeoJSONTypes.FEATURE); } public GeoJSONGeometry getGeometry() { return geometry; } public void setGeometry(GeoJSONGeometry geometry) { this.geometry = geometry; } public String getId() { return id; } public void setId(String id) { this.id = id; } public Map<String, Object> getProperties() { return properties; } public void setProperties(Map<String, Object> properties) { this.properties = properties; } }