[mapguide-users] Check if resource exists in repository

Steve Dang steve.dang at autodesk.com
Thu Nov 30 13:18:48 EST 2006


Hi Adria`,

There is currently no such API.

You can use the GetResourceContent API which returns the resource or throws an exception if the resource does not exist.

Steve.


-----Original Message-----
From: Adrià Mercader [mailto:amptarraco at hotmail.com] 
Sent: Thursday, November 30, 2006 5:52 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Check if resource exists in repository

Hi everybody,
hope anyone can help me with this,

Is there a way to check if a resource already exists in the repository 
(Session or Library) i.e.
Session:$sessionId/POIs.FeatureSource
or
Library://Barcelona/Data/POIs.FeatureSource

something like:

$rsId = new MgResourceIdentifier(Session:$sessionId/POIs.FeatureSource);

if (! lostFunctionToCheckIfResourceExists($rsId)) {
  createResource();
}

Thanks in advance!

_________________________________________________________________
Moda para esta temporada. Ponte al día de todas las tendencias. 
http://www.msn.es/Mujer/moda/default.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org






More information about the Mapguide-users mailing list