[Proj4j] Re: Issue with MetaCRS Test Suite TestData.csv
Martin Davis
mbdavis at refractions.net
Thu Apr 22 19:24:37 EDT 2010
Landon,
I just looked at this file. The problem is the coordinates are in Y,X
order.
Also, there's a typo "Geograpahic" in the first column.
I created an corrected version of the file in the Proj4J SVN here:
http://svn.osgeo.org/metacrs/proj4j/trunk/src/test/resources/TestData.csv
That one does work in Proj4J (using MetaCRSTestCmd)
Martin
Martin Davis wrote:
> Landon,
>
> That's the test file in question. Could it have been fixed since the
> problem was reported? Or - are the coordinates in the file in X,Y
> (Easting/Northing) order? Proj4J assumes they are ordered X,Y.
>
> I'll try and check it out tonight to see what's going on.
>
> Martin
>
> Sunburned Surveyor wrote:
>> Martin,
>>
>> I'm trying to follow-up on this issue.
>>
>> I downloaded the most recent test data file from the MetaCRS SVN. It
>> looks like there is only the one test data line that I orginally pyut
>> into the file. Is that the line causing the problem, or is there
>> another test data file with more entries that I am not finding?
>>
>> It looks like the ordinate order in my entry of the test file is
>> correct, so I'm not sure what is causing the problem.
>>
>> I thought I'd better check with you before I pestered the mailing list
>> with suggestions or questions.
>>
>> Landon
>>
>> On Fri, Mar 19, 2010 at 1:11 PM, Martin Davis
>> <mbdavis at refractions.net> wrote:
>>
>>> Sure, sounds like a good idea.
>>>
>>> I'm +1 for specifying ordinate order whereever possible.
>>> M
>>>
>>> Sunburned Surveyor wrote:
>>>
>>>> Let me run this by the MetaCRS mailing list. I'm thinking if we don't
>>>> specify ordinate order we may need some form of quality control on the
>>>> test data file. Maybe a stable and an unstable version or something
>>>> like that.
>>>>
>>>> Landon
>>>>
>>>> On Fri, Mar 19, 2010 at 12:35 PM, Martin Davis
>>>> <mbdavis at refractions.net>
>>>> wrote:
>>>>
>>>>
>>>>> Yes, I think it's the test file in the main MetaCRS SVN that's
>>>>> causing
>>>>> the
>>>>> problem.
>>>>>
>>>>> Fixing that file would be great - it would be nice if Proj4J could
>>>>> correctly
>>>>> execute the MetaCRS tests!
>>>>>
>>>>> Or - an indication of ordinate order needs to be added to the test
>>>>> file
>>>>> format. I think we had this discussion a while ago... IIRC, you
>>>>> were in
>>>>> favour of having this indication, and I wasn't at the time. Hoist
>>>>> by my
>>>>> own
>>>>> petard!
>>>>> M
>>>>>
>>>>> Sunburned Surveyor wrote:
>>>>>
>>>>>
>>>>>> I think I agree with you Martin. The source and target ordinates
>>>>>> should be in the same order. Is this the test file from the main
>>>>>> MetaCRS SVN?
>>>>>>
>>>>>> Maybe I need to mention this problem on the main MetaCRS mailing
>>>>>> list
>>>>>> and offer to fix the test file.
>>>>>>
>>>>>> Landon
>>>>>>
>>>>>> On Tue, Mar 9, 2010 at 11:12 AM, Martin Davis
>>>>>> <mbdavis at refractions.net>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Ah, right.
>>>>>>>
>>>>>>> IMO the testsuite file is incorrect, since the src and tgt
>>>>>>> ordinates
>>>>>>> are
>>>>>>> not
>>>>>>> in the same order. Proj4j can't handle that situation currently
>>>>>>> (and
>>>>>>> it's
>>>>>>> not clear to me how an application would detect this situation).
>>>>>>>
>>>>>>> Landon, any thoughts on this?
>>>>>>>
>>>>>>> pierreyvesfadet wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> I used test file from testsuite. This file is not the same as
>>>>>>>> proj4j:
>>>>>>>> inverse fields srcOrd1/srcOrd2 and tgtOrd1,tgtOrd2 too.
>>>>>>>>
>>>>>>>> Thank you.
>>>>>>>>
>>>>>>>> proj4j-request at lists.osgeo.org a écrit :
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Send Proj4j mailing list submissions to
>>>>>>>>> proj4j at lists.osgeo.org
>>>>>>>>>
>>>>>>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/proj4j
>>>>>>>>> or, via email, send a message with subject or body 'help' to
>>>>>>>>> proj4j-request at lists.osgeo.org
>>>>>>>>>
>>>>>>>>> You can reach the person managing the list at
>>>>>>>>> proj4j-owner at lists.osgeo.org
>>>>>>>>>
>>>>>>>>> When replying, please edit your Subject line so it is more
>>>>>>>>> specific
>>>>>>>>> than "Re: Contents of Proj4j digest..."
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Today's Topics:
>>>>>>>>>
>>>>>>>>> 1. proj4j & CSV Test Data file (pierreyvesfadet)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ----------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Message: 1
>>>>>>>>> Date: Tue, 09 Mar 2010 16:01:19 +0100
>>>>>>>>> From: pierreyvesfadet <pierreyvesfadet at free.fr>
>>>>>>>>> Subject: [Proj4j] proj4j & CSV Test Data file
>>>>>>>>> To: proj4j at lists.osgeo.org
>>>>>>>>> Message-ID: <4B9662BF.6080203 at free.fr>
>>>>>>>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> Proj4j gives failure result with TestData.csv file as program
>>>>>>>>> argument.
>>>>>>>>>
>>>>>>>>> console printing:
>>>>>>>>> WGS84 Geogrpahic 2D to CSPC Z3 USFT NAD83
>>>>>>>>> [37.95657778, -121.3128278] -> [NaN, NaN] ( expected: 2171792.15,
>>>>>>>>> 6327319.23 )
>>>>>>>>> FAIL
>>>>>>>>> Src CRS: +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
>>>>>>>>> Tgt CRS: +proj=lcc +lat_1=38.43333333333333
>>>>>>>>> +lat_2=37.06666666666667
>>>>>>>>> +lat_0=36.5 +lon_0=-120.5 +x_0=2000000.0001016
>>>>>>>>> +y_0=500000.0001016001
>>>>>>>>> +ellps=GRS80 +datum=NAD83 +units=us-ft +no_defs
>>>>>>>>> Tests run: 1, Failures: 1, Errors: 0
>>>>>>>>>
>>>>>>>>> What has failed?
>>>>>>>>> Best regards,
>>>>>>>>>
>>>>>>>>> Pierre-yves.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Proj4j mailing list
>>>>>>>>> Proj4j at lists.osgeo.org
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/proj4j
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> End of Proj4j Digest, Vol 5, Issue 1
>>>>>>>>> ************************************
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Proj4j mailing list
>>>>>>>> Proj4j at lists.osgeo.org
>>>>>>>> http://lists.osgeo.org/mailman/listinfo/proj4j
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Martin Davis
>>>>>>> Senior Technical Architect
>>>>>>> Refractions Research, Inc.
>>>>>>> (250) 383-3022
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Proj4j mailing list
>>>>>>> Proj4j at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/proj4j
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> --
>>>>> Martin Davis
>>>>> Senior Technical Architect
>>>>> Refractions Research, Inc.
>>>>> (250) 383-3022
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> --
>>> Martin Davis
>>> Senior Technical Architect
>>> Refractions Research, Inc.
>>> (250) 383-3022
>>>
>>>
>>>
>>
>>
>
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
More information about the Proj4j
mailing list