org.onebusaway.geospatial.grid
Class GridFactory
java.lang.Object
org.onebusaway.geospatial.grid.GridFactory
public class GridFactory
- extends Object
Constructor Summary |
GridFactory(double gridLatStep,
double gridLonStep)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_grid
protected Grid<Object> _grid
GridFactory
public GridFactory(double gridLatStep,
double gridLonStep)
getBoundary
public List<EncodedPolygonBean> getBoundary()
addBounds
public void addBounds(CoordinateBounds bounds)
getGrid
public List<CoordinateBounds> getGrid()
getIndexAsBounds
protected CoordinateBounds getIndexAsBounds(GridIndex index)
getIndexAndDirectionAsPoint
protected void getIndexAndDirectionAsPoint(GridIndex index,
EDirection direction,
GridFactory.DoublePoint point)
addCell
protected void addCell(GridIndex index,
Object value)
getBoundariesAsBeans
protected List<EncodedPolygonBean> getBoundariesAsBeans(List<Boundary> boundaries)
getBoundaryAsPolygonBean
protected EncodedPolygonBean getBoundaryAsPolygonBean(Boundary boundary)
getPathAsEncodedPath
protected EncodedPolylineBean getPathAsEncodedPath(BoundaryPath path)
Copyright © 2012 OneBusAway. All Rights Reserved.