org.geomajas.layer.wms.LayerFeatureInfoSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geomajas-layer-wms Show documentation
Show all versions of geomajas-layer-wms Show documentation
Geomajas layer model using WMS
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contributors License Agreement. For full licensing
* details, see LICENSE.txt in the project root.
*/
package org.geomajas.layer.wms;
import com.vividsolutions.jts.geom.Coordinate;
import org.geomajas.annotation.FutureApi;
import org.geomajas.annotation.UserImplemented;
import org.geomajas.layer.LayerException;
import org.geomajas.layer.feature.Feature;
import java.util.List;
/**
* Extension for any type of layer that supports retrieving feature info.
*
* @author Oliver May
* @since 1.8.0
*/
@FutureApi(allMethods = true)
@UserImplemented
public interface LayerFeatureInfoSupport {
/**
* Return the list of features that lay within a given coordinate and buffer for the given view scale.
*
* @param coordinate coordinate used to search for features in the layer coordinate space
* @param layerScale the scale of the layer
* @param pixelTolerance pixel tolerance for searching
* @return features a list of features
* @throws LayerException oops
*/
List getFeaturesByLocation(Coordinate coordinate, double layerScale, int pixelTolerance)
throws LayerException;
/**
* Return whether the layer should support feature info support.
*
* @return the enableFeatureInfoSupport true if feature info support is enabled
*/
boolean isEnableFeatureInfoSupport();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy