[Mapserver-users] Access to "FEAUTRE" using MapScript

Sean Gillies sgillies at frii.com
Wed Jul 14 14:57:24 EDT 2004


Manuel, Lowell:

There's been a layerObj.addFeature() in the SWIG mapscript for some
time, but is absent from PHP mapscript.

Lowell, I'm with you on this ... I don't think that inserting feature
data into the mapObj is a good practice.  But the capability is there.

cheers,
Sean

On Jul 14, 2004, at 12:14 PM, Lowell Filak wrote:

> I'm not a developer but... I'm not sure that the feature object should
> be exposed to mapscript.
> The idea is that "feature" allows the dynamic creation of entities via
> the mapserv cgi whereas in MapScript you can already create a point
> object dynamically.
>
> Lowell
>
> The following message was sent by
> =?iso-8859-1?Q?Manuel_Marichal_P=E9rez?= <mmarichal at buscamap.com> on
> Wed, 14 Jul 2004 09:52:20 +0100.
>
>> Hi all. I've got a layer like this in my map:
>>
>> LAYER
>>  NAME "Logo"
>>  TYPE POINT
>>  STATUS ON
>>  TRANSFORM FALSE
>>  FEATURE POINTS 485 15 END END
>>  CLASS
>>   SYMBOL "LOGO"
>>  END
>> END
>>
>> I'd like to modify the x-coordinate of the logo from my php code. How
>> can I access to "FEATURE" member with MapScript?. There is not a
>> "getFeature" method in the Layer class, isn't?.
>>
>> Thanks in advance
>> Manuel Marichal Pérez
>> mmarichal at buscamap.com
>>
>>





More information about the mapserver-users mailing list