Label Join {Scanned}

Siki Zoltan siki at AGT.BME.HU
Tue Oct 26 15:21:51 EDT 2004


Hi,

You can join a dbf file to shape (which has a dbf too).
But I've used it in queries.
You must define a JOIN block in the layer definition.

LAYER
        NAME base
        DATA ...        # use your data instead of ...
        TYPE ...
        CLASS
                TEMPLATE ...
        END
        HEADER ...
        FOOTER ...

        JOIN    # one-to-one join
                NAME joined
                TABLE the_name_of_dbf
                FROM  join_column_in_base
                TO    join_column_in_joined
        END
END

After it you can refer to the joined columns joined_columnName.
It works me in the query template.

Bye
Zoltan


On Tue, 26 Oct 2004, Sylvain Beorchia wrote:

> Hi list,
>
> Is there any way to make a JOIN between 2 DBF for labelling ?
> I read somewhere that it was impoosible, but that was 2 years ago..so what about now ?
>
> Thanks.
>
> Sylvain.



More information about the mapserver-users mailing list