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

Bill Ten Broeck btenbroeck at verizon.net
Tue Oct 23 15:29:52 EDT 2007


Hi Brad -

This looks to be exactly what I needed. Thanks!

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Brad L
Sent: Tuesday, October 23, 2007 2:45 PM
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] How to prepare unmanaged DWF Drawingsource?


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--tf4529186s
16610.html#a13370971
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



More information about the mapguide-users mailing list