[mapserver-users] ogrinfo not recognized

Robert Sanson Robert.Sanson at asurequality.com
Mon Oct 31 13:11:38 PDT 2016


Have you tried semi-colons between the parameters?

“MySQL:DatabaseName;host=Server;user=myUserName;password=myPassword;port=myPort”

From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vogt, Robert (RCIS)
Sent: Tuesday, 1 November 2016 8:53 a.m.
To: 'Marco Afonso' <mafonso333 at gmail.com>; mapserver <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] ogrinfo not recognized

Thanks for the reply, I’m not using MS4w because of some restrictions I have.

I did figure out that I needed to run ogrinfo like this though “.\ogrinfo”

This at least launched ogrinfo however passing my connection string “MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort”
caused ogrinfo to crash…does the connection string look correct?  Is there somewhere an error might have been written?

Thanks for the help!!

From: Marco Afonso [mailto:mafonso333 at gmail.com]
Sent: Monday, October 31, 2016 3:26 PM
To: Vogt, Robert (RCIS); mapserver
Subject: Re: [mapserver-users] ogrinfo not recognized

Hello,

If you are using MapSever for Windows (MS4W), first you need to run setenv.bat located in the ms4w directory.

This will add libraries paths to windows enviroment variable.

2016-10-31 18:50 GMT+00:00 Vogt, Robert (RCIS) <Robert.Vogt at rcis.com<mailto:Robert.Vogt at rcis.com>>:
I'm trying to test my connection string in ogrinfo.
These are the steps I'm taking...

1. Open PowerShell as administrator
2. Navigate to directory where ogrinfo.exe is located
3. Enter command "ogrinfo MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=myPort"

Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not recognized as the name of a cmdlet"

Not sure what I am doing wrong?
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Regards,
Marco Afonso
http://goo.gl/ZDtQjm
[https://dl.dropboxusercontent.com/u/17607469/qr.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20161031/9bb56652/attachment.html>


More information about the mapserver-users mailing list