Reproject()

  Reproject

Description

Reproject() is used to translate one or more points between two projections defined via GeoInfo structures.

Call Signature

int Reproject ( GeoInfo ptr geoinfo_in, GeoInfo ptr geoinfo_out, int npoints, double ptr point_list )

Return Value

int

Returns a 1.0 if all the points were successfully reprojected, or 0.0 if any failed.

Arguments

GeoInfo ptr geoinfo_in:

A GeoInfo defining the projection that the points in point_list are in when passed into Reproject().

GeoInfo ptr geoinfo_out:

A GeoInfo defining the projection that the points in point_list are to be transformed into.

int npoints:

The number of points in point_list.

double ptr point_list:

An array of doubles containing the points to be transformed, packed one after the other (XYXYXY).

Remarks

The contents of point_list are transformed in place.

Because of the setup time involved in invoking intrinsics, it is significantly faster to invoke Reproject() once on many points rather than many times on one point.

See also

DBReadGeoInfo()

GeoInfo

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.