Search in sources :

Example 16 with Extents

use of org.activityinfo.model.type.geo.Extents in project activityinfo by bedatadriven.

the class GeoUtils method toBounds.

public static Extents toBounds(Envelope envelope) {
    Extents bounds = Extents.empty();
    bounds.setX1(envelope.getMinX());
    bounds.setY1(envelope.getMinY());
    bounds.setX2(envelope.getMaxX());
    bounds.setY2(envelope.getMaxY());
    return bounds;
}
Also used : Extents(org.activityinfo.model.type.geo.Extents)

Aggregations

Extents (org.activityinfo.model.type.geo.Extents)16 TileBaseMap (org.activityinfo.legacy.shared.model.TileBaseMap)5 Test (org.junit.Test)5 AiLatLng (org.activityinfo.model.type.geo.AiLatLng)3 BaseMap (org.activityinfo.legacy.shared.model.BaseMap)2 IconMapLayer (org.activityinfo.legacy.shared.reports.model.layers.IconMapLayer)2 Envelope (com.vividsolutions.jts.geom.Envelope)1 ResultSet (java.sql.ResultSet)1 AdminEntity (org.activityinfo.geoadmin.model.AdminEntity)1 AdminLevel (org.activityinfo.geoadmin.model.AdminLevel)1 DimensionType (org.activityinfo.legacy.shared.command.DimensionType)1 Filter (org.activityinfo.legacy.shared.command.Filter)1 CreateResult (org.activityinfo.legacy.shared.command.result.CreateResult)1 AdminEntityDTO (org.activityinfo.legacy.shared.model.AdminEntityDTO)1 HasAdminEntityValues (org.activityinfo.legacy.shared.model.HasAdminEntityValues)1 IndicatorDTO (org.activityinfo.legacy.shared.model.IndicatorDTO)1 GoogleBaseMap (org.activityinfo.legacy.shared.reports.content.GoogleBaseMap)1 MapContent (org.activityinfo.legacy.shared.reports.content.MapContent)1 MapMarker (org.activityinfo.legacy.shared.reports.content.MapMarker)1 Point (org.activityinfo.legacy.shared.reports.content.Point)1