[mapguide-users] Re: How to create new/empty vector layer definition?

Hans Milling hm at geograf.dk
Tue Feb 14 03:55:57 EST 2012


Just to be sure, this is the code that I am using:
  ILayerDefinition ldef = ObjectFactory.CreateDefaultLayer(con,
LayerType.Vector);
  string resId = new ResourceIdentifier(Guid.NewGuid().ToString(),
ResourceTypes.LayerDefinition, con.SessionID);
  con.ResourceService.SaveResourceAs(ldef, resId);

con is of course an IServerConnection and by http.

Hans...

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-create-new-empty-vector-layer-definition-tp4465014p4467973.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list