[ZOO-Discuss] Distance units

Scott Henderson Scott.Henderson at lisasoft.com
Wed May 12 23:56:33 PDT 2010


Hey all,

I am using the server at http://shilpa.media.osaka-cu.ac.jp/zoo/ to perform a Distance execute but I am confused about the units that the distance is being returned in. According to the DescribeProcess the default is metres yet I often will get some huge number when point A and B may only be a kilometer away from each other. Also, if point A and B have the same longitude, it will return a distance of 0 even though the latitude is different. Below is the xml I am sending:

<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0/wpsExecute_request.xsd"><ows:Identifier>Distance</ows:Identifier>"<wps:DataInputs><wps:Input><ows:Identifier>InputEntity1</ows:Identifier><wps:Data><wps:ComplexData mimeType="application/json">{"type":"Point","coordinates":[11.2841796875,47.021484375]}</wps:ComplexData></wps:Data></wps:Input><wps:Input><ows:Identifier>InputEntity2</ows:Identifier><wps:Data><wps:ComplexData mimeType="application/json">{"type":"Point","coordinates":[15.5908203125,48.1640625]}</wps:ComplexData></wps:Data></wps:Input></wps:DataInputs><wps:ResponseForm><wps:RawDataOutput><wps:Output><ows:Identifier>Result</ows:Identifier></wps:Output></wps:RawDataOutput></wps:ResponseForm></wps:Execute>

Does anyone know if the problem lies somewhere within my request or is it a fault with the distance process itself.

Thanks in advance for your time.

Scott.

________________________________
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20100513/b8d8a1ea/attachment.html>


More information about the Zoo-discuss mailing list