[mapguide-users] mapguide rest - bbox parameter with map?

Fritz Robert Robert.Fritz at win.ch
Mon Feb 16 22:39:32 PST 2015


Hi Jackie,

the restcfg.json is quite simple:

{
    "Source": {
        "Type": "MapGuide",
        "LayerDefinition": "Library://FS_INFO/WT_AV_I/Layers/AV_Grundstücke/AV_Eigentumsinformation.LayerDefinition"
    },
    "Representations": {        
        "png": {
            "Adapter": "MapImage",
            "Methods": {
                "GET": {
                    "MapDefinition": "Library://Testing/report/AV_Vorlage.MapDefinition",
                    "SelectionLayer": "AV_Eigentumsinformation",
                    "PageSize": 100,
                    "MaxCount": 500,
                    "AllowAnonymous": true,
                    "AllowGroups": ["Everyone"]
                }
            }
        },
(repeated for jpg and png8).

No feature should be selected. Don't know where the selection comes from.
Here ist he complete URL request:  http://x/mapserver2013/rest2/index.php/data/av_report/.png?BBOX=697600,261300,697700,261400&width=935&height=935&dpi=144

Regards, Rob


-----Ursprüngliche Nachricht-----
Von: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] Im Auftrag von Jackie Ng
Gesendet: Dienstag, 17. Februar 2015 03:43
An: mapguide-users at lists.osgeo.org
Betreff: Re: [mapguide-users] mapguide rest - bbox parameter with map?

Assuming you are talking about any URL under /mapguide/rest/data ...

Any "data" URL shows the current "page" of features in the given representation

 - .xml returns a "page" of features and their attributes as XML
 - .geojson returns a "page" of features and their attributes as GeoJSON
 - .html displays a "page" of features and their attributes in a HTML page

For the image representations the "page" as it were is the list of features rendered as selections against the configured map in restcfg.json. In this respect, the bbox parameter might be ignored (which is probably a bug) and defaulting to the bbox of the selected features.

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapguide-rest-bbox-parameter-with-map-tp5187340p5188026.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list