[mapserver-users] How increase the tolerance for GetFeatureInfo over a line dataset
Andrea Peri
aperi2007 at gmail.com
Tue Aug 23 08:35:33 PDT 2016
Hi,
The entire mapfile is quite huge, but this is the layer section of
mapfile relatively to the linear dataset:
LAYER
NAME "rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt"
STATUS OFF
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION "/path-to-dataset/zz_db_risorse_idriche.sqlite"
DATA "SELECT ROWID AS msFID, * FROM RW_FIUMI_CANALI"
PROCESSING 'NATIVE_FILTER=( "intersected" = "SI" )'
EXTENT 1530000 4665000 1800000 4950000
PROJECTION
"init=epsg:3003"
END
METADATA
"ows_title" "corpi idrici superficiali "
"ows_abstract" "Scala di visualizzazione wms 1:1 - 1:5.000.000"
"ows_extent" "1530000 4665000 1800000 4950000"
"wms_bbox_extended" "true"
"wms_enable_request" "*"
"ows_include_items" "all"
"gml_include_items" "all"
"gml_featureid" "msFID"
"ows_featureid" "msFID"
"gml_geometries" "GEOMETRY"
"gml_geometry_type" "multilinestring"
"gml_types" "none"
"gml_PK_UID_type" "int"
"wms_getfeatureinfo_formatlist" "OGRGML" # necessario per
recuperare il GML da OGR-GDAL con GetFeatureInfo
"wfs_enable_request" "*"
"wfs_getfeature_formatlist"
"application/shapefile,application/spatialite,text/xml;subtype=gml/3.1.1"
END
TEMPLATE 'ogrgml' #con l'opzione void rimando al tipo output
(template-driven)
MAXSCALEDENOM 5000000
MINSCALEDENOM 1
OPACITY 100
PROCESSING "APPROXIMATION_SCALE=FULL"
CLASSGROUP "default"
LABELCACHE on
# tolerance e' necessario per il GetFeatureInfo su wms
TOLERANCE 10.0
TOLERANCEUNITS pixels
#
CLASS
NAME ' '
GROUP 'default'
MAXSCALEDENOM 5000000
MINSCALEDENOM 1
STYLE
WIDTH 0.3
COLOR '#1E90FF'
ANTIALIAS false
OPACITY 100
MAXSCALEDENOM 5000000
MINSCALEDENOM 1
END
END
END
A.
2016-08-23 17:20 GMT+02:00 Rahkonen Jukka (MML)
<jukka.rahkonen at maanmittauslaitos.fi>:
> That should work. Show a bit more about your mapfile so that others can
> reproduce easier.
>
> - Jukka Rahkonen-
> ________________________________
> Lähettäjä: Andrea Peri
> Lähetetty: 23.8.2016 18:15
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] How increase the tolerance for GetFeatureInfo over a
> line dataset
>
> Hi,
> I have a line dataset and need to allow an easy GetFeatureInfo over the
> lines.
> actually is extremely hard for an user to be able to click exactly
> over the line and retrieve the Information of the feature.
>
> So I need to increase the tollerance to the point click.
> I see from documentation that there is the two values:
> "tolerance" and "tolerance units",
> So i try to set both them
>
> TOLERANCE 10.0
> TOLERANCEUNITS pixels
>
> But no effect seem to have.
>
> Perhaps I understand wrongly to mean of "tolerance"
>
> Thx for every info.
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
More information about the MapServer-users
mailing list