|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.layer.vpf.VMAP2Shape
public class VMAP2Shape
Convert NIMA VMAP geospatial data into ESRI shapefile format.
Field Summary | |
---|---|
protected static boolean |
DEF_DO_THINNING
|
protected static float |
DEF_FAN_EPS
|
protected static java.lang.String |
DEF_PREFIX
|
protected static java.lang.String |
DEF_PROPS_FILE_NAME
|
protected static float |
DEF_THRESHOLD
|
protected static java.lang.String |
DEF_VMAP_TYPE
|
protected static float |
DEF_ZERO_EPS
|
protected boolean |
doThinning
|
protected float |
fan_eps
|
protected boolean |
joinPolylines
|
protected LibrarySelectionTable |
lst
|
protected java.lang.String |
prefix
|
protected java.lang.String |
propsFileName
|
protected float |
threshold
|
protected java.lang.String |
vmaptype
|
protected LayerGraphicWarehouseSupport |
warehouse
|
protected float |
zero_eps
|
Constructor Summary | |
---|---|
VMAP2Shape()
|
Method Summary | |
---|---|
static double[] |
coalesce_points(double[] radians,
double eps,
boolean ispolyg)
traverse array and coalesce adjacent points which are the same |
float |
getFan_eps()
|
LibrarySelectionTable |
getLst()
|
java.lang.String |
getPrefix()
|
java.lang.String |
getPropsFileName()
|
OMGraphicList |
getRectangle()
|
float |
getThreshold()
|
java.lang.String |
getVmaptype()
|
LayerGraphicWarehouseSupport |
getWarehouse()
|
float |
getZero_eps()
|
protected void |
initLST(java.lang.String[] paths)
|
boolean |
isDoThinning()
|
protected static OMGraphicList |
joinCommonLines(OMGraphicList list,
float zero_eps)
Iterates through graphic list finding non-connected polylines. |
protected java.util.Properties |
loadProperties()
|
static void |
main(java.lang.String[] args)
|
protected boolean |
maybeThrowAwayPoly(OMPoly poly)
return true if we should throw away the poly |
void |
setDoThinning(boolean doThinning)
|
void |
setFan_eps(float fan_eps)
|
void |
setLst(LibrarySelectionTable lst)
|
void |
setPrefix(java.lang.String prefix)
|
protected void |
setProperties(java.lang.String prefix,
java.util.Properties props)
|
void |
setPropsFileName(java.lang.String propsFileName)
|
void |
setThreshold(float threshold)
|
void |
setVmaptype(java.lang.String vmaptype)
|
void |
setWarehouse(LayerGraphicWarehouseSupport warehouse)
|
void |
setZero_eps(float zero_eps)
|
static void |
usage()
|
void |
writeShapeFile(java.lang.String shapeFileName)
Will load the properties set in the VPF2Shape object, fetch the OMGraphics from the VPF database, and write the shape file. |
void |
writeShapeFile(java.lang.String shapeFileName,
OMGraphicList graphics)
Write the shape file, assumes that the properties have been loaded and the graphics fetched from the VPF database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String DEF_VMAP_TYPE
protected static final java.lang.String DEF_PROPS_FILE_NAME
protected static final java.lang.String DEF_PREFIX
protected static final boolean DEF_DO_THINNING
protected static final float DEF_FAN_EPS
protected static final float DEF_ZERO_EPS
protected static final float DEF_THRESHOLD
protected java.lang.String vmaptype
protected java.lang.String propsFileName
protected java.lang.String prefix
protected boolean doThinning
protected float fan_eps
protected float zero_eps
protected float threshold
protected LibrarySelectionTable lst
protected transient LayerGraphicWarehouseSupport warehouse
protected boolean joinPolylines
Constructor Detail |
---|
public VMAP2Shape()
Method Detail |
---|
public void writeShapeFile(java.lang.String shapeFileName)
shapeFileName
- public void writeShapeFile(java.lang.String shapeFileName, OMGraphicList graphics)
shapeFileName
- the file name to write the shapes into.graphics
- OMGraphics from VPF database to write to shape file.protected static OMGraphicList joinCommonLines(OMGraphicList list, float zero_eps)
list
- zero_eps
-
public static double[] coalesce_points(double[] radians, double eps, boolean ispolyg)
protected boolean maybeThrowAwayPoly(OMPoly poly)
protected java.util.Properties loadProperties()
protected void setProperties(java.lang.String prefix, java.util.Properties props)
protected void initLST(java.lang.String[] paths)
public OMGraphicList getRectangle()
public boolean isDoThinning()
public void setDoThinning(boolean doThinning)
public float getFan_eps()
public void setFan_eps(float fan_eps)
public LibrarySelectionTable getLst()
public void setLst(LibrarySelectionTable lst)
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
public java.lang.String getPropsFileName()
public void setPropsFileName(java.lang.String propsFileName)
public float getThreshold()
public void setThreshold(float threshold)
public java.lang.String getVmaptype()
public void setVmaptype(java.lang.String vmaptype)
public LayerGraphicWarehouseSupport getWarehouse()
public void setWarehouse(LayerGraphicWarehouseSupport warehouse)
public float getZero_eps()
public void setZero_eps(float zero_eps)
public static void usage()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |