Pgsql2shp使用VB.NET和visual studio 2013 [英] Pgsql2shp using VB.NET and visual studio 2013

查看:68
本文介绍了Pgsql2shp使用VB.NET和visual studio 2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用visual studio 2013创建一个桌面应用程序,我想使用pgsql2shp从应用程序加载shapefile。但是,使用的cmd字符串l没有返回任何结果



我尝试过:



这里是代码

Dim Cmd As String = - u+ userName + - h+ Hostname + - p+3128+ - P + pssword + - f+路径+\+ layerName +。shp++ dbname ++ layerName

解决方案

不是工作可能是因为你的命令行参数和它们的值之间根本没有空格。



如果你学会使用调试器,你可以很容易地想出来。

I'm creating a desktop application with visual studio 2013 and l want to load shapefiles from the application using pgsql2shp. However, the cmd string l used is not returning any result

What I have tried:

here is the code
Dim Cmd As String = "-u" + userName + "-h" + Hostname + "-p" + "3128" + "-P" + pssword + "-f" + path + "\" + layerName + ".shp" + "" + dbname + "" + layerName

解决方案

It's not working probably because you have no spaces at all between your command line arguments nor their values.

You could have easily figured this out if you learn to use the debugger.


这篇关于Pgsql2shp使用VB.NET和visual studio 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