Thanks Daniele,

Here are my tests based on the information you gave me. I will try to
update my unit tests to reflect that and make sure it works, but it
seems like your suspicion is correct.

Thanks again,
Ariel.

>>> pixel = 0.011200000000000
>>> expected_origin = (105.298569999999998,-5.565233000000000)
>>> received_origin = (105.30417, -5.570833)
>>> difference = received_origin[0] - expected_origin[0]
>>> pixel / 2
0.0055999999999999999
>>> difference
0.0056000000000011596



On Wed, Jun 1, 2011 at 12:57 PM, Daniele Romagnoli
<[email protected]> wrote:
> Hi Ariel,
> Not sure if I'm totally wrong but maybe it could be a simple pixel CENTER vs
> pixel CORNER difference.
>
> Usually gdalinfo shows the coordinate of the corner of the pixel. Not sure
> whether the origin in describeCoverage is referred to the center too or to
> the corner.
> Could you check whether the difference between the value you see on WCS and
> the value reported by gdal is equal to half pixel resolution?
>
> Daniele
>
>
> On Wed, Jun 1, 2011 at 6:05 PM, Ariel Nunez <[email protected]>
> wrote:
>>
>> Hello list,
>>
>> We are using GeoServer for impact calculations and noticed that the
>> GeoServer WCS module is not able to report the origin attribute with
>> sufficient precision (for our application) We expected (105.29857,
>> -5.56523) but got (105.30417, -5.570833).
>>
>> Has anyone experienced a similar issue? What's a good way to start
>> debugging this?
>>
>> Ariel.
>>
>> More details and a script to reproduce it (including sample data) below:
>>
>> https://gist.github.com/825323
>>
>> Using the following version of GeoServer
>> version = 2.2-SNAPSHOT
>> svn revision = 15968
>> build date = 01-Jun-2011 03:32
>> geotools version = 8-SNAPSHOT
>> geotools revision = 37354
>> hudson build = 725
>>
>> Origin obtained using gdalinfo in the original file:
>> Origin = (105.298569999999998,-5.565233000000000)
>>
>> Origin obtained using WCS DescribeCoverage in the original file:
>> <gml:pos>105.30417 -5.570833</gml:pos>
>>
>>
>> ------------------------------------------------------------------------------
>> Simplify data backup and recovery for your virtual environment with
>> vRanger.
>> Installation's a snap, and flexible recovery options mean your data is
>> safe,
>> secure and there when you need it. Data protection magic?
>> Nope - It's vRanger. Get your free trial download today.
>> http://p.sf.net/sfu/quest-sfdev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>
> --
> -------------------------------------------------------
> Ing. Daniele Romagnoli
> GeoSolutions S.A.S.
> Software Engineer
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://it.linkedin.com/in/danieleromagnoli
>
>
> -------------------------------------------------------
>
>

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to