|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.askgeo.dbl.base.GeneralMap<ResultType> com.askgeo.dbl.base.UsCensusMap<UsBlockGroupResult> com.askgeo.dbl.us.census2010.low.UsBlockGroupMap
public final class UsBlockGroupMap
The UsBlockGroupMap is a map of the United States based on data from the US Census Bureau that returns a US census block group record and related 2010 US Census and 2006-2010 American Community Survey metadata.
Nested Class Summary | |
---|---|
static class |
UsBlockGroupMap.DataField
|
Method Summary | |
---|---|
static UsBlockGroupMap |
create(java.io.InputStream dataFileStream)
Static factory method used to construct an instance of this class. |
static UsBlockGroupMap |
create(java.io.InputStream dataFileStream,
double cellsPerDeg,
double snapRadiusKm)
Static factor method used to construct an instance of this class. |
UsBlockGroupResult |
findResult(double latDeg,
double lonDeg)
Returns a results map query result. |
java.lang.String |
getOracleName()
A unique identifier for this map, used in the license file and in the AskGeo Web API. |
static java.lang.String |
getOracleNameStatic()
A unique identifier for this map, used in the license file and in the AskGeo Web API. |
Methods inherited from class com.askgeo.dbl.base.GeneralMap |
---|
authorize, authorize, authorize, conusBbox, getAllResults, getBbox, getDataField, getNumDataFields, worldBbox |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public UsBlockGroupResult findResult(double latDeg, double lonDeg)
GeneralMap
ResultBase
but the specific subclass returned
depends on what map class is being used. Each map class has a companion result class. If no shape is found
at or near the query point, null
is returned.
findResult
in class GeneralMap<UsBlockGroupResult>
latDeg
- the latitude of the query point, expressed in degrees.lonDeg
- the longitude of the query point, expressed in degrees.
null
if none is found.public static UsBlockGroupMap create(java.io.InputStream dataFileStream) throws java.lang.Exception
dataFileStream
- an input stream of the companion data file for this class.
java.lang.Exception
- e if the wrong data file is provided.public static UsBlockGroupMap create(java.io.InputStream dataFileStream, double cellsPerDeg, double snapRadiusKm) throws java.lang.Exception
dataFileStream
- an input stream of the companion data file for this class.cellsPerDeg
- is the resolution of the spatial index. Testing has show that a suitable value for this
parameter is 1.0, which is the default value.snapRadiusKm
- is the maximum snap-to distance for query points not inside any shape on the map.
java.lang.Exception
- e if the wrong data file is provided.public static java.lang.String getOracleNameStatic()
public java.lang.String getOracleName()
GeneralMap
getOracleName
in class GeneralMap<UsBlockGroupResult>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |