[mapserver-users] layerObj queryByPoint problem

Tamas Szekeres szekerest at gmail.com
Thu Nov 24 01:44:38 PST 2011


Hi,

The query with this mapfile works for me. What is the error message
specifically? Could you provide your C# code sample?

Best regards,

Tamas



2011/11/24 kirill bogdanov <bogdanov8 at gmail.com>

> Hi, i have a problem with queryByPoint as well as queryByRect in layer
> class
> - they always return MS_FAILURE also as in mapObj class.
> I am coding in c# for desktop not for web.
> And I have a template in class of layer. Here is my files:
> map file
>
> MAP
>  EXTENT -180 -183.1126335 180 176.8873665
>  FONTSET "../fonts/fonts.list"
>  IMAGECOLOR 255 255 255
>  IMAGETYPE "png24"
>  NAME "MS"
>  SHAPEPATH "../data"
>  SIZE 1024 1024
>  STATUS ON
>  SYMBOLSET "../symbols/symbols35.sym"
>  TRANSPARENT TRUE
>  UNITS METERS
>
>  OUTPUTFORMAT
>    NAME "png24"
>    MIMETYPE "image/png"
>    DRIVER "AGG/PNG"
>    EXTENSION "png"
>    IMAGEMODE RGBA
>    TRANSPARENT TRUE
>  END # OUTPUTFORMAT
>
>  PROJECTION
>    "proj=merc"
>    "lon_0=0"
>    "lat_ts=0"
>    "x_0=0"
>    "y_0=0"
>    "a=6378137"
>    "b=6378137"
>    "units=m"
>    "no_defs"
>  END # PROJECTION
>  LEGEND
>    IMAGECOLOR 255 255 255
>    KEYSIZE 20 10
>    KEYSPACING 5 5
>    LABEL
>      SIZE MEDIUM
>      COLOR 0 0 0
>      OFFSET 0 0
>      SHADOWSIZE 1 1
>      TYPE BITMAP
>    END # LABEL
>    STATUS OFF
>  END # LEGEND
>
>  QUERYMAP
>    COLOR 255 255 0
>    SIZE -1 -1
>    STATUS OFF
>    STYLE HILITE
>  END # QUERYMAP
>
>  SCALEBAR
>    COLOR 0 0 0
>    IMAGECOLOR 255 255 255
>    INTERVALS 4
>    LABEL
>      SIZE MEDIUM
>      COLOR 0 0 0
>      OFFSET 0 0
>      SHADOWSIZE 1 1
>      TYPE BITMAP
>    END # LABEL
>    SIZE 200 3
>    STATUS OFF
>    UNITS MILES
>  END # SCALEBAR
>
>  WEB
>  END # WEB
>
> LAYER
>    DATA "\\factinf\filestorage\dc4e2278-8b12-4b80-a6dc-742ce774d1aa\world"
>    EXTENT -180 -89.9 180 83.674733
>    NAME "\\factinf\filestorage\dc4e2278-8b12-4b80-a6dc-742ce774d1aa"
>    PROJECTION
>      "proj=longlat"
>      "ellps=WGS84"
>      "datum=WGS84"
>      "no_defs"
>    END # PROJECTION
>    STATUS ON
>    TILEITEM "location"
>    TOLERANCE 100
>    TYPE POLYGON
>    UNITS METERS
>    CLASS
>      NAME "The World"
>      STYLE
>        ANGLE 0
>        COLOR 0 0 0
>        OFFSET 0 0
>      END # STYLE
>      TEMPLATE "c:\ms4w\apps\tutorial\htdocs\template.html"
>    END # CLASS
>    FEATURE
>      POINTS
>      -92.22255 14.519233
>      -92.1567 14.619833
>      -92.1863 14.808033
>      -92.111 15.0177
>      -92.1379 15.0876
>      -92.1567 15.105533
>      -92.2347 15.123467
>      -92.28845 15.170067
>      -92.2427 15.268633
>      -92.0787 15.5052
>      -91.8905 15.7633
>      -91.6862 16.075133
>      -91.62435 16.0823
>      -91.33665 16.073367
>      -90.70745 16.084133
>      -90.4977 16.082333
>      -90.46545 16.098467
>      -90.45735 16.188067
>      -90.39285 16.290233
>      -90.3794 16.3655
>      -90.3794 16.395967
>      -90.41975 16.421067
>      -90.6617 16.5089
>      -90.6913 16.535767
>      -90.7128 16.655867
>      -90.77735 16.720367
>      -90.89565 16.790267
>      -91.11075 16.865533
>      -91.20755 16.9193
>      -91.36345 17.112867
>      -91.36345 17.1469
>      -91.33925 17.166633
>      -91.25325 17.180967
>      -90.9467 17.209633
>      -90.9494 17.499967
>      -90.96825 17.7455
>      -90.9521 17.774167
>      -90.91985 17.783133
>      -90.39555 17.772367
>      -89.76365 17.758033
>      -89.2017 17.7688
>      -89.1316 17.771967
>      -89.0816 17.7742
>      -89.0985 17.556067
>      -89.12545 17.1805
>      -89.1373 16.810567
>      -89.15585 16.4474
>      -89.19635 16.012267
>      -89.19295 15.9628
>      -89.1643 15.933567
>      -88.9506 15.905167
>      -88.9213 15.8822
>      -88.88855 15.874167
>      -88.8472 15.878767
>      -88.81445 15.878767
>      -88.774 15.863833
>      -88.68785 15.78
>      -88.6792 15.754733
>      -88.68785 15.7111
>      -88.68095 15.700767
>      -88.6568 15.691567
>      -88.61545 15.690433
>      -88.5948 15.698467
>      -88.59305 15.7065
>      -88.6103 15.724867
>      -88.6103 15.738667
>      -88.58275 15.771967
>      -88.56375 15.783467
>      -88.53105 15.783467
>      -88.4785 15.771967
>      -88.45265 15.7685
>      -88.4096 15.7777
>      -88.38545 15.778833
>      -88.351 15.767367
>      -88.31135 15.727167
>      -88.23725 15.691567
>      -88.3148 15.644467
>      -88.51955 15.3572
>      -88.64485 15.2584
>      -88.88475 15.135133
>      -89.0299 15.092333
>      -89.18425 15.038367
>      -89.2041 15.0231
>      -89.21175 14.993533
>      -89.198 14.943633
>      -89.2576 14.8805
>      -89.2698 14.828533
>      -89.2652 14.790867
>      -89.1781 14.714467
>      -89.1506 14.620733
>      -89.1598 14.5902
>      -89.1934 14.577967
>      -89.2759 14.572867
>      -89.29275 14.565733
>      -89.3019 14.5525
>      -89.2933 14.5114
>      -89.2863 14.478067
>      -89.47335 14.436067
>      -89.57965 14.398
>      -89.60135 14.369133
>      -89.52255 14.3114
>      -89.5895 14.245767
>      -89.6545 14.231333
>      -89.68795 14.201167
>      -89.7569 14.048933
>      -89.79035 14.016133
>      -90.00105 13.976767
>      -90.02465 13.962333
>      -90.03255 13.934767
>      -90.03255 13.901967
>      -90.0424 13.887533
>      -90.10145 13.891467
>      -90.12705 13.878333
>      -90.12 13.772533
>      -90.11775 13.7392
>      -90.1746 13.774267
>      -90.4295 13.862867
>      -90.63865 13.8992
>      -90.9001 13.9166
>      -91.3685 13.967433
>      -91.49705 13.999367
>      -91.59945 14.0647
>      -91.6125 14.1068
>      -91.6343 14.121333
>      -91.64955 14.121333
>      -91.667 14.114067
>      -91.68875 14.114067
>      -91.81295 14.215733
>      -91.9524 14.327567
>      -92.22255 14.519233
>      END # POINTS
>    END # FEATURE
>
> Here is my code:
>
> Here is my template file:
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/layerObj-queryByPoint-problem-tp7027247p7027247.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111124/ff35029c/attachment.htm>


More information about the MapServer-users mailing list