|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geometry.JSONConverterGeometry
public class JSONConverterGeometry
Constructor Summary | |
---|---|
JSONConverterGeometry()
Constructs a JSONConverterGeometry using ArcGIS Engine. |
|
JSONConverterGeometry(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. JSONConverterGeometry theJSONConverterGeometry = (JSONConverterGeometry) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IJSONReader |
getReader()
Obtains JSON Reader. |
IJSONWriter |
getWriter()
Obtains JSON Writer. |
int |
hashCode()
the hashcode for this object |
void |
initDeserializer(IJSONReader pReader,
IPropertySet pProps)
Write deserialization options. |
void |
initSerializer(IJSONWriter pWriter,
IPropertySet pProps)
Writes serialization options. |
void |
queryJSONEnvelope(IEnvelope pEnvelope,
boolean skip_spref,
IJSONObject pJSON)
Queries spatial reference and populates existing IJSONObject |
void |
queryJSONGeometry(IGeometry pGeom,
boolean skip_spref,
IJSONObject pJSON)
Queries geometry and populates existing IJSONObject |
void |
queryJSONGeoTransformation(IGeoTransformation pSR,
IJSONObject pJSON)
Queries a geographic (datum) transformation object and populates existing IJSONObject |
void |
queryJSONSpatialReference(ISpatialReference pSR,
IJSONObject pJSON)
Queries spatial reference and populates existing IJSONObject |
IEnvelope |
readEnvelope(IJSONReader pReader)
Reads point object. |
IGeometry |
readGeometry(IJSONReader pReader,
int geomType,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads geometry object. |
IGeoTransformation |
readGeoTransformation(IJSONReader pReader)
Reads a geographic (datum) transformation object. |
IMultipoint |
readMultipoint(IJSONReader pReader,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads point object. |
Object |
readObject(GUID riid,
IPropertySet pProps)
Deserialize an object. |
IPoint |
readPoint(IJSONReader pReader)
Reads point object. |
IPolygon |
readPolygon(IJSONReader pReader,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads point object. |
IPolyline |
readPolyline(IJSONReader pReader,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads point object. |
ISpatialReference |
readSpatialReference(IJSONReader pReader)
Reads spatial reference object. |
IEnvelope |
toEnvelope(IJSONObject pJSONObject)
Reads envelope from a JSON object. |
IGeometry |
toGeometry(IJSONObject pJSONObject,
int geomType,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads geometry object from JSON object. |
IGeoTransformation |
toGeoTransformation(IJSONObject pJSONObject)
Reads a geographic (datum) transformation object from a JSON object. |
IMultipoint |
toMultipoint(IJSONObject pJSONObject,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads multipoint from a JSON object. |
IPoint |
toPoint(IJSONObject pJSONObject)
Reads IPoint from a JSON object. |
IPolygon |
toPolygon(IJSONObject pJSONObject,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads polygon from a JSON object. |
IPolyline |
toPolyline(IJSONObject pJSONObject,
boolean bDefaultHasZs,
boolean bDefaultHasMs)
Reads polyline from a JSON object. |
ISpatialReference |
toSpatialReference(IJSONObject pJSONObject)
Reads spatial reference from a JSON object. |
void |
writeGeometry(IJSONWriter pWriter,
String propname,
IGeometry pGeom,
boolean skip_spref)
Writes geometry object. |
void |
writeGeoTransformation(IJSONWriter pWriter,
String propname,
IGeoTransformation pSR)
Writes a geographic (datum) transformation object. |
void |
writeObject(Object pUnk,
IPropertySet pProps)
Serializes an object. |
void |
writeSpatialReference(IJSONWriter pWriter,
String propname,
ISpatialReference pSR)
Writes spatial reference object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public JSONConverterGeometry() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic JSONConverterGeometry(Object obj) throws IOException
JSONConverterGeometry theJSONConverterGeometry = (JSONConverterGeometry) obj;
obj
to JSONConverterGeometry
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IJSONWriter getWriter() throws IOException, AutomationException
getWriter
in interface IJSONSerializer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initSerializer(IJSONWriter pWriter, IPropertySet pProps) throws IOException, AutomationException
initSerializer
in interface IJSONSerializer
pWriter
- A reference to a com.esri.arcgis.system.IJSONWriter (in)pProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeObject(Object pUnk, IPropertySet pProps) throws IOException, AutomationException
writeObject
in interface IExternalSerializer
pUnk
- A reference to another Object (IUnknown) (in)pProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IJSONReader getReader() throws IOException, AutomationException
getReader
in interface IJSONDeserializer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initDeserializer(IJSONReader pReader, IPropertySet pProps) throws IOException, AutomationException
initDeserializer
in interface IJSONDeserializer
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)pProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object readObject(GUID riid, IPropertySet pProps) throws IOException, AutomationException
readObject
in interface IExternalDeserializer
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)pProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeSpatialReference(IJSONWriter pWriter, String propname, ISpatialReference pSR) throws IOException, AutomationException
writeSpatialReference
in interface IJSONConverterGeometry
pWriter
- A reference to a com.esri.arcgis.system.IJSONWriter (in)propname
- The propname (in)pSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeGeoTransformation(IJSONWriter pWriter, String propname, IGeoTransformation pSR) throws IOException, AutomationException
writeGeoTransformation
in interface IJSONConverterGeometry
pWriter
- A reference to a com.esri.arcgis.system.IJSONWriter (in)propname
- The propname (in)pSR
- A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeGeometry(IJSONWriter pWriter, String propname, IGeometry pGeom, boolean skip_spref) throws IOException, AutomationException
writeGeometry
in interface IJSONConverterGeometry
pWriter
- A reference to a com.esri.arcgis.system.IJSONWriter (in)propname
- The propname (in)pGeom
- A reference to a com.esri.arcgis.geometry.IGeometry (in)skip_spref
- The skip_spref (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryJSONSpatialReference(ISpatialReference pSR, IJSONObject pJSON) throws IOException, AutomationException
queryJSONSpatialReference
in interface IJSONConverterGeometry
pSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pJSON
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryJSONGeoTransformation(IGeoTransformation pSR, IJSONObject pJSON) throws IOException, AutomationException
queryJSONGeoTransformation
in interface IJSONConverterGeometry
pSR
- A reference to a com.esri.arcgis.geometry.IGeoTransformation (in)pJSON
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryJSONEnvelope(IEnvelope pEnvelope, boolean skip_spref, IJSONObject pJSON) throws IOException, AutomationException
queryJSONEnvelope
in interface IJSONConverterGeometry
pEnvelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)skip_spref
- The skip_spref (in)pJSON
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryJSONGeometry(IGeometry pGeom, boolean skip_spref, IJSONObject pJSON) throws IOException, AutomationException
queryJSONGeometry
in interface IJSONConverterGeometry
pGeom
- A reference to a com.esri.arcgis.geometry.IGeometry (in)skip_spref
- The skip_spref (in)pJSON
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference readSpatialReference(IJSONReader pReader) throws IOException, AutomationException
readSpatialReference
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeoTransformation readGeoTransformation(IJSONReader pReader) throws IOException, AutomationException
readGeoTransformation
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry readGeometry(IJSONReader pReader, int geomType, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
readGeometry
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)geomType
- A com.esri.arcgis.geometry.esriGeometryType constant (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPoint readPoint(IJSONReader pReader) throws IOException, AutomationException
readPoint
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMultipoint readMultipoint(IJSONReader pReader, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
readMultipoint
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPolygon readPolygon(IJSONReader pReader, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
readPolygon
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPolyline readPolyline(IJSONReader pReader, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
readPolyline
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope readEnvelope(IJSONReader pReader) throws IOException, AutomationException
readEnvelope
in interface IJSONConverterGeometry
pReader
- A reference to a com.esri.arcgis.system.IJSONReader (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry toGeometry(IJSONObject pJSONObject, int geomType, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
toGeometry
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)geomType
- A com.esri.arcgis.geometry.esriGeometryType constant (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope toEnvelope(IJSONObject pJSONObject) throws IOException, AutomationException
toEnvelope
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference toSpatialReference(IJSONObject pJSONObject) throws IOException, AutomationException
toSpatialReference
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeoTransformation toGeoTransformation(IJSONObject pJSONObject) throws IOException, AutomationException
toGeoTransformation
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPoint toPoint(IJSONObject pJSONObject) throws IOException, AutomationException
toPoint
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMultipoint toMultipoint(IJSONObject pJSONObject, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
toMultipoint
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPolygon toPolygon(IJSONObject pJSONObject, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
toPolygon
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPolyline toPolyline(IJSONObject pJSONObject, boolean bDefaultHasZs, boolean bDefaultHasMs) throws IOException, AutomationException
toPolyline
in interface IJSONConverterGeometry
pJSONObject
- A reference to a com.esri.arcgis.system.IJSONObject (in)bDefaultHasZs
- The bDefaultHasZs (in)bDefaultHasMs
- The bDefaultHasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |