On Fri, Oct 05, 2007 at 03:32:06PM +0100, Ian Mayo wrote: > Hi, > the maritime GIS community work in yards and nautical miles, so the > following lines could be added to util.js > > OpenLayers.INCHES_PER_UNIT["yd"]= 36; > // a yard is 36 inches > OpenLayers.INCHES_PER_UNIT["nmi"]= 1852 * OpenLayers.INCHES_PER_UNIT["m"]; > // a nautical mile is 1852 yards (http://en.wikipedia.org/wiki/Nautical_mile)
here you use '1852 * m', but it seems like this should be 1852 * yd. Also, I think 'nm' is the better abbreviation. > How do the community feel about adding maritime units to OpenLayers? Indifferent, but it seems unlikely to hurt anything :) > I appreciate developers can insert the above lines directly into the > custom applications, but suspect a better home is in the trunk. I'm generally okay with this. Can you put together a patch and file a ticket? Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
