3.6 migration to 4.2, Lines & Points, Symbols & Queries, GMAP
Björn Schaffrath
2BJOERNS at GMX.DE
Tue Sep 28 02:54:57 PDT 2004
TCHaddad schrieb:
> Listers,
>
> We have a strange migration issue that we are struggling to solve. In our recent migration of a GMAP-based application from MS 3.6.0 to 4.2.2, we seem to have lost the ability to query POINT and LINE files.
>
> Below are examples from our MAP file of each layer type. All 3 layers draw as expected in 4.2 with the various specified symbols. The first is a POLYGON file and queries on it and all POLYGON files behave as expected. Next is a LINE and then a POINT layer, neither of which return any query results, although they should, and did under 3.6.
>
> I tried drawing the point layer with huge symbols to make sure that I was definitely hitting the item I was trying to Query, but
> it made no difference. Am somewhat stumped as to where to look next as I can't think why POLYGON queries would work but others would not. The only other variable in the below is the SYMBOL type: the first is VECTOR, the second is ELIPSE and the third is PIXMAP.
>
> Any ideas would be great...
>
> Tanya
>
>
> -----------fwd----------->
>
>
> LAYER
> NAME localpark
> GROUP Landmarks
> METADATA
> "DESCRIPTION" "Local Park"
> "RESULT_FIELDS" "NAME"
> END
> STATUS OFF
> TYPE POLYGON
> LABELITEM "Name"
> TILEINDEX "data\park"
> MAXSCALE 700000
> CLASS
> NAME 'Local Park'
> MAXSCALE 100000
> TEMPLATE "ttt_query.html"
> STYLE
> COLOR 155 205 155
> SYMBOL 'trans2'
> END
> LABEL
> ANGLE AUTO
> COLOR 69 139 116
> SIZE 8
> TYPE TRUETYPE
> FONT ARIAL_NB
> POSITION CC
> END
> END
> END
>
> LAYER
> NAME ushighway
> GROUP Transportation
> METADATA
> "DESCRIPTION" "US highway"
> "RESULT_FIELDS" "NAME"
> END
> STATUS OFF
> TYPE LINE
> TILEINDEX "data\us_hi"
> MAXSCALE 3000000
> CLASS
> MAXSCALE 100000
> NAME "US Highway"
> TEMPLATE "ttt_query.html"
> STYLE
> SYMBOL 'circle1'
> COLOR 54 54 54
> SIZE 3
> END
> OVERLAYSYMBOL 'circle1'
> OVERLAYCOLOR 25 25 112
> OVERLAYSIZE 1
> END
> END
>
>
> LAYER
> NAME sample_sites
> GROUP Sample_Sites
> METADATA
> "DESCRIPTION" "Sample Site"
> "RESULT_FIELDS" "NAME ID"
> END
> STATUS OFF
> TYPE POINT
> DATA "data\locations"
> CLASS
> NAME "Sample Site"
> TEMPLATE "ttt_query.html"
> STYLE
> SYMBOL 'red_x'
> SIZE 1
> END
> END
> END
>
>
>
> ________________________________________________________________
>
>
Hi Tanya,
I´ve got the same problem a few weeks ago. you have to set
toleranceunits and tolerancesize in your mapfiles (see the docu).
björn
More information about the MapServer-users
mailing list