<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18203" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Tamas, thank you.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried using Npgsql and mapscript_csharp and
I can successfully connect to the database, but now I suppose I need .map files
saved locally to get things working? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Actually I am in the middle of choosing whether it
is better to use SharpMap or Mapserver's C# libraries for building a desktop
app? What are your (and everybody's else's) recommendations and suggestions
about it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very much,</FONT></DIV>
<DIV><FONT face=Arial size=2>Matej</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=szekerest@gmail.com href="mailto:szekerest@gmail.com">Tamas
Szekeres</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=matej@matnet.net
href="mailto:matej@matnet.net">Matej</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=mapserver-users@lists.osgeo.org
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, April 07, 2009 10:17
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [mapserver-users]
getExtent(c#) with Postgis data ...</DIV>
<DIV><BR></DIV>Matej<BR><BR>Yes it's definitely the case.<BR><BR>You
application should set a reference to the managed mapscript_csharp.dll
assembly and it will implicitly load furher unmanaged dlls to provide the
desired functionality.<BR><BR>Best regards,<BR><BR>Tamas<BR><BR><BR>
<DIV class=gmail_quote>2009/4/7 Matej <SPAN dir=ltr><<A
href="mailto:matej@matnet.net">matej@matnet.net</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>this might not be directly connected but I am
planning to build a client desktop app which should be able to connect to
the PostGIS db that is running on the remote server and display objects from
it / add new etc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this possible in C# with fwtools without the
need to have the Mapserver running on every client computer?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks and sorry for interrupting,</FONT></DIV>
<DIV><FONT face=Arial size=2>Matej</FONT></DIV><FONT color=#888888></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=szekerest@gmail.com href="mailto:szekerest@gmail.com"
target=_blank>Tamas Szekeres</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B>
<A title=pauljame@gmail.com href="mailto:pauljame@gmail.com"
target=_blank>Paul james</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Cc:</B>
<A title=mapserver-users@lists.osgeo.org
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, April 07, 2009 8:29 PM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B>
Re: [mapserver-users] getExtent(c#) with Postgis data ...</DIV>
<DIV><BR></DIV>Paul,<BR><BR>You can refer to the ogrinfo C# sample
application in the gdal source tree:<BR><A
href="http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs"
target=_blank>http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs</A><BR><BR>Best
regards,<BR><BR>Tamas<BR><BR><BR><BR>
<DIV class=gmail_quote>2009/4/7 Paul james <SPAN dir=ltr><<A
href="mailto:pauljame@gmail.com"
target=_blank>pauljame@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Thanks
Tamas...<BR><BR>But now I´m a little lost... Am I supposed to create a
OGR layer?<BR>Do you have any sample how to get extent´s layer using
OGR?<BR><FONT color=#888888><BR>P</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres
<SPAN dir=ltr><<A href="mailto:szekerest@gmail.com"
target=_blank>szekerest@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Choose
a package with the best match for your compiler and architecture from
here:<BR><A href="http://vbkto.dyndns.org:1280/sdk/index.html"
target=_blank>http://vbkto.dyndns.org:1280/sdk/index.html</A>
<DIV>
<DIV></DIV>
<DIV><BR><BR>Best regards,<BR><BR>Tamas<BR><BR><BR><BR>
<DIV class=gmail_quote>2009/4/6 Paul james <SPAN dir=ltr><<A
href="mailto:pauljame@gmail.com"
target=_blank>pauljame@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Where
can I find ogr_csharp.dll ?<BR><BR>Thanks Tamas!<BR><FONT
color=#888888><BR>Paul</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Apr 6, 2009 at 6:22 PM, Tamas
Szekeres <SPAN dir=ltr><<A href="mailto:szekerest@gmail.com"
target=_blank>szekerest@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Paul,<BR><BR>Unfortunately
this function is not implemented by the MapServer postgis driver,
you might want to use the OGR C# API (ie. ogr_csharp.dll)
for this purpose.
<DIV>
<DIV></DIV>
<DIV><BR><BR>Best regards,<BR><BR>Tamas<BR><BR><BR><BR>
<DIV class=gmail_quote>2009/4/6 Paul james <SPAN dir=ltr><<A
href="mailto:pauljame@gmail.com"
target=_blank>pauljame@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">All
value from getExtent (Postgis layer) is :
3.4028234663852886E+38<BR><BR>Is it a bug?
<DIV>
<DIV></DIV>
<DIV><BR><BR><BR>
<DIV class=gmail_quote>On Mon, Apr 6, 2009 at 5:56 PM, Tamas
Szekeres <SPAN dir=ltr><<A href="mailto:szekerest@gmail.com"
target=_blank>szekerest@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Why
don't? That function have already been exposed for
<B>layerObj</B> with the following signature:<BR><BR><B>public
rectObj getExtent(void)</B><BR><BR>Best
regards,<BR><BR>Tamas<BR><BR><BR><BR>
<DIV class=gmail_quote>2009/4/6 Paul james <SPAN
dir=ltr><<A href="mailto:pauljame@gmail.com"
target=_blank>pauljame@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>Hello, It seems that getExtent (c#) is not
implemented...<BR>Any other solution to get extent of a
layer using mapscript?<BR><FONT
color=#888888><BR>Paul<BR></FONT><BR></DIV>_______________________________________________<BR>mapserver-users
mailing list<BR><A
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV>
<P></P>
<HR>
<DIV class=im>
<P></P>_______________________________________________<BR>mapserver-users
mailing list<BR><A href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>