use of org.activityinfo.shared.dto.SitePointDTO in project activityinfo by bedatadriven.
the class GetSitePointsHandler method toPointList.
protected SitePointList toPointList(List<SiteDTO> sites) {
Extents bounds = Extents.empty();
List<SitePointDTO> points = new ArrayList<SitePointDTO>(sites.size());
for (SiteDTO site : sites) {
if (site.hasLatLong()) {
points.add(new SitePointDTO(site.getId(), site.getLongitude(), site.getLatitude()));
bounds.grow(site.getLatitude(), site.getLongitude());
}
}
return new SitePointList(bounds, points);
}
Aggregations