[mapguide-users] Export SDF

Jim O'Leary joleary.public at gmail.com
Fri Nov 23 14:34:02 EST 2007


Okay, the documentation for GetResourceData() shows how to do this. You would
enter the resourceid of the feature source for the resource parameter and
the name of the SDF file for the data name, e.g., "Parcels.sdf". Then you
convert it to bytes and save it to disk with 

$byteSink->ToFile();

Thanks.


Kenneth, GEOGRAF A/S wrote:
> 
> Not sure how to accomplish it with the MapGuide API, but it is stored as 
> a ResourceData item on the resource.
> You can download that item, by acessing the mapagent directly, or 
> perhaps thorugh the ResourceService object.
> 
> Regards, Kenneth, GEOGRAF A/S
> 
> 
> 
> Jim O'Leary skrev:
>> I would like to take features that the user selects on the map, create a
>> new
>> feature source based on those features, and make them available to the
>> user
>> as a downloadable SDF file. I know that MapGuide does create an SDF file
>> when you do this, but it is written "somewhere" in the repository. Is
>> there
>> a way using either the Web API or the Studio API to control where the SDF
>> is
>> written so you can access it in a predictable place?
>>
>> Thanks.
>>   
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Export-SDF-tf4862161s16610.html#a13917800
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list