[Qgis-developer] Caluclate Distance

Mailing Lists lists at linfiniti.com
Mon Oct 26 01:21:06 EDT 2009


Hi Paul


Take a look at

http://doc.qgis.org/head/classQgsDistanceArea.html

in particular:

double measureLine( const QgsPoint& p1, const QgsPoint& p2 );

Regards

Tim

On Mon, Oct 26, 2009 at 6:40 AM, Paul Moore
<paul.moore at c-esolutions.com.au> wrote:
> Hi
>
> I'm new to QGIS. I'm writing a C++ application and would like to use QGIS to
> calculate the distance between two WGS84 lat/long points. Can anyone point
> me towards code examples or documentation which describes which QGIS classes
> I need to use and how to use them?
>
> Thanks,
> Paul.
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list