ENC: Re: [Mapserver-users] Shape Index ...

Murilo Lacerda Yoshida murilo.yoshida at agx.com.br
Fri Dec 12 11:38:25 PST 2003


-----Mensagem original-----
De: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] 
Enviada em: sexta-feira, 12 de dezembro de 2003 17:38
Para: 'Lowell Filak'
Assunto: RES: Re: [Mapserver-users] Shape Index ...

  Thanks, it worked. However, I changed a loop for another... Because
before I was doing $map->querybypoint and now I have to make a loop in
all the layers... Unless there is a way to do this without this loop,
but I don't see how.
  Thanks again,
    Murilo

-----Mensagem original-----
De: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] Em nome de Lowell Filak
Enviada em: sexta-feira, 12 de dezembro de 2003 16:15
Para: mapserver-users at lists.gis.umn.edu
Assunto: Fwd: Re: [Mapserver-users] Shape Index ...

Allow me to expand on my previous post - hopefully this will clear it
up.
The shape index is part of the result member and must be accessed
through the query result which is held in the layer - it is not returned
as part of the query method.

$result = $layer->queryByPoint($map,$point,$mapscript::MS_SINGLE,0);
$resultcachemember = $layer->getResult(0);
$polyshapeindex = $resultcachemember->{shapeindex};

Lowell

The following message was sent by "Lowell Filak"<lfilak at medinaco.org> on
Thu, 11 Dec 2003 15:36:01 -0500.

> In MapScript the method & members are:
> 
> queryByPoint
> resultcache
> getResult
> shapeindex
> 
> Is that what your looking for?
> 
> Lowell
> 
> The following message was sent by "Murilo Lacerda Yoshida"
> <murilo.yoshida at agx.com.br> on Thu, 11 Dec 2003 18:18:52 -0200.
> 
> >   Hi All,
> >   Is there a function that you pass a point(x, y) and it returns you
the
> > index of the shape you've clicked?
> >   Thanks,
> >      Murilo
> > 

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list