[mapguide-users] How to prepare unmanaged DWF Drawingsource?

Carl carlshe at 163.com
Wed Oct 24 07:58:44 EDT 2007


Thank you very much.
 It's ok to left the 0 to range coordinates(miin/max Values). Could you
please tell me how do you extract the sheet name by program automatically,
for example in c#, but not mannaully.


Brad L wrote:
> 
> I am using unmanaged DWF files but I build all of my maps dynamically at
> runtime.  I don't know if this makes things more or less difficult for
> your situation but I will give you the short version of my process.
> 
> The XML for your dwf layer will look something like this.  
> 
> <?xml version="1.0" encoding="utf-8"?>
> <DrawingSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xsi:noNamespaceSchemaLocation="DrawingSource-1.0.0.xsd">
>   <SourceName>C:\Pathtodwfonserver\mydwf.dwf</SourceName>
>   <CoordinateSpace>LOCAL_CS["Non-Earth (IInch)",LOCAL_DATUM["Local
> Datum",0],UNIT["IInch",
> 0.0254],AXIS["X",EAST],AXIS["Y",NORTH]]</CoordinateSpace>
>   <Sheet>
>     <Name>com.autodesk.dwf.ePlot_94A374353C9B4FBB02843AF1AC24E437</Name>
>     <Extent>
>       <MinX>0</MinX>
>       <MinY>0</MinY>
>       <MaxX>0</MaxX>
>       <MaxY>0</MaxY>
>     </Extent>
>   </Sheet>
> </DrawingSource>
> 
> Put in the physical path to your unmanaged dwf as the SourceName, change
> your coordinate space to the correct system, and put in the coordinates (I
> have left them all at 0 and it seems to work).  The Sheet->Name comes from
> the dwf itself.  If you unzip the dwf you will see this info as the folder
> name and in the xml files.  You can also get the template for this by
> saving the managed dwf as XML.
> 
> The Layer XML for this dwf would look like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
>  <DrawingLayerDefinition>
>   <ResourceId>Session:SessionID//mydwf.DrawingSource</ResourceId>
>   <Sheet>com.autodesk.dwf.ePlot_94A374353C9B4FBB02843AF1AC24E437</Sheet>
>  </DrawingLayerDefinition>
> </LayerDefinition>
> 
>  Where the ResourceID references the above drawingsource and the sheet is
> the same as the Sheet->Name above.
> 
> As I said, I add these resources to the session repository at run time but
> you should be able to save these resources to the library as well.
> 
> Hope that helps
> 
> Brad Leighninger
> Mathews & Associates, Inc
> 417-869-6009
> 
> 
> Carl wrote:
>> 
>> Sorry, I haven't.
>> 
>> 
>> btenbroeck wrote:
>>> 
>>> Carl, did you ever find/get a solution to this?
>>> 
>>> 
>>> Carl wrote:
>>>> 
>>>> It is ok to publish the unmanaged SDF file. but how to prepare
>>>> unmanaged DWF Drawingsource? It seems more complicated than SDF.
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-prepare-unmanaged-DWF-Drawingsource--tf4529186s16610.html#a13384245
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list