[mapserver-dev] isValidItem is not aware of the OGR special attributes

Tamas Szekeres szekerest at gmail.com
Thu Mar 4 15:13:03 EST 2010


I have been thinking about pushing this validation to the driver level
through a vtable function.
Not sure about the feasibility of such solution however.

Best regards,

Tamas


2010/3/4 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>

> Sounds like the assumption that msLayerGetItems() returns all items is not
> true... &$%@! Intuitively I would have done something
> like Alan suggests in the DATA statement with an alias and referred to the
> alias in the label item.
>
> Pondering how to fix. Reverting to the 5.4 msLayerWhichItems() setup I
> guess...
>
> Steve
> ________________________________________
> From: mapserver-dev-bounces at lists.osgeo.org [
> mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Alan Boudreault [
> aboudreault at mapgears.com]
> Sent: Wednesday, March 03, 2010 3:54 PM
> To: mapserver-dev at lists.osgeo.org
> Subject: Re: [mapserver-dev] isValidItem is not aware of the OGR special
>      attributes
>
> The "isValidItem" addition seems to break more than that. The following
> oracle
> labelitem field now fails in 5.6:
> LABELITEM "PROJECT_NAME||'&'||MMI"
>
> I let you imagine all the other possibilities we could have with all the
> different DB engines.
>
> See related ticket: http://trac.osgeo.org/mapserver/ticket/3342
>
> Alan
>
> On March 3, 2010 04:25:37 pm Tamas Szekeres wrote:
> > My second problem of the day is related to the addition of the
> isValidItem
> > check, see:
> > http://trac.osgeo.org/mapserver/ticket/3356
> >
> >
> > Best regards,
> >
> > Tamas
> >
>
> --
> Alan Boudreault
> Mapgears
> http://www.mapgears.com
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20100304/8e9c8b26/attachment.html


More information about the mapserver-dev mailing list