[prev in list] [next in list] [prev in thread] [next in thread]
List: postgis-users
Subject: [postgis-users] ogr2ogr in ASP
From: Gerry James <gerry.james () carteryx ! com>
Date: 2007-12-13 18:55:20
Message-ID: 00a601c83db9$b5c156d0$6701a8c0 () roca ! local
[Download RAW message or body]
I am trying to create an ASP page that will convert MapInfo TAB files to PG
on the fly. I have run into a number of problems doing this. I appear to
have overcome the permissions problems I was having, however, I still can't
get the translation to work. I am trying to accomplish all this by envoking
the WScript.Shell object and running ogr2ogr through the FWTools version.
Now I get no errors that I can use to debug the problem. My code revolves
around the following:
set wshell = CreateObject("WScript.Shell")
Set sexec = wshell.exec("C:\Program Files\FWTools2.0.0\setfw.bat")
lne = "ogr2ogr -f 'PostgreSQL' -a_srs 'EPSG:26909' PG:'host=localhost
user=postgres dbname=Foremore password=********' 'c:\tmp\All_Outcrop.TAB'
-nln test_all_outcrop"
Set sexec = wshell.exec(lne)
When I execute the ASP page I get no error and the PostGIS table I am hoping
for is not created. The syntax shown for the variable lne above works just
fine from the FWTools Shell app. Does anyone have any ideas on how I can
make this work?
Thanks
Gerry
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic