Hi all
About the ozi2vrt.bat for windows: I noticed there is a mistake in the
'path' line.  This one should be fine:

@REM Script ozi2vrt
@REM Este script toma como entrada un archivo .map de ozi y genera su
correspondiente .vrt en el mismo directorio
@REM Los espacios en los nombres de archivo son respetados. Nombres de
archivo con caracteres especiales como ñ o tildes fallaran
@REM Tienes que poner este archivo ozi2vrt.bat en la carpeta raiz de
QMapShack
@REM Uso: Click derecho sobre el fichero .map que quieres llevar a QMS, y
selecciona "Abrir con...".  Elige ozi2vrt.bat y al instante se crea el
ficheo .vrt en la misma carpeta.
@REM ----
@REM This script takes an OZI .map file and generates its correspondent
.vrt file in the same folder
@REM Filenames with special characters might fail.
@REM You must put this ozi2vrt.bat file in the QMapShack root folder.
@REM Usage: Right click on the .map file that you want to port to QMS,
then  " Open with..." , select ozi2vrt.bat, and the .vrt file is created in
the same folder.

@echo off
SET QMS_ROOT=%~dp0
path
%PATH%;%QMS_ROOT%;%QMS_ROOT%share;%QMS_ROOT%data;%QMS_ROOT%gdalplugins;%QMS_ROOT%sqldrivers
SET GDAL_DATA=%QMS_ROOT%data
SET GDAL_DRIVER_PATH=%QMS_ROOT%gdalplugins
SET PROJ_LIB=%QMS_ROOT%share
set mapfile=%1
set vrtfile=%mapfile:.map=.vrt%
@echo on
gdalwarp -of VRT %mapfile% %vrtfile%
@pause
@exit

Sorry for the inconvenience. :-)


2018-03-26 23:42 GMT+02:00 Mitxel <[email protected]>:

>
>
> Inspired by this discussion about ozi maps:
>
> https://sourceforge.net/p/qlandkartegt/mailman/message/34891344/
>
> I have created a script that takes an ozi .map file and generates the
> correspondent .vrt file in the same folder with two clicks.
>
> Yes I know, this can be done tipping a line in a terminal, but this way is
> more easy for most users.
>
> You can copy paste the scripts below and save in your disk as ozi2vrt.sh
> or  ozi2vrt.bat
> or just download from theese links
>
> ozi2vrt.sh
> <https://drive.google.com/open?id=1k7AtPLiau43P1xwkueJ37__iuF0LK048> for
> linux
>
> ozi2vrt.bat
> <https://drive.google.com/open?id=13ipPJoPD1QvG0Z2dB1sPy3FeG0e1Z9Gs> for
> windows
>
>
> Remarks:
>
> - You must put  ozi2vrt.bat file in the QMapShack root folder.
> - ozi2vrt.sh must have execute permission
>
> Usage:
>
> - Right click on the .map file that you want to port to QMS, then " Open
> With..."
> - Select  ozi2vrt.sh (ozi2vrt.bat) and the .vrt file is created in the
> same folder.
>
> The script is very simple and do not check for existing files, so be
> careful.
>
> (Sure, it could be improved)
>
> HTH :-) mitxel
>
> -----------------------------------
>
>
>  ozi2vrt.sh
>
>
> #!/bin/bash
> # Script ozi2vrt
> # Este script toma como entrada un archivo .map de ozi y genera su
> correspondiente .vrt en el mismo directorio
> # Los espacios en los nombres de archivo son respetados. Nombres de
> archivo con caracteres especiales como ñ o tildes fallaran
> # Uso: Click derecho sobre el fichero .map que quieres llevar a QMS, y
> selecciona "Abrir con...".  Elige ozi2vrt.sh y al instante se crea el
> ficheo .vrt en la misma carpeta.
> # ----
> # This script takes an OZI .map file and generates its correspondent .vrt
> file in the same folder
> # Filenames with special characters might fail.
> # Usage: Right click on the .map file that you want to port to QMS, then
> " Open With..." , select ozi2vrt.sh, and the .vrt file is created in the
> same folder.
>
>
> mapfile="$1"
>
> vrtfile="${mapfile%.*}.vrt"
>
> gdalwarp -of VRT "$mapfile" "$vrtfile"
>
>
>
>  ozi2vrt.bat
>
> @REM Script ozi2vrt
> @REM Este script toma como entrada un archivo .map de ozi y genera su
> correspondiente .vrt en el mismo directorio
> @REM Los espacios en los nombres de archivo son respetados. Nombres de
> archivo con caracteres especiales como ñ o tildes fallaran
> @REM Tienes que poner este archivo ozi2vrt.bat en la carpeta raiz de
> QMapShack
> @REM Uso: Click derecho sobre el fichero .map que quieres llevar a QMS, y
> selecciona "Abrir con...".  Elige ozi2vrt.bat y al instante se crea el
> ficheo .vrt en la misma carpeta.
> @REM ----
> @REM This script takes an OZI .map file and generates its correspondent
> .vrt file in the same folder
> @REM Filenames with special characters might fail.
> @REM You must put this ozi2vrt.bat file in the QMapShack root folder.
> @REM Usage: Right click on the .map file that you want to port to QMS,
> then  " Open with..." , select ozi2vrt.bat, and the .vrt file is created in
> the same folder.
>
> @echo off
> SET QMS_ROOT=%~dp0
> path=%PATH%;%QMS_ROOT%;%QMS_ROOT%;%QMS_ROOT%share;%QMS_ROOT%
> data;%QMS_ROOT%curl;%QMS_ROOT%gdalplugins;%QMS_ROOT%sqldrivers
> SET GDAL_DATA=%QMS_ROOT%data
> SET GDAL_DRIVER_PATH=%QMS_ROOT%gdalplugins
> SET PROJ_LIB=%QMS_ROOT%share
> set mapfile=%1
> set vrtfile= %mapfile:.map=.vrt%
> @ echo on
> gdalwarp -of VRT %mapfile% %vrtfile%
> @pause
> @ exit
>
>
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to