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

OUTPUTFORMAT MidMif - Zip archive - 7.0 #5155

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

OUTPUTFORMAT MidMif - Zip archive - 7.0 #5155

jonathanD00 opened this issue Aug 31, 2015 · 3 comments

Comments

@jonathanD00
Copy link

@jonathanD00 jonathanD00 commented Aug 31, 2015

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
Copy link
Contributor

@rouault rouault commented Aug 31, 2015

See mapserver/docs@3d3850d

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

@jonathanD00
Copy link
Author

@jonathanD00 jonathanD00 commented 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

rouault added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Sep 1, 2015
rouault added a commit 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 added a commit that referenced this issue Sep 1, 2015
@rouault
Copy link
Contributor

@rouault 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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