[mapguide-users] Need Highlighting Sample

Andy Morsell amorsell at spatialgis.com
Thu Oct 1 15:22:14 EDT 2009


Quote Gordon: " Although you can load DWG files, you cannot get OBJECT DATA,
BLOCK ATTRIBUTES or LINK TEMPLATES."

You used to be able to with Autodesk MapGuide Studio 2008 and below by
defining feature classes in Map.  As part of the feature class, you could
assign the object data or data link attributes and then Studio would let you
import the entire feature class.  But, Autodesk did away with the capability
in Studio 2009 for whatever reason so now people are stuck doing this
outside of MapGuide.

I do the same thing as your last description: export from Map to SDF with
the object data or link template data then load on to the MapGuide server
and connect to the folder via an alias.  For performance reasons, I do this
in lieu of exporting with only the key and using a database join in
MapGuide.

Andy Morsell, P.E.
Spatial Integrators, Inc.
47° 46' N 116° 49' W
www.SpatialGIS.com


-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of GordonL
Sent: Thursday, October 01, 2009 12:12 PM
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] Need Highlighting Sample


Hi Matt,
the one item I want to mention here is the Load Procedure for DWG.

Although you can load DWG files, you cannot get OBJECT DATA, BLOCK
ATTRIBUTES or LINK TEMPLATES.

This is a huge chasm between DWG and FDO and its has been a hole in AutoCAD
Map to MapGuide since the early days of FDO.

The only way accross is an EXPORT to SDF (or other FDO data store) so
MapGuide can see it.

I would recommend using FME from Safe software to facilite the DWG with
OBJECT DATA to SDF.

You can't do it directly with MapGuide OS, MapGuide Enterprise, or Map 3D
(or any other Autodesk product) directly - only via EXPORT to FDO.

Also, if you are using Map 3D to view FDO data stores (i.e. MySQL, SDF,
Oracle, etc) you cannot quickly convert the data into linework with Object
Data.

Best way to use MapGuide - export your DWG into SDF (keeping the Object
Data) and then load the SDF using a Load Procedure or Alias a folder on the
server.

regards
gordon

ps. Once you have data that has a Key that you really want (not Handle -
blech!), you can find a lot of examples on
http://data.mapguide.com/mapguide/devguide/index.php  check out the working
with feature data for samples with the selection ...








mwilson wrote:
>
> Hello,
> I am using MapGuide Enterprise 2010 and am in need of a simplified
> example for how to highlight items on a map.  I used MapGuide Studio
> 2010 to import data from a dwg drawing.  The drawing contains a 2d
> rendering of a building floor.  I am trying to figure out how to
> hilight various rooms (or polylines) within the floor.  Can
> someone please point me in the direction of an example that might show me
> how to highlight polylines within a map.  Also is it possible to
> highlight ojbects based on their entity handle or is this info lost when
> importing from dwg. 
>  
> Fyi, I am using the AJAX viewer and coding in .net.
>  
> Many thanks in advance,
> Matt
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>

--
View this message in context:
http://n2.nabble.com/Need-Highlighting-Sample-tp3751164p3751366.html
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