[Mapserver-users] unclear on the concept

Bo Overgaard boo at CARLBRO.DK
Thu Jul 22 10:26:12 EDT 2004


Hi Joel

I think it is the oid but I am not sure.

try a 
	select * from table where oid= and the yor shapeindex 
in psql. 

Regards 

Bo Overgaard
Civilingeniør, GIS-konsulent
Carl Bro as
GIS- & IT
Granskoven 8
2600 Glostrup
E-mail: boo at carlbro.dk
Direkte telefon: 43 48 69 99
http:\\gis.carlbro.dk

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Joel Gwynn
Sent: 22. juli 2004 04:43
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] unclear on the concept


Perhaps I'm going about this the wrong way.  I'm using perl mapscript, 
and I've got a postgis points layer and I want to get some points, say 
within a certain radius of Boston:

my $map = new mapscript::mapObj("$map_path/world_cities.map");
my $boston = new mapscript::pointObj(-71.1029968261719, 42.375);
my $city_layer = $map->getLayer(1);

if(my $r = $city_layer->queryByPoint($map, $boston, 
$mapscript::MS_MULTIPLE,10)){
    print "no results.\n";
}else{
    my $i = 0;
    print "status: $r\n";
    while(my $rc = $city_layer->getResult($i)){
    my $si = $rc->{shapeindex};
    print "shapeindex: $si\n";
    $i++;
    }
}

This prints out a bunch of shapeindex numbers.  What are those numbers? 
They don't seem to show up in my cities table in the database.  Can I 
use the mapscript object to access the points?
_______________________________________________
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