view contrib/installer/example/RunExample.bat @ 316:5e3a40a84539

Some minor cleanups * src/java/de/intevation/mxd/reader/FeatureLayerReader.java: Add Debug output if Layer class is not implemented * src/java/de/intevation/mxd/reader/RasterLayerReader.java: Remove unused import * src/java/de/intevation/mxd/reader/WMSLayerReader.java: Tune down warnings about min/max scale
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 17 Sep 2012 17:10:44 +0200
parents c023b4978663
children 5e7e6d99f997
line wrap: on
line source
@echo off
if "%1" == "setenv" goto setenv

%comspec% /k RunExample.bat setenv %1
goto exit

:setenv
@echo Setting environment for using MXD2map based on gisinternals.com windows builds.
@echo See http://mxd2map.org and http://gisinternals.com/sdk/ for details.

if "%2"=="hideoci" goto hideoci

set ocipath=0
set _path="%PATH:;=" "%"
for %%p in (%_path%) do if not "%%~p"=="" if exist %%~p\oci.dll set ocipath=1

if "%ocipath%"=="0" goto hideoci
@echo WARNING: If you encounter problems with missing oci libraries then type:
@echo   MXD2mapShell hideoci
goto setenv2

:hideoci
@echo Hiding the OCI plugin library.
if not exist %CD%\ms_6.1-dev\bin\gdal\plugins-optional mkdir %CD%\ms_6.1-dev\bin\gdal\plugins-optional
if exist %CD%\ms_6.1-dev\bin\gdal\plugins\ogr_OCI.dll move %CD%\ms_6.1-dev\bin\gdal\plugins\ogr_OCI.dll %CD%\ms_6.1-dev\bin\gdal\plugins-optional\ogr_OCI.dll
if exist %CD%\ms_6.1-dev\bin\gdal\plugins\gdal_GEOR.dll move %CD%\ms_6.1-dev\bin\gdal\plugins\gdal_GEOR.dll %CD%\ms_6.1-dev\bin\gdal\plugins-optional\gdal_GEOR.dll

REM SEE Details about the installation of arcobjects.jar!!
REM http://forums.arcgis.com/threads/17398-Unable-to-initialize-ArcObjects-environment-%28Java-API%29
REM http://forums.arcgis.com/threads/12833-ArcGIS-Server-initialize-license-%28Java-version%29
REM SEE Details about the installation of arcobjects.jar!!
:setenv2
SET PATH=C:\Program Files\ArcGIS\DeveloperKit10.0\java\jre\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\ArcGIS\Desktop10.0\bin;C:\Program Files\ArcGIS\Desktop10.0\java\lib;C:\Program Files\ArcGIS\DeveloperKit10.0\java\tools\ant\bin;%CD%\ms_6.1-dev\bin;%CD%\ms_6.1-dev\bin\gdal\python\osgeo;%CD%\ms_6.1-dev\bin\proj\apps;%CD%\ms_6.1-dev\bin\gdal\apps;%CD%\ms_6.1-dev\bin\ms\apps;%CD%\ms_6.1-dev\bin\gdal\csharp;%CD%\ms_6.1-dev\bin\ms\csharp;%CD%\ms_6.1-dev\bin\curl;%CD%\ms_6.1-dev\bin\ms\java;%PATH%
SET GDAL_DATA=%CD%\ms_6.1-dev\bin\gdal-data
SET GDAL_DRIVER_PATH=%CD%\ms_6.1-dev\bin\gdal\plugins
SET PYTHONPATH=%CD%\ms_6.1-dev\bin\gdal\python\osgeo
SET PROJ_LIB=%CD%\bin\proj\SHARE
SET CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem
SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26

java -jar mxd2map.jar -m example\example.mxd -t example\template.map -a "%HOMEDRIVE%%HOMEPATH%\MXD2map\example\output.map"

:exit
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)