|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.control.georss.GeometryService
public class GeometryService
Geometry service.
Constructor Summary | |
---|---|
GeometryService(String URL)
Creates instance of the service object. |
Method Summary | |
---|---|
static GeometryService |
createDefaultInstance()
Creates instance as configured in gpt.xml. |
protected Map<String,List<Envelope>> |
createEnvMap(List<Envelope> envelopes,
String defWkid)
Creates WKID to envelope mapping. |
protected String |
enc(String str)
Encodes a string. |
protected String |
envToJson(Envelope env,
String wkid)
Turns a single envelope into a JSON object. |
protected String |
envToJson(List<Envelope> envList,
String wkid)
Turns list of envelopes into a JSON object. |
List<Envelope> |
project(List<Envelope> envelopes,
String outSR)
Performs projection. |
protected List<Envelope> |
project(List<Envelope> inEnv,
String inSR,
String outSR)
Performs projection. |
protected Envelope |
readEnvelope(org.json.JSONObject geom)
Read envelope from the JSON object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryService(String URL)
URL
- URL to the serviceMethod Detail |
---|
public static GeometryService createDefaultInstance()
public List<Envelope> project(List<Envelope> envelopes, String outSR) throws org.json.JSONException, HttpClientException, IOException
envelopes
- list of envelopes to projectoutSR
- output spatial reference (WKID)
org.json.JSONException
- if reading response as JSON fails
HttpClientException
- if HTTP communication fails
IOException
- if data transmission failsprotected List<Envelope> project(List<Envelope> inEnv, String inSR, String outSR) throws org.json.JSONException, HttpClientException, IOException
inEnv
- list of envelopesinSR
- input spatial reference (WKID)outSR
- output spatial reference (WKID)
org.json.JSONException
- if reading response as JSON fails
HttpClientException
- if HTTP communication fails
IOException
- if data transmission failsprotected Envelope readEnvelope(org.json.JSONObject geom) throws org.json.JSONException
geom
- JSON object representing envelope
org.json.JSONException
- if input object is not a valid envelopeprotected Map<String,List<Envelope>> createEnvMap(List<Envelope> envelopes, String defWkid)
envelopes
- envelopesdefWkid
- default WKID
protected String envToJson(List<Envelope> envList, String wkid)
envList
- list of envelopeswkid
- WKID
protected String envToJson(Envelope env, String wkid)
env
- envelopewkid
- WKID
protected String enc(String str)
str
- string to encode
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |