You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Anup Shrestha <st...@gmail.com> on 2010/03/10 06:37:11 UTC

[SANSELAN] How to write GPS Altitude?

Hi,
Can anyone explain me how to add GPSAltitude and GPSAltitudeRef ? I got
confused seeing type length=-1, what does it mean? I am not able to add
GPSSpeed as well but I am able to add GPSSpeedRef.


Thanks in advance.


Regards,
Anup Shrestha

Re: [SANSELAN] How to write GPS Altitude?

Posted by tonio09 <bi...@gmail.com>.
See https://issues.apache.org/jira/browse/SANSELAN-51

--
View this message in context: http://apache-commons.680414.n4.nabble.com/SANSELAN-How-to-write-GPS-Altitude-tp1587685p3619151.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [SANSELAN] How to write GPS Altitude?

Posted by Damjan Jovanovic <da...@apache.org>.
Please create a bug on Jira and attach the patch, I will commit it.

Thank you
Damjan

On Tue, Jun 21, 2011 at 4:28 PM, tonio09 <bi...@gmail.com> wrote:
> I've extended GPSInfo to read GPSImgDirection and GPSImgDirectionRef. Also,
> I've changed the field length for these fields in TiffConstants. Now
> Sanselan reads and writes them fine. Does anyone want the code? Where can I
> submit a patch?
>
> --
> View this message in context: http://apache-commons.680414.n4.nabble.com/SANSELAN-How-to-write-GPS-Altitude-tp1587685p3614297.html
> Sent from the Commons - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [SANSELAN] How to write GPS Altitude?

Posted by tonio09 <bi...@gmail.com>.
I've extended GPSInfo to read GPSImgDirection and GPSImgDirectionRef. Also,
I've changed the field length for these fields in TiffConstants. Now
Sanselan reads and writes them fine. Does anyone want the code? Where can I
submit a patch?

--
View this message in context: http://apache-commons.680414.n4.nabble.com/SANSELAN-How-to-write-GPS-Altitude-tp1587685p3614297.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [SANSELAN] How to write GPS Altitude?

Posted by tonio09 <bi...@gmail.com>.
Ok, I figured out a way. Just change the field length to 1. It writes as
normal. Then when you want to read, it takes a bit more code. Take a look at
how it's done in TiffImageMetadata.getGPS()

--
View this message in context: http://apache-commons.680414.n4.nabble.com/SANSELAN-How-to-write-GPS-Altitude-tp1587685p3613916.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [SANSELAN] How to write GPS Altitude?

Posted by tonio09 <bi...@gmail.com>.
I would need to write to GPSImgDescription but it won't let me because of the
-1 field length ? :S

--
View this message in context: http://apache-commons.680414.n4.nabble.com/SANSELAN-How-to-write-GPS-Altitude-tp1587685p3613803.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org