<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Ok thanks that cleared it up!! My objective "simply" is to get
feature number X from a layer (postgis). I'll look at getShape() .
Thank you also for links to the trunk migration guides.<br>
Francesco <br>
<br>
Il 02/04/2011 11:26, Armin Burger ha scritto:
<blockquote cite="mid:4D96EBE3.4070003@gmx.net" type="cite">Francesco
<br>
<br>
getShape() has been deprecated in MS <=5.6 and has been
re-introduced (with modifications) in MS 6, and getFeature() that
replaced getShape() in MS <=5.6 has been removed in MS 6, quite
clear, isn't it? ;-)
<br>
<br>
There's a migration guide Mapscript 5.6->6 and an RFC hat
describe Mapscript changes, though I don't know if that reflects
the final status or if there have been additional changes in the
meantime:
<br>
<a class="moz-txt-link-freetext" href="http://www.mapserver.org/trunk/mapscript/php/migration_guide.html">http://www.mapserver.org/trunk/mapscript/php/migration_guide.html</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.mapserver.org/trunk/development/rfc/ms-rfc-65.html">http://www.mapserver.org/trunk/development/rfc/ms-rfc-65.html</a>
<br>
<br>
armin
<br>
<br>
<br>
On 02/04/2011 10:52, francesco wrote:
<br>
<blockquote type="cite">Hello everyone,
<br>
Thanks to mapserver developers/users for their time to help out
on this
<br>
list.
<br>
I am trying out the new Mapserver 6.0.0, compiled it for windows
and now
<br>
I am testing it.
<br>
Came across the following problem:
<br>
on mapscript I cannot call the "getFeature($i)" function; I get
the
<br>
following message
<br>
/Call to undefined method layerObj::getFeature() /
<br>
<br>
The migration guide reads:
<br>
/layer.getShape(int tileindex, int shapeindex)) has been
deprecated and
<br>
renamed to layer.getFeature(int shapeindex [, int tileindex =
-1]) to
<br>
match the SWIG MapScript equivalent./
<br>
<br>
But it seems that function does not exist! :-)
<br>
<br>
Am I missing out on something?
<br>
<br>
Cheers,
<br>
--
<br>
**************************************************
<br>
*Francesco Pirotti*
<br>
Dep. TESAF
<br>
CIRGEO – Interdepartmental Research Center on Cartography
Photogrammetry
<br>
Remote Sensing and G.I.S.
<br>
University of Padova
<br>
Web: <a class="moz-txt-link-freetext" href="http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm">http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm</a>
<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:francesco.pirotti@unipd.it">francesco.pirotti@unipd.it</a>
<a class="moz-txt-link-rfc2396E" href="mailto:francesco.pirotti@unipd.it"><mailto:francesco.pirotti@unipd.it></a>
<br>
Phone: +39 049 827 2710
<br>
Phone: +39 349 55 39 261
<br>
**************************************************
<br>
<br>
<br>
<br>
_______________________________________________
<br>
mapserver-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
<br>
</blockquote>
_______________________________________________
<br>
mapserver-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
<br>
<br>
<br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<font face="Arial, Helvetica, sans-serif" size="-1">
**************************************************<br>
<b>Francesco Pirotti</b> <br>
Dep. TESAF <br>
CIRGEO – Interdepartmental Research Center on Cartography
Photogrammetry <br>
Remote Sensing and G.I.S. <br>
University of Padova <br>
Web: <a
href="http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm">http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm</a>
<br>
Email: <a href="mailto:francesco.pirotti@unipd.it">francesco.pirotti@unipd.it</a>
<br>
Phone: +39 049 827 2710 <br>
Phone: +39 349 55 39 261<br>
**************************************************
</font></div>
</body>
</html>