Revision 20221 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/writer/v21/geometries/InnerBoundaryIsWriter.java
InnerBoundaryIsWriter.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import org.gvsig.gpe.kml.utils.KmlTags; |
6 | 6 |
import org.gvsig.gpe.kml.writer.GPEKmlWriterHandlerImplementor; |
7 |
import org.gvsig.gpe.parser.ICoordinateIterator; |
|
7 | 8 |
import org.gvsig.gpe.xml.writer.IWriter; |
8 | 9 |
|
9 | 10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
... | ... | |
85 | 86 |
* Writer to write the labels |
86 | 87 |
* @param handler |
87 | 88 |
* The writer handler implementor |
88 |
* @param longitudes |
|
89 |
* Array of longitudes (>= -180 and <= 180) |
|
90 |
* @param latitudes |
|
91 |
* Array of latitudes (>= -90 and <= 90) |
|
92 |
* @param altitudes |
|
93 |
* Array of altitudes (Meters above sea level) |
|
89 |
* @param coords |
|
90 |
* A coordinates iterator. |
|
94 | 91 |
* @throws IOException |
95 | 92 |
*/ |
96 |
public void start(IWriter writer, GPEKmlWriterHandlerImplementor handler,double[] longitudes, double[] latitudes,
|
|
97 |
double[] altitudes) throws IOException{
|
|
93 |
public void start(IWriter writer, GPEKmlWriterHandlerImplementor handler, |
|
94 |
ICoordinateIterator coords) throws IOException{
|
|
98 | 95 |
writer.write("\n"); |
99 | 96 |
writer.write("<" + KmlTags.INNERBOUNDARYIS.getLocalPart() + ">"); |
100 |
handler.getProfile().getLinearRingWriter().start(writer, handler, longitudes, latitudes, altitudes);
|
|
97 |
handler.getProfile().getLinearRingWriter().start(writer, handler, coords);
|
|
101 | 98 |
} |
102 | 99 |
|
103 | 100 |
/** |
Also available in: Unified diff