[GRASS5] Re: Testing GRASS PLUGIN...

Radim Blazek radim.blazek at gmail.com
Thu Nov 3 07:58:13 EST 2005


On 11/3/05, Paul Kelly <paul-grass at stjohnspoint.co.uk> wrote:
> > BTW, it seems that that GPJ_osr_to_grass() returns always 1 even if it fails
> > so I test if pointer is set or 0.
>
> Well technically it doesn't really fail---if it can't create a projected
> co-ordinate system, it creates an XY co-ordinate system instead. But this
> is still considered a valid co-ordinate system so it isn't a failure.
> Perhaps it could return a different positive value to indicate a different
> type of success though?

Yes, that would be helpful.

> >> The proj string used in qgis was: +proj=longlat +ellps=intl +pm=rome +no_defs
> >> (Monte Mario Rome)
> >> Am I missing something?
>
> Well that proj string does not contain datum information. BUT... Radim says
> GPJ_osr_to_grass() is used and it takes a WKT string to describe the
> co-ordinate system, not a PROJ string. So is there any way you can show me
> the WKT string that was extracted from QGIS and passed to
> GPJ_osr_to_grass()? Probably there is something not right about the datum
> information there.

WKT is printed on stderr if QGIS is compiled with debug.

Radim




More information about the grass-dev mailing list