org.pentaho.di.core.geospatial
Class KMLReader

java.lang.Object
  extended by org.pentaho.di.core.geospatial.KMLReader

public class KMLReader
extends Object

Reads data from a KML (Keyhole Markup File) file.

Since:
14-sep-2009
Author:
tpelletierdoisy, eleprince, tbadard

Constructor Summary
KMLReader(URL fileURL)
           
 
Method Summary
 com.vividsolutions.jts.geom.LinearRing changeLinearRingJAKenJTS(de.micromata.opengis.kml.v_2_2_0.LinearRing l)
           
 com.vividsolutions.jts.geom.Coordinate[] changementCoord(List<de.micromata.opengis.kml.v_2_2_0.Coordinate> listJAK)
           
 boolean close()
           
 com.vividsolutions.jts.geom.Geometry gestionGeometryJAK(de.micromata.opengis.kml.v_2_2_0.Geometry g)
           
 RowMetaInterface getFields()
           
 URL getKmlURL()
           
 Object[] getRow(Object[] r)
           
 Object[] getRow(RowMetaInterface fields)
           
 String getVersionInfo()
           
 boolean hasError()
           
 void open()
           
 void parcourirContainer(de.micromata.opengis.kml.v_2_2_0.Container cont)
           
 void parcourirDocument(de.micromata.opengis.kml.v_2_2_0.Document doc)
           
 void parcourirFolder(de.micromata.opengis.kml.v_2_2_0.Folder fold)
           
 com.vividsolutions.jts.geom.Geometry[] recolterGeometryJTS(de.micromata.opengis.kml.v_2_2_0.Kml kml)
           
 void setKmlURL(URL kmlURL)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KMLReader

public KMLReader(URL fileURL)
Method Detail

open

public void open()
          throws KettleException
Throws:
KettleException

recolterGeometryJTS

public com.vividsolutions.jts.geom.Geometry[] recolterGeometryJTS(de.micromata.opengis.kml.v_2_2_0.Kml kml)
                                                           throws KettleException
Throws:
KettleException

parcourirContainer

public void parcourirContainer(de.micromata.opengis.kml.v_2_2_0.Container cont)

parcourirDocument

public void parcourirDocument(de.micromata.opengis.kml.v_2_2_0.Document doc)

parcourirFolder

public void parcourirFolder(de.micromata.opengis.kml.v_2_2_0.Folder fold)

gestionGeometryJAK

public com.vividsolutions.jts.geom.Geometry gestionGeometryJAK(de.micromata.opengis.kml.v_2_2_0.Geometry g)

changementCoord

public com.vividsolutions.jts.geom.Coordinate[] changementCoord(List<de.micromata.opengis.kml.v_2_2_0.Coordinate> listJAK)

changeLinearRingJAKenJTS

public com.vividsolutions.jts.geom.LinearRing changeLinearRingJAKenJTS(de.micromata.opengis.kml.v_2_2_0.LinearRing l)

getFields

public RowMetaInterface getFields()
                           throws KettleException
Throws:
KettleException

getRow

public Object[] getRow(RowMetaInterface fields)
                throws KettleException
Throws:
KettleException

getRow

public Object[] getRow(Object[] r)
                throws KettleException
Throws:
KettleException

close

public boolean close()

hasError

public boolean hasError()

toString

public String toString()
Overrides:
toString in class Object

getVersionInfo

public String getVersionInfo()

getKmlURL

public URL getKmlURL()
Returns:
the gisURL

setKmlURL

public void setKmlURL(URL kmlURL)
Parameters:
gisURL - the gisURL to set