Hi,
i think it is possible. Take firefox 1.5 and the developers toolbar.
Convert your post form to get and do the recenter query. You can then
study the parameters in the url: With this information you can do the
recenter on id.
For the second position, there is a function in postgis that gives you
the bounding box of your object
(http://postgis.refractions.net/docs/ch06.html#id2790699):
Envelope(geometry)
Returns a POLYGON representing the bounding box of the geometry.
OGC SPEC s2.1.1.1 - The minimum bounding box for this Geometry,
returned as a Geometry. The polygon is defined by the corner points of
the bounding box ((MINX, MINY), (MAXX, MINY), (MAXX, MAXY), (MINX,
MAXY), (MINX, MINY))."
Do the same for the parameters,
regards,
eb
Valerio Noti wrote:
Sorry for my last message: It had the same content of this one but a
wrong object (was 'managing project')
************************************************************************
Hello,
I'd like to call a cartoweb project from an external page and after a
database query.
Once I have an object id (and a mapfile metadata "id_attribute_string"
"I_D|string") is it possible to call a project with something like:
myproject.php?id=123
and recentering the map with a certain scale?
Or, if not, is there a way to retrieve coordinates of an object starting
from an id and calling the project with
myproject.php?recenter_bbox=23,45,56,70
This solution would be probably better.
Thanks in advance
Regards
Valerio
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users
begin:vcard
fn:Emmanuel Belo
n:Belo;Emmanuel
org:MicroGIS SA
adr:;;ch. des Jordils 40;St-Sulpice;VD;1025;Switzerland
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur en g=C3=A9omatique
tel;work:+41 21 691 77 17
tel;fax:+41 21 691 77 86
x-mozilla-html:FALSE
url:http://www.microgis.ch
version:2.1
end:vcard
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users