complexType DistanceRequest
diagram geometry_p79.png
namespace http://www.mapinfo.com/midev/service/geometry/v1
type extension of tns:GeometryServiceRequest
properties
base tns:GeometryServiceRequest
children tns:FirstGeometry tns:SecondGeometry
used by
element DistanceRequest
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xsd:string  optional      
documentation
A unique identifier that is returned in the response. It is used for debugging or keeping track of asynchronous requests.
locale  xsd:string  optional      
documentation
The language and country code of the request, which is defined using [language_code]_[country_code] syntax. The language code is a 2-letter ISO-639 code. The country code is a 2-letter ISO-3166 code. For example: en_US stands for the English language within the United States of America.
responseSrsName  xsd:string  optional      
documentation
The spatial reference system to express the response in.
computationType  tns:ComputationType  optional      
documentation
The computation type to use, either Cartesian or Spherical. If you do not specify this, then this method uses the coordinate system type of the first geometry in the calculation. Spherical computations can be used for any geometry. Cartesian calculations can only be used when the first geometry is Cartesian.
distanceUnit  tns:DistanceUnit  required      
documentation
The distance units to use (e.g. kilometer).
annotation
documentation
A request to calculate the distance between the two supplied geometries using the supplied computation type and distance units. Specifically, the distance between two closest points of the two geometries is determined.

attribute DistanceRequest/@computationType
type tns:ComputationType
properties
use optional
facets
Kind Value Annotation
enumeration Spherical
documentation
The geometry is treated as points on a sphere and can be used with geographic (LongLat) and projected coordinate systems.
enumeration Cartesian
documentation
The geometry is treated as points on a flat plane and can be used with projected and non-earth coordinate systems.
annotation
documentation
The computation type to use, either Cartesian or Spherical. If you do not specify this, then this method uses the coordinate system type of the first geometry in the calculation. Spherical computations can be used for any geometry. Cartesian calculations can only be used when the first geometry is Cartesian.

attribute DistanceRequest/@distanceUnit
type tns:DistanceUnit
properties
use required
facets
Kind Value Annotation
enumeration Centimeter
documentation
The distance unit for: centimeter.
enumeration cm
documentation
The distance unit for: centimeter.
enumeration Chain
documentation
The distance unit for: chain.
enumeration Foot
documentation
The distance unit for: foot.
enumeration ft
documentation
The distance unit for: foot.
enumeration Inch
documentation
The distance unit for: inch.
enumeration in
documentation
The distance unit for: inch.
enumeration Kilometer
documentation
The distance unit for: kilometer.
enumeration km
documentation
The distance unit for: kilometer.
enumeration Link
documentation
The distance unit for: link.
enumeration Meter
documentation
The distance unit for: meter.
enumeration m
documentation
The distance unit for: meter.
enumeration Mile
documentation
The distance unit for: mile.
enumeration mi
documentation
The distance unit for: mile.
enumeration Millimeter
documentation
The distance unit for: millimeter.
enumeration mm
documentation
The distance unit for: millimeter.
enumeration NauticalMile
documentation
The distance unit for: nautical mile.
enumeration Pica
documentation
The distance unit for: pica.
enumeration Point
documentation
The distance unit for: point.
enumeration Rod
documentation
The distance unit for: rod.
enumeration SurveyFoot
documentation
The distance unit for: survey foot.
enumeration Twip
documentation
The distance unit for: twip.
enumeration Yard
documentation
The distance unit for: yard.
enumeration yd
documentation
The distance unit for: yard.
annotation
documentation
The distance units to use (e.g. kilometer).

element DistanceRequest/FirstGeometry
diagram geometry_p80.png
namespace http://www.mapinfo.com/midev/service/geometry/v1
type tns:Geometry
properties
content complex
attributes
Name  Type  Use  Default  Fixed  Annotation
srsName  xsd:string  optional      
documentation
The spatial reference system name associated with this geometry.
annotation
documentation
The first geometry.

element DistanceRequest/SecondGeometry
diagram geometry_p81.png
namespace http://www.mapinfo.com/midev/service/geometry/v1
type tns:Geometry
properties
content complex
attributes
Name  Type  Use  Default  Fixed  Annotation
srsName  xsd:string  optional      
documentation
The spatial reference system name associated with this geometry.
annotation
documentation
The second geometry.


© 2007, 2020 Precisely. All rights reserved. support.precisely.com