[geos-devel] Problem with Coordinate& PrecisionModel::toInternal(Coordinate& external)

Martin Davis mbdavis at VividSolutions.com
Fri Jan 31 14:10:36 EST 2003


Yury, the following methods produce an error:

h:\proj\geos\src\geos\source\geom\geometrycollection.cpp(147) : warning C4172: returning address of local variable or temporary

Coordinate& PrecisionModel::toInternal(Coordinate& external) {
	Coordinate internal;
	toInternal(external, &internal);
	return internal;
}

Coordinate& PrecisionModel::toExternal(Coordinate& internal) {
	Coordinate external;
	toExternal(internal, &external);
	return external;
}


I believe these methods are not actually used anywhere in GEOS, so we should simply delete them.

Martin Davis, Senior Technical Specialist
Vivid Solutions Inc.
Suite #1A-2328 Government Street   Victoria, B.C.   V8T 5G5
Phone: (250) 385 6040    Fax: (250) 385 6046
EMail: mbdavis at vividsolutions.com  Web: www.vividsolutions.com




More information about the geos-devel mailing list