[mapguide-users] how to create an mgp file?

Kenneth, GEOGRAF A/S ks at geograf.dk
Tue Dec 11 07:20:54 EST 2007


The only approach I can think of, is to study one of the existing demo 
packages.
Study the Xml to see how it is constructed, and create a copy.

You will likely want to use MapGuide Studio from Autodesk at some point.
Alternatively, if your only objective is to upload an SDF file, you can 
try out my MapStudio project (which is very alpha at the moment).
Third option for access to SDF, is to get a FeatureSource xml file, and 
modify the file path.
You can read/write the FeatureSource Xml from either the API or 
http://localhost/mapguide/mapagent/mapagent.fcgi

Regards, Kenneth, GEOGRAF A/S



Parvatha skrev:
> I am unable to load my SDF data using web studio; So i am trying someother
> way. If I can convert my data to mgp format then there is no need to load
> the sdf i think. I need to load only the mgp using mapadmin. This will also
> solve my problem. I have sdf but i dont know how to create xml files. So
> that if I have xml and sdf then i can make mgp. This is what my problem.
>
>
> Kenneth, GEOGRAF A/S wrote:
>   
>> Its not clear to me, what you want to do.
>>
>> You can create MGP packages from an entire folder.
>> You can modify the MGP file as a Zip file afterwards.
>>
>> AFAIK, there is no documentation for the MGP format.
>> The format is quite simple, the MGP is a Zip file, which contains all 
>> the data, SDF and Xml.
>> There is a manifest file in the MGP, which contains operations executed 
>> agains the server.
>> These operations execute the actual data storage of either SDF or Xml
>> data.
>> The SDF files are usually stored as "ResourceData" on a FeatureSource
>> (Xml).
>>
>> Regards, Kenneth, GEOGRAF A/S
>>
>>
>>
>> Parvatha skrev:
>>     
>>> In site administrator we can create mgp files but for that we need to
>>> have
>>> xml files in a folder which has got the details of the sdf data. I want
>>> to
>>> know how to create those xml files and where to keep the sdf data and
>>> what
>>> is the format?
>>>
>>> zspitzer wrote:
>>>   
>>>       
>>>> you can create a mgp via the mapguide site administrator
>>>>
>>>> On Dec 6, 2007 3:35 PM, Parvatha <kpeswari at indiainfo.com> wrote:
>>>>     
>>>>         
>>>>> Hi
>>>>>
>>>>>  can anybody tell me how to create an mgp file? when i download the
>>>>> sample
>>>>> (sheboygan) data for mapguide opensource 1.2 its a zip file. When i
>>>>> unzip
>>>>> that i could see all xml files. Using mapadmin if i load that mgp then
>>>>> in
>>>>> the "library" folder in local there is a "data" folder in that all sdf
>>>>> files
>>>>> are loaded. I dont understand from where it is getting loaded
>>>>> dynamically.
>>>>> If this is the way then how to create xml file for my own sdf data to
>>>>> make
>>>>> an mgp? and where to keep the sdf? bcoz in xml file only the sdf name
>>>>> has
>>>>> given and the path is not given. Can anybody please calrify my doubt?
>>>>>
>>>>> Regards
>>>>> Parvatha
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/how-to-create-an-mgp-file--tf4953979s16610.html#a14186172
>>>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>>>
>>>>> _______________________________________________
>>>>> mapguide-users mailing list
>>>>> mapguide-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>>
>>>>>       
>>>>>           
>>>> -- 
>>>> Zac Spitzer -
>>>> http://zacster.blogspot.com (My Blog)
>>>> +61 405 847 168
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071211/e320f57d/attachment.html


More information about the mapguide-users mailing list