[Mapserver-users] PROBLEM WITH CLASS EXPRESSION CONNECTED WITH SHPMID

Tomasz Wlaz?owski wlazlowski at igpik.waw.pl
Tue Jun 8 00:47:14 PDT 2004


HELLO MAPSERVER USERS!

 

What I try to do is center to the selected feature in current map 
extent. How can I zoom to selected feature (features). I know that I 
should use some syntax with shpmid / shpext  but I DON’T KNOW HOW TO DO 
THIS.

 

PLEASE HELP ME to dissolve my little problem J

 In my map file I have “doubled shapefile”:

LAYER

    NAME PLOT


      DATA Cataster

    STATUS ON

    TYPE polygon

      LABELITEM "NUMER"

      LABELMAXSCALE 5000

      TRANSPARENCY 10

       CLASSITEM "NUMER"

        CLASS

         COLOR 245 245 220

         OUTLINECOLOR 0 0 0

            TEMPLATE "dzialki.html"

          LABEL

          COLOR 0 0 0

           TYPE BITMAP

          FONT arial-bold

          SIZE SMALL

          ANTIALIAS TRUE

          POSITION CC

          PARTIALS FALSE

          MINDISTANCE 250

          BUFFER 4

 

END

END

HEADER "dzialki_header.html"

FOOTER "dzialki_footer.html"

END

#------------------------------------------------------

LAYER # Query

    NAME QPLOT

    DATA Cataster

    STATUS OFF

    TYPE polygon

       CLASSITEM "NUMER"

        CLASS

         #  EXPRESSION ([NUMER] eq [value])

         COLOR 255 50 10

         OUTLINECOLOR 0 0 0

         END

 

END

 

 

In my html file I use this syntax:

<input type="hidden" name="layer" value="QPLOT">

<input type="hidden" name="map_QPLOT_class_expression" value="[NUMER]">

<input type="text" name="map_QPLOT_class_expression" size="5" 
maxsize="9" value="">

 

and it’s work fine. If I put some number in txtbox I get in the map 
window selected feature. But I ask one more time:

DOES ANYBODY KNOW HOW TO ZOOM TO THIS(THOSE) SELECTED FEATURES?????

 

 

HELLO MAPSERVER USERS!

 

What I try to do is center to the selected feature in current map 
extent. How can I zoom to selected feature (features). I know that I 
should use some syntax with [shpmid] but I DON’T KNOW HOW TO DO THIS.

 

PLEASE HELP ME to dissolve my little problem J

 In my map file I have “doubled shapefile”:

LAYER

    NAME PLOT


      DATA Cataster

    STATUS ON

    TYPE polygon

      LABELITEM "NUMER"

      LABELMAXSCALE 5000

      TRANSPARENCY 10

       CLASSITEM "NUMER"

        CLASS

         COLOR 245 245 220

         OUTLINECOLOR 0 0 0

            TEMPLATE "dzialki.html"

          LABEL

          COLOR 0 0 0

           TYPE BITMAP

          FONT arial-bold

          SIZE SMALL

          ANTIALIAS TRUE

          POSITION CC

          PARTIALS FALSE

          MINDISTANCE 250

          BUFFER 4

 

END

END

HEADER "dzialki_header.html"

FOOTER "dzialki_footer.html"

END

#------------------------------------------------------

LAYER # Query

    NAME QPLOT

    DATA Cataster

    STATUS OFF

    TYPE polygon

       CLASSITEM "NUMER"

        CLASS

         #  EXPRESSION ([NUMER] eq [value])

         COLOR 255 50 10

         OUTLINECOLOR 0 0 0

         END

 

END

 

 

In my html file I use this syntax:

<input type="hidden" name="layer" value="QPLOT">

<input type="hidden" name="map_QPLOT_class_expression" value="[NUMER]">

<input type="text" name="map_QPLOT_class_expression" size="5" 
maxsize="9" value="">

 

and it’s work fine. If I put some number in txtbox I get in the map 
window selected feature. But I ask one more time:

