Hello,

On Tue, Nov 4, 2014 at 7:24 PM, remicres <[email protected]> wrote:

> Hello,
>
> I can not instanciate any working GenericMapProjection from a Wkt: a
> default projection is always used instead.
>

Default how?


> Indeed when I get back the Wkt of the instanciated GenericMapProjection,
> It is completely different than the one I have specified.
>

OSSIM is in charge when you instanciate and get back a projection in WKT.



> Here is the code (as simple as can be) I use to test this
> <http://pastebin.com/iBt5dnrV>. Can someone be kind enough to check if
> this works on his OTB version and/or explain me the reasons why I can not
> use this projection in OTB?
>

I tried your wkt string and this is what I got:

PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]],PROJECTION["Sinusoidal"],PARAMETER["longitude_of_center",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0]]


AFAICT, for OSSIM if there is no datum or it is unknown in case of GEOS
projection, ossim sets it to WGS84. and add bunch of related stuff.

....
AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]
....

Honestly, I don't know much about this. But I hope someone else in list
might be able to help.


> Thank you in advance,
> Rémi
>
>
>
>
> PS: I also try to modify the Wkt in the example given in the cookbook
> <http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech11.html#x36-19800011.2>
> but it did not worked too. The parameter I try to modify in the Wkt were
> the spheroid flattening parameter.
>
>  --
> --
> Check the OTB FAQ at
> http://www.orfeo-toolbox.org/FAQ.html
>
> You received this message because you are subscribed to the Google
> Groups "otb-users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/otb-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "otb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
   Rashad

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to