Opened 7 years ago

Closed 7 years ago

#1623 closed defect (fixed)

Petascope_Add more supported GDAL format types

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.5
Component: petascope Version: development
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

I've just known rasdaman can encode more than this list

   <wcs:formatSupported>application/gml+xml</wcs:formatSupported>
        <wcs:formatSupported>image/jpeg</wcs:formatSupported>
        <wcs:formatSupported>image/png</wcs:formatSupported>
        <wcs:formatSupported>image/tiff</wcs:formatSupported>
        <wcs:formatSupported>image/bmp</wcs:formatSupported>
        <wcs:formatSupported>image/jp2</wcs:formatSupported>
        <wcs:formatSupported>application/netcdf</wcs:formatSupported>
        <wcs:formatSupported>text/csv</wcs:formatSupported>
        <wcs:formatSupported>application/json</wcs:formatSupported>
        <wcs:formatSupported>application/dem</wcs:formatSupported>

when PlanetServer-2 has a working WCPS query which encodes in "fits" format before and it does not work in version 9.5.

So, it needs to check this table http://www.rasdaman.org/wiki/PetascopeUserGuide#Outputformats and run rasql command

rasql -q 'select encode(c, "format") from test_mr as c'

if format is not from the well-known list in WCS GetCapabilities and no error returned. It will be added to WCS GetCapabilities.

A typical error is:

/opt/rasdaman/source/conversion/gdal.cc:159: Failed encoding to format 'SNODAS': GDALDriver::Create() ... no create method implemented for this format.

Change History (3)

comment:1 by Dimitar Misev, 7 years ago

when PlanetServer?-2 has a working WCPS query which encodes in "fits" format before and it does not work in version 9.5.

You mention WCPS query but give a list of supported formats from WCS.

  1. Are these related?
  2. Why doesn't 'fits' work?

So, it needs to check this table http://www.rasdaman.org/wiki/PetascopeUserGuide#Outputformats and run rasql command

  1. What does it mean run this rasql command? When will it run it?
  2. It used to simply forward whatever format string the user gives (e.g. 'fits') to rasql, does it do the same now? Why does it have to look up in some table?

in reply to:  1 comment:2 by Bang Pham Huu, 7 years ago

You mention WCPS query but give a list of supported formats from WCS.
Are these related?

Yes, WCS is the core service and in GetCapabilities it needs to advertise which supported format it could encode. WCS request is generated to WCPS query internally.

Why doesn't 'fits' work?

Because it is not added in the supported formats in WCS (before only well-known formats are added).

What does it mean run this rasql command? When will it run it?

I ran it for all the listed GDAL format manually to check which format is working.

It used to simply forward whatever format string the user gives (e.g. 'fits') to rasql, does it do the same now? Why does it have to look up in some table?

The table for GDAL format does not exist anymore as it is hard to add data to database when it starts, also it makes it hard to change the supported formats when it was persisted and ¾ of them don't work with rasql. Therefore, a map of tested formats is added in a java class to check if format is supported which could be extended or modified later easily.

comment:3 by Bang Pham Huu, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.