Skip to content

Commit

Permalink
ScalaDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
James McClain committed Jun 7, 2016
1 parent 36f3f9f commit 7b28582
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ import scala.collection.JavaConverters._
object GeometryToSimpleFeature {
val geometryField = "geometry"

/**
* Given a Geotrellis geometry, a CRS, and a sequence of ancillary
* data, produce a GeoTools SimpleFeature.
*
* @param geom The Geotrellis geometry
* @param crs The CRS of the geometry
* @param data A sequence of (String, Any) pairs
*/
def apply(geom: Geometry, crs: Option[CRS], data: Seq[(String, Any)]): SimpleFeature = {
val sftb = (new SimpleFeatureTypeBuilder).minOccurs(1).maxOccurs(1).nillable(false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import java.awt.image.{Raster => AwtRaster, _}
import scala.collection.JavaConverters._

/**
* Houses methods that aide the translate
* between GridCoverage2D and related GeoTools types,
* and GeoTrellis types.
* Houses methods that aide the translate between GridCoverage2D and
* related GeoTools types, and GeoTrellis types.
*/
object GridCoverage2DConverters {

/**
* Given a [[GridCoverage2D]] and an index, this function
* optionally produces the unique NODATA value.
* Given a GridCoverage2D and an index, this function optionally
* produces the unique NODATA value.
*
* @param gridCoverage2D The GeoTools GridCoverage2D object
*/
Expand All @@ -40,9 +40,9 @@ object GridCoverage2DConverters {
}

/**
* Given a [[GridCoverage2D]] and an index, this function return
* the Geotrellis [[CellType]] that best approximates that of the
* given layer.
* Given a GridCoverage2D and an index, this function return the
* Geotrellis CellType that best approximates that of the given
* layer.
*
* @param gridCoverage2D The GeoTools GridCoverage2D object
* @param bandIndex The index in gridCoverage2D to expose as the sole band of this tile
Expand Down Expand Up @@ -140,8 +140,8 @@ object GridCoverage2DConverters {
}

/**
* This function extracts a Geotrellis [[Extent]] from the extent
* information stored in the given [[GridCoverage2D]].
* This function extracts a Geotrellis Extent from the extent
* information stored in the given GridCoverage2D.
*
* @param gridCoverage The GeoTools GridCoverage2D object
*/
Expand All @@ -154,8 +154,8 @@ object GridCoverage2DConverters {
}

/**
* This function extracts a Geotrellis [[CRS]] from the CRS
* information stored in the given [[GridCoverage2D]].
* This function extracts a Geotrellis CRS from the CRS information
* stored in the given GridCoverage2D.
*
* @param gridCoverage The GeoTools GridCoverage2D object
*/
Expand All @@ -176,8 +176,8 @@ object GridCoverage2DConverters {
}

/**
* A function to produce a GeoTools [[Envelope2D]] from a
* Geotrellis Extent and CRS.
* A function to produce a GeoTools Envelope2D from a Geotrellis
* Extent and CRS.
*
* @param extent The Geotrellis Extent
* @param crs The CRS of the raster
Expand All @@ -191,9 +191,9 @@ object GridCoverage2DConverters {
}

/**
* A function to produce a GeoTools [[Envelope2D]] from a
* Geotrellis Extent and CRS. If the CRS cannot be converted,
* a null GeoTools CRS is used.
* A function to produce a GeoTools Envelope2D from a Geotrellis
* Extent and CRS. If the CRS cannot be converted, a null GeoTools
* CRS is used.
*
* @param extent The Geotrellis Extent
* @param crs The CRS of the raster
Expand Down

0 comments on commit 7b28582

Please sign in to comment.