getShape and getFeature

Sean Gillies sgillies at FRII.COM
Tue Dec 21 10:10:01 PST 2004


On Dec 21, 2004, at 10:22 AM, Eduin Carrillo wrote:

>  --- Sean Gillies <sgillies at FRII.COM> escribió:
>> Eduin,
>>
>> The getShape method works as it always did.  The getFeature method is
>> explained in mapscript/doc/mapscript.txt and
>> mapscript/doc/querying-HOWTO.txt.
>>
>> Sean
>>
>> --
>> Sean Gillies
>> sgillies at frii dot com
>> http://users.frii.com/sgillies
>>
>
> Thanks Sean.
>
> ArcGIS reports this error on GetFeature with the identify tool:
>
> Warning:  array_keys(): The first argument should be an array in
> /usr/local/apache2/htdocs/servlet/GetFeatures.php on line 396
>
> Seems getShape are not restoring values as expected(array). I think is 
> not a
> IMSEmu problem.
>
>   ...
>   $ashape = $lyr->getShape(-1, 0);
>   $attributeCount = 0;
>   $namearray = array_keys($ashape->values);
>   ...
>

Eduin,

My mistake ... I thought you were talking about the IMS emulator for 
Perl and the Perl mapscript.  I'm not a PHP user and I don't have any 
experience that can help you.

Disregard my references to those documents, they will not help you with 
PHP mapscript.

Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies


More information about the MapServer-users mailing list