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

2015-02-18 Thread Fritz Robert
Hi Jackie,

yes, I think I misunderstood the concept. Things are much clearer now,

Thank you for your replies,

Rob


-Ursprüngliche Nachricht-
Von: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] Im Auftrag von Jackie Ng
Gesendet: Mittwoch, 18. Februar 2015 04:05
An: mapguide-users@lists.osgeo.org
Betreff: Re: [mapguide-users] mapguide rest - bbox parameter with map?

I think you might be misunderstanding the purpose of the image representation 
in restcfg.json

Features will *always* be selected in the image representation. This is by 
design. The intention behind the image representation is to show where your
feature(s) are in relation to the map specified in restcfg.json, and we do that 
by showing such features as selected on the map. GeoREST follows this same 
idea. Your feature(s) are the centre of attention, not the map.

If you are just after an image of a map at a certain view, then you can just 
use the image representation of the map definition:

eg.
http://localhost/mapguide/rest/library/Testing/report/AV_Vorlage.MapDefinition/image.png?x=YOUR_CENTER_Xy=YOUR_CENTER_Yscale=YOUR_SCALEwidth=YOUR_IMAGE_WIDTHheight=YOUR_IMAGE_HEIGHT

- Jackie



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


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

2015-02-17 Thread Jackie Ng
I think you might be misunderstanding the purpose of the image representation
in restcfg.json

Features will *always* be selected in the image representation. This is by
design. The intention behind the image representation is to show where your
feature(s) are in relation to the map specified in restcfg.json, and we do
that by showing such features as selected on the map. GeoREST follows this
same idea. Your feature(s) are the centre of attention, not the map.

If you are just after an image of a map at a certain view, then you can just
use the image representation of the map definition:

eg.
http://localhost/mapguide/rest/library/Testing/report/AV_Vorlage.MapDefinition/image.png?x=YOUR_CENTER_Xy=YOUR_CENTER_Yscale=YOUR_SCALEwidth=YOUR_IMAGE_WIDTHheight=YOUR_IMAGE_HEIGHT

- Jackie



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


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

2015-02-16 Thread Fritz Robert
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,261400width=935height=935dpi=144

Regards, Rob


-Ursprüngliche Nachricht-
Von: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] Im Auftrag von Jackie Ng
Gesendet: Dienstag, 17. Februar 2015 03:43
An: mapguide-users@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


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

2015-02-16 Thread Jackie Ng
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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users