Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: export zipfle including also more information documents #4884

Closed
aperi2007 opened this issue Mar 16, 2014 · 1 comment
Closed

Enhancement: export zipfle including also more information documents #4884

aperi2007 opened this issue Mar 16, 2014 · 1 comment
Assignees

Comments

@aperi2007
Copy link

@aperi2007 aperi2007 commented Mar 16, 2014

Actually mapserver will allow , using the wfs engine, to distribute the
datasets using zipped shapefiles. This is a useful opportunity to distribute our data using the wfs interoperability of mapserver.

We will project to use this feature to allow the download of our datasets, using the shapefile zipped format.

But we have a problem to use this.
Infact we need to add to the zip file some other files, tipically a licence file (pdf) and perhaps some other files like technical information or metadata files.
All of this could be of-course inside a single zip file . So we could think to add to the zipped shapefile a df file
or a zip file (that host more than one file).

To have this result is necessary an enhance to the actual options of mapserver.

I think a good solution could be add a new tag setting in the metadata part of layer section of the mapfile.

A new tag to include in a zip file an external resource (I think to a zip file or to a pdf file).

something like this:

LAYER
...
METADATA
wfs_include_resource_in_zip_output "/path-to-file/license.pdf"

or this other (for mapserver on windows)

LAYER
...
METADATA
wfs_include_resource_in_zip_output "c:\path-to-file\license.pdf"

or also retrieve the document from internet
(this is not useful for us, but I guess it could be useful in an intranet configuration to avoid host all documents in the same server)

LAYER
...
METADATA
wfs_include_zip "http://www.server.org/path-to-file/license.pdf"

Or with this other option:

LAYER
...
METADATA
wfs_include_resource_in_zip_output "/path-to-file/*"

In this case the mapserver is request to include in zip file ALL the documents find in the folder.

Obviously this command could not be supported on mapscript to avoid that an user could remotely set the mapserver to retrieve an arbitrary file from the server.
:)

@rouault rouault self-assigned this Jun 3, 2014
rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Jun 11, 2014
rouault added a commit to mapserver/docs that referenced this issue Jun 11, 2014
@jratike80
Copy link

@jratike80 jratike80 commented Nov 2, 2015

Tested with Mapserver 7.0 and zipped Spatialite output with metadata:
wfs_additional_files_in_output" "c:/ms4w/apps/README_APPS.txt

Word fine.

@jratike80 jratike80 closed this Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.