|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.itc.RIMapper.MakeSVG
public class MakeSVG
Converts SFS OGC geometry columns to Scalable Vector Graphics (SVG 1.1).
Uses Java Topology Suite (JTS 1.12) (http://sourceforge.net/projects/jts-topo-suite/)
©2004-2011 ITC - University of Twente, Faculty of Geo-Information
Science and Earth Observation
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5
License. see http://creativecommons.org/licenses/by-nc-sa/2.5/
Field Summary | |
---|---|
double |
bboxHeight
|
double |
bboxWidth
|
String |
errorMessage
|
static String |
RIM_NAMESPACE
|
double |
xMax
|
double |
xMaxMap
|
double |
xMin
|
double |
xMinMap
|
double |
yMax
|
double |
yMaxMap
|
double |
yMin
|
double |
yMinMap
|
Constructor Summary | |
---|---|
MakeSVG(DBconn theDBconn,
boolean getGUI)
method to instantiate a MakeSVG class. |
Method Summary | |
---|---|
boolean |
isWithGUI()
|
StringBuffer |
makeDefs(String[] fragmentNames,
String[] fragmentTypes,
String[] fragments)
Creates the svg |
StringBuffer |
makeFooter(String[] fragmentNames,
String[] fragmentTypes,
String[] fragments)
Simple SVG footer. |
StringBuffer |
makeHeader(boolean MapExtentDefault,
double BBxMin,
double BByMin,
double BBxMax,
double BByMax,
double FalseOriginX,
double FalseOriginY,
long Precision,
String SVGRootFragmentName,
String SVGRootFragment,
int Width,
int Height)
|
StringBuffer |
makeLayer(String layerName,
String PkeyStr,
int nrLayerActions,
String[] layerActionScopes,
String[] layerActions,
String layerType,
String[] Classnames,
String[] SVGstyles,
String styleAttrib,
boolean relativeMode,
double FalseOriginX,
double FalseOriginY,
long Precision,
String layerSQL)
Uses JTS WKBreader to extract OGC Simple features of Layer layername and converts to SVG. |
StringBuffer |
makeLayerAnimated_animateMotion(String layerName,
String PkeyStr,
int nrLayerActions,
String[] layerActionScopes,
String[] layerActions,
String layerType,
String[] Classnames,
String[] SVGstyles,
boolean SVGmakeTrack,
String SVGtrackStyle,
long SVGanimDuration,
String styleAttrib,
boolean relativeMode,
double FalseOriginX,
double FalseOriginY,
long Precision,
String layerSQL,
WMSTime myWMSTime)
################################################### TEST VERSION FOR ALTERNATIVE ANIMATION CONSTRUCT USING animateMotion Uses JTS WKBreader to extract OGC Simple features of Layer layername and converts to SVG. |
StringBuffer |
makeLayerAnimated(String layerName,
String PkeyStr,
int nrLayerActions,
String[] layerActionScopes,
String[] layerActions,
String layerType,
String[] Classnames,
String[] SVGstyles,
boolean SVGmakeTrack,
String SVGtrackStyle,
long SVGanimDuration,
String styleAttrib,
boolean relativeMode,
double FalseOriginX,
double FalseOriginY,
long Precision,
String layerSQL,
WMSTime myWMSTime)
################################################### Uses JTS WKBreader to extract OGC Simple features of Layer layername and converts to SVG. |
StringBuffer |
makeScripts(String[] fragmentNames,
String[] fragmentTypes,
String[] fragments)
Creates the ecmascript section, from dbase table FRAGMENTs and/or RIM XML nodes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RIM_NAMESPACE
public double bboxHeight
public double bboxWidth
public double xMin
public double yMin
public double xMax
public double yMax
public double xMinMap
public double yMinMap
public double xMaxMap
public double yMaxMap
public String errorMessage
Constructor Detail |
---|
public MakeSVG(DBconn theDBconn, boolean getGUI)
theDBconn
- Database connection class (from DBconn
) to be usedMethod Detail |
---|
public StringBuffer makeHeader(boolean MapExtentDefault, double BBxMin, double BByMin, double BBxMax, double BByMax, double FalseOriginX, double FalseOriginY, long Precision, String SVGRootFragmentName, String SVGRootFragment, int Width, int Height) throws RIMapperException
MapExtentDefault
- BBxMin
- BByMin
- BBxMax
- BByMax
- FalseOriginX
- FalseOriginY
- Precision
- SVGRootFragmentName
- SVGRootFragment
- Width
- (if 0, set to 100%)Height
- (if 0, set to 100%)
RIMapperException
public StringBuffer makeDefs(String[] fragmentNames, String[] fragmentTypes, String[] fragments) throws RIMapperException
fragmentNames
- fragmentTypes
- fragments
-
RIMapperException
public StringBuffer makeScripts(String[] fragmentNames, String[] fragmentTypes, String[] fragments) throws RIMapperException
fragmentNames
- fragmentTypes
- fragments
-
RIMapperException
public StringBuffer makeFooter(String[] fragmentNames, String[] fragmentTypes, String[] fragments) throws RIMapperException
RIMapperException
public StringBuffer makeLayer(String layerName, String PkeyStr, int nrLayerActions, String[] layerActionScopes, String[] layerActions, String layerType, String[] Classnames, String[] SVGstyles, String styleAttrib, boolean relativeMode, double FalseOriginX, double FalseOriginY, long Precision, String layerSQL) throws RIMapperException
layerName
- the name (as used in wms_layers table)PkeyStr
- nrLayerActions
- layerActionScopes
- layerActions
- layerType
- "single" or "chorochromatic" or "animated"Classnames
- Array of classes, "defStyle" if style=single or no style requestedSVGstyles
- Array of style names, 1 if style=single, "defStyle" if no style
requestedstyleAttrib
- attributes for style(s): ALL attribs are added to SVG (rim:attrib)
AND IF styletype = chorochromatic => 1st atrib = classifying
attrib IF styletype = animate => 1st attrib = object identifier,
2nd = time attribrelativeMode
- true: use L=absolute lineto's (more precise); false: l=relative
lineto's (more compact)FalseOriginX
- FalseOriginY
- Precision
- layerSQL
- The SQL for extracting layer data from the table
RIMapperException
public StringBuffer makeLayerAnimated(String layerName, String PkeyStr, int nrLayerActions, String[] layerActionScopes, String[] layerActions, String layerType, String[] Classnames, String[] SVGstyles, boolean SVGmakeTrack, String SVGtrackStyle, long SVGanimDuration, String styleAttrib, boolean relativeMode, double FalseOriginX, double FalseOriginY, long Precision, String layerSQL, WMSTime myWMSTime) throws RIMapperException
layerName
- the name (as used in wms_layers table)PkeyStr
- nrLayerActions
- layerActionScopes
- layerActions
- layerType
- "anim"Classnames
- Array of classes, "defStyle" if style=single or no style requestedSVGstyles
- Array of style names, 1 if style=single, "defStyle" if no style
requestedSVGmakeTrack
- boolean true=include tracks, false = do notSVGtrackStyle
- String with SVG style for tracksSVGanimDuration
- int with initial animation duration (in seconds)styleAttrib
- attributes for style(s): ALL attribs are added to SVG (rim:attrib)
AND IF styletype = chorochromatic => 1st atrib = classifying
attrib IF styletype = animate => 1st attrib = object identifier,
2nd = time attribrelativeMode
- true: use L=absolute lineto's (more precise); false: l=relative
lineto's (more compact)FalseOriginX
- FalseOriginY
- Precision
- layerSQL
- The SQL for extracting layer data from the tablemyWMSTime
- The WMSTime Object (period requested, etc)
RIMapperException
public boolean isWithGUI()
public StringBuffer makeLayerAnimated_animateMotion(String layerName, String PkeyStr, int nrLayerActions, String[] layerActionScopes, String[] layerActions, String layerType, String[] Classnames, String[] SVGstyles, boolean SVGmakeTrack, String SVGtrackStyle, long SVGanimDuration, String styleAttrib, boolean relativeMode, double FalseOriginX, double FalseOriginY, long Precision, String layerSQL, WMSTime myWMSTime) throws RIMapperException
layerName
- the name (as used in wms_layers table)PkeyStr
- nrLayerActions
- layerActionScopes
- layerActions
- layerType
- "anim"Classnames
- Array of classes, "defStyle" if style=single or no style requestedSVGstyles
- Array of style names, 1 if style=single, "defStyle" if no style
requestedSVGmakeTrack
- boolean true=include tracks, false = do notSVGtrackStyle
- String with SVG style for tracksSVGanimDuration
- int with initial animation duration (in seconds)styleAttrib
- attributes for style(s): ALL attribs are added to SVG (rim:attrib)
AND IF styletype = chorochromatic => 1st atrib = classifying
attrib IF styletype = animate => 1st attrib = object identifier,
2nd = time attribrelativeMode
- true: use L=absolute lineto's (more precise); false: l=relative
lineto's (more compact)FalseOriginX
- FalseOriginY
- Precision
- layerSQL
- The SQL for extracting layer data from the tablemyWMSTime
- The WMSTime Object (period requested, etc)
RIMapperException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |