Receive email notifications by changing your settings.
Click on your picture in the top right corner, go to Preferences and select your notification preferences.
Thank you for contributing to our forum!
Please keep in mind:
1. To only comment on the topic where the discussion is about. Do you have a new question or topic? Please start a new discussion.
2. Be kind to other users!

Uploading a GeoTiff with the API

Hi,

Iḿ tryging to upload a GeoTiff with the API, but with no succes. Could you please help?

Iḿ using the following address:


The first line asks for the name of the GeoTiff. I think I can be creative here and just give the geotiff a name that Tygron will use.

The second line asks for the actual GeoTiff. I have the GeoTiff on my local drive, so I give the address:

C:\Users\WvLm1\Ward.tiff

The third line asks for the uploader. That would be me, so:

Ward

Obviously I am doing something wrong here, since this doesnt work. Please some help. 🙂


Thank you,

Ward

Tagged:

Comments

  • Hi Ward,

    files and other (binary) data should be converted to base64 to be uploaded. Converting to base64 means the raw binary data is changed into a text string which can be safely transmitted. I'll find some time to clarify this detail in our API tutorial, which does mention it in the code example but not yet explicitly in an explanation:

    https://support.tygron.com/wiki/API_tutorial#Uploading_assets

    Please let us know whether this solves your challenge.

    Kind regards,

    Rudolf

  • Hey Rudolf,

    Thank you! Yes, that solved the challenge. (not so much the tutorial, but the fact that you need to decode the geotiff before uploading)

    All the best,

    Ward

Sign In or Register to comment.