Select to view content in your preferred language

How to send ZIP to WPS

1282
0
07-18-2016 10:23 PM
DušanCibulka
Emerging Contributor

Hello, my question is:

It is possible to send ZIP files through a OGC WPS interface within "Execute" request?

If so, how it should be structured request for data type "GPDataFile" or "<MimeType>application/zip</MimeType>" in the WPS.

It is posible to use Base64?

Example:

<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" service="WPS" version="1.0.0" language="en-US">

    <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">convert</ows:Identifier>

    <wps:DataInputs>

        <wps:Input>

            <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">InputData</ows:Identifier>

            <wps:Data>

                <wps:ComplexData mimeType="application/zip" encoding="Base64">

                    <![CDATA[UEsDBBQAAAAAAK187Eji3LKKBQAAAAUAAAAIAAAAdGVzdC50eHR0ZXN0MVBLAQIUABQAAAAAAK187Eji3LKKBQAAAAUAAAAIAAAAAAAAAAEAIAAAAAAAAAB0ZXN0LnR4dFBLBQYAAAAAAQABADYAAAArAAAAAAA=]]>

                </wps:ComplexData>

            </wps:Data>

        </wps:Input>

    </wps:DataInputs>

    <wps:ResponseForm>

        <wps:ResponseDocument storeExecuteResponse="true" lineage="true" status="false">

            <wps:Output schema="http://www.w3.org/TR/xmlschema-2/#string" asReference="false">

                <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">OutputData</ows:Identifier>

            </wps:Output>

        </wps:ResponseDocument>

    </wps:ResponseForm>

</wps:Execute>

Thank you

0 Kudos
0 Replies