Dear Jason, for layers I usually use $layerCollection = $map->GetLayers(); and tests $layerCollection->Contains($layerName) > There's a nasty memory > corruption problem if you just try to catch a failed > getresourcecontent call Good (and scary) to know Regards, Gabriele Monfardini