The name of the folder is random, and generated by MapGuide.
AFAIK, there is no way to retrieve the path.
Instead, you can call GetResourceData and retrieve the file:
http://localhost/mapguide/mapagent/index.html
Click "GetResourceData" to the lower left, fill out the ResourceId and
DataName and click Submit.
You can mimic the POST generated by the html form to do the same from a
program.
That is what the MaestroAPI does, when using the http connection, so you
can also use that to retrieve the file.
Regards, Kenneth Skovhede, GEOGRAF A/S
Luis Paolini skrev:
Dave,
I need the dwf files because the client wants to load
them into oracle database in order to allow users to download them via
an application.
I understand that they are published to a folder in
the Mapguide Site Explorer, but this folder name is logical and is not
created in the Mapguide Server.
My problem is that I need to publish 600 DWG files and
when I do that, all the DWF files are created with the same name (Map
Base.dwf).
As we have many people working in this process, the
alternative to find the files manually sorting by date will not work.
If I could define the name of the dwf file during
publishing, instead of the default Map Base.dwf, will solve the problem.
The other option was to figure out the relation
between the logical name created in Site explorer and the physical
name created in the \Library\Datafiles.
Luis
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of *Dave Wilson
*Sent:* Thursday, July 16, 2009 5:34 PM
*To:* MapGuide Users Mail List
*Subject:* RE: [mapguide-users] Mapguide Library Folders
What do you want to do with the files?
During the publish you specified a folder to publish to in the
MapGuide Site Explorer. All the files are created in a Data
subdirectory under the folder name you specified.
You can use MGE API's to EnumerateResource, EnumerateResourceData and
GetResourceData and get the files from the Repository.
Otherwise if you were simply looking to find the files manually after
a single publish you can view the Repositories\Library\DataFiles\ in
Windows Explorer and sort by date and see the files that were created.
You could search on .dwf and find the files.
Dave
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of *Luis
Paolini
*Sent:* Thursday, July 16, 2009 1:48 PM
*To:* [email protected]
*Subject:* [mapguide-users] Mapguide Library Folders
Hi All,
I'm working with Autodesk Map 3D to publish some DWG
files to Mapguide in DWF format. The process is:
1. File -> More Plotting Options -> Publish to Mapguide
2. Connect to Mapguide
3. Create a Folder
4. Publish
After that, looking into Mapguide Server Folders, I understand that my
DWF file was stored somewhere inside /Library folder.
The problem is that the folders are named by Mapguide using some
pattern (Ex: dfaaf08a-ffff-ffff-8000-00c09f3e1b02).
My question is: How can I discover in which folder the dwf published
is stored?
Regards,
Luis
__________ Information from ESET Smart Security, version of virus
signature database 4251 (20090716) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus
signature database 4251 (20090716) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus
signature database 4253 (20090717) __________
The message was checked by ESET Smart Security.
http://www.eset.com
------------------------------------------------------------------------
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users