[mapserver-dev] imagemap outputdriver mapimagemap.c
Frank Warmerdam
warmerdam at pobox.com
Tue Apr 26 10:57:22 EDT 2011
On 11-04-23 12:51 AM, Doug Willams wrote:
> Hello,
>
> I am working on the outputformat imagemap output driver routines found in
> the mapimagemap.c source file.
>
> For lines and polygons, mapimagemap.c receives a reference to the shape
> object. I thought the shape object would have many values, either for all
> the data fields or at least for the metadata result_fields defined for the
> layer in the map file. But there is only one value, for the classitem, in
> the values array. Can the other data items be accessed? Is it necessary to
> perform a query to produce a resultcache in order to get the data values?
> Here is how I write the values to a string, to see what is there ... works
> fine, but there is only ever one value, from the classitem field [and the
> index of course].
...
> I must be missing something! How is the values array properly populated
> with the shape's data field values?
Doug,
MapServer tries to only fetch the field needed for rendering - often just
the classitem - when fetching features for rendering. Unfortunately I don't
know a way to trick it into fetching all the fields for rendering - perhaps
Steve can suggest something.
Best regards,
-
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the mapserver-dev
mailing list