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

OUTPUTFORMAT MidMif - Zip archive - 7.0 #5155

Closed
jonathanD00 opened this Issue Aug 31, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@jonathanD00

I try to create an OUTPUFORMAT MIDMIF in zip archive :

OUTPUTFORMAT   
    NAME "MultiMIDMIF"
    DRIVER "OGR/MapInfo File"   
    FORMATOPTION "STORAGE=filesystem"  
    FORMATOPTION "FORM=zip"   
    FORMATOPTION "DSCO:FORMAT=MIF"
    FORMATOPTION "FILENAME=result.zip" 
END

I get this error :

msOGRWriteFromQuery(): General error message. OGR CreateDataSource failed for '/tmp/559cd585_334a_0/result.zip' with driver 'MapInfo File'.

If I change the line :

FORMATOPTION "FILENAME=result.zip"

by

FORMATOPTION "FILENAME=result"

I get my archive, but wihout the extention .zip !

Do you know this problem ?

Thank you.

@rouault

This comment has been minimized.

Show comment
Hide comment
@rouault

rouault Aug 31, 2015

Contributor

See mapserver/docs@3d3850d

So try FORMATOPTION "FILENAME=result.mif.zip"

Contributor

rouault commented Aug 31, 2015

See mapserver/docs@3d3850d

So try FORMATOPTION "FILENAME=result.mif.zip"

@jonathanD00

This comment has been minimized.

Show comment
Hide comment
@jonathanD00

jonathanD00 Sep 1, 2015

Thank you for your proposal.

I have try your suggestion, but it doesn't work.
I get the same error.

More information :
If I set FORMATOPTION "FILENAME=result.mif" (or FORMATOPTION "FILENAME=result")
And try it with FireFox, firefox suggest to "open with : Windows" or "save the file".
If I save the file, I get result.mif (or result) and I can unzip file with my favorite unzip-Soft.
If I "open with - Windows", windows open unzip and all is OK. Moreover, I get a tempory file with name "result.mif.zip" (or result.zip).

I don't understand.

Thank you

Thank you for your proposal.

I have try your suggestion, but it doesn't work.
I get the same error.

More information :
If I set FORMATOPTION "FILENAME=result.mif" (or FORMATOPTION "FILENAME=result")
And try it with FireFox, firefox suggest to "open with : Windows" or "save the file".
If I save the file, I get result.mif (or result) and I can unzip file with my favorite unzip-Soft.
If I "open with - Windows", windows open unzip and all is OK. Moreover, I get a tempory file with name "result.mif.zip" (or result.zip).

I don't understand.

Thank you

rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Sep 1, 2015

rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Sep 1, 2015

rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Sep 1, 2015

rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Sep 1, 2015

@rouault

This comment has been minimized.

Show comment
Hide comment
@rouault

rouault Sep 1, 2015

Contributor

Fixed in master and branch-7-0

Contributor

rouault commented Sep 1, 2015

Fixed in master and branch-7-0

@rouault rouault closed this Sep 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment