I tought you were looking for the layer extent not just the extent of a shape.<br><br>Tamas<br><br><br><div class="gmail_quote">2009/4/7 Paul james <span dir="ltr"><<a href="mailto:pauljame@gmail.com">pauljame@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks! <br>But I resolved my problem using shapeObj, without OGR...<br>My code:<br><br> _layer.open();<br>
shapeObj _shape = new shapeObj((int)_layer.type);<br> _layer.getShape(_shape, -1, Convert.ToInt32(__id)); <br>
<br> _map.extent.maxx = _shape.bounds.maxx +0.1;<br> _map.extent.maxy = _shape.bounds.maxy + 0.1;<br> _map.extent.minx = _shape.bounds.minx - 0.1;<br> _map.extent.miny = _shape.bounds.miny - 0.1;<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Tue, Apr 7, 2009 at 3:29 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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><div><div></div><div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>