I am wondering about this as well. How can I set the index value using PHPmapscript? This: $shp->set(index,$id); returns a read only error and this: $shp->{index} = $id; returns a "Use of undefined constant index - assumed 'index' in" So how can we set the index values so that the points can be queried? Thanks, Ken