[Cartoweb-users] calling project and recentering on an id

Pierre GIRAUD pierre.giraud at camptocamp.com
Thu Mar 16 06:05:42 EST 2006


If you want to recenter on msEdif, on the shape with I_D = 123, simply call

myproject.php?id_recenter_layer=msEdif&id_recenter_ids=123

The "recenter_name_string" is useless in your case. The field name used 
for id recentering is the id_attribute_string one.

Regards

Pierre


Valerio Noti wrote:

> Pierre,
> tried but user message is always "ID recenter layer not found"
> Is the "id_recenter_layer" an integer from the order of the list in 
> location.ini
>
> idRecenterLayers = msParcs, msEdif, ecc..
>
> and so it would be
>
> myproject.php?id_recenter_layer=1&id_recenter_ids=123
>
> if I want to use msEdif (layers name from mapfile)?
>
> More, metadata in mapfile are:
>
>      "exported_values" "recenter_name_string,id_attribute_string"
>      "recenter_name_string" "I_D"
>      "id_attribute_string" "I_D|string"
>
> are these correct for this type of request?
>
> thank you
>
> Valerio
>
>
>
> ----- Original Message ----- From: "Pierre GIRAUD" 
> <pierre.giraud at camptocamp.com>
> Cc: <cartoweb-users at lists.maptools.org>
> Sent: Thursday, March 16, 2006 11:10 AM
> Subject: Re: [Cartoweb-users] calling project and recentering on an id
>
>
>> Sure you can.
>>
>> The posted form parameters "id_recenter_layer" and "id_recenter_ids" 
>> can also be use in get requests.
>> The url would be something like :
>>
>> myproject.php?id_recenter_layer=id_of_layer_to_recenter_on&id_recenter_ids=123 
>>
>>
>> Regards
>>
>> Pierre GIRAUD
>>
>> 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
>>> Cartoweb-users at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
>>




More information about the Cartoweb-users mailing list