[OpenLayers-Users] Tiff file Calculation.

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Sun May 3 05:03:12 EDT 2009


Not sure if this is what you mean, but:

topleft point -> map.getExtent().top and map.getExtent().left
width -> map.getSize().w

Best regards,
Bart

Kwong Hu Kiu wrote:
>
>
> I need this urgently.
>
> No one has any idea ?
>
> Cheers.
>
>
> ------------------------------------------------------------------------
> From: kwonghu at hotmail.com
> To: users at openlayers.org
> Date: Sat, 2 May 2009 11:36:13 +0800
> Subject: [OpenLayers-Users] Tiff file Calculation.
>
> Hi,
>
> If anyone knows if Openlayers has any function to calculate the Tiff 
> file ?
>
> double pixelHeight = (topLeftPoint.Y - lowerRightPoint.Y) / 
> imageSize.Height;
> double pixelWidth = (lowerRightPoint.X - topLeftPoint.X) / 
> imageSize.Width;
>
> I have done it before in c#. So openlayers has any utility that allow 
> me to get the topleft point and image's width ?
>
> (Or)
>
> Someone must have already written a control for it and i just need to 
> download from the trunk area.
>
> Cheers.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Users mailing list