DOES ANYBODY KNOW HOW TO ZOOM TO THIS(THOSE) SELECTED FEATURES?????

 

 

 

 

 

 

 

HELLO MAPSERVER USERS!

 

What I try to do is center to the selected feature in current map 
extent. How can I zoom to selected feature (features). I know that I 
should use some syntax with [shpmid] but I DON’T KNOW HOW TO DO THIS.

 

PLEASE HELP ME to dissolve my little problem J

 In my map file I have “doubled shapefile”:

LAYER

    NAME PLOT


      DATA Cataster

    STATUS ON

    TYPE polygon

      LABELITEM "NUMER"

      LABELMAXSCALE 5000

      TRANSPARENCY 10

       CLASSITEM "NUMER"

        CLASS

         COLOR 245 245 220

         OUTLINECOLOR 0 0 0

            TEMPLATE "dzialki.html"

          LABEL

          COLOR 0 0 0

           TYPE BITMAP

          FONT arial-bold

          SIZE SMALL

          ANTIALIAS TRUE

          POSITION CC

          PARTIALS FALSE

          MINDISTANCE 250

          BUFFER 4

 

END

END

HEADER "dzialki_header.html"

FOOTER "dzialki_footer.html"

END

#------------------------------------------------------

LAYER # Query

    NAME QPLOT

    DATA Cataster

    STATUS OFF

    TYPE polygon

       CLASSITEM "NUMER"

        CLASS

         #  EXPRESSION ([NUMER] eq [value])

         COLOR 255 50 10

         OUTLINECOLOR 0 0 0

         END

 

END

 

 

In my html file I use this syntax:

<input type="hidden" name="layer" value="QPLOT">

<input type="hidden" name="map_QPLOT_class_expression" value="[NUMER]">

<input type="text" name="map_QPLOT_class_expression" size="5" 
maxsize="9" value="">

 

and it’s work fine. If I put some number in txtbox I get in the map 
window selected feature. But I ask one more time:

DOES ANYBODY KNOW HOW TO ZOOM TO THIS(THOSE) SELECTED FEATURES?????

 

HELLO MAPSERVER USERS!

 

What I try to do is center to the selected feature in current map 
extent. How can I zoom to selected feature (features). I know that I 
should use some syntax with [shpmid] but I DON’T KNOW HOW TO DO THIS.

 

PLEASE HELP ME to dissolve my little problem J

 In my map file I have “doubled shapefile”:

LAYER

    NAME PLOT


      DATA Cataster

    STATUS ON

    TYPE polygon

             LABELITEM "NUMER"

             LABELMAXSCALE 5000

             TRANSPARENCY 10

              CLASSITEM "NUMER"

        CLASS    

                COLOR 245 245 220

                OUTLINECOLOR 0 0 0

            TEMPLATE "dzialki.html"

                        LABEL

                        COLOR 0 0 0

                  TYPE BITMAP

                        FONT arial-bold

                        SIZE SMALL

                        ANTIALIAS TRUE

                        POSITION CC

                        PARTIALS FALSE

                        MINDISTANCE 250

                        BUFFER 4

 

END

END

HEADER "dzialki_header.html"

FOOTER "dzialki_footer.html"

END

#------------------------------------------------------

LAYER # Query

    NAME QPLOT

    DATA Cataster

    STATUS OFF

    TYPE polygon

              CLASSITEM "NUMER"

        CLASS    

         #  EXPRESSION ([NUMER] eq [value])

         COLOR 255 50 10

         OUTLINECOLOR 0 0 0

         END

 

END

 

 

In my html file I use this syntax:

<input type="hidden" name="layer" value="QPLOT">

<input type="hidden" name="map_QPLOT_class_expression" value="[NUMER]">

<input type="text" name="map_QPLOT_class_expression" size="5" 
maxsize="9" value="">

 

and it’s work fine. If I put some number in txtbox I get in the map 
window selected feature. But I ask one more time:

DOES ANYBODY KNOW HOW TO ZOOM TO THIS(THOSE) SELECTED FEATURES?????

 

 

 

 

 

 

 

 

 

 

 






More information about the MapServer-users mailing list