com.xpn.xwiki.plugin.terraserver
Class TerraServerPluginApi

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by com.xpn.xwiki.plugin.terraserver.TerraServerPluginApi

public class TerraServerPluginApi
extends Api


Field Summary
private  TerraServerPlugin plugin
           
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
TerraServerPluginApi(TerraServerPlugin plugin, XWikiContext context)
           
 
Method Summary
 com.ms.terraservice.LonLatPt getLonLatPt(double lon, double lat)
           
 com.ms.terraservice.LonLatPt getLonLatPt(java.lang.String lon, java.lang.String lat)
           
 java.lang.String getNearestPlace(com.ms.terraservice.LonLatPt lonlatpt)
           
 com.ms.terraservice.Place getPlace(java.lang.String city, java.lang.String state, java.lang.String country)
           
 com.ms.terraservice.PlaceFacts getPlaceFacts(java.lang.String city, java.lang.String state, java.lang.String country)
           
 TerraServerPlugin getPlugin()
           
 byte[] getTile(com.ms.terraservice.TileId tileId)
           
 byte[] getTileFromLonLatPt(com.ms.terraservice.LonLatPt lonlat, java.lang.String scale)
           
 byte[] getTileFromLonLatPt(com.ms.terraservice.LonLatPt lonlat, java.lang.String scale, int theme)
           
 com.ms.terraservice.TileMeta getTileMetaFromLonLatPt(com.ms.terraservice.LonLatPt lonlat, java.lang.String scale)
           
 void setPlugin(TerraServerPlugin plugin)
           
 
Methods inherited from class com.xpn.xwiki.api.Api
checkProgrammingRights, hasAccessLevel, hasAdminRights, hasProgrammingRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

private TerraServerPlugin plugin
Constructor Detail

TerraServerPluginApi

public TerraServerPluginApi(TerraServerPlugin plugin,
                            XWikiContext context)
Method Detail

getPlugin

public TerraServerPlugin getPlugin()

setPlugin

public void setPlugin(TerraServerPlugin plugin)

getLonLatPt

public com.ms.terraservice.LonLatPt getLonLatPt(java.lang.String lon,
                                                java.lang.String lat)

getLonLatPt

public com.ms.terraservice.LonLatPt getLonLatPt(double lon,
                                                double lat)

getPlace

public com.ms.terraservice.Place getPlace(java.lang.String city,
                                          java.lang.String state,
                                          java.lang.String country)

getNearestPlace

public java.lang.String getNearestPlace(com.ms.terraservice.LonLatPt lonlatpt)
                                 throws javax.xml.rpc.ServiceException,
                                        java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getPlaceFacts

public com.ms.terraservice.PlaceFacts getPlaceFacts(java.lang.String city,
                                                    java.lang.String state,
                                                    java.lang.String country)
                                             throws javax.xml.rpc.ServiceException,
                                                    java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getTileMetaFromLonLatPt

public com.ms.terraservice.TileMeta getTileMetaFromLonLatPt(com.ms.terraservice.LonLatPt lonlat,
                                                            java.lang.String scale)
                                                     throws javax.xml.rpc.ServiceException,
                                                            java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getTileFromLonLatPt

public byte[] getTileFromLonLatPt(com.ms.terraservice.LonLatPt lonlat,
                                  java.lang.String scale)
                           throws javax.xml.rpc.ServiceException,
                                  java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getTileFromLonLatPt

public byte[] getTileFromLonLatPt(com.ms.terraservice.LonLatPt lonlat,
                                  java.lang.String scale,
                                  int theme)
                           throws javax.xml.rpc.ServiceException,
                                  java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException

getTile

public byte[] getTile(com.ms.terraservice.TileId tileId)
               throws javax.xml.rpc.ServiceException,
                      java.rmi.RemoteException
Throws:
javax.xml.rpc.ServiceException
java.rmi.RemoteException


Copyright 2003 Ludovic Dubost