AW: [mapguide-users] Loading dwf without Mapguide Studio
Andy Morsell
amorsell at spatialgis.com
Wed May 21 13:47:13 EDT 2008
Gary,
You're right, and I should have mentioned that since I was complaining about the removal of features in Studio 2009 (that being one of them) recently on the Autodesk discussion board. Studio 2008 lets you convert DWG to DWF or SDF, but 2009 only allows conversion to SDF. Autodesk wants people to use AutoCAD Map 2009's publish to MapGuide functionality instead. Not sure if this is for strategic product reasons, or if the process really is too complex to handle in Studio. The other option is to publish to DWF's then load them. Studio 2009 allows loading DWF's. Create a new load procedure and then browse to your DWF file(s). They are a supported file type.
The other option, and I know this works since I recently did it when researching all of this for a client, is to use Studio 2008's DWG load options while converting to DWF. The caveat here is that you cannot load the data directly into an MGOS 2 / MGE 2009 site since Studio 2008 is incompatible with it. So, you have to load into a MGOS 1.2 / MGE 2008 site, export the data as a package, then import that package into the MGOS 2 / MGE 2009 site.
In the end, we went with the option to publish DWF's from AutoCAD then load the DWF's directly into MGOS 2 via Studio 2009. This provided the layer flexibility that I previously mentioned.
Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com
_____
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Gary Morin
Sent: Wednesday, May 21, 2008 9:42 AM
To: 'MapGuide Users Mail List'
Subject: RE: AW: [mapguide-users] Loading dwf without Mapguide Studio
Hi
In Autodesk Studio 2009 the option to load DWG as DWF or SDF has gone, now you have to use SDF. Also in Studio 2009 I cannot see any way of loading DWF files. Is it me or has it changed form 2008
Regards
gary
_____
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Andy Morsell
Sent: 21 May 2008 16:59
To: 'MapGuide Users Mail List'
Subject: RE: AW: [mapguide-users] Loading dwf without Mapguide Studio
I agree that DWF is by far the better data type when trying to preserve the graphic fidelity of complex vector data, especially when representing things like floor plans with dimensions, symbols and labeling. But, it lacks any real object intelligence, which is where SDF based data is much better.
When you load a DWF via Studio, it treats it as a "drawing" source. Meaning, it just copies the DWF into the repository and adds the necessary information to the database. There is no option to convert to feature data. There is no DWF FDO provider, and I suspect that the reason for this is that the drawing service is already provided in the core of MapGuide Open Source.
It sounds like there might be some confusion around loading DWF versus DWG in Studio: when loading a DWG, you have the option to load it as drawing or feature data. If as feature data, it converts to SDF. If as drawing data, it converts to DWF. I have found that publishing DWG to DWF from Autodesk Map and then loading the DWF files yields more flexible results in MapGuide. If you do it that way, the DWG layer information is carried forward and you can then filter your MGOS layer based on the DWF layers. If you do it in Studio, the resultant DWF is just one big blob. One thing to watch when publishing from Map is to make sure all of your pen weights are set to 0.00. Otherwise you will get the defaults and your DWF layers will look bad when zoomed in in MGOS.
In one of my DWF data sources, if I use the DescribeDrawing mapagent operation, here is the result. So, Studio is doing quite a bit when loading the DWF, but that doesn't mean that this could not be done from outside of Studio.
<dwf:Manifest version="6.0" objectId="nt1vld7L4E67Z6G3FXkVWA">
−
<dwf:Interfaces>
<dwf:Interface objectId="715941D4-1AC2-4545-8185-BC40E053B551" name="ePlot" href="http://www.autodesk.com/viewers"/ <http://www.autodesk.com/viewers> >
</dwf:Interfaces>
−
<dwf:Properties>
<dwf:Property name="DWFToolkitVersion" value="7.2.1.116"/>
</dwf:Properties>
−
<dwf:Sections>
−
<dwf:Section type="com.autodesk.dwf.ePlotGlobal" name="com.autodesk.dwf.ePlotGlobal">
<dwf:Source provider="AutoCAD" href="RHSD_ATC_F1_2-Model.dwf"/>
−
<dwf:Toc>
<dwf:Resource role="AutoCAD Drawing Set Data" mime="application/x-dsd" href="com.autodesk.dwf.ePlotGlobal\oN1vld7L4E67Z6G3FXkVWA.dsd"/>
<dwf:Resource role="descriptor" mime="text/xml" href="com.autodesk.dwf.ePlotGlobal\descriptor.xml"/>
</dwf:Toc>
</dwf:Section>
−
<dwf:Section type="com.autodesk.dwf.ePlot" name="com.autodesk.dwf.ePlot_n91vld7L4E67Z6G3FXkVWA" title="RHSD_ATC_F1_2-Model">
<dwf:Source provider="AutoCAD" href="DWF204Temp.dwf"/>
−
<dwf:Toc>
<dwf:Resource role="2d streaming graphics" mime="application/x-w2d" href="com.autodesk.dwf.ePlot_n91vld7L4E67Z6G3FXkVWA\od1vld7L4E67Z6G3FXkVWA.w2d"/>
<dwf:Resource role="AutoCAD Viewport Data" mime="application/x-dwg-state" href="com.autodesk.dwf.ePlot_n91vld7L4E67Z6G3FXkVWA\ot1vld7L4E67Z6G3FXkVWA.pia"/>
<dwf:Resource role="descriptor" mime="text/xml" href="com.autodesk.dwf.ePlot_n91vld7L4E67Z6G3FXkVWA\descriptor.xml"/>
<dwf:Resource role="thumbnail" mime="image/png" href="com.autodesk.dwf.ePlot_n91vld7L4E67Z6G3FXkVWA\o91vld7L4E67Z6G3FXkVWA.png"/>
</dwf:Toc>
</dwf:Section>
</dwf:Sections>
</dwf:Manifest>
Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com
_____
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Stephan HOLLAUS
Sent: Wednesday, May 21, 2008 4:40 AM
To: MapGuide Users Mail List
Subject: AW: AW: [mapguide-users] Loading dwf without Mapguide Studio
DWF drawing Source
mfg Stephan Hollaus
Ingenieur Studio Hollaus
Tel.: +43 664 3387158
Fax.: +43 664 77 3387159
www: http://www.hollaus.at <http://www.hollaus.at/>
Brandströmgasse 10
3100 St. Pölten
V55BCPWP
_____
Von: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] Im Auftrag von Kenneth Skovhede, GEOGRAF A/S
Gesendet: Mittwoch, 21. Mai 2008 13:16
An: MapGuide Users Mail List
Betreff: Re: AW: [mapguide-users] Loading dwf without Mapguide Studio
Interresting.
What is the provider type of the DWF feature source?
Regards, Kenneth Skovhede, GEOGRAF A/S
Stephan HOLLAUS skrev:
i thought so too, but then I found the dwf File in the Folder "C:\Programme\MapGuideOpenSource2.0\Server\Repositories\Library\DataFiles\b70eab7a-ffff-ffff-8000-000c29c577cf" on der Mapguideserver. I found no matching sdf data and when the dwf is removed, mapguide doesn't display the data anymore, so that I believe there is a direct connection. The ohter thing is, that we use dwf because the very complex data(linetypes, Symbols..) and I can't believe, that this data is converted to sdf
mfg Stephan Hollaus
Ingenieur Studio Hollaus
Tel.: +43 664 3387158
Fax.: +43 664 77 3387159
www: http://www.hollaus.at <http://www.hollaus.at/>
Brandströmgasse 10
3100 St. Pölten
V55BCPWP
_____
Von: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] Im Auftrag von Kenneth Skovhede, GEOGRAF A/S
Gesendet: Mittwoch, 21. Mai 2008 12:05
An: MapGuide Users Mail List
Betreff: Re: [mapguide-users] Loading dwf without Mapguide Studio
Not that I know of.
There are no FDO providers capable of displaying DWF files:
http://fdo.osgeo.org/OSProviderOverviews.html
I belive Studio extracts the data from the DWF, and inserts it as SDF data in the server (but I have not tried it).
There exists a DWF toolkit, so you may do this manually:
http://usa.autodesk.com/adsk/servlet/index?id=823771 <http://usa.autodesk.com/adsk/servlet/index?id=823771&siteID=123112> &siteID=123112
I'm guessing it will take some time to get it all to work.
If you can live with Studio only being avalible on the windows platform, it is
possible to call Studio via. .Net and perform the loads without manual intervention.
Regards, Kenneth Skovhede, GEOGRAF A/S
Stephan HOLLAUS skrev:
Hi
Is there a way to load dwf Files without Mapguide Studio?
thx
mfg Stephan Hollaus
Ingenieur Studio Hollaus
Tel.: +43 664 3387158
Fax.: +43 664 77 3387159
www: http://www.hollaus.at <http://www.hollaus.at/>
Brandströmgasse 10
3100 St. Pölten
V55BCPWP
_____
_______________________________________________
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/20080521/096453d3/attachment.html
More information about the mapguide-users
mailing list