Hi all,

I finally have some of my distance stuff up and running, but now I'm stuck with getting the nearest point on my map.

This works:
mapserv.exe?mode=query&map=nearest.map&imgext=-70000+278750+400000+631250&mapxy=185382.700+444989.600&layers=TABAP&qlayer=TABAP&tolerance=999999&toleranceunits=meters

But this doesn't
mapserv.exe?mode=query&map=nearest.map&imgext=-70000+278750+400000+631250&mapxy=164018.5+451343.9&layers=TABAP&qlayer=TABAP&tolerance=9999999999999&toleranceunits=kilometers

This is my map file:
MAP
        name nearest
        STATUS ON
        SIZE 640 480
        UNITS meters
        EXTENT -274506.825920 199616.266937 553854.848094 752598.058799
        PROJECTION
"+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.87 03473836068,4.0812 +no_defs +to +proj=latlong +datum=WGS84"
        END

        
        LAYER
                NAME TABCAB
                TYPE LINE
                STATUS ON
                CONNECTIONTYPE OGR
                CONNECTION "data\TABCAB.TAB"
                STYLEITEM "AUTO"
                CLASS
                        NAME "Kabel"
                        TEMPLATE "nearest.html"
                END
                MINSCALE 1
                MAXSCALE 4000000
        END

        LAYER
                NAME TABAP
                TYPE POINT
                STATUS ON
                CONNECTIONTYPE OGR
                CONNECTION "data\TABAP.TAB"
                CLASS
                        TEMPLATE "nearest.html"
                END
        END
        
END # Map File




This should yield results, shouldn't it?

Hopefully anyone can provide me with an answer.

With kind regards,
Jelmer Baas

Reply via email to