[ka-Map-users] fail in search function

Pje pjebra at gmail.com
Mon Jul 17 07:34:11 EDT 2006


You need to add in your layer metadata this string:
searchfield "TEXTSTRING"

On 7/17/06, José Manuel Cerrejón González <gis at mapas-sll.com> wrote:
> Hi,
>
> I don't know if the search function is 100% implemented, but when I
> input "COSO" (a street name in the shape), no string is found:
>
> --------------------
> Mon, 17 Jul 2006 10:07:13
> Search string: COSO
> No results for all layers with query string: "//"
> --------------------
>
> This is the layer in the map file:
> --------------------
> LAYER
>   NAME "Nombre Calles"
>   TYPE POINT
>   STATUS ON
>   GROUP "Nombre Calles"
>   DATA nombres_calles-urb-txt         # shp name
>   LabelItem "TEXTSTRING"             # column name in the shape
>   LABELANGLEITEM "TEXT_ANGLE"         # rotation
>   CLASSITEM "TEXTSTRING"
>   TEMPLATE ttt_query.html
>   CLASS
>     NAME "Nombre Calles"
>     LABEL                                                    # label
>       COLOR  0 0 0
>       FONT sans-italic
>       TYPE truetype
>       SIZE 8
>       PARTIALS FALSE
>       ANTIALIAS TRUE
>       OUTLINECOLOR 255 255 255
>     END
>     COLOR 0 0 0
>   END
>   METADATA
>     "queryable" "true"
>   END
> END # Nombre Calles
> --------------------
>
> Obviously there are a row with the column TESTSTRING called COSO
>
> What's wrong?
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>



More information about the ka-Map-users mailing list