Home
Autodesk 15607-010000-5000A User's Manual
Contents
1. Link template Beatie selected here DWG_Dublin Autodesk DWG PROJ E IV Treat blocks as points Key table DB_LT_PARCELS Key column type String Sd Filter type Layer namefs Layer gt BLOCK_APNS E 8 For Filter Type select Layer Query or Theme You can use any of the three filtering methods to specify the geometry that you want to bring into your map 20 9 Optionally click the Name URL Where tab and select a link template for the Name and or URL if you want to access database columns linked to the DWG to label the geometry you are bringing into Autodesk MapGuide or to associate URLs Link template selected here DWG Data Source Name URL Where Link to secondary table Name column APN EJ URL column Ap Name table DB_LT_PARCELS URL table N DB_PARCEL_DATA URL source Apply SQL where clause to SQL where clause 10 Click OK The selected link template associates the data table with the objects on the layer Accessing Data Using a Link Template 21 22 DWF Support This chapter describes the new support for the DWF file format in this release of Autodesk MapGuide DWF stands for Design Web Format and is usually pronounced DWIF The DWF features in this release apply to both Autodesk MapGuide Server for data source setup and Autodesk MapGuide Author for reading and writing DWF
2. Handle H String 2 Layer name s closed polylines ja If you want to bring in the entire drawing leave the Layer Name field blank Click OK Note For performance reasons Autodesk MapGuide does not check the geometry types of the objects you specify Therefore after you have cre ated a new layer from selected layers in the DWG you should double check that the objects that have been placed on the layer are what you expected Also be aware that if the query or theme has changed since you authored your map the geometry on the layer may not be as expected Key table FP_FeatureProperties Filter type Improved DWG Support The geometry you specified is retrieved from the server and displayed in Autodesk MapGuide Author amp File Edit Navigate Bookmarks Select Yiew Window Help Dm ee S Ba PR AR A City parcels z B Map L po E Wani a Reports xe Zoom Gotos Popup Menu i Design poma x 67 456 212165 y 53 275 658993 METER 0 feature s a 1 16 149 5 860 x 4 5 Legend width 238 Theming a DWG Layer You can theme new layers of a particular geometry type that you are bringing into Autodesk MapGuide Author from a DWG file The steps to theme geom etry from a DWG file are exactly the same as the steps to theme SDF geometry The following procedure assumes that you have already brought in the geometry see Creating a L
3. else return v lt SCRIPT gt lt SCRIPT LANGUAGE JavaScript gt lt l Functions for handling cookies This code is Copyright c 1996 Nick Heinle and Athenia Associates all rights reserved In order to receive the right to license this code for use on your site the original code must be copied from the Web site webreference com javascript License is granted to user to reuse this code on their own Web site if and only if this entire copyright notice is included Code written by Nick Heinle of webreference com 4 function getCookie name var dcookie document cookie var cname name var clen dcookie length var cbhegin 0 while cbhegin lt clen var vbegin cbegin cname length 76 Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer if dcookie substring cbegin vbegin cname var vend dcookie indexOf vbegin if vend 1 vend clen return unescape dcookie substring vbegin vend cbegin dcookie indexOf cbegin 1 if cbhegin 0 break return null function setCookie name value expires if expires expires new Date document cookie name escape value expires expires toGMTString path function delCookie name var expireNow new Date document cookie name expires Thu 01 Jan 70 00 00 01 GMT path ffs lt SCRIPT gt lt By using the onUnload event
4. Adjustment pooo FOOT m Query List Geometry column FEATURE_GEOM Spatial Query Autodesk MapGuide lt Autodesk MapGuide Default gt Note that the Query List area includes the standard Autodesk MapGuide default query 56 Chapter 4 Enhanced Layer Functionality 4 Click the New button The Create New Query dialog box is displayed as shown in the following illustration Create New Query xi Type sac z Information Please enter the SOL statement to be executed Data Ea Cancel 5 Inthe Data area enter a SQL statement and click OK The new statement is displayed by default beneath the spatial query in the Advanced Settings dialog box as show in the following illustration Advanced Settings x r Spatial Filter Feature table eublin_parcels E Geometry column JFEATURE_GEOM EI IV Use Autodesk MapGuide Server s spatial filter IT Apply clipping adjustment to Autodesk MapGuide Server s spatial filter Adjustment p FOOT m Query List Spatial Query Autodesk MapGuide lt Autodesk MapGuide Default gt CALL DBMS_WM GOTOWORKSPACE LIVE Down At this point the added SQL statement is a post spatial query statement and would be executed after the query is executed Using SQL Pass Through Statements 57 6 To make the added SQL statement a pre spatial query statement that will run before the spatial query is e
5. Data source name DWF_Dublin Data source type C Microsoft Data Link UDL for OLE DB Cancel Setting Up a Data Source for DWF Files 25 26 5 In the Autodesk Data Link Properties dialog box select Autodesk MapGuide Data Extension For DWF and then click the Connection tab Autodesk Data Link Properties Provider Connection Advanced al Select the data you want to connect to Data Provider s Autodesk MapGuide Data Extension for DWF Autodesk MapGuide Data Extension for DWG 6 On the Connection tab click the Browse button next to DWF Search Path and navigate to the folder where the DWF files are located Click the Advanced tab Autodesk Data Link Properties Provider Connection Advanced Jar Please enter the configuration information for this DWF data source DWF search path C Projects mg6 DWF Note Multiple paths are not supported 7 On the Advanced tab select the SRS Spatial Reference System that you want to use for the DWF files in the data source Autodesk Data Link Properties Provider Connection Advanced all Default SRS Category USA California X RS California State Planes Zone I Meter 3 California State Planes Zone I US Foot 3 California State Planes Zone II Meter 3 California State Planes Zone II US Foot 3 California State Planes Zone III Meter 3 California State Planes Zone III US Foot California State Planes Zone I v Mete
6. String Represents the name of the DWF file See Also setDwf Dwf setDwf Method Syntax boolean setDwf String DWF Description Sets the name of the Autodesk DWF file for the Autodesk DWF layer If this method is successful it sets the rebuild flag of the layer to True For more information about the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Chapter 8 DWF API Additions When you change the Autodesk DWF file you may also need to update several other properties These properties include SheetName KeyColumn KeyColumnType NameColumn UrlColumn and LayerFilter Note If you do not include a path to the DWF file this method assigns the first one it finds in the search path For more information about using DWF files as data source for layers see Setting Up a Data Source for DWF Files on page 25 Parameters DWF String representing the name of the Autodesk DWF file for the layer Returns boolean Specifies whether or not the DWF file is successfully set True Indicates that the DWF file is successfully set False Indicates that the DWF file is not set Error Codes 1 Busy See Also getDwf Dwf Dwf Property Syntax Dwf Description Gets and sets the name of the Autodesk DWF file for the Autodesk D
7. boolean value read Specifies whether or not the layer is linked to a secondary table True Indicates that the layer is linked to a secondary table False Indicates that the layer is not linked to a secondary table Error Codes 15 DoesNotApply See Also getLinkToSecondaryTable 108 Chapter 7 DWG API Additions getSecondaryDataSource Method Syntax String getSecondaryDataSource Description Gets the secondary data source linked to the layers that are created from DWG data This method gets the secondary data source only for polyline polygon and point layers created from DWG data It does not get the secondary data source linked to Autodesk DWG layers For more information about linking layers created from DWG data to secondary data sources see Accessing Data Using a Link Template on page 20 Parameters none Return Values String Represents the name of secondary data source Error Codes 15 DoesNotApply See Also setSecondaryDataSource SecondaryDataSource setSecondaryDataSource Method Syntax boolean setSecondaryDataSource String secondaryDataSource Description Sets the secondary data source linked to layers that are created from DWG data This method sets the secondary data source only for polyline polygon MGDwgDataSources Object 109 110 and point layers created from DWG data It does not set the secondary data source linked to Autodesk DWG layers For more info
8. Dialog Box Changes on page 60 which means that you can now set these parameters indvidually for each data source The other two settings EnableDimensionalityCheck and EnableGeodeticCheck are no longer needed because Autodesk MapGuide performs these checks automat ically Manually Editing a UDL File The Provider for Oracle Spatial Guide contains instructions about how to manually edit a UDL file However manual editing is no longer recom mended If you use a text editor to enter values into a UDL file that you cannot enter using the Data Source Properties dialog box Autodesk MapGuide or any other application that uses UDL files may not be able to read the file Also if you have changed the parameters to illegal values you cannot open the UDL file in the Data Link Properties dialog box by double clicking To avoid these problems we strongly recommend against manually editing your UDL files Registry Structure Changes 61 62 Using Buzzsaw with Autodesk MapGuide Viewer This chapter explains how the Microsoft ActiveX Control Viewer works with files that are stored in Buzzsaw Autodesk MapGuide Viewer and Buzzsaw interface in three ways You can use Buzzsaw as a Web server where you can publish your maps and provide others access to them You can access MWFs stored in Buzzsaw from the Viewer Finally you can link features on a map to documents stored in Buzzsaw This chapter also provides information abo
9. in the Autodesk MapGuide Help For Filter Type select Query n U on Click the Query Name Browse button and select a query 10 Chapter 2 Improved DWG Support You can also click the Query Category Browse button to select a particular query category If there are many queries defined in the drawing this can make the list more manageable Map Layer Properties Autodesk DWG Query PROJECT DWG General Circle General Data Sources Styles Security Map server agent URL http ccsdell8200 mapquide6 5 mapagent exe v Draw features from Autodesk DWG data source DWG Data Source Name URL Data source DWG_Dublin fa Autodesk DWG PROJECT a Key table Key column Key column type FP_FeatureProperties A Handle H String Me Filter type Query category Query name Filter type General E Circle zl set to Query 9 Click OK The data specified by the query is retrieved from the server and displayed in Autodesk MapGuide Author Autodesk MapGuide Author Dublin California C Working files ubllin_test_query mwf amp File Edit Navigate Bookmarks Select View Window Help OSaSSaiRMXA REV eR Dublin Califomia E h Map Layers aM Reports Zoom Gotos j Popup Menu 10 feature s selected i 18 636 1 18 x 1 23 r 539466 bytes transferred A Creating a Layer from a Query lI How Themes Work in Autodesk Map In Autodesk Map themes are used to create the
10. 15 DoesNotApply See Also getWhereSource WhereSource WhereSource Property Syntax WhereSource Description Gets and sets the source of the SQL WHERE clause for layers that are created from DWG data This property sets the source of the SQL WHERE clause only for polyline polygon and point layers created from DWG data It does not set the SQL WHERE clause source for Autodesk DWG layers SQL WHERE clause sources can be taken from an Autodesk DWG file or a secondary table A value of 0 sets the Autodesk DWG file as the source for the SQL WHERE clause A value of 1 sets the secondary table as the SQL WHERE clause source MGDwgDataSources Object 103 104 For more information about using secondary tables as the source for SQL WHERE clauses see Step 9 under Accessing Data Using a Link Template on page 20 Parameters none Return Values integer read write Value indicating the source for SQL WHERE clause 0 Indicates Autodesk DWG files as the source for the SQL WHERE clause 1 Indicates secondary tables as the source for the SQL WHERE clause Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply See Also getWhereSource setWhereSource getSQLWhereClause Method Syntax String getSQLWhereClause Gets the SQL WHERE clause for layers that are created from DWG data This property gets the SQL WHERE clause only for polyline polygon and point layers created fr
11. A list of strings representing the pre SQL statements that are applied to the query Error Codes 5 Security Violation 15 Does not apply See Also addPreSQLStatement clearPreSQLStatements addPreSQLStatement Method Syntax boolean addPreSQLStatement String sql MGMapLayerSetup Object 159 Description Adds the specified SQL statement to the end of the list of pre SQL statements that are applied to the layer Pre SQL statements are executed before Autodesk MapGuide performs a spatial query You can use them to further customize your query results For more information about applying pre SQL statements to queries see Using SQL Pass Through Statements on page 55 Parameters sql String representing the SQL statement to add to the end of the list Returns boolean Specifies whether or not the specified SQL statement was success fully added to the end of the pre SQL statement list True Indicates that the SQL statement was successfully added to the end of the list False Indicates that the SQL statement was not added to the end of the list Error Codes 1 Busy 5 Security Violation 15 Does not apply See Also getPreSQLStatements clearPreSQLStatements clearPreSQLStatements Method Syntax boolean clearPreSOLStatements Description Clears the list of pre SQL statements that is applied to the layer 160 Chapter 9 Enhanced Layer Functionality API Additions P
12. Cancel i i Sample 1 Custom spatial query In this sample the following parameters are used m GEOMCOL Comes from the Geometry Column control m FEATTABLE Comes from the Feature Table control This custom spatial query becomes the following after the Autodesk MapGuide Server has updated the parameters with the appropriate values SELECT ID FEATURE GEOM FROM DUBLIN PARCELS Note Using parameters within a custom spatial query is optional Using a Custom Spatial Query 5I Sample 2 Running a Custom Query Against an OLE Database This sample again illustrates the convenience of adding user supplied param eters when running the a custom spatial query this time against an OLE data base The parameters shown in the following Advanced Settings dialog box are entered instead of the user s having to type literal values contained within columns and feature tables Advanced Settings l x rm Spatial Filter Feature table TRAFFIC_SIGNS S Latitude Column Longitude column es A IV Use Autodesk MapGuide Server s spatial filter I Apply clipping adjustment to Autodesk MapGuide Server s spatial filter Adjustment pp FOOT m Query List Spatial Query Custom SELECT ID ZLATCOL ZLONCOL FROM ZFEATTABLE WH Down Up New Dee Edit Delete Cancel Sample 2 OLE DB custom spatial query The actual custom query is SELECT ID LATCOL LONCOL FROM FEATTABLE WHER
13. Creating a Layer from a Query a How Themes Work in Autodesk Map Creating a Layer from a Theme Creating a Layer By Geometry Type Theming a DWG Layer Using a Secondary Table Accessing Data Using a Link Template DWF Support Summary of DWF Support Setting Up a Data Source for DWF Files How DWFs are Published in Autodesk Map Creating a Layer from a DWF File Sheet Displaying Friendly Names and URLs Saving a View As a DWF File Enhanced Layer Functionality Summary of Enhanced Layer Functionality z Providing Access to the Enhanced Layer Functionality API Using Geometry Functions ws Supported Geometry Functions Sample Applied Geometry Functions Applying Filters to Spatial Queries Turning Spatial Filtering On and Off 35 36 s37 39 40 40 42 42 Changing the Dimensions of the Autodesk MapGuide Spatial Filter 44 Contents Chapter 5 Chapter 6 Part 2 Chapter 7 Contents Using a Custom Spatial Query Sample 1 Running a Custom Query Sample 2 Running a Custom Query Against an OLE Database Accessing the Oracle Linear Referencing System LRS Using SQL Pass Through Statements Tracking Enhanced Layer Features Oracle Spatial Data Provider Enhancements Dialog Box Changes Registry Structure Changes Manually Editing a UDL File Using Buzzsaw with Autodesk MapGuide Viewer Accessing Maps and MWF Files from Buzzsaw Referencing MWF Files from Autodesk MapGuide Appli
14. R typeface library c 1992 Typefaces from Payne Loving Trust c 1996 All rights reserved International CorrectSpell TM Spelling Correction System c 1995 by Lernout amp Hauspie Speech Products N V All rights reserved ACIS c 1989 2001 Spatial Corp All rights reserved Active Delivery TM 2 0 c 1999 2000 Inner Media Inc All rights reserved Portions c 1991 1996 Arthur D Applegate All rights reserved Portions of this software are based on the work of the Independent JPEG Group AnswerWorks 4 0 c 1997 2002 WexTech Systems Inc Portions of this software c Lernout amp Hauspie Inc All Rights Reserved This product includes software developed by the Apache Software Foundation subject to its license terms and conditions http xml apache org dist LICENSE txt Copyright c 1999 2000 The Apache Software Foundation All rights reserved PANTONE R Colors displayed here may not match PANTONE identified standards Consult current PANTONE Color Publications for accurate color PANTONE R and other Pantone Inc trademarks are the property of Pantone Inc c Pantone Inc 2002 The Director General of the Saas Survey Institute has issued the approval for the coordinates exchange numbered TKY2JGD for Japan Geodetic Datum 2000 also known as technical information No H1 NO 2 of the Geographic Survey Institute to be installed and used within this software product Approval No 646 issued by GSI April 8 2002 OSTN97 c Crown copyright 1
15. See Also getNameSource setNameSource getUrlSource Method Syntax int getUrlSource Description Gets the source of the feature URLs for layers that are created from DWG data These URLs enable users to go the a web page related to a map feature by double clicking the feature Feature URLs can be taken either from an Autodesk DWG file or a secondary table A value of 0 indicates the DWG file as the source feature URLs A value of 1 indicates the secondary table as the source for feature URLs For more information about getting feature URLs for a layer created from DWG data see Step 9 under Accessing Data Using a Link Template on page 20 Chapter 7 DWG API Additions Parameters none Return Values integer Value indicating the source of the feature URLs 0 Indicates Autodesk DWG files as the source 1 Indicates secondary tables as the source Error Codes none See Also setUrlSource UrlSource setUrlSource Method Syntax boolean setUrlSource int urlSource Description Sets the source of feature URLs for layers that are created from DWG data These URLs enable users to go the a web page related to a map feature by double clicking the feature Feature URL sources can be taken either from an Autodesk DWG file or a secondary table A value of 0 sets the Autodesk DWG file as the URL source A value of 1 sets the secondary table as the URL source This method sets the URL source only for polyl
16. in the AutoCAD Help To create a new Autodesk MapGuide Author layer from a DWF file 1 In Autodesk MapGuide Author right click Map Layers and then click New Layer gt Autodesk DWF Dublin California 2 h Eea ea Tex Reports New Layer Group Point xe Zoom Gol Add Layer from File Polyline g Popup M Polygon Raster a Expand gt Autodesk DWG Collapse gt Autodesk GIS Design Server Theme mmm TT aldara 2 On the General tab enter a name for the new layer Note If you use a high dpi DWF for a DWF layer and you select the Make Map Features Selectable check box on the General tab of the Map Layer Prop erties dialog box it may take a long time to select all the map features 3 Click the Data Sources tab and make sure that the Map agent path is pointing to the correct location Creating a Layer from a DWF File Sheet 29 4 Click the Data Source Browse button and select a DWF data source 5 Click the Autodesk DWF Browse button and select a DWF file 6 Click the Sheet Name Browse button and select a sheet from the list DWF Data Source Name URL Data source DWF Dublin Autodesk DWF PROJECT Sheet name Select DWF PARCELS file and sheet here FEATURE_ID Layer filter Key column type String v El ARAA 7 Optionally click the Layer Filter Browse button and select a layer from the list If you want to bring in the entire sheet leave the
17. 125 getLayerType method 125 LayerType property 126 MGMapLayerSetup Object additions to 153 addPostSQLStatements method 162 addPreSQILStatements method 159 clearPostSQLStatements method 163 clearPreSQLStatements method 160 getClipAdjust method 155 getClipEnabled method 157 getGeometryFunction method 153 getPostSQLStatements method 161 getPreSQLStatements method 159 getSpatialQuery method 164 new error code 166 setClipAdjust method 156 setClipEnabled method 158 setGeometryFunction method 154 setSpatialQuery method 164 MGMapLayerSetup object 126 getDwfDataSources method 126 getSourceType method 128 MGDwfDataSources property 127 SourceType property 128 MGMapObject saveAsDwf method 124 MWF files format change 4 sample URL parameter entry 64 N NameColumn property 142 NameSoutce property 97 non secure site warning preventing 73 Oo Objects MGDwfDataSources 128 MGDwegDataSources 82 MGMap 124 MGMapLayer 125 MGMapLayerSetup 126 153 OLE database running query against 52 Oracle geometry functions list of supported 40 using 39 Oracle Spatial Data Provider changes to 59 editing UDL files 61 registry changes 61 172 Index P Passkey setting for enhanced layer functionality API 152 pass thru SQL statements 55 polylines arcs 7 treated as polygons 15 print driver for DWF 32 Properties DataSource 131 Dwf 133 FilterType 83 KeyColumn 136 KeyColumntType 139 LayerFilter 147 LayerType 126 LinkedToSecondaryTable 108
18. ADL data provider For more information about DWF data sources see Setting Up a Data Source for DWF Files on page 25 Parameters none MGDwfDataSources Object 129 Returns String Represents the name of the DWF data source See Also setDataSource DataSource setDataSource Method Syntax boolean setDataSource String dataSource Description Sets the name of the DWF data source that establishes a connection between Autodesk MapGuide Server and the Autodesk Data Link ADL data provider If this method is successful it sets the rebuild flag of the layer to True For more informaion about the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu When you change the DWF data source you may also need to update several other properties These properties include Dwf SheetName KeyColumn KeyColumnType NameColumn UrlColumn and LayerFilter For more information about DWF data sources see Setting Up a Data Source for DWF Files on page 25 Parameters dataSource String representing the name of the data source Returns boolean Specifies whether of not the data source is successfully set True Indicates that the data source is successfully set False Indicates that the data source is not set 130 Chapter
19. Improved DWG Support The geometry is themed according to the styles you specified and dis played in Autodesk MapGuide Author Autodesk MapGuide Author City parcels C MapGuide Working files City_parcels mwf Ce amp File Edit Navigate Bookmarks Select view Window Help DEARA aera ege City parcels E By Map Layers amp Reports amp Zoom Gotos g Popup Menu x 65 708 656078 y 54 442 121907 METER Lan 0 feature s selected i 16 149 15 860 x 4 5 Legend width 238 4 Using a Secondary Table You can use a secondary table to associate additional data with the geometry you are bringing into Autodesk MapGuide Author from a DWG file The steps to use a secondary table with a DWG file are almost exactly the same as the steps to use a secondary table with SDF geometry The Map Layer Properties dialog box looks slightly different as shown in the following illustration Draw features from Autodesk DWG data source ad DWG DataSource Name URL Where IV Link to secondary table Select Secondary Table Name source Name column Secondary table v LAND USE Ej URL source URL column Secondary table hai FO Apply SQL where clause to SQL where clause pee o For more information about secondary tables see the topic Data Sources tab Name URL Where tab Map Layer Properties dialog box in the Autodesk MapGuide Help Secondary table Creating a Layer By Geometry Type 1
20. Parameters none Returns String read write Represents the name of the column containing the names of the map features on the Autodesk DWF layer Error Codes 1 Busy See Also getNameColumn setNameColumn 142 Chapter 8 DWF API Additions getUriColumn Method Syntax String getUrlColumn Description Gets the name of the column that contains the URL associated with each map feature on the Autodesk DWF layer These URLs enable users to go to a Web page that is related to a map feature simply by double clicking that feature Typically you store HTTP URLs in this column but you could also specify commands with other protocols such as FTP URLs or JavaScript commands Use caution however with non stan dard protocols such as Javascript as not all browsers support them For information about using URL columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters none Returns String Represents the name of the column containing the URLs for the map features See Also setUrlColumn UrlColumn setUrIColumn Method Syntax boolean setUrlColumn String column Description Sets the name of the column that contains the URL associated with each map feature on the Autodesk DWF layer If this method is successful it sets the rebuild flag of the layer to True For more information on the rebuild flag see MGDwfDataSources Object 143 setRebuild in the Autodesk MapGu
21. Specifies whether or not the name of the theme has been success fully set True Indicates that the theme name has been set successfully False Indicates that the theme name has not been set Error Codes 1 Busy See Also getThemeName ThemeName getThemeCategory setThemeCategory ThemeCategory ThemeName Property Syntax ThemeName Description Sets and gets the name of the theme that is assigned as the DWG filter It also automatically sets FilterType to a Theme Filter value of 2 For infomation about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map theme as the filter for layer data Use this property to set and get the name of the theme for the filter For information about setting the name of theme filters see Step 8 under Creating a Layer from a Theme on page 13 MGDwgDataSources Object 91 92 Parameters none Return Values String read write Represents the name of the theme that is assigned as the filter Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply This error code is returned for the read operation See Also getThemeName setThemeName getThemeCategory setThemeCategory ThemeCategory get ThemeCategory Method Syntax String getThemeCategory Description Gets the category of the theme that is assigned as the DWG filter In DWG layers you can specify an AutoCA
22. and select a DWG data source 6 Click the Autodesk DWG Browse button and select a DWG file If you are working with polygons you can click Treat Closed Polylines as Polygons If you select this option the polygon layer treats the closed polylines brought in from the DWG as polygons If you do not select this option the clos ed polylines are ignored wn If you are working with points you can click Treat Blocks as Points If you select this option the point layer treats the blocks brought in from the DWG as points If you do not select this option the blocks are ignored Creating a Layer By Geometry Type 15 7 8 When you are creating a geometry layer make sure that the geometry you are bringing in consists of appropriate objects 16 Chapter 2 Optionally select a key table and key column if you want to associate table data with the geometry on this layer For more information see the topic About DWG Data Sources in the Autodesk MapGuide Help For Filter Type select either Layer Query or Theme You can use any of the three filtering methods to specify the geometry that you want to bring into your map Map Layer Prope ties Polygon and use themed DWG data Draw features from Autodesk DWG data source x DWG Data Source Name URL Where Data source Nw G_Dublin_local ja IV Treat closed polylines as polygons Key column Key column type
23. boolean setLayerFilter String layerFilter Description Sets the DWF layer filter that specifies which layers to extract from the spec ified Autodesk DWF file If this method is successful it sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Note The layer filter is a comma delimited string For more information about using DWF files as data sources see Setting Up a Data Source for DWF Files on page 25 Chapter 8 DWF API Additions Parameters layerFilter String comma delimited representing the names of the layers to extract from the DWF file For example if a DWF sheet conists of 4 layers blue red green and yellow and you only want to extract the red layer you pass the red as the parameter to setLayerFilter An empty layer filter string applies all filter layers Returns boolean Specifies whether or not the layer filter is successfully set True Indicates that the filter is successfully set False Indicates that the filter is not set Error Codes 1 Busy See Also getLayerFilter LayerFilter LayerFilter Property Syntax LayerFilter Description Gets or sets the layer filter that specifies which layers to extract from the sp
24. box click the Data Sources tab as shown in the following illustration Map Layer Properties Polygon Parcels x General Data Sources Styles Security Map server agent URL mapquideb 5 mapagent exe Draw features from SDP Spatial Data Provider data source x SDP Data Source Name URL Where Data source EDF Dubin E Feature table dubiin_parcels E Key column Key column type FEATURED E String 7 Geometry column Geometry function FEATURE_GEOM Hl EI Advanced Settings Cancel Help Chapter 4 Enhanced Layer Functionality 4 On the Data Sources tab click the Advanced Settings button The Advanced Settings dialog box is displayed as shown in the following illus tration Advanced Settings Feature table I Geomety column lt Autodesk MapGuide Default gt 5 Select the Apply Clipping Adjustment To The Autodesk MapGuide Spatial Filter check box When you select this option Adjustment is available Note The unit of measure FOOT MILE and so on of the spatial filter extents is shown next to the Adjustment text box where you enter the number of units you are adjusting The Adjustment value defaults to zero 0 6 In Adjustment enter a positive number to replace the 0 value 1 or 2 for example if you want to increase the size of the spatial filter s extents or enter a negative number 1 or 2 for example if
25. calculations required for the addition of buffers centroid locations and other geometry functions are performed by Oracle on the server side where the data resides and are passed back to the Autodesk MapGuide client application You can take advantage of Oracle s powerful geometry capabilities and quickly bring the results into your projects Note Currently only Oracle supports geometry functions and geometry func tions must return geometry objects such as points polygons polylines or some combination of these objects Also the Autodesk MapGuide layer type must match the geometry type returned by the geometry function used To apply the Oracle geometry function 1 Double click the name of the layer in the list The Map Layer Properties dialog box is displayed 2 To display its contents click the Data Sources tab 3 On the Data Sources tab in the Geometry Function text box enter the name of the geometry function you want to apply 4 Click OK The Map Layer Dialog box is closed and the Oracle layer is buff ered using Oracle s geometry function The results are displayed on the layer Example Suppose you are applying the buffer geometry function for which you would enter SDO_GEOM SDO_ BUFFER GEOMCOL 2 1 The selected geometry column name for the layer is substituted for the GEOMCOL parameter if it is used Using Geometry Functions 39 Note Using parameters when applying a geometry function is optional Sup
26. data Feature names can be taken either from an Autodesk DWG file or a secondary table A value of 0 indicates the Autodesk DWG file as the feature names source A value of 1 indicates the secondary table as the feature name source For more information about getting the source of feature names for a layer created from DWG data see Step 9 under Accessing Data Using a Link Template on page 20 MGDwgDataSources Object 95 96 Parameters none Return Values Integer Value indicating the source of the feature name 0 Autodesk DWG file 1 Secondary table Error Codes none See Also setNameSource NameSource setNameSource Method Syntax boolean setNameSource int nameSource Description Sets the source of feature names for layers that are created from DWG data Feature names can be taken either from an Autodesk DWG file or a secondary table A value of 0 sets the Autodesk DWG file as the name source A value of 1 sets the secondary table as the name source This method sets the name source only for polyline polygon and point layers created from DWG data It does not set the name source for Autodesk DWG layers For more information about setting the name source of features on a layer see Step 9 under Accessing Data Using a Link Template on page 20 Parameters nameSource Value indicating the source of the feature names 0 Sets the Autodesk DWG file as the name source Chapter 7 D
27. functionality API for the layer Providing Access to the Enhanced Layer Functionality API 37 Note To provide access to the enhanced layer functionality API for maps created in earlier versions of Autodesk MapGuide you need to open your existing maps in Autodesk MapGuide Author 6 5 check this new option for the layers to which you have applied the enhanced layer features and then assign a passkey For more information about the existing security functionality see Speci fying Security for Layers in the Autodesk MapGuide User s Guide which you can access by clicking Programs gt Autodesk MapGuide6 5 gt Documentation gt Autodesk MapGuide User s Guide on the Start menu For more information about setting a passkey to access the enhanced layer functionality API see Accessing the Enhanced Layer Functionality API on page 152 of Chapter 9 Enhanced Layer Functionality API Additions To provide access to the enhanced layer functionality from a layer 1 Double click the name of the layer in the list The Map Layer Properties dialog box is displayed 2 Click the Security tab to display the security options 3 On the Security tab select the Allow Access To Map Layer Setup From API With Following Passkey 4 Check the Allow API Access To The Layer s Geometry Function and Advanced Settings check box Note This option is only displayed if the layer uses a SDP or OLE Database data source 5 Specify a passkey by typi
28. getSQLWhereClause SQLWhereClause SQLWhereClause Property Syntax SQLWhereClause Description Gets and sets the SQL WHERE clause for layers that are created from DWG data This property gets and sets the SQL WHERE clause only for polyline polygon and point layers created from DWG data It does not get or set the SQL WHERE clause for Autodesk DWG layers SQL Where clauses can only be applied to secondary tables For more information about using secondary tables as the source for SQL WHERE clauses see Step 9 under Accessing Data Using a Link Template on page 20 Parameters none Return Values String read write Represents the SQL WHERE clause Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply Chapter 7 DWG API Additions See Also getSQLWhereClause setSQLWhereClause isLinkedToSecondaryTable Method Syntax Boolean isLinkedToSecondaryTable Description Specifies whether or not the current layer is linked to a secondary table A value of True indicates that a link exists A value of False indicates that a link does not exist In order to link to a secondary table you need to call the setSecondaryData Source setSecondaryTable and setSecondaryKeyColumn methods After you set these you can call the setNameSource setUrlSource or setWhereSource methods to link to a secondary table If either setNameSource setUrlSource or setWhereSource is set to 1 this
29. in effect disabling the Autodesk MapGuide default spatial filter and using a custom spatial filter with the SQL statements listed in the preceding example For more information see Using Geometry Functions on page 39 and Using SQL Pass Through Statements on page 55 Advanced Settings x r Spatial Filter Feature table mses CT Geometry Column IV Use Autodesk MapGuide Server s spatial filter I Apply clipping adjustment to Autodesk MapGuide Server s spatial filter Adjustment pp FOOT m Query List Spatial Query Custom SELECT ACCIDENT_ID SDO_LRAS CONVERT_TO_STD_GE Down ew Edit ile Delete Cancel i Example Custom spatial query with LRS function Chapter 4 Enhanced Layer Functionality Using SQL Pass Through Statements The Autodesk MapGuide enhanced layer functionality supports the use of pre and post SQL statements with spatial queries allowing you to execute these statements either before or after you perform a spatial query against a layer Note To use pre and post SQL statements with spatial queries you must access the database management system from within Autodesk MapGuide Pre and post SQL statements provide access to the database management system from within Autodesk MapGuide Although you can execute only one spatial query statement per layer you can apply multiple SQL statements before and after the spatial query to further customize the r
30. information about information on getting and setting the source of feature URLs for a layer created from DWG data see Step 9 under Accessing Data Using a Link Template on page 20 Parameters none Return Values integer read write Value indicating the URL source 0 Indicates Autodesk DWG files as the URL source 1 Indicates secondary tables as the URL source Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply This error code is for the write operation See Also getUrlSource setUrlSource getWhereSource Method Syntax int getWhereSource Description Gets the source of the SQL WHERE clause for layers that are created from DWG data This method sets the SQL WHERE clause only for polyline polygon and point layers created from DWG data It does not set the SQL WHERE clause for Autodesk DWG layers SQL WHERE clauses can be taken either from an Autodesk DWG file or a secondary table A value of 0 indicates that the SQL WHERE clause is taken from a DWG file A value of 1 indicates that the SQL WHERE clause is taken from a secondary table MGDwgDataSources Object 101 102 For more information about using secondary tables as the source for SQL WHERE clauses see Step 9 under Accessing Data Using a Link Template on page 20 Parameters none Return Values integer Value indicating the source for the SQL WHERE clause of the layer 0 Indicates
31. method returns a value of True Otherwise this method returns a value of False For more information about linking layers that are created from DWG data to secondary tables see Accessing Data Using a Link Template on page 20 Parameters none Return Values boolean Specifies whether or not the layer is linked to a secondary table True Indicates that the layer is linked to a secondary table False Indicates that the layer is not linked to a secondary table Error Codes 15 DoesNotApply See Also LinkedToSecondaryTable MGDwgDataSources Object 107 LinkedToSecondaryTable Property Syntax LinkedToSecondaryTable Description Specifies whether or not the current layer is linked to a secondary table A value of True indicates that a link exists A value of False indicates that a link does not exist In order to link to a secondary table you need to call the setSecondaryData Source setSecondaryTable and setSecondaryKeyColumn methods After you set these you can call the setNameSource setUrlSource or setWhereSource methods to link to a secondary table If either setNameSource setUrlSource or setWhereSource is set to 1 this property returns a value of True Otherwise this property returns a value of False For more information about linking layers that are created from DWG data to secondary tables see Accessing Data Using a Link Template on page 20 Parameters none Return Values
32. modified successfully it automatically sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu For information about using key columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters none Returns String read write Represents the data type of the key column Error Codes 1 Busy 3 IlegalArgument See Also getKeyColumnType setkKeyColumnType getNameColumn Method Syntax String getNameColumn Description Gets the name of the column that contains the name of each map feature on the Autodesk DWF layer For information about using name columns with DWF layers see Displaying Friendly Names and URLs on page 31 Chapter 8 DWF API Additions Parameters none Returns String Represents the name of the column containing the names of the map features on the DWF layer See Also setNameColumn NameColumn setNameColumn Method Syntax boolean setNameColumn String column Description Sets the name of the column that contains the name of each map feature on the Autodesk DWF layer If this method is successful it sets the rebuild flag of this layer to True For more information on the rebuild flag see setRebuild in
33. name of the key column Error Codes 1 Busy See Also getKeyColumn setKeyColumn getKeyColumnType Method Syntax String getKeyColumnType Chapter 8 DWF API Additions Description Gets the data type of the key column You can set the data type to one of the following String Numeric Decimal Integer SmallInt Float Double Date Time TimeStamp Boolean UnsignedInteger UnsignedSmallInt Byte UnsignedByte The API uses string values The MWX data type XML files uses enumerated constants in the form of string expressions It is recommended that you do not use Float or Double data types because of the inherent inaccuracies in comparing them For information about using key columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters none Returns String Represents the data type of the key column See Also setKeyColumnType KeyColumnType MGDwfDataSources Object 137 setKeyColumnType Method Syntax boolean setKeyColumnType String keyColumnType Description Sets the data type of the key column You can set the data type to one of the following String Numeric Decimal Integer SmallInt Float Double Date Time TimeStamp Boolean UnsignedInteger UnsignedSmallInt Byte UnsignedByte It is recommended that you do not use Float or Double data types because of the inherent inaccuracies in comparing them If this property is modified s
34. the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Properties include NameColumn For information about using name columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters column String representing the name to assign to the column with the names for the map features Returns boolean Specifies whether or not the name of the column is successfully set True Indicates that the column name is successfully set False Indicates that the column name is not set MGDwfDataSources Object 141 Error Codes 1 Busy See Also getNameColumn NameColumn NameColumn Property Syntax NameColumn Description Gets and sets the name of the column that contains the name for each map feature on the Autodesk DWF layer Returns an empty string if this property does not apply If this property is modified successfully it automatically sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Docu mentation gt Autodesk MapGuide Viewer API Help on the Program menu For information about using name columns with DWF layers see Displaying Friendly Names and URLs on page 31
35. the map state will be saved when the user leaves the page gt lt BODY onUnload saveMapState gt lt SCRIPT LANGUAGE JavaScript gt document write lt OBJECT ID map WIDTH 100 HEIGHT 100 document write CLASSID CLSID 62789780 B744 11D0 986B 00609731A21D if you put the CODEBASE parameter here it must point to a secure site otherwise you will get the This page contains both secure and nonsecure items dialog box document write CODEBASE https folders buzzsaw com project ocument write mgaxctrl cab Version 6 0 2 2 gt ocument write lt PARAM NAME URL VALUE https folders buzzsaw com ocument write Project pathtomwf gt ocument write lt PARAM NAME ObjectLinkTarget VALUE _self gt Put any other parameters that you want here but don t use Lat Lon MapWidth Units or SelObjs q q q q document write getMapStatePARAM restores the view and selection document write lt OBJECT gt lt SCRIPT gt lt BODY gt lt HTML gt Appendix Buzzsaw Code Integration 77 78 Part Il Changes and Additions to the MapGuide Viewer API The chapters in Part II document the changes and addi tions made to Autodesk MapGuide Viewer 6 5 API in order to support the new DWG Theming functionality DWF Support and Enhanced Layer functionality Please note only the ActiveX Control and the Java Edition of the Viewer support the new DWG DWE a
36. you can specify an AutoCAD Map query as a filter for layer data If FilterType is set as a query filter value of 1 this method returns the category of the query used in the filter If FilterType is not set as a query filter this method returns NULL with the error code DoesNotApply For more information about FilterType see FilterType Property on page 83 For information about setting the category of a query filter see Step 8 under How Queries Work in Autodesk Map on page 9 Parameters none Return Values String read write Represents the category of the query or an empty string Error Codes 15 DoesNotApply See Also setQueryCategory QueryCategory getQueryName setQueryName QueryName setQueryCategory Method Syntax boolean setQueryCategory String queryCategory Description Sets the category of the query that you want to assign as the DWG filter It also automatically sets FilterType to a Query Filter value of 1 For infoma tion about FilterType see FilterType Property on page 83 Use this method to specify the category of the query used as the filter MGDwgDataSources Object 87 88 For information about setting the category of a query filter see Step 8 under How Queries Work in Autodesk Map on page 9 Parameters queryCategory String representing the category of the query Return Values boolean Specifies whether or not the category of the query has be
37. you want to decrease the size of the filter s extents The following illustration shows an adjusted spatial filter entry Applying Filters to Spatial Queries 45 Using a Custom Spatial Query Custom queries consist of a set of user defined SQL statements that you can use instead of the default Autodesk MapGuide spatial queries Default spatial queries compile a server request statement from user defined parameters These parameters appear on the Data Sources tab of the Layer Properties dialog box in the Autodesk MapGuide Author By replacing the default spatial query with a custom spatial query the client passes a user defined request statement to the server For more information about spatial queries see the Autodesk MapGuide Users Guide by clicking Programs gt Autodesk MapGuide6 5 gt Documenta tion gt Autodesk MapGuide User s Guide on the Start menu If you want to specify a custom spatial query for a layer you must ensure that the order of selected columns in the custom query matches the column order expected by the Autodesk MapGuide clients The following tables show the expected column order to be returned to the client for a custom spatial query SDP Column Order Order Data Field Name 1 KEY 2 GEOMETRY 3 NAME 4 URL 46 Chapter 4 Enhanced Layer Functionality OLE DB Column Order Text Order Data Field Name 1 KEY 2 LAT 3 LON 4 NAME 5 URL 6 HEIGHT 7 ROTATION 8 HORI
38. 25 maptips 31 overview of support 24 printer driver download 32 saving views to 32 URLs 31 Dwf property 133 DWFWriter download 32 DWG API 81 122 DWG files and Autodesk MapGuide Author 8 and Autodesk MapGuide Server 7 and link templates 20 and queries 9 and text layers 15 and themes 12 overview of support 5 E enhanced layer functionality accessing API 37 152 applying filters to queries 42 geometry functions 39 summary 36 error code 18 Custom Spatial Query 165 169 F file formats DWE 23 DWG 5 MWE 4 filters applying to spatial queries 42 changing dimensions 44 turning on off 42 G geometry functions sample applied 40 supported 40 using 39 geometry type create layer from 15 getClipAdjust method 155 getClipEnabled method 157 getDataSource method 129 getDwf method 132 getDwfDataSources method 126 getFilterType method 82 getFilterType property 83 getGeometryFunction method 153 getKeyColumn method 134 getKeyColumnType method 136 getLayerFilter method 145 getLayerType method 125 getNameColumn method 140 getNameSource method 95 getPostSQLStatements method 161 getPreSQLStatements method 159 getQueryCategory method 86 getQueryName method 84 getSDPKeyColumn method 165 getSDPKeyColumnType method code 165 getSecondaryDataSource method 109 getSecondaryKeyColumn method 114 getSecondaryTable method 111 getSheetName method 148 getSourceType method 128 getSpatialQuery method 164 getSQLWhereClaus
39. 8 DWF API Additions Error Codes 1 Busy See Also getDataSource DataSource DataSource Property Syntax DataSource Description Gets and sets the name of the DWF data source that establishes a connection between Autodesk MapGuide Server and the Autodesk Data Link ADL data provider If this property is modified successfully it automatically sets the rebuild flag of the layer to True For more information about the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Docu mentation gt Autodesk MapGuide Viewer API Help on the Program menu When you change the DWF data source you may also need to update several other properties These properties include Dwf SheetName KeyColumn KeyColumnType NameColumn UrlColumn and LayerFilter For more information about DWF data sources see Setting Up a Data Source for DWF Files on page 25 Parameters none Returns String read write Represents the name of the DWF data source Error Codes 1 Busy MGDwfDataSources Object 131 132 See Also getDataSource setDataSource getDwf Method Syntax String getDwf Description Gets the name of the Autodesk DWF file for the Autodesk DWF layer For more information about using DWF files as data source for layers see Setting Up a Data Source for DWF Files on page 25 Parameters none Returns
40. 9 Accessing Data Using a Link Template In Autodesk Map a link template associates objects in the drawing with records in an external database In this release of Autodesk MapGuide you can access all the columns of any database table that is linked to the drawing by a link template For information about the other kinds of database tables that you can link see the topic About DWG Data Sources in the Autodesk MapGuide Help Note When using DWG link templates in Autodesk MapGuide the UDL files for the link template data sources must be copied from the Autodesk Map Data Links folder to the Autodesk MapGuide Server Data Sources folder Otherwise MapGuide will be unable to access the data source You can find the location of the UDL files used by Autodesk Map on the Files tab of the Options dialog box To access external database tables using a link template E In Autodesk MapGuide Author right click Map Layers and then click any of the DWG layer creation options on the shortcut menu On the General tab enter a name for the new layer For Draw Features From select Autodesk DWG Data Source Click the Autodesk DWG Browse button and select a DWG file Click the Key Table Browse button and select a link template link tem plate tables begin with DB_ 7 Click the Key Column Browse button and select a column 2 3 4 Click the Data Source Browse button and select a DWG data source 5 6 DWG Data Source Name URL Where
41. 997 All rights reserved OSTNO2 c Crown copyright 2002 All rights reserved OSGMO2 c Crown copyright 2002 c Ordnance Survey Ireland 2002 RAL DESIGN c RAL Sankt Augustin 2002 RAL CLASSIC c RAL Sankt Augustin 2002 Representation of the RAL Colors is done with the approval of RAL Deutsches Institut f r Giitesicherung und Kennzeichnung e V RAL German Institute for Quality Assurance and Certification reg Assoc D 53757 Sankt Augustin Please note that the representation of colors on monitors can only approximate the actual color shades as they are registered as lacquered samples Neither the quality of the present software nor the hardware used is responsible for it c Stade de France Macary Zublena et Regembal Costantini Architectes ADAGP Paris 2003 GOVERNMENT USE Use duplication or disclosure by the U S Government is subject to restrictions as set forth in FAR 12 212 Commercial Computer Software Restricted Rights and DFAR 227 7202 Rights in Technical Data and Computer Software as applicable 12345678910 Contents Part 1 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Autodesk MapGuide Server and Author Enhancements Introduction Installation Notes Upgrading From an Earlier Release Major New Features Improved DWG Support Summary of Enhancements Dialog Box Changes Autodesk MapGuide Server Dialog Box Changes Autodesk MapGuide Author How Queries Work in Autodesk Map
42. AX 3D Studio VIZ 3DSurfer 3ds max ActiveShapes ActiveShapes logo Actrix ADI AEC Authority logo AEC X Animator Pro Animator Studio ATC AUGI AutoCAD AutoCAD LT AutoCAD Map Autodesk Autodesk Inventor Autodesk logo Autodesk MapGuide Autodesk Streamline Autodesk University logo Autodesk View Autodesk WalkThrough Autodesk World AutoLISP AutoSketch backdraft Biped bringing information down to earth Buzzsaw CAD Overlay Character Studio Cinepak Cinepak logo Codec Central Combustion Design Your World Design Your World logo Discreet EditDV Education by Design gmax Heidi HOOPS Hyperwire i drop Inside Track IntroDV Kinetix MaterialSpec Mechanical Desktop NAAUG ObjectARX PeopleTracker Physique Planix Powered with Autodesk Technology logo ProjectPoint RadioRay Reactor Revit Softdesk Texture Universe The AEC Authority The Auto Architect VISION Visual Visual Construction Visual Drainage Visual Hydro Visual Landscape Visual Roads Visual Survey Visual Toolbox Visual Tugboat Visual LISP Volo WHIP and WHIP logo The following are trademarks of Autodesk Inc in the USA and or other countries AutoCAD Learning Assistance AutoCAD LT Learning Assistance AutoCAD Simulator AutoCAD SQL Extension AutoCAD SQL Interface Autodesk Envision Autodesk Map AutoSnap AutoTrack Built with ObjectARX logo Burn Buzzsaw com CAiCE Cinestream Cleaner Cleaner Central ClearScale Colour Warpe
43. Autodesk MapGuide What s New in Release 6 5 15607 010000 5000A April 2004 Copyright 2004 Autodesk Inc All Rights Reserved This publication or parts thereof may not be reproduced in any form by any method for any purpose AUTODESK INC MAKES NO WARRANTY EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS AND MAKES SUCH MATERIALS AVAILABLE SOLELY ON AN AS IS BASIS IN NO EVENT SHALL AUTODESK INC BE LIABLE TO ANYONE FOR SPECIAL COLLATERAL INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING OUT OF PURCHASE OR USE OF THESE MATERIALS THE SOLE AND EXCLUSIVE LIABILITY TO AUTODESK INC REGARDLESS OF THE FORM OF ACTION SHALL NOT EXCEED THE PURCHASE PRICE OF THE MATERIALS DESCRIBED HEREIN Autodesk Inc reserves the right to revise and improve its products as it sees fit This publication describes the state of this product at the time of its publication and may not reflect the product at all times in the future This work is protected by U S and international copyright laws Its use is subject to the terms of the license agreement included with this software and agreed to during the installation process c 1982 2003 Autodesk Inc All rights reserved Autodesk Trademarks The following are registered trademarks of Autodesk Inc in the USA and or other countries 3D Props 3D Studio 3D Studio M
44. D Map theme as that the filter for layer data If FilterType is set as a theme filter value of 2 this method returns the category of the theme used in the filter If FilterType is not set as a theme filter this method returns NULL with the error code DoesNotApply For more information about FilterType see FilterType Property on page 83 For information about theme categories see Step 8 under Creating a Layer from a Theme on page 13 Chapter 7 DWG API Additions Parameters none Return Values String Represents the category of the theme that is assigned as the filter or an empty string Error Codes 15 DoesNotApply See Also setThemeCategory ThemeCategory getThemeName setThemeName ThemeName setThemeCategory Method Syntax boolean setThemeCategory String themeCategory Description Sets the category of the theme that you want to assign as the DWG filter It also automatically sets FilterType to a Theme Filter value of 2 For infoma tion about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map theme as the filter for layer data Use this method to set the category of the theme for the filter For information about theme categories see Step 8 under Creating a Layer from a Theme on page 13 MGDwgDataSources Object 93 94 Parameters themeCategory String representing the category of the theme that you want to assign as the fil
45. E LATCOL gt MINY AND LATCOL lt MAXY AND LONCOL gt MINX AND LONCOL lt MAXX In the preceding sample custom spatial query the following parameters are used m LATCOL Comes from the Latitude Column control m LONCOL Comes from the Longitude Column control m FEATTABLE Comes from the Feature Table control m MINX Comes from the minimum X extents of the client window m MINY Comes from the minimum Y extents of the client window m MAXX Comes from the maximum X extents of the client window m MAXY Comes from the maximum Y extents of the client window 52 Chapter 4 Enhanced Layer Functionality This custom spatial query becomes the following after the Autodesk MapGuide server has updated the parameters with the appropriate values SELECT ID LAT LON FROM TRAFFIC SIGNS WHERE LAT gt 90 AND LAT lt 90 AND LON gt 180 AND LON lt 180 Note Using parameters within a custom spatial query is optional Accessing the Oracle Linear Referencing System LRS Autodesk MapGuide now provides access via the custom spatial query to Oracle s Linear Referencing System LRS You can use linear referencing to locate attributes along a linear map feature For example you can locate attributes along a road using a measure parameter rather than specifying latitude and longitude coordinates Further you can reference sections of a linear map feature or create them dynamically by indicating the start and end locations along t
46. LS DWG and SEWER_DATA DWG are published to the PROJECT DWF file The DWF file contains two sheets Each of these sheets can be brought into Autodesk MapGuide Author as a separate layer 28 Chapter 3 DWF Support Creating a Layer from a DWF File Sheet DWFs are really intended to be used as background images in much the same way that DWG files were used in previous releases Because DWFs are essen tially electronic plots the level of precision depends on the plot settings This is not an issue for most maps However if your application demands a higher degree of precision you can increase the size of the virtual DWF paper by setting the appropriate DPI and paper size before you publish to DWF The following link goes to an article that explains DWF precision why it is not the same as the DWG and how to improve the precision http autodesk blogs com between_the_lines 2004 01 dwf_precision_a html As you could with a DWG layer you can bring in specific layers from the DWF file However you cannot stylize or theme the features once they are part of the map Also font information is stored in the DWF and cannot be changed Note By default a DWF file created in Autodesk Map does not retain the layers from the original DWG file If you want to bring in specific layers from the DWF file you must modify the DWF plot configuration file For more information see the topic Overview of Creating or Modifying a DWF6 Configuration File
47. LTYPES B WHERE B F_ID A F_ID However this is difficult to determine and confusing because users are accustomed to seeing column names rather than an entire SQL statement In comparison it is much easier to determine the key column for the following query SELECT F_ID F GEOM F_NAME FROM ALLTYPES It is clear that the key column is F_ID MGMapLayerSetup Object The following MGMapLayerSetup methods include the new 18 Custom Spatial Query error code m getSDPKeyColumn m setSDPKeyColumn m getSDPKeyColumnType m setSDPKeyColumnType For more information about theses methods see the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu MGDatabaseSetup Object The following MGDatabaseSetup methods include the new 18 Custom Spatial Query error code getNameColumn setNameColumn getUrlLinkColumn setUrlLinkColumn getWhereClause setWhereClause getSymbolAngleColumn 166 Chapter 9 Enhanced Layer Functionality API Additions setSymbolAngleColumn getSymbolWidthColumn setSymbolWidthColumn getSymbolHeightColumn setSymbolHeightColumn getTextHeightColumn setTextHeightColumn getTextAngleColumn setTextAngleColumn getTextHorizAlignColumn setTextHorizAlignColumn getTextVertAlignColumn setTextVertAlignColumn For more information about these methods see the Autodesk MapGuide Viewer A
48. Layer Name field blank 8 Click OK The DWF sheet is retrieved from the server and displayed in Autodesk MapGuide Author Autodesk MapGuide Author Dublin California C Projectsimg MWF Module3_Lesson1 mwf BEE amp File Edit Navigate Bookmarks Select View Window Help D amp RIAA Re Dublin California h Map Layers o MA Parcels PROJECT DWF Reports EN Zoom Gotos g Popup Menu Design 0 feature s selected Legend width 240 30 Chapter 3 DWF Support XOR 1 71 805 5 27 x 3 99 mi Displaying Friendly Names and URLs If you want to access database columns defined for the DWE you can click the Name URL tab and select a column for the Name and or URL You can use the content of the columns to display a friendly name for the features or to display URLs The friendly name replaces the URL in the maptip For example MapGuide could replace http www mapguide com As with SDP data sources FEATURE_URL is the keyword for accessing URLs in the DWF file If you enter information in the URL column that informa tion will be available on the status bar when a user passes the mouse pointer over the related link Only fully qualified URLs are recognized Those not fully qualified that is those without http are ignored Draw features from z DWF Data Source Name URL Name column Dispayed in jal maptip URL column Displayed on fa status bar You may decide to e
49. MGDwfDataSources 127 NameColumn 142 NameSource 97 QueryCategory 88 QueryName 86 SecondaryDataSource 110 SecondaryKeyColumn 115 SecondaryTable 113 SheetName 150 SourceType 128 SQLWhereClause 106 ThemeCategory 94 ThemeName 91 TreatBlocksAsPoints 121 TreatClosedPolylinesAsPolygons 118 UrlColumn 144 UrlSource 100 WhereSource 103 Provider for Oracle Spatial changes to 59 Q queries creating layers from 10 overview 9 QueryCategory property 88 QueryName property 86 R registry changes Oracle SDP 61 S saveAsDwf method 124 SecondaryDataSource property 110 SecondaryKeyColumn property 115 SecondaryTable property 113 setClipAdjust method 156 setClipEnabled method 158 setDataSource method 130 setDwf method 132 setGeometryFunction 154 setKeyColumn method 135 setKeyColumnType method 138 setLayerFilter method 146 setNameColumn method 141 setNameSource method 96 setQueryCategory method 87 setQueryName method 85 setSecondaryDataSource method 109 setSecondaryKeyColumn method 114 setSecondaryTable method 112 setSheetName method 149 setSpatialQuery method 164 setSQLWhereClause method 105 setSymbolAngleColumn method 166 setSymbolHeightColumn method 166 setSymbolWidthColumn method 166 setTextHorizAlignColumn method 166 setThemeCategory method 93 setThemeName method 90 setTreaBlocksAsPoints method 120 setTreatClosedPolylinesAsPolygons method 117 setUrlColumn method 143 setUrlSource method 99 setWhereClause method 166 setWhere
50. PI Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu New 18 Custom Spatial Query Error Code 167 168 Index Numerics 18 Custom Spatial Query error code defined 165 A acadmap ini file 4 addPostSQLStatements method 162 addPreSQLStatements method 159 Advanced tab DWG data source 7 Agent URL 8 API access to enhanced layer functionality 37 DWF API additions 123 150 DWG API additions 81 122 enhanced layer functionality additions 151 arc parameters and DWG support 7 for Oracle SDP 60 Autodesk Map how DWF files are published 28 how queries are created 9 how themes are created 12 ini file location 4 Autodesk MapGuide Author changes for DWG support 8 Autodesk MapGuide Server changes for DWF support 25 changes for DWG support 7 changes for Oracle SDP 60 Buzzsaw accessing maps and MWFs from 64 associating with map feature 66 avoiding interface authentication 69 preventing non secure site warning 73 retaining current map state 71 sample code integration 74 Cc clearPostSQLStatements method 163 clearPreSQLStatements method 160 code integration sample 74 custom spatial queries advanced settings 54 column order 46 error code 165 running against OLE database 52 samples 51 specifying 49 using 46 D DataSource property 131 DWF API 123 150 DWF files and Autodesk Map 28 and Autodesk MapGuide Server
51. Query Autodesk MapGuide lt Autodesk MapGuide Default gt Down ew i Delete Cone The spatial query that Autodesk MapGuide uses appears under Query List Note that the Use MapGuide Server s Spatial Filter option is selected and the default Autodesk MapGuide spatial query is specified in the Details column You can accept this to run the standard query attached to the layer or you can specify a custom query i To specify a custom spatial query 1 Inthe Advanced Settings dialog box click the Edit button The Edit Query dialog box is displayed as shown in the following illustration Note The Information portion of the dialog box under Type tells you that the Autodesk MapGuide default spatial query will be used unless you change it Using a Custom Spatial Query 49 Edit Query ix Information The default Autodesk MapGuide spatial query will be used Data Autodesk MapGuide Default a L Cancel 2 Inthe Type list select Spatial Query Custom as shown in the following illustration Autodesk MapGuide prompts you to enter the name of the custom spatial query in the Data area of the Edit Query dialog box Edit Query x Type 5 patial Query Custom Information Please enter the custom spatial query SQL statement to be executed Please see help for details on the column order required by the Autodesk MapGuide clients Example SDP SELECT F_ID F_LGEOM F_LNAME FROM PARCELS E
52. Represents the source type for the layer data The following are valid source types for map data Database DWG DWF Raster ImageFile SpatialDataFile or VisionTheme MGDwfDataSources Object 128 MGDwfDataSoutces is a new object that implements methods and properties to support Autodesk DWF data sources for the new DWF layer functionality The MGDwfDataSources object includes the following new methods and properties m getDataSource see page 129 m setDataSource see page 130 Chapter 8 DWF API Additions DataSource see page 131 getDwf see page 132 setDwf see page 132 Dwf see page 133 getKeyColumn see page 134 setKeyColumn see page 135 KeyColumn see page 136 getKeyColumnType see page 136 setKeyColumnType see page 138 KeyColumnType see page 139 getNameColumn see page 140 setNameColumn see page 141 NameColumn see page 142 getUrlColumn see page 143 setUrlColumn see page 143 UrlColumn see page 144 getLayerFilter see page 145 setLayerFilter see page 146 LayerFilter see page 147 getSheetName see page 148 setSheetName see page 149 SheetName see page 150 For more information about the new DWF functionality in this release of Autodesk MapGuide see Chapter 3 DWF Support on page 23 getDataSource Method Syntax String getDataSource Description Gets the name of the DWF data source that establishes a connection between Autodesk MapGuide Server and the Autodesk Data Link
53. SheetName Method Syntax boolean setSheetName String sheetName Description Sets the name of the DWF sheet that contains the map features on this Autodesk DWF layer DWF files consist of a number of sheets each of which can contain a view of a different DWG file or a different view of the same DWG file for example a layout with different layers turned on or off If this method is successful it sets the rebuild flag of the layer to True Form more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu For more information about using DWF sheets see How DWFs are Published in Autodesk Map on page 28 and Creating a Layer from a DWF File Sheet on page 29 Parameters sheetName String comma delimited representing the name of the sheet that contains the map features for this DWF layer Returns boolean Specifies whether or not the sheet name is successfully set True Indicates that the name is successfully set False Indicates that the name is not set Error Codes 1 Busy MGDwfDataSources Object 149 See Also getSheetName SheetName SheetName Property Syntax SheetName Description Sets the name of the DWF sheet that contains the map features on this Autodesk DWF layer DWF files consist
54. Source method 102 SheetName property 150 SourceType property 128 spatial queries applying filters to 42 changing filter dimensions 44 custom 46 custom samples 51 specifying custom 49 turning filtering on off 42 verifying default 48 SQL and Autodesk Map queries 10 pre and post statements 55 SQLWhereClause property 106 T ThemeCategory property 94 ThemeName property 91 themes creating layers from 13 TreatBlocksAsPoints property 121 TreatClosedPolylinesAsPolygons property 118 U UDL files for Oracle SDP 61 URL sample parameter entry 64 UrlColumn property 144 UrlSource property 100 Vv VIEW sample code 53 view saving to DWF file 32 W WhereSource property 103 Index 173 174
55. Table Description Gets the secondary table linked to layers that are created from DWG data This method gets the secondary table linked only to polyline polygon and point layers It does not get the secondary table linked to Autodesk DWG layers For more information about linking layers that are created from DWG data to secondary tables see Accessing Data Using a Link Template on page 20 MGDwgDataSources Object III Parameters none Return Values String Represents the name of secondary table linked to the layer Error Codes 15 DoesNotApply See Also setSecondaryTable SecondaryTable setSecondary Table Method Syntax boolean setSecondaryDataSource String secondaryDataSource Description Sets the secondary table linked to layers that are created from DWG data This method sets the secondary table linked only to polyline polygon and point layers It does not set the secondary table linked to Autodesk DWG layers For more information about linking layers that are created from DWG data to secondary tables see Accessing Data Using a Link Template on page 20 Parameters secondaryTable String representing the name of the secondary table to link to the layer Return Values boolean Specifies whether or not the secondary table is successfully set True Indicates that the secondary table is successfully set False Indicates that the secondary table is not set 112 Chap
56. WF layer If this property is modified successfully it automatically sets the rebuild flag of the layer to True For more information about the rebuild flag see setRe build in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu MGDwfDataSources Object 133 134 When you change the Autodesk DWF file you may need to update several other properties These properties include SheetName KeyTable KeyColumn KeyColumnType NameTable NameColumn UrlTable UrlColumn and LayerFilter Note If you do not include a path to the DWF file this method assigns the first one it finds in the search path For more information about using DWF files as data source for layers see Setting Up a Data Source for DWF Files on page 25 Parameters none Returns String read write Represents the name of the DWF file for the DWF layer Error Codes 1 Busy See Also getDwf setDwf getKeyColumn Method Syntax String getKeyColumn Description Gets the name of the column that contains the primary key for each map feature on the DWF layer For information about using key columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters none Chapter 8 DWF API Additions Returns String Represents the name of the key column that contains the primary key for the
57. WG API Additions 1 Sets the secondary table as the name source Return Values boolean Specifies whether or not the source of the feature names has been successfully set True Indicates that the name source has been set successfully False Indicates that the name source has not been set Error Codes 1 Busy 15 DoesNotApply See Also getNameSource NameSource NameSource Property Syntax NameSource Description Gets and sets the source of feature names for layers that are created from DWG data Feature names can be taken from an Autodesk DWG file or a secondary table A value of 0 sets the Autodesk DWG file as the name source A value of 1 sets the secondary table as the name source This property gets and sets the name source only for polyline polygon and point layers created from DWG data It does not set the name source for Autodesk DWG layers For more information about getting and setting the source of feature names for a layer see Step 9 under Accessing Data Using a Link Template on page 20 MGDwgDataSources Object 97 98 Parameters none Return Values integer read write Value indicating the source of feature names 0 Indicates the Autodesk DWG file as the name source 1 Indicates the secondary table as the name source Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply This error code is for the write operation
58. ZONTAL ALIGNMENT 9 VERTICAL ALIGNMENT OLE DB Column Order Point Order Data Field Name 1 KEY 2 LAT 3 LON 4 NAME 5 URL Using a Custom Spatial Query 47 Order Data Field Name 6 WIDTH 7 HEIGHT 8 ROTATION Before you create a custom spatial query you should verify the content of the default Autodesk MapGuide spatial query This will save you time if you discover that the default query may have returned the data you need To verify the default spatial query 1 Open the map containing the layer to which you want to apply a spatial query 2 Double click the name of the layer in the list to the left of the map The Map Layer Properties dialog box is displayed 3 In the Map Layer Properties dialog box click the Data Sources tab as shown in the following illustration Map Layer Properties Polygon Parcels SDP Spatial Data Provider data source SDF_Dublin jE pinse oOo o pamo fom a a fp e aoa 48 Chapter 4 Enhanced Layer Functionality 4 On the Data Sources tab click the Advanced Settings button The Advanced Settings dialog box is displayed as shown in the following illus tration Advanced Settings x r Spatial Filter Feature table pi IV Use Autodesk MapGuide Server s spatial filter I Apply clipping adjustment to Autodesk MapGuide Server s spatial filter Adjustment p FOOT m Query List FEATURE_GEOM i Spatial
59. al query used by the server would look like the following SELECT ID SDO GEOM SDO BUFFER GEOM 2 1 FROM LAND PARCELS Using Geometry Functions 41 Applying Filters to Spatial Queries 42 A spatial query returns potentially large volumes of geographic information pertaining to map features By limiting the data returned by a query a spatial filter reduces the query result set to a particular geography Using spatial filters can protect against the unwanted return of much larger batches of data than you intended For more information about the default Autodesk MapGuide spatial queries you should refer to your MapGuide user documentation which you can access by clicking Programs gt Autodesk MapGuide6 5 gt Documentation gt Autodesk MapGuide User s Guide on the Start menu Turning Spatial Filtering On and Off When you create a layer spatial filtering is turned on by default In this version of Autodesk MapGuide you can choose to turn spatial filtering on or off Note You should exercise caution if you decide to turn off spatial filtering Removing filtering can drastically increase both the record volumes returned and the amount of time required for data retrieval For example you could be observ ing a layer displaying San Francisco primary streets and the grid displayed could be extracted from a database containing the entire U S network of major city streets Turning off the spatial filter could result in an attempt to re
60. ample code with the ObjectLinkTarget highlighted wj 2_Demo2 1 Notepad File Edit Format Help lt HTML gt lt SCRIPT language JavaScript gt function showAboutDialog document map aboutDlg lt SCRIPT gt lt BODY gt lt OBJECT ID map WIDTH 100 HEIGHT 80 CLASSID CLSID 62789780 B7 44 11 D0 986B 00609731A421D CODEBASE ttp tp autodesk com pub mapguideAviewer mgaxctrl cab ersion 6 5 0 0 gt lt PARAM NAME URL VALUE http calpe161 mapguide demo2 mwf gt lt PARAM NAME ToolBar VALUE BIG gt lt PARAM NAME StatusBar YVALUE Off gt lt PARAM NAME LayersViewVVidth VALUE 0 gt lt PARAM NAME DefaultTarget VALUE gt lt PARAM NAM lt P lt PARAM NAME ObjectLinkTarge E ReportTarget VALUE gt lt PARAM NAME URLListState VALUE 0 lt PARAM NAME URLListTarget VALUE lt PARAM NAME AutoLinkLayers VALUE lt PARAM NAME AutoLinkTarget VALUE gt lt PARAM NAME AutoLinkDelay VALUE 20 gt lt PARAM NAME BSCRC VALUE 44 gt lt OBJECT gt lt CENTER gt lt form align center name choiceForm gt lt input type button name theButton value About MapGuide onClick showAboutDialog0 gt lt form gt lt CENTER gt lt BODY gt lt HTML gt Note The version number following the ActiveX control reference in the pre ceding code sample is for illustration purposes only 5 Close the editor and save your changes 6 In Buzzsaw
61. an Autodesk DWG files as the SQL WHERE clause source 1 Indicates a secondary table as the SQL WHERE clause source Error Codes 15 DoesNotApply See Also setWhereSource WhereSource setWhereSource Method Syntax boolean setWhereSource int whereSource Description Sets the source of the SQL WHERE clause for layers that are created from DWG data This method sets the source of the SQL WHERE clause only for polyline polygon and point layers created from DWG data It does not set the SQL WHERE clause source for Autodesk DWG layers SQL WHERE clause sources can be taken from an Autodesk DWG file or a secondary table A value of 0 sets the Autodesk DWG file as the source for the SQL WHERE clause A value of 1 sets the secondary table as the SQL WHERE clause source For more information about using secondary tables as the source for SQL WHERE clauses see Step 9 under Accessing Data Using a Link Template on page 20 Chapter 7 DWG API Additions Parameters whereSource Value indicating the source of the SQL WHERE clause 0 Sets the Autodesk DWG file as the source for the SQL WHERE clause 1 Sets the secondary table as the SQL WHERE clause source Return Values boolean Specifies whether or not the source of the SQL WHERE clause has been successfully set True Indicates that the source has been set successfully False Indicates that the source has not been set Error Codes 1 Busy
62. anaging these three elements of the interface Note The URL parameters to the OBJECT tag have to be specified before the sample will work Also the CODEBASE parameter to the OBJECT tag should be either specified or removed The cookie NameXXX variables can be changed to give unique cookie names for multiple MapGuide applications stored in Buzzsaw lt HTML gt lt HEAD gt lt TITLE gt MapGuide Buzzsaw Integration lt TITLE gt lt HEAD gt lt SCRIPT LANGUAGE VBScript gt Sub map _onMapLoaded map onMapLoaded map End Sub lt SCRIPT gt lt SCRIPT LANGUAGE JavaScript gt The following variables identify the names of the cookies used var cookieNameMapStateLayers mapStateLayers var cookieNameMapStateGroups mapStateGroups var cookieNameMapStateURLParam mapStateURLParam When the map is initially loaded this event handler is called This event is used to turn on any layers that were on when the map was previously loaded function onMapLoaded map if map null var layerVisibility getCookie cookieNameMapStateLayers if layerVisibility null var layers map getMapLayersEx for var i 0 i lt layers size i if isNameIn layerVisibility escape layers item i getName layers item i setVisibility true else layers item i setVisibility false var groupVisibility getCookie cookieNameMapStateGroups if groupVisibility null var layerG
63. ataSource 109 getSecondaryKeyColumn 114 getSecondaryTable 111 getSheetName 148 getSourceType 128 getSpatialQuery 164 getSQLWhereClause 104 getThemeCategory 92 getThemeName 89 getTreatBlocksAsPoints 119 getTreatClosedPolylinesAsPolygons 116 getUrlColumn 143 getUrlSource 98 getWhereSource 101 isLinkedToSecondaryTable 107 saveAsDwf 124 setClipAdjust 156 setClipEnabled 158 setDataSource 130 setDwf 132 setGeometryFunction 154 setKeyColumn 135 setKeyColumnType 138 setLayerFilter 146 setNameColumn 141 setNameSource 96 setQueryCategory 87 setQueryName 85 setSecondaryDataSource 109 setSecondaryKeyColumn 114 setSecondaryTable 112 setSheetName 149 setSpatialQuery 164 setSQLWhereClause 105 setThemeCategory 93 setThemeName 90 setTreatBlocksAsPoints 120 setTreatClosedPolylinesAsPolygons 117 setUrlColumn 143 setUrlSource 99 setWhereSource 102 MGDatabaseSetup object new error code 166 MGDwfDataSources object 128 DataSource property 131 Dwf property 133 getDataSource method 129 getDwf method 132 getKeyColumn method 134 getKeyColumntType method 136 getLayerFilter method 145 getNameColumn method 140 getSheetName method 148 getUrlColumn method 143 KeyColumn property 136 KeyColumntType property 139 LayerFilter property 147 NameColumn property 142 setDataSource method 130 setDwf method 132 setKeyColumn method 135 setKeyColumnType method 138 setLayerFilter method 146 setNameColumn method 141 setSheetName method 149 setUrlColumn me
64. ation 15 DoesNotApply See Also getTreatClosedPolylinesAsPolygons setTreatClosedPolylinesAsPolygons get TreatBlocksAsPoints Method Syntax Boolean getTreatBlocksAsPoints Description Specifies whether or not point layers that are created from DWG data treat AutoCAD blocks as points A value of True indicates that blocks are treated as points A value of False indicates that blocks are treated as individual polylines and polygons not as points Note If this method is set to False and blocks are treated as polylines and poly gons instead of points the polylines and polygons appear on polyline and poly gon layers instead of the point layer For more information about how blocks are treated on point layers see Chapter on page MGDwgDataSources Object 119 120 Parameters none Return Values boolean Specifies whether or not blocks are treated as points True Indicates that blocks are treated as points False Indicates that blocks are not treated as points They are treated as indi vidual polylines and polygons Error Codes 15 DoesNotApply See Also setTreatBlocksAsPoints TreatBlocksAsPoints setTreatBlocksAsPoints Method Syntax boolean setTreatBlocksAsPoints Boolean treatBlocksAsPoints Description Sets whether or not point layers that are created from DWG data treat AutoCAD blocks as points A value of True sets the layers so that they treat blocks as points A value of Fal
65. ations If your Autodesk MapGuide application references a MWF stored in Buzzsaw a reference to it cannot contain URL parameters Buzzsaw generates an error if you add parameters to the HTML code PARAM statement that references a MWF You can avoid this problem by adding all PARAM statements sepa rately after the statement that references the MWF For example the following HTML would result in a Buzzsaw error lt PARAM NAME URL VALUE https projectpoint buzzsaw com project myMWE mwf LayersViewWidth 120 This entry will not execute within Buzzsaw because of the LayersView Width 120 setting added to the PARAM statement that references the URL myMWE mwf Instead the LayersViewWidth parameter and any others must be included using a separate PARAM statement Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer Sample URL Parameter Entry If the HTML that references an Autodesk MapGuide MWF looks like this lt HTML gt lt BODY gt lt OBJECT ID map WIDTH 100 HEIGHT 80 CLASSID CLSID 62789780 B744 11D0 986B 00609731A21D CODEBASE ftp ftp autodesk com pub mapguide viewer mgaxctrl cab Version 6 5 0 0 gt lt PARAM NAME URL VALUE http calpcl61 mapguide demo mwf Lat 0 amp Lon 0 amp MapWidth 5000 amp Units M gt lt OBJECT gt lt BODY gt lt HTML gt where the Autodesk MapGuide URL parameters are specified as part of the URL an error would result and the above would have to b
66. ayer By Geometry Type on page 15 and you now wish to apply a theme based on object data stored in the DWG file To theme a DWG layer from object data 1 In Autodesk MapGuide Author double click the DWG layer to display the Map Layer Properties dialog box Note If you need more information at any point in this procedure click Help in the current dialog box 2 In the Map Layer Properties dialog box click the Styles tab 3 On the Styles tab select Theme and then click Theme Settings 4 Click the Table Browse button and select the table Creating a Layer By Geometry Type 17 5 Click the Theme Column Browse button and select the Theme Column Theme Settings Theme from Autodesk DWG data source E Jata source DWG_Dublin_local E Cancel d Help Table OD_LAND_USE ja Theme column LANDUSE El Theme column type String X IV Expand theme categories in legend 6 Click OK to return to the Map Layer Properties dialog box 7 Click Theme Defaults and then define the categories for your theme Theme Defaults Categorie Number Color ranges Erom LCE 8 Click OK to return to the Map Layer Properties dialog box 9 Click Change to modify any of the styles displayed in the list Theme M Theme Based on individual values ww Theme Settings Theme Defaults Styles New Remove Change Move Up Move Down Size Unit 10 Click OK when you have finished 18 Chapter2
67. ble Name column E APN URL column Name source DB_LT_PARCELS URL table LT_PARCELS Name and URL fields to access tables stored in the DWG or linked by a link template Apply SQL where clause to SQL where clause New Map Layer Properties dialog box for DWG layer 8 Chapter2 Improved DWG Support How Queries Work in Autodesk Map In Autodesk Map queries are used to extract a subset of data from a series of DWG files Queries can be saved in the DWG file You can use these saved queries to create new layers in Autodesk MapGuide The following diagram illustrates how a simple location query is created in Autodesk Map Project PROJECT DWG 2 E gt Drawings gt C PARCELS DWG 8 C SEWER_DATA DWG C WATER_DATA DWG m amp amp Query Library E Current Query Ml General E circle mm m Circle query retrieves all data within a circular area Three DWGs are attached Project gt P amd HOndounn E Topol gt Lk Templates SNSEOL LDPE CHEE SA leis A typical query created in Autodesk Map How Queries Work in Autodesk Map 9 In the illustration on the facing page the drawing file PROJECT DWG has three drawings attached to it PARCELS DWG SEWER_DATA DWG and WATER_DATA DWG When the the Circle query is executed it extracts all the data that falls within a pre defined circle from all three a
68. can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu MGMapLayerSetup Object 126 The MGMapLayerSetup object provides run time access to map layer setup through methods that you can use to change data source names and alter the way map features are linked to databases You can access all map layer setup attributes of all types of map layers with MGMapLayerSetup If you attempt to query or modify an attribute that does not apply to the map feature you are working on the method call fails and sets an error code indicating the failure in the MGError object The following methods and properties have been added or updated for MGMapLayerSetup m getDwfDataSources New method see page 126 m MGDwfDataSources New property see page 127 m getSourceType Existing method that can now return DWFs as a data source see page 128 m SourceType Existing property that can now return DWFs as a data source see page 128 getDwfDataSources Method Syntax MGDwfDataSources getDwfDataSources Description Gets the MGDwfDataSources object for this layer Chapter 8 DWF API Additions For more information about the MGDataSources object see MGDwfData Sources Object on page 128 Parameters none Returns MGDwfDataSoutrces The MGDwfDataSources object for this layer See Also MGDwfDataSources MGDwfDataSources Proper
69. cations Associating a Buzzsaw Document with a Map Feature Managing the Autodesk MapGuide and Buzzsaw Interface Avoiding Buzzsaw Interface Authentication Retaining the Current Map State Preventing the Non Secure Site Warning Appendix Buzzsaw Code Integration Changes and Additions to the MapGuide Viewer API DWG API Additions MGDwgDataSources Object getFilterType Method FilterType Property getQueryName Method setQueryName Method QueryName Property getQueryCategory Method setQueryCategory Method QueryCategory Property getThemeName Method setThemeName Method ThemeName Property getThemeCategory Method setThemeCategory Method ThemeCategory Property getNameSource Method setNameSource Method NameSource Property getUrlSource Method 46 51 52 53 55 58 59 60 61 61 63 64 64 66 68 69 71 73 74 79 81 82 82 83 84 85 86 86 87 88 89 90 91 92 93 94 95 96 97 98 Chapter 8 setUrlSource Method UrlSource Property getWhereSource Method setWhereSource Method WhereSource Property getSQLWhereClause Method setSQLWhereClause Method SQLWhereClause Property isLinkedToSecondaryTable Method LinkedToSecondaryTable Property getSecondaryDataSource Method setSecondaryDataSource Method SecondaryDataSource Property getSecondaryTable Method setSecondaryTable Method SecondaryTable Property getSecondaryKeyColumn Method setSecondaryKeyColumn Method Se
70. condaryKeyColumn Property getTreatClosedPolylinesAsPolygons Method setTreatClosedPolylinesAsPolygons Method TreatClosedPolylinesAsPolygons Property getTreatBlocksAsPoints Method setTreatBlocksAsPoints Method TreatBlocksAsPoints Property DWF API Additions MGMap Object saveAsDwf Method MGMapLayer getLayerType Method LayerType Property MGMapLayerSetup Object getDwfDataSources Method MGDwfDataSources Property getSourceType Method SourceType Property MGDwfDataSources Object getDataSource Method setDataSource Method DataSource Property getDwf Method setDwf Method Dwf Property Contents 99 100 101 102 103 104 105 106 107 108 109 109 110 111 112 113 114 114 115 116 117 118 119 120 121 123 124 124 125 125 126 126 126 127 128 128 128 129 130 131 132 132 133 Chapter 9 Index Contents getKeyColumn Method setKeyColumn Method KeyColumn Property getKeyColumnType Method setKeyColumnType Method KeyColumnType Property getNameColumn Method setNameColumn Method NameColumn Property getUrlColumn Method setUrlColumn Method UrlColumn Property getLayerFilter Method setLayerFilter Method LayerFilter Property getSheetName Method setSheetName Method SheetName Property Enhanced Layer Functionality API Additions Accessing the Enhanced Layer Functionality API MGMapLayerSetup Object getGeometryFunction Method setGeomet
71. crease the size of the filter Returns boolean Specifies whether or not the clipping adjustment was successfully set True Indicates that the clipping adjustment was successfully set False Indicates that the clipping adjustment was not set 156 Chapter 9 Enhanced Layer Functionality API Additions Error Codes 1 Busy 5 Security Violation 15 Does not apply See Also getClipAdjust getClipEnabled Method Syntax boolean getClipEnabled Description Specifies whether or not the Autodesk MapGuide spatial filtering is being applied to the layer A value of True indicates that spatial filtering is enabled A value of False indicates that spatial filtering is not enabled A spatial filter reduces the geographic information returned by a spatial query to a particular geography For more information about applying filters to spatial queries see Applying Filters to Spatial Queries on page 42 Parameters none Returns boolean Specifies whether or not the MapGuide spatial filter is enabled True Indicates that spatial filtering is enabled False Indicates that spatial filtering is disabled Error Codes 5 Security Violation 15 Does not apply MGMapLayerSetup Object 157 See Also setClipEnabled setClipEnabled Method Syntax boolean setClipEnabled boolean enabled Description Sets a value that specifies whether or not to apply the MapGuide spatial filtering t
72. e method 104 getSymbolAngleColumn method 166 getSymbolHeightColumn method 166 getSymbolWidthColumn method 166 getTextHorizAlignColumn method 166 getThemeCategory method 92 getThemeName method 89 getTreaBlocksAsPoints method 119 getTreatClosedPolylinesAsPolygons method 116 getUrlColumn method 143 getUrlSource method 98 getWhereClause method 166 getWhereSource method 101 170 Index ini file acadmap ini 4 installation and licensing 4 6 8 isLinkedToSecondaryTable method 107 K KeyColumn property 136 KeyColumnType property 139 L layer creating from DWF file sheet 29 creating from geometry type 15 creating from query 10 creating from theme 13 creating using link template 20 no text layer from DWG 15 LayerFilter property 147 LayerType property 126 Linear Referencing System accessing 53 Oracle VIEW using 53 sample in spatial query 54 link template creating a layer using 20 LinkedToSecondaryTable property 108 location query example of 10 M map state retaining 71 Methods addPostSQLStatements 162 addPreSQLStatements 159 clearPostSQLStatements 163 clearPreSQLStatements 160 getClipAdjust 155 getClipEnabled 157 getDataSource 129 getDwf 132 getDwfDataSources 126 getFilterType 82 getGeometryFunction 153 getKeyColumn 134 getKeyColumnType 136 getLayerFilter 145 getLayerType 125 getNameColumn 140 getNameSource 95 getPostSQLStatements 161 getPreSQLStatements 159 getQueryCategory 86 getQueryName 84 getSecondaryD
73. e re written as shown in the following code sample lt HTML gt lt BODY gt lt OBJECT ID map WIDTH 100 HEIGHT 80 CLASSID CLSID 62789780 B744 11D0 986B 00609731A21D CODEBASE ftp ftp autodesk com pub mapguide viewer mgaxctrl cab Version 6 5 0 0 gt lt PARAM NAME URL VALUE http calpcl61 mapguide demo mwf gt lt PARAM NAME Lat VALUE 0 gt lt PARAM NAME Lon VALUE 0 gt lt PARAM NAME MapWidth VALUE 5000 gt lt PARAM NAME Units VALUE M gt lt OBJECT gt lt BODY gt lt HTML gt Note For HTML coding as required for referencing a MWF see the sample HTML code in the following section Avoiding Buzzsaw Interface Authentica tion Also note that the version number following the ActiveX control refer ence in the preceding code sample is for illustration purposes only Accessing Maps and MWF Files from Buzzsaw 65 Associating a Buzzsaw Document with a Map Feature 66 After you have created a map in Autodesk MapGuide Author and published it to a Web site you can add URLs that connect features in the map to docu ments stored in Buzzsaw Autodesk MapGuide provides quick access to support documentation about a particular map feature Any Buzzsaw docu ment file such as a Word DOC an Excel XLS a Project MPP or an HTML file can be associated with a feature in a map in Autodesk MapGuide as long as the file you want to associate has been assigned a URL This section explains how
74. e you want to save the DWF file 4 Enter a name for the file 5 Click Save Saving a View As a DWF File 33 34 6 Optionally test the output DWF file by opening it in Autodesk DWF Viewer ehiicendells200 ads autodesk combprojects mes WWGNublin test DW test_DWF_export_from Author_3 d DAK pos eeaa ase sls e18 In this example you see the standard page size used by default You can also save views to DWF files from the Autodesk MapGuide Viewer ActiveX Control or Plug In if the DWF Writer has been downloaded and installed on that PC To create a DWF file from a view in Autodesk MapGuide Viewer 1 In Autodesk MapGuide Viewer zoom to the view that you want to save 2 Right click anywhere in the view and then click Print on the shortcut menu 3 In the Print dialog box select Autodesk DWF Writer in the drop down list and then click OK 4 Inthe Save DWF File As dialog box navigate to the folder where you want to save the DWF file 5 Enter a name for the file 6 Click Save 7 Optionally test the output DWF file by opening it in Autodesk DWF Viewer Chapter 3 DWF Support Enhanced Layer Functionality This chapter describes the new enhanced layer functionality for layers that use spatial data provider SDP and OLE database data sources You can use these new features to apply geometry functions to map features apply filters to spatial queries define custom spatial queries and apply pre and pos
75. ec ified Autodesk DWF file If this property is modified successfully it automat ically sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Note The layer filter is a comma delimited string For more information about using DWF files as data sources see Setting Up a Data Source for DWF Files on page 25 MGDwfDataSources Object 147 148 Parameters none Returns String read write Represents the layer filter Error Codes 1 Busy See Also getLayerFilter setLayerFilter getSheetName Method Syntax String getSheetName Description Gets the name of the DWF sheet that contains the map features on this Autodesk DWF layer DWF files consist of a number of sheets each of which can contain a view of a different DWG file or a different view of the same DWG file for example a layout with different layers turned on or off For more information about using DWF sheets see How DWFs are Published in Autodesk Map on page 28 and Creating a Layer from a DWF File Sheet on page 29 Parameters none Returns String Represents the name of the sheet with the map features Chapter 8 DWF API Additions See Also setSheetName getSheetName set
76. en successfully set True Indicates that the category of the query has been set successfully False Indicates that the category of the query has not been set Error Codes 1 Busy See Also getQueryCategory QueryCategory getQueryName setQueryName QueryName QueryCategory Property Syntax QueryCategory Description Sets and gets the category of the query that is assigned as the DWG filter It also automatically sets FilterType to a Query Filter value of 1 For infoma tion about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map query as the filter for layer data Use this property to specify the category of the query to use as the filter For information about setting the category of a query filter see Step 8 under How Queries Work in Autodesk Map on page 9 Chapter 7 DWG API Additions Parameters none Return Values String read write Represents the category of the query that is assigned as the filter Error Codes 1 Busy This error code is returned for the write operation 15 DoesNotApply This error code is returned for the read operation See Also getQueryCategory setQueryCategory getQueryName setQueryName QueryName getThemeName Method Syntax String getThemeName Description Gets the name of the theme that is assigned as the DWG filter In DWG layers you can specify an AutoCAD Map theme as the fi
77. er functionality API changes include additions to the methods and properties for the existing MGMapLayerSetup object A new error code has also been added to the existing methods of the MGMapLayerSetup and MGDatabaseSetup objects For more information about the new Enhanced Layer Functionality see Chapter 4 Enhanced Layer Functionality on page 35 15 Accessing the Enhanced Layer Functionality API 152 The enhanced layer functionality API is only available to layers that use a spatial data provider SDP or OLE database data source To protect data sources against unwanted changes map authors must provide passkey access for a layer before you can access the API for enhanced layer functionality Map authors set up access to the API via the Map Layer Properties dialog box in Autodesk MapGuide Author For more information about providing access to the enhanced layer func tionality API from a layer see Providing Access to the Enhanced Layer Func tionality API on page 37 of Chapter 4 Enhanced Layer Functionality If the map author has provided passkey access you must set the passkey via the existing Autodesk MapGuide API If you do not set the passkey you will get a 5 Security Violation error For more information about setting a passkey using the API see Accessing Secure Data in the Autodesk MapGuide Developer s Guide which you can open by clicking Autodesk MapGuide 6 5 gt Documentation
78. ery that is assigned as the current DWG filter In DWG layers you can specify an Autodesk Map query as a filter for layer data If FilterType is set as a query filter value of 1 this method returns the name of the query used in the filter If FilterType is not set as a query filter this method returns NULL with the error code DoesNotApply For more informa tion about FilterType see FilterType Property on page 83 For information about the query filter type see How Queries Work in Autodesk Map on page 9 Parameters none Return Values string Represents the name of the query assigned as the DWG filter or an empty string Error Codes 15 DoesNotApply See Also setQueryName QueryName getQueryCategory setQueryCategory Query Category Chapter 7 DWG API Additions setQueryName Method Syntax boolean setQueryName String queryName Description Sets the name of the query you want to assign as the DWG filter It also auto matically sets FilterType to a Query Filter value of 1 For infomation about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map query as a filter for layer data Use this method to specify the name of the query to use as the filter For information about the query filter type see How Queries Work in Autodesk Map on page 9 Parameters queryName String representing the name of the query you want to assign as the fi
79. esults The state ments you enter are processed in the order in which you list them For example you may want to access different versions of a version enabled Oracle data set In this case you would add a pre spatial query SQL statement to call the desired workspace in Oracle To execute pre and post spatial query SQL statements 1 Open the map containing the layer to which you want to apply SQL state ments 2 Double click the name of the layer in the list to the left of the map The Map Layer Properties dialog box is displayed In the Map Layer Properties dialog box click the Data Sources tab as shown in the following illustra tion Using SQL Pass Through Statements 55 Map Layer Properties Polygon Parcels x General Data Sources Styles Security Map server agent URL Draw features from SDP Spatial Data Provider data source SDP Data Source Name URL Where Data source SDF_Dubiin H Feature table dubiin_parcels El Key column Key column type FEATURED H ETE x Geometry column FEATURE_GEOM Hl E Advanced Settings Cancel Help 3 Click the Advanced Settings button The Advanced Settings dialog box is displayed as shown in the following illustration Advanced Settings x r Spatial Filter Feature table dublin_parcels IV Use Autodesk MapGuide Server s spatial filter I Apply clipping adjustment to Autodesk MapGuide Server s spatial filter
80. files For information about the new API functions for the DWF format see DWF API Additions on page 123 In this chapter Summary of DWF support Setting up a data source for DWF files How DWFs are published in Autodesk Map Creating a layer from a DWF file sheet Saving a view as a DWF file 23 Summary of DWF Support You can think of a DWF file as a container for a design package that is comprised of various kinds of design information published in a print ready drawing set DWF is an open format that can be published by many different design applications The DWF format has been created by Autodesk as a way for team members who may be separated geographically and who may not all have the same software programs to share and distribute design data With this release Autodesk MapGuide now supports reading and writing of DWF files Here is the list of DWF related features m Set up a data source specifically for DWF files See Setting Up a Data Source for DWF Files on page 25 m Create a new layer directly from a DWF file sheet See Creating a Layer from a DWF File Sheet on page 29 m Write a DWF file from an Autodesk MapGuide view See Saving a View As a DWF File on page 32 Note DWF Version 6 files are supported However Autodesk MapGuide Author does not display markup created by Volo View 3 and saved in the DWF file 24 Chapter 3 DWF Support Setting Up a Data Source fo
81. gPARAM lt PARAM NAME Selobjs VALUE selObject getmapLayer getName selObject getKey gt map center and width document cookie cookieNameMapStateURLParam escape lt PARAM NAME Lat VALUE map getLat gt lt PARAM NAME Lon VALUE map getLon gt lt PARAM NAME MapWidth VALUE map getWidth map getUnits gt lt PARAM NAME Units VALUE map getUnits gt Appendix Buzzsaw Code Integration 75 selStringPARAM visible layers var layers map getMapLayersEx var visibleLayersCookie for var i 0 i lt layers size i if layers item i getVisibility visibleLayersCookie visibleLayersCookie escape layers item i getName document cookie cookieNameMapStateLayers escape visibleLayersCookie visible groups var groups map getMapLayerGroups var visibleGroupsCookie for var i 0 i lt groups size i if groups item i getVisibility visibleGroupsCookie visibleGroupsCookie escape groups item i getName document cookie cookieNameMapStateGroups escape visibleGroupsCookie This function makes sure that when we get the parameters that we get an empty string instead of null function getMapStatePARAM var v getCookie cookieNameMapStateURLParam if v null return
82. gt Autodesk MapGuide Developer s Guide on the Program menu Chapter 9 Enhanced Layer Functionality API Additions MGMapLayerSetup Object The MGMapLayerSetup object provides run time access to map layer setup through methods that you can use to change data source names and alter the way map features are linked to databases For more information about the MGMapLayerSetup object see the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu This object has the following new methods getGeometryFunction see page 153 setGeometryFunction see page 154 getClipAdjust see page 155 setClipAdjust see page 156 getClipEnabled see page 157 setClipEnabled see page 158 getPreSQLStatements see page 159 addPreSQLStatement see page 159 clearPreSQLStatements see page 160 getPostSQLStatements see page 161 addPostSQLStatement see page 162 clearPostSQLStatements see page 163 getSpatialQuery see page 164 setSpatialQuery see page 164 getGeometryFunction Method Syntax String getGeometryFunction Description Gets the geometry function text that is applied to the geometry column of the SDP layer You can apply geometry functions directly to selected features on a layer For more information about using geometry functions see Using Geometry Functions on page 39 MGMapLa
83. hat it is bigger or smaller than the default client window size For more information about setting the clipping adjustment for filters see Changing the Dimen sions of the Autodesk MapGuide Spatial Filter on page 44 Parameters none Returns double Value indicating the clipping adjustment for the filter 0 Indicates the default filter size which is the size of the client window Positive values indicate progressively larger dimensions of the default filter size Negative values indicate progressively smaller dimensions of the default filter size MGMapLayerSetup Object 155 Error Codes 5 Security Violation 15 Does not apply See Also setClipAdjust setClipAdjust Method Syntax boolean setClipAdjust double adjust Description Sets the clipping adjustment to apply to the spatial filter of the layer You us the clipping adjustment to change the extents of the filter by increasing or decreasing the dimensions of the bounding box so that it is bigger or smaller than the default client window size For more information about setting the clipping adjustment for filters see Changing the Dimen sions of the Autodesk MapGuide Spatial Filter on page 44 Parameters adjust Value indicating the clipping adjustment to apply to the filter O Sets the filter to its default size size of client window Positive values progressively increase the size of the filter Negative values progressively de
84. he feature without explicitly storing these location LRS functions can be supported in one of two ways You can do either of the following m Create an Oracle VIEW and apply linear referencing to any Oracle VIEW as long as it contains a geometry column m Use the new Autodesk MapGuide settings that are available to modify spa tial queries either custom or geometry functions Sample Code Oracle VIEW using the Oracle LRS Function This is an example of Autodesk MapGuide s new capability providing access to the linear referencing system function embedded in an Oracle VIEW This example illustrates the syntax of the required code The Oracle VIEW description would be the following SELECT P ACCIDENT ID SDO_LRS CONVERT_ TO STD_GEOM SDO_ LRS LOCATE PT A GEOM P SM 0 M DIMINFO GEOM A ID P SM FROM USER SDO GEOM METADATA M LRS TEST A ACCIDENTS P WHERE A ID P ID AND M TABLE NAME NT SF_ POI Using a Custom Spatial Query 53 54 Oracle VIEW is accessed as a Feature Table within Autodesk MapGuide assuming that the Oracle VIEW has been added to the Oracle USER_SDO_GEOM_METADATA table Sample Advanced Settings Custom Spatial Query Including the LRS Function In this example the Advanced Settings dialog box illustrates part of the custom query that uses an LRS function In this case you are simply using the custom spatial query directly instead using Oracle VIEW as in the preceding example You are
85. icensing information please refer to the Installation Instructions PDF file which is available from the menu that appears when you insert the Autodesk MapGuide installation CD For late breaking installation updates and known issues please refer to the Autodesk MapGuide Readme MGReadme htm located on the Autodesk MapGuide installation CD and to the Autodesk MapGuide LiteView Readme LVReadme htm located on the Autodesk MapGuide LiteView installation CD Upgrading From an Earlier Release The MWF file format has changed for this release If you open MWF files from Release 6 3 or earlier in this release of Autodesk MapGuide Author they will be converted to the new format If you want to keep the old files be sure to make backup copies before you save the new files If you are using DWG data created by Autodesk Map 3D 2005 released in April 2004 note that the default location of the acadmap ini file is now C Documents and Settings All Users Application Data Autodesk Autodesk Map 3D 2005 R16 1 acadmap ini If you are upgrading Autodesk MapGuide from a release earlier than Release 6 3 you may also want to read the following documentation m What s New in Release 6 3 PDF file m What s New in Release 6 section in the Autodesk MapGuide User s Guide Major New Features 4 Chapter New features in Autodesk MapGuide Release 6 5 include m Enhanced support for DWG format including layers created directly from DWG querie
86. ide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documen tation gt Autodesk MapGuide Viewer API Help on the Program menu These URLs enable the user to go to a Web page that is related to a map feature simply by double clicking that feature Typically you store HTTP URLs in this column but you could also specify commands with other proto cols such as FTP URLs or even JavaScript commands Use caution however with non standard protocols such as Javascript as not all browsers support them For information about using URL columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters column String representing the name to assign to the column containing the URLs for the map features Returns boolean Specifies whether or not the name of the column for the URLs is successfully set True Indicates that the name of the URL column is successfully set False Indicates that the name of the URL column is not set Error Codes 1 Busy See Also getUrlColumn UrlColumn UrlColumn Property Syntax UrlColumn 144 Chapter 8 DWF API Additions Description Gets and sets the name of the column that contains the URLs associated with each map feature on the Autodesk DWF layer If this method is successful it sets the rebuild flag of the layer to True Returns an empty string if this prop erty does not apply For more informatio
87. ine polygon and point layers created from DWG data It does not set the URL sources for Autodesk DWG layers For more information about using secondary tables as the source of feature URLs for a layer created from DWG data see Step 9 under Accessing Data Using a Link Template on page 20 MGDwgDataSources Object 99 100 Parameters urlSource Value indicating the URL source 0 Sets the Autodesk DWG file as the URL source 1 Sets the secondary table as the URL source Return Values boolean Specifies whether or not the source of the feature URLs has been successfully set True Indicates that the URL source has been set successfully False Indicates that the URL source has not been set Error Codes 1 Busy 15 DoesNotApply See Also getUrlSource UrlSource UrlSource Property Syntax NameSource Description Gets and sets the source of feature URLs for layers that are created from DWG data These URLs enable users to go the a web page related to a map feature by double clicking the feature Feature URLs can be taken either from an Autodesk DWG file or a secondary table A value of 0 sets the Autodesk DWG file as the URL source A value of 1 sets the secondary table as the URL source This property sets the URL source only for polyline polygon and point layers created from DWG data It does not set the URL source for Autodesk DWG layers Chapter 7 DWG API Additions For more
88. ked to Autodesk DWG layers MGDwsgDataSources Object 115 116 For more information about linking layers that are created from DWG data to secondary key columns see Accessing Data Using a Link Template on page 20 Parameters none Return Values String read write Represents the name of the secondary key column that is linked to the layer Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply See Also getSecondaryKeyColumn setSecondaryKeyColumn get TreatClosedPolylinesAsPolygons Method Syntax Boolean getTreatClosedPolylinesAsPolygons Description Specifies whether or not polygon layers that are created from DWG data treat closed polylines as polygons A value of True indicates that closed polylines are treated as polygons A value of False indicates that closed polylines are treated as individual polylines not as polygons Note If this method is set to False and closed polylines are treated as polylines instead of polygons the polylines are displayed on a polyline layer instead of the polygon layer For more information about how closed polylines are treated on polygon layers that are created from DWG sources see Chapter on page Chapter 7 DWG API Additions Parameters none Return Values boolean Specifies whether or not closed polylines are treated as polygons True Indicates that closed polylines are treated as polygons False Indica
89. l the Autodesk DWFWriter 1 In your Web browser go to http www autodesk com mapguide dwfwriter 2 Enter your information on the form and then download the Autodesk DWFWriter 3 When the download is complete double click the downloaded file icon and then folllow the instructions onscreen to install the driver on your PC The default paper size for the print driver is 8 5 x 11 inches The area of the map that is saved to the DWF file is the area that will fit on that size sheet at the current scale If you want to set a different size sheet use the Windows Printer settings to change the properties of the print driver You can access these settings from Printers and Faxes on the Control Panel Chapter 3 DWF Support To create a DWF file from a view in Autodesk MapGuide Author 1 In Autodesk MapGuide Author zoom to the view that you want to save Autodesk MapGuide Author Dublin California C Projects mg6 MWF build_test mwf BEE amp Eile Edit Navigate Bookmarks Select Yiew Window Help OSES kM KA RRX SQ Dublin California E Map Layers amp Y Hydrants M Street Names aM lt Watermains_filter_by_layer aO Circle_filterby_query 0 1 BSS lt gt Assesment value a M RIC file amp Reports E Parcel report amp Zoom Gotos Zoom to Parcel j Popup Menu l0 feature s selected 2 From the File menu choose Save As DWF 3 Inthe Save DWF File As dialog box navigate to the folder wher
90. lity Execute SQL statements before and after Autodesk MapGuide performs a spatial query against a layer See Using SQL Pass Through Statements on page 55 Ability to track new enhanced layer features using trace log parameters See Tracking Enhanced Layer Features on page 58 Enhanced Layer Functionality Providing Access to the Enhanced Layer Functionality API The API for the new enhanced layer functionality provides access to your spatial data provider SDP and OLE database data sources To secure your data against unwanted changes access to the enhanced layer functionality API for a layer is blocked by default If you are adding enhanced layer functionality to your maps you need to decide whether or not you want to provide developers with access to the API for enhanced layer functionality You can use Autodesk MapGuide s existing security functionality to control access to the existing API by setting a passkey using the options under the Security tab in the Map Layer Properties dialog box In addition to the existing security options a new option has been added that you can use to provide access to the API for the new enhanced layer functionality If you check the new Allow Access To The Layer s Geometry Function And Advanced Settings check box developers can access the enhanced layer func tionality API by setting a passkey If you do not check this new option devel opers will not have access to the enhanced layer
91. lp 7 For Filter Type select Theme 8 Click the Theme Name Browse button and select a theme Creating a Layer from a Theme 13 You can also click the Theme Category Browse button to select a particular category of theme If there are many themes defined in the drawing this can make the list more manageable Map Layer Properties Autodesk DWG Pipe diameters Theme filter PROJECT_THEME DWG x General Data Sources Styles Security Map server agent URL http ccsdell8200 mapquide6 5 mapagent exe X Draw features from Autodesk DWG data source DWG Data Source Name URL Data source DWG_Dubin Bl Autodesk DWG PROJECT_THEME Key table Key column Key column type FP_FeatureProperties E Hande H String ne Filter type Theme category Theme name Filter type WATER SYSTEM Pipe Diameters f setto Theme OK Cancel Help 9 Click OK 14 Chapter 2 The data specified by the theme is retrieved from the server and displayed in Autodesk MapGuide Author Autodesk MapGuide Author Dublin California C Working filesubllin_test_theme mwf 4 File Edit Navigate Bookmarks Select View Window Help OSarSalRmxraneceeRela Dublin Califomia h Map Layers gt FEC WATER SYSTEM amp Reports Zoom Gotos Popup Menu Pipe Diameters 10 feature s selected 1 66 983 4 47 x 4 43 mi Improved DWG Support Creating a Layer By Geo
92. lter Return Values boolean Specifies whether or not the name of the query has been success fully set True Indicates that the query name has been set successfully False Indicates that the query name has not been set Error Codes 1 Busy See Also getQueryName QueryName getQueryCategory setQueryCategory Query Category MGDwgDataSources Object 85 86 QueryName Property Syntax QueryName Description Sets and gets the name of the query assigned as the DWG filter It also auto matically sets FilterType to a Query Filter value of 1 For infomation about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map query as a filter for layer data Use this property to specify the name of the query to use as the filter For information about the query filter type see How Queries Work in Autodesk Map on page 9 Parameters none Return Values string read write Represents the name of the query assigned as the filter Error Codes 1 Busy This error code is returned for the write operation 15 DoesNotApply This error code is returned for the read operation See Also getQueryName getQueryCategory setQueryCategory QueryCategory getQueryCategory Method Syntax String getQueryCategory Chapter 7 DWG API Additions Description Gets the category of the query that is assigned as the DWG filter In DWG layers
93. lter Adjustment 0 FOOT m Query List Spatial Query Autodesk MapGuide lt Autodesk MapGuide Default gt Down di New Edit i Delete Cancel i Note that the Use Autodesk MapGuide Server Spatial Filter Setting option is selected by default Applying Filters to Spatial Queries 43 44 5 To turn the spatial query filter off clear the Use MapGuide Server s Spatial Filter checkbox Changing the Dimensions of the Autodesk MapGuide Spatial Filter The default client window size determines the size of the spatial filter you use to limit data returned by a spatial query Autodesk MapGuide allows you to change the spatial filter s extents by applying clipping adjustments that either increase or decrease the dimensions of the bounding box so that it is bigger or smaller than the default client size window The clipping adjust ments you apply can be set to either positive or negative values depending on whether you want to make the spatial filter larger or smaller than the default client window size The units for the clipping adjustment are the same as the units established for the map coordinate system To adjust the spatial filter 1 Open the map containing the layer to which you want to apply clipping adjustments 2 Double click the name of the layer in the list to the left of the map The Map Layer Properties dialog box is displayed 3 In the Map Layer Properties dialog
94. lter for layer data If FilterType is set as a theme filter value of 2 this method returns the name of the theme used in the filter If FilterType is not set as a theme filter this method returns NULL with the error code DoesNotApply For more information about FilterType see FilterType Property on page 83 For information about setting the name of theme filters see Step 8 under Creating a Layer from a Theme on page 13 MGDwgDataSources Object 89 90 Parameters none Return Values String Represents the name of the theme that is assigned as the filter or an empty string Error Codes 15 DoesNotApply See Also setThemeName ThemeName getThemeCategory setThemeCategory ThemeCategory setThemeName Method Syntax boolean setThemeName String themeName Description Sets the name of the theme that is assigned as the DWG filter It also auto matically sets FilterType to a Theme Filter value of 2 For infomation about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map theme as the filter for layer data Use this method to set the name of the theme for the filter For information about setting the name of theme filters see Step 8 under Creating a Layer from a Theme on page 13 Chapter 7 DWG API Additions Parameters themeName String representing the name of the theme that is assigned as the filter Return Values boolean
95. lygons points or polylines to individual SDF files first The new release gives you much greater flexibility in working with DWG files The following is a complete list of DWG related enhancements showing what you can now do in Autodesk MapGuide Create a new layer directly from an Autodesk Map query See Creating a Layer from a Query on page 10 Create a new layer directly from an Autodesk Map theme See Creating a Layer from a Theme on page 13 Create a new layer directly from objects of a particular geometry type See Creating a Layer By Geometry Type on page 15 Theme layers created from objects of a particular geometry type Autodesk MapGuide now provides the same support for DWG data sources as it does for SDF See Theming a DWG Layer on page 17 Link secondary tables to layers created from objects of a particular geom etry type Autodesk MapGuide now provides the same support for DWG data sources as it does for SDF See Using a Secondary Table on page 19 Access linked template external data All columns of linked tables are available for selection See Accessing Data Using a Link Template on page 20 Improved DWG Support Dialog Box Changes Autodesk MapGuide Server New arc parameters have been added to the Autodesk Data Link Properties dialog box You access this dialog box by editing the properties of a DWG data source in the Autodesk MapGuide Server Admin program Using the parameters yo
96. map features See Also setKeyColumn KeyColumn setKeyColumn Method Syntax boolean setKeyColumn String column Description Sets the name of the column that contains the primary key for each map feature on the DWF layer If this method is successful it automatically sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Docu mentation gt Autodesk MapGuide Viewer API Help on the Program menu For information about using key columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters column String representing the name to assign to the key column Returns boolean Specifies whether or not the name of the key column is success fully set True Indicates that the name of the key column is successfully set False Indicates that the name of the key column is not set Error Codes 1 Busy MGDwfDataSources Object 135 136 See Also getKeyColumn KeyColumn KeyColumn Property Syntax String getKeyColumn Description Gets and sets the name of the column that contains the primary key for each map feature on the DWF layer For information about using key columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters none Returns String Represents the
97. matic maps from data contained in or linked to a series of DWG files You can use these themes to create new layers in Autodesk MapGuide The following diagram illustrates how a simple theme is created in Autodesk Map J Project PROJECT_THEME DWG amp Drawings C WATER_DATA DWG Query Library Current Query 4 M Locations B E Feature Classes Undefined Classes amp amp Data Sources dublinz001 EH Tables v EH WATER_DATA amp strtann amp zgoto amp E Queries Dimension Modfy Window Map Heb VAARQ AGA alaaaaaa aa we Link Template WATER_DATA EXMPTAMT File Edt view Format Records Links Highlight Heip ys e 6B resa FHdI HONTOLNNATL WIALP IP Mece Capea Laval WATER SYSTEM Pipe Diameters 9 lt 40 gt 42 lt 16 405305353 20901947306 1 0000 Snar anD ontho Poran asnar oTRaCk iwr vaner A typical theme created in Autodesk Map 12 Chapter2 Improved DWG Support The DWG is attached 1S es K x TAXAMT PHONE a 2400 6 5845 48 510 828 8524 510 833 1774 96 5 510 833 9418 63 HIGHLIGHT NONE The theme uses the data base table to change the width of pipe lines in the DWG In the illustration on the previous page the drawing file PROJECT_THEME DWG has the WATER_DATA DWG drawing attached to it The PROJECT_THEME DWG drawing file is also linked to a database that contains information about the pipe
98. metry Type You can create new layers of a particular geometry type such as polyline polygon or point directly from a DWG file You create these layers in the usual way by selecting the type of geometry that the layer contains the only difference in using DWG files is that when you select the data source you select Autodesk DWG Note Text layers cannot be created directly from DWG files If you want to extract text objects from a DWG file and want to retain attributes such as rota tion height justification import those layers into Autodesk MapGuide as regular Autodesk DWG layers For more information see the topic Creating a DWG Map Layer in the Autodesk MapGuide Help To create a new layer by geometry type 1 In Autodesk MapGuide Author right click Map Layers and then click either New Layer gt Point New Layer gt Polyline or New Layer gt Polygon E City parcels j h Map Layers a 0O e agoe l Properties E 0 EZE J Text B Reports New Layer Group Point amp Zoom G Polyline Bl Peru ut ig Copy Ctrl C aes Raster Autodesk DWF Autodesk DWG Autodesk GIS Design Server Theme Save as Map Layer File Remove Del 2 On the General tab enter a name for the new layer 3 Click the Data Sources tab and make sure that the map server agent path is pointing to the correct location 4 For Draw Features From select Autodesk DWG Data Source Click the Data Source Browse button
99. n on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu These URLs enable the user to go to a Web page that is related to a map feature simply by double clicking that feature Typically you store HTTP URLs in this column but you could also specify commands with other proto cols such as FTP URLs or JavaScript commands Use caution however with non standard protocols such as Javascript as not all browsers support them For information about using URL columns containing DWF layers see Displaying Friendly Names and URLs on page 31 Parameters none Returns String read write Represents the name of the column containing the URLs for the map features Error Codes 1 Busy See Also getUrlColumn setUrlColumn getLayerFilter Method Syntax String getLayerFilter MGDwfDataSources Object 145 146 Description Gets the layer filter that specifies which layers to extract from the specified Autodesk DWF file Note The layer filter is a comma delimited string For more information about using DWF files as data sources see Setting Up a Data Source for DWF Files on page 25 Parameters none Returns String Represents the layer filter See Also setLayerFilter LayerFilter setLayerFilter Method Syntax
100. name of the secondary key column that is linked to the layer Error Codes 15 DoesNotApply See Also setSecondaryKeyColumn SecondaryKeyColumn setSecondaryKeyColumn Method Syntax boolean setSecondaryKeyColumn String secondaryKeyColumn Description Sets the secondary key column linked to layers that are created from DWG data This method sets the secondary key column linked only to polyline Chapter 7 DWG API Additions polygon and point layers It does not set the secondary key column linked to Autodesk DWG layers For more information about linking layers that are created from DWG data to secondary key columns see Accessing Data Using a Link Template on page 20 Parameters secondaryKeyColumn String representing the name of the secondary key column that is linked to the layer Return Values boolean Specifies whether or not the secondary key column is successfully set True Indicates that the secondary key column is successfully set False Indicates that the secondary key column is not set Error Codes 1 Busy 15 DoesNotApply See Also getSecondaryKeyColumn SecondaryKeyColumn SecondaryKeyColumn Property Syntax SecondaryKeyColumn Description Gets and sets the secondary key column linked to layers that are created from DWG data This property gets and set the secondary key column linked only to polyline polygon and point layers It does not get or set the secondary key column lin
101. nd Enhanced Layer API Functionality Chapter 7 DWG API Additions Chapter 8 DWF API Additions Chapter 9 Enhanced Layer Functionality API Additions 79 80 DWG API Additions This chapter documents the new properties and methods In this chapter that have been added to the MGDwgDataSources object E New methods and properties for the MGDwgDataSources in order to support the new DWG theming and query object functionality in Autodesk MapGuide 6 5 For more information about new DWG support see Chapter 2 Improved DWG Support on page 5 8l MGDwgDataSources Object 82 The MGDwgDataSources object implements methods and properties to support Autodesk drawing DWG data sources Autodesk DWG is a world wide standard drawing file format across vertical industries such as architec tural design and facilities planning and maintenance For more information about the MGDwgDataSources object see the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu getFilterType Method Syntax int getFilterType Description Gets the current filter type that is applied to the DWG data layer A value of O indicates a layer filter type a value of 1 indicates a query filter type a value of 2 indicates a theme filter type For information about the differe
102. ng Step 3 This URL now opens the document directly bypassing the Buzzsaw client Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer 5 After the URL information has been added to your data open the map containing the feature with which you want the document stored in Buzzsaw to be associated 6 Using both the Data Sources tab and the Name URL Where tab in the Map Layer Properties dialog box assign a data source column that con tains the desired URL for the document that you want to associate with a map feature Use the data source column from the data that contains the URL information specified in Step 1 Note For instructions about how to assign URLs to Buzzsaw documents that you want to access see the Autodesk MapGuide Author Help which you can access by clicking Programs gt Autodesk MapGuide Release 6 5 gt Documentation gt Autodesk MapGuide Author Help from the Start menu In the Table of Contents click Reference gt Autodesk MapGuide Author Dialog Boxes gt Data Sources tab gt Name URL Where tab for the Map Layer Properties dialog box The following illustrates a typical approach for an SDP data source The dialog box appearance and the exact workflow may vary slightly for other types of data Map Layer Properties Polygon World Countries x General Data Sources styles Security Map server agent URL http Calpc161 MapGuide6 3 mapagent exe Draw features from spr Spatial Data Provider data
103. ng it in the Passkey edit box 6 Confirm the passkey by typing it the Confirm Passkey edit box API security Do not allow access to coordinate values from API Allow access to coordinate values from API Allow access to coordinate values from API with the following passkey S E C Do not allow access to map layer setup from API Allow access to map layer setup from API Allow access to map layer setup from API with the following passkey IV Allow API access to the layer s geometry function and Advanced Settings Passkey Confirm passkey 7 Click OK to close the dialog box 38 Chapter 4 Enhanced Layer Functionality Using Geometry Functions Using new enhanced layer functionality you can apply geometry functions to selected features on maps drawn from spatial data provider SDP data sources For example you can apply a geometry function to a point layer in a map that shows the locations of cell phone towers This function could direct Oracle to apply a buffer of a size equivalent to the range of each tower By analyzing the buffered towers on the map you could see where there are gaps between towers ranges indicating places where cell phone coverage may not be available Note You can only apply geometry functions to maps drawn from SDP data Layers created from OLE database data do not support geometry functions New geometry functions apply to all layer types and GIS functions that Oracle supports Advanced
104. nt filter types see How Queries Work in Autodesk Map on page 9 Creating a Layer from a Theme on page 13 and Creating a Layer By Geometry Type on page 15 Parameters none Return Values integer Value indicating the current filter type 0 Layer Filter 1 Query Filter 2 Theme Filter Chapter 7 DWG API Additions Error Codes 99 null pointer See Also FilterType FilterType Property Syntax FilterType Description Read only propety that returns the current filter type applied to the DWG data layer A value of 0 indicates the layer filter type a value of 1 indicates the query filter type a value of 2 indicates a theme filter type For information about the different filter types see How Queries Work in Autodesk Map on page 9 Creating a Layer from a Theme on page 13 and Creating a Layer By Geometry Type on page 15 Parameters none Return Values integer read only Value indicating the current filter type 0 Layer Filter 1 Query Filter 2 Theme Filter Error Codes 1 Busy This error code is returned for the write operation 3 illegal argument This error code is returned for the write operation 99 null pointer This error code is returned for the read operation MGDwgDataSources Object 83 84 See Also getFilterType getQueryName Method Syntax String getQueryName Description Gets the name of the qu
105. nter the URL into the maptip instead of the DWF friendly name that is FEATURE_NAME in which case you can also select FEATURE_URL for the Name column You can also do this the other way and use the Name column to display a friendly name in the status bar You can add your own text in the Name field using the concatenation oper ator Note that concatenation for OLEDB uses and concatenation in this field does not exist for SDP providers Single quotes are used for constant text for example CountryID FEATURE_NAME Creating a Layer from a DWF File Sheet 31 Saving a View As a DWF File 32 In Autodesk MapGuide Author you can save any view of your map as a DWF file Then anyone on your extended team can review these files even though they don t have a copy of Autodesk MapGuide Author Team members can open the DWF in any of the Autodesk applications that support the DWF file format or in the free Autodesk DWF Viewer You save a view to a DWF file works in the same way that you send a file to a printer Before you can save views to DWF files you need to download and install the Autodesk DWF Writer print driver to the PC on which you will be authoring The Autodesk DWFWriter driver can also be downloaded and installed for the Autodesk MapGuide Viewer ActiveX Control or Plug In Note The Autodesk DWFWriter driver is supported on PCs running Windows XP Windows 2000 or Windows 2003 To download and instal
106. o the layer A value of True applies spatial filtering to the layer A value of False does not apply spatial filtering to the layer A spatial filter reduces the geographic information which is returned by a spatial query to a particular geography For more information about applying filters to spatial queries see Applying Filters to Spatial Queries on page 42 Parameters enabled Boolean value indicating whether or not to apply spatial filtering to the MapGuide spatial query True Applies the filter to the spatial query False Does not apply the filter to the spatial query Returns boolean Specifies whether or not the MapGuide spatial filter was success fully set True Indicates that spatial filtering has been successfully set False Indicates that spatial filtering has not been set Error Codes 1 Busy 5 Security Violation 15 Does not apply 158 Chapter 9 Enhanced Layer Functionality API Additions See Also getClipEnabled getPreSQLStatements Method Syntax MGCollection getPreSQLStatements Description Gets the pre SQL statements that are applied to the layer Pre SQL statements are executed before Autodesk MapGuide performs a spatial query You can use them to further customize your query results For more information about applying pre SQL statements to queries see Using SQL Pass Through Statements on page 55 Parameters none Returns MGCollection
107. of a number of sheets each of which can contain a view of a different DWG file or a different view of the same DWG file for example a layout with different layers turned on or off If this property is modified successfully it automatically sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu For more information about using DWF sheets see How DWFs are Published in Autodesk Map on page 28 and Creating a Layer from a DWF File Sheet on page 29 Parameters none Returns String Represents the name of the sheet with the map features Error Codes 1 Busy See Also getSheetName setSheetName 150 Chapter 8 DWF API Additions Enhanced Layer Functionality API Additions This chapter documents the API changes that support the In this chapter new enhanced layer functionality in Autodesk MapGuide Em Accessing the enhanced layer functionality API 6 5 E amp E MGMapLayerSetup Object E New Error Code The enhanced layer features provide you with the ability to apply geometry functions to map features apply filters to spatial queries define custom spatial queries and apply pre and post query SQL statements to the spatial queries The enhanced lay
108. om DWG data It does not get the SQL WHERE clause for Autodesk DWG layers SQL WHERE clauses can be applied only to secondary tables For more information about using secondary tables as the source for SQL WHERE clauses see Step 9 under Accessing Data Using a Link Template on page 20 Chapter 7 DWG API Additions Parameters none Return Values String Represents the SQL WHERE clause Error Codes 15 DoesNotApply See Also setSQLWhereClause SQLWhereClause setSQLWhereClause Method Syntax boolean setSQLWhereClause String sqlWhereClause Description Sets the SQL WHERE clause for layers that are created from DWG data This method sets the SQL WHERE clause only for polyline polygon and point layers created from DWG data It does not set the SQL WHERE clause for Autodesk DWG layers SQL WHERE clauses can only be applied to secondary tables For more information about using secondary tables as the source for SQL WHERE clauses see Step 9 under Accessing Data Using a Link Template on page 20 Parameters sqlWhereClause String representing the name of the SQL WHERE clause Return Values boolean Specifies whether or not the SQL WHERE clause is successfully set True Indicates that the SQL WHERE clause has been set successfully MGDwsgDataSources Object 105 106 False Indicates that the SQL WHERE clause has not been set Error Codes 1 Busy 15 DoesNotApply See Also
109. permission denied 19 driver not detected 20 API disabled 22 write error MGMapLayer The MGMapLayer object represents a layer on the map Its getLayerType method and LayerType property return strings indicating the layer type This method and property can now also return DWE as the layer type For more information about the MGMapLayer object and its getLayerType method and LayerType property see the Autodesk MapGuide Viewer API Help You can access the Autodesk MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu getLayerType Method Returns String Represents the layer type The following are valid layer types Unknown Point Text Polyline Polygon Raster Buffer GIS Design Server Theme Autodesk DWG Autodesk DWF and Redline For more information about the getLayerType method see the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu MGMapLayer 125 LayerType Property Returns String read write Represents the layer type The following are valid layer types Unknown Point Text Polyline Polygon Raster Buffer GIS Design Server Theme Autodesk DWG Autodesk DWE and Redline For more information about the LayerType property see the Autodesk MapGuide Viewer API Help You
110. perty is set to False and blocks are treated as polylines and poly gons instead of points the polylines and polygons are displayed on polyline and polygon layers instead of the point layer MGDwgDataSources Object 121 122 For more information about how blocks are treated on point layers see Chapter on page Parameters none Return Values boolean read write Specifies whether or not the layer treats blocks as points True Indicates that the layer is set to treat blocks as points False Indicates that the layer is not set to treat blocks as points Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply See Also getTreatBlocksAsPoints setTreatBlocksAsPoints Chapter 7 DWG API Additions DWF API Additions This section documents the API changes that you can use to access the new MWF layer properties and that support the new DWF functionality in Autodesk MapGuide 6 5 The DWF API changes include changes and additions to the methods and properties for the existing MGMap MGMapLayer and MGMapLayerSetup objects and the addition of anew MGDwfDataSource object For more information about the new DWF functionality see Chapter 3 DWF Support on page 23 In this chapter MGMap object MGMapLayer object MGMapLayerSetup object MGDwfDataSources object 123 MGMap Object 124 MGMap is the top level object of the API for the Au
111. ported Geometry Functions The following is a list of some of the supported geometry functions that are available with Oracle SDO_ARC_DENSIFY SDO_BUFFER SDO_CENTROID SDO_CONVEXHULL SDO_MBR Note Consult your Oracle documentation for a complete list of Oracle functions available in Oracle and for instructions on how to use them Sample Applied Geometry Functions In this example Oracle is creating a buffer around land parcels It is simply one of several ways that you can use geometry functions to analyze and manipulate data without changing the original data in the database In the following sample the parameter GEOMCOL is used to substitute the geometry column name for the parameter This parameter is optional and you can use it to specify a geometry function without having to write a specific geometry column in the request 40 Chapter 4 Enhanced Layer Functionality Map Layer Properties Polygon Parcels http cesdell8200 mapquide6 5 mapagent exe SDP Spatial Data Provider data source hd pra no Fences a ine E GEOM s Jey SDO_GEOM SDO_BUFFER GEOMCOL 2 1 ok _cercet_ Heb _ Sample 1 Applied geometry functions In this sample when the Autodesk MapGuide Server processes the layer SDO_GEOM SDO_ BUFFER GEOMCOL 2 1 becomes SDO_GEOM SDO_BUFFER GEOM 2 1 after the parameter has been updated Assuming no spatial filtering is being done the actual Autodesk MapGuide default spati
112. r California State Planes Zone IV US Foot y lt j gt Note The selected Default SRS will apply to any DWF File specified For the search path Chapter 3 DWF Support 8 Optionally on the Advanced tab set the arc parameters For a description of these parameters see Dialog Box Changes Autodesk MapGuide Server on page 7 r rc Parameters le Fine Medium C Coarse Custom Degrees Arc Stroke Minimum Segments Arc 9 Click OK The new data source is added to the list in the Properties dialog box Setting Up a Data Source for DWF Files 27 How DWFs are Published in Autodesk Map You can create DWFs in various Autodesk products A DWF file consists of a number of sheets each of which can contain a view of a different DWG or a different view of the same DWG for example the map with different layers turned on or off The following diagram illustrates how a DWF file is published from Autodesk Map 7 EME BES BER Oa MAQRAQAAR Z J Je 3 Elo a Ba pa o Bs El a D zje Pa gt a a0 a 2 a E E A Views are set up in Autodesk Map and pub A id ROTTER lished to a multi sheet u wiilities lceded T levez 155806 0516 2079087 85740 0000 SNAP GRID ORTHO POLAR O05NAP OTRACK LWT MODEL I E Sheet One w Sheet Two PROJECT DWF Publishing to a DWF file from Autodesk Map In the illustration above views from the drawing files PARCE
113. r Content Explorer Dancing Baby image DesignCenter Design Doctor Designer s Toolkit DesignProf DesignServer Design Web Format DWF DWFwriter DWG Linking DXF Extending the Design Team GDX Driver gmax logo gmax ready logo Heads up Design jobnet lustre ObjectDBX onscreen onair online Plans amp Specs Plasma PolarSnap Real time Roto Render Queue Visual Bridge Visual Syllabus and Where Design Connects Autodesk Canada Inc Trademarks The following are registered trademarks of Autodesk Canada Inc in the USA and or Canada and or other countries discreet fire flame flint flint RT frost glass inferno MountStone riot river smoke sparks stone stream vapour wire The following are trademarks of Autodesk Canada Inc in the USA Canada and or other countries backburner Multi Master Editing Third Party Trademarks Microsoft PowerPoint and Windows are registered trademarks of Microsoft Corporation in the United States and other countries Oracle is a registered trademark of Oracle Corporation ESRI is a trademark of Environmental Systems Research Institute Inc in the United States and other countries All other brand names product names or trademarks belong to their respective holders Third Party Software Program Credits Copyright 2002 Microsoft Corporation All rights reserved InstallShield Copyright 2002 InstallShield Software Corporation All rights reserved Typefaces from the Bitstream
114. r DWF Files A DWF data source points to the folder where the DWF files that you want to use are stored The dialog boxes that you see when you set up a new data source for DWF files are almost identical to those you see when you set up a data source for DWG files for more information see the topic Creating Autodesk DWG Data Sources in the Autodesk MapGuide Author Help The principal differ ence is an additional function on the Advanced tab where you specify the default Spatial Reference System SRS The ability to establish an SRS is needed because the DWF format has no support for projection or coordinate systems The default SRS defines a projection and or coordinate system for all the data in the DWF data source Autodesk MapGuide can then transform the data from this SRS to whatever SRS a particular map file is using Note Password protected DWF files are not supported in this release Passwords are set when the DWF files are published for example in Autodesk Map Check that the DWF files have no password protection before you start using them to author maps To create a new data source for DWF files 1 In the Autodesk MapGuide Server Admin program from the Edit menu choose Properties 2 In the Properties dialog box click the Data Sources tab and then click New 3 In the New Data Source dialog box select Autodesk Data Link ADL For DWG And DWF 4 Enter a name for the data source and then click OK New Data Source
115. r session To ensure map state retention three key categories of information must be saved during the process m Area of the map that you are currently viewing m Current layer and group visibility m Currently selected map feature objects For example you may have displayed a series of layers in a drawing order that exposes a point layer containing hydrants on top of a land parcel layer Then you may have zoomed to fill your screen with a particular parcel and its hydrants Now you may want to access a Buzzsaw document containing location data about a selected hydrant You need to be able to save the above three categories of information and return to the map in the state you left it in before accessing the Buzzsaw document To prevent map states from being lost cookies that normally expire at the end of a session must be enabled which permits the preceding three catego ries of information to be saved to the cookies To save these three categories of map information you must perform two tasks m Serialize the map state and save the serialized map state in cookies m Use the cookies to restore the map state the next time you open the page To save the map states in cookies 1 Use the onUnload event handler which is the onUnload HTML BODY tag to save the state of the map to cookies when you leave the Web page The event handler calls a JavaScript function that creates the state cookies and allows the Autodesk MapGuide Viewer API to ge
116. rameters of the default spatial queries don t include the restraints you need for your data For more information about custom spatial queries see Using a Custom Spatial Query on page 46 Parameters query String representing the custom spatial query that you want to apply the layer Returns boolean Specifies whether or not the custom query was successfully applied True Indicates that the custom query was successfully applied False Indicates that the custom query has not been set Error Codes 1 Busy 5 Security Violation 15 Does not apply See Also getSpatialQuery New 18 Custom Spatial Query Error Code Some of the existing methods for the MGMapLayerSetup and the MGData baseSetup objects have a new 18 Custom Spatial Query error code The 18 Custom Spatial Query error code indicates that these methods cannot return or set the columns for the specified attributes key URLLink SQL WHERE clause symbol size and text alignment for custom spatial New 18 Custom Spatial Query Error Code 165 queries Custom spatial queries consist of complex and nested SQL state ments making it impossible to determine which column contains the spec ified attribute For example the following SQL statement is confusing SELECT SELECT B F_ID FROM ALLTYPES B WHERE B F_ID A F_ID A F_ID A F _NAME A F_ID A F_GEOM A F_NAME FROM ALLTYPES A The key column is SELECT B F_ID FROM AL
117. re SQL statements are executed before Autodesk MapGuide performs a spatial query You can use them to further customize your query results For more information about applying pre SQL statements to queries see Using SQL Pass Through Statements on page 55 Parameters None Returns boolean Specifies whether or not the list of pre SQL statements has been successfully cleared True Indicates that the list of pre SQL statement was successfully cleared False Indicates that the list of SQL statement was not cleared Error Codes 1 Busy 5 Security Violation 15 Does not apply See Also getPreSQLStatements addPreSQLStatement getPostSQLStatements Method Syntax MGCollection getPostSQLStatements Description Gets the list of post SQL statements that is applied to the layer Post SQL statements are executed after Autodesk MapGuide performs a spatial query You can use them to further customize your query results For more information about applying post SQL statements to queries see Using SQL Pass Through Statements on page 55 MGMapLayerSetup Object 161 Parameters none Returns MGCollection A list of strings representing the post SQL statements that are applied to the query Error Codes 5 Security Violation 15 Does not apply See Also addPostSQLStatement clearPostSQLStatements addPostSQLStatement Method Syntax boolean addPostSQLStatement String sql Desc
118. right click the HTML document again in the Project File list and click Update to display the Update Project Document dialog box You will see the local drive path ending with the HTML document you have updated Verify that both the path and the document shown are correct 7 Click the Next button to add a comment or send an email notification in the next dialog box or click the Finish button to close the Update Project Document dialog box When you have finished updating the HTML you can click any feature on the corresponding Autodesk MapGuide map to display an attached docu ment without being required to supply a logon ID and password 70 Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer Retaining the Current Map State Autodesk MapGuide and Buzzsaw Viewer integration is designed to ensure that your maps retain their most recent state when you leave them to access a document in Buzzsaw Map state retention would help for example if you have spent a significant amount of time navigating the map turning layers on and off and zooming to display a particular feature on the map such as a building or road When you return to the map view from a Buzzsaw document you want to see the same map view you left to access the document Otherwise you must recon struct the view you created before you accessed the Buzzsaw document Autodesk MapGuide remembers both your map s selection state and the last mode that you were in for a particula
119. ription Adds the specified SQL statement to the end of the list of post SQL state ments that is applied to the layer Post SQL statements are executed after Autodesk MapGuide performs a spatial query You can use them to further customize your query results For more information about applying post SQL statements to queries see Using SQL Pass Through Statements on page 55 Parameters sql String representing the SQL statement to add to the end of the list Returns boolean Specifies whether or not the specified SQL statement was success fully added to the end of the post SQL statement list 162 Chapter 9 Enhanced Layer Functionality API Additions True Indicates that the SQL statement was successfully added to the end of the list False Indicates that the SQL statement was not added to the end of the list Error Codes 1 Busy clearPostSQLStatements Method Syntax boolean clearPostSQLStatements Description Clears the list of post SQL statements so that are not applied to the layer Post SQL statements are executed after Autodesk MapGuide performs a spatial query You can use them to further customize your query results For more information about applying post SQL statements to queries see Using SQL Pass Through Statements on page 55 Parameters none Returns boolean Specifies whether or not the list of post SQL statements has been successfully cleared True Indicates
120. rmation about linking layers that are created from DWG data to secondary data sources see Accessing Data Using a Link Template on page 20 Parameters secondaryDataSource String representing the name of the secondary data source Return Values boolean Specifies whether or not the secondary data source is successfully set True Indicates that the secondary data source is successfully set False Indicates that the secondary data source is not set Error Codes 1 Busy 15 DoesNotApply See Also getSecondaryDataSource SecondaryDataSource SecondaryDataSource Property Syntax SecondaryDataSource Description Gets and sets the secondary data source linked to layers that are created from DWG data This property gets and sets the secondary data source only for polyline polygon and point layers created from DWG data It does not get or set the secondary data source linked to Autodesk DWG layers Chapter 7 DWG API Additions For more information about linking layers that are created from DWG data to secondary data sources see Accessing Data Using a Link Template on page 20 Parameters none Return Values String read write Represents the name of the secondary data source Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply See Also getSecondaryDataSource setSecondaryDataSource getSecondary Table Method Syntax String getSecondary
121. roups map getMapLayerGroups for var i 0 i lt layerGroups size i if isNameIn groupVisibility escape layerGroups item i getName Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer layerGroups item i setVisibility true else layerGroups item i setVisibility false Utility function to check to see if the string in variable name occurs in the semicolon delimited string in variable names E g isNameIn A Bb Cde Bb gt true isNameIn A Bb Cde B gt false function isNameIn names name var cname name var clen names length var cbhegin 0 while cbhegin lt clen var cend cbhegin cname length if names substring cbegin cend cname return true cbegin names indexOf cbegin 1 if cbegin 0 break return false This method is called when this page is unloaded see onUnload procedure Its purpose is to save the state of the map into cookies The following information is saved the selected object if there is only one selected object the map center and width and the layers that are turned on function saveMapState var map window map selected object if map null selected object var selStringPARAM var selection map getSelection if selection getNumObjects 1 var selObject selection getMapObjectsEx null item 0 selStrin
122. ryFunction Method getClipAdjust Method setClipAdjust Method getClipEnabled Method setClipEnabled Method getPreSQLStatements Method addPreSQLStatement Method clearPreSQLStatements Method getPostSQLStatements Method addPostSQLStatement Method clearPostSQLStatements Method getSpatialQuery Method setSpatialQuery Method New 18 Custom Spatial Query Error Code MGMapLayerSetup Object MGDatabaseSetup Object 134 135 136 136 138 139 140 141 142 143 143 144 145 146 147 148 149 150 151 152 153 153 154 155 156 157 158 159 159 160 161 162 163 164 164 165 166 166 169 Part Autodesk MapGuide Server and Author Enhancements The chapters in Part I document the changes and additions made to Autodesk MapGuide Server and Autodesk MapGuide Author to support the new features in this release Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Introduction Improved DWG Support DWF Support Enhanced Layer Functionality Oracle Spatial Data Provider Enhancements Using Buzzsaw with Autodesk MapGuide Viewer Introduction This document describes new and changed features in Autodesk MapGuide Release 6 5 In this chapter Installation notes Upgrading from an earlier release Major new features Installation Notes For complete installation and l
123. s and themes See page 5 m Enhanced support for DWF format including layers created from DWF files See page 23 m Enhanced layer functionality with direct access to the analytical power of databases such as Oracle See page 39 Introduction Improved DWG Support This chapter describes the enhanced support for DWG files provided in this release of Autodesk MapGuide Most of the changes covered in this chapter apply to Autodesk MapGuide Author there is only one change to the Autodesk MapGuide Server Admin program Follow the procedures in this chapter to learn the new methods of authoring layers directly from DWG files To review the new API functions for the DWG format see DWG API Additions on page 81 In this chapter Summary of enhancements Dialog box changes Autodesk MapGuide Server Dialog box changes Autodesk MapGuide Author How queries work in Autodesk Map Creating a layer from a query How themes work in Autodesk Map Creating a layer from a theme Creating a layer by geometry type Accessing data using a link template Summary of Enhancements 6 Chapter 2 This release of Autodesk MapGuide provides greatly improved support for DWG files particularly those created in Autodesk Map In previous releases you could only bring in the entire DWG or certain layers from it To extract geometry of a particular type from the DWG file it was necessary to convert the po
124. s that make up the city s water system A theme has been created to show the different pipe diameters When the theme is executed it reads the data from the database and redraws the thick ness of the polylines in the drawing according to the diameter of the pipes The theme also has a legend which was placed manually in the drawing after the theme was created Creating a Layer from a Theme Follow these steps to create a new layer from a theme in Autodesk MapGuide To create a new layer from a theme 1 In Autodesk MapGuide Author right click Map Layers and then click New Layer gt Autodesk DWG Dublin Califomia By Map Layers a02 Ouer jean ee em Reports Properties amp Zoom Gotos Tex E Popup Menu New Layer Group Point Polyline Cut Ctrl x Polygon Copy Ctrl C Raster Autodesk DWF Map Layer File Save as Map Layer File Autodesk DWG Ri seers De Autodesk GIS Design Server Theme y TT 2 On the General tab enter a name for the new layer 3 Click the Data Sources tab and make sure that the map server agent path is pointing to the correct location 4 Click the Data Source Browse button and select a DWG data source 5 Click the Autodesk DWG Browse button and select a DWG file 6 Optionally select a key table and key column if you want to associate table data with the geometry on this layer For more information see the topic About DWG Data Sources in the Autodesk MapGuide He
125. se sets the layers so that they treat blocks as individual polylines and polygons not as points Note If this method is set to False and blocks are treated as polylines and poly gons instead of points the polylines and polygons are displayed on polyline and polygon layers instead of the point layer For more information about how blocks are treated on point layers see Chapter on page Chapter 7 DWG API Additions Parameters treatBlocksAsPoints Boolean value specifying whether or not the layer treats blocks as points True Sets the layer to treat blocks as points False Sets the layer not to treat blocks as points Return Values boolean Specifies whether or not the value that determines if the layer treats blocks as points is successfully set True Indicates that the value specifying whether or not the layer treats blocks as points has been set False Indicates that the value specifying whether or not the layer treats blocks as points has not been set Error Codes 1 Busy 15 DoesNotApply See Also getTreatBlocksAsPoints TreatBlocksAsPoints TreatBlocksAsPoints Property Syntax TreatBlocksAsPoints Description Gets and sets how polygon layers that are created from DWG data treats AutoCAD blocks A value of True indicates that blocks are treated as points A value of False indicates that blocks are treated as individual polylines and polygons not as points Note If this pro
126. sidered potentially non secure Buzzsaw displays the following message Security Information EG This page contains both secure and nonsecure P items Do you want to display the nonsecure items No More Info You can prevent the display of this warning To prevent the display of the non secure site warning 1 Add the Autodesk MapGuide ActiveX Control cab file mgaxctrl cab located on the Autodesk Mapguide installation CD in the ActiveXCab sub folder to Buzzsaw You can use the Buzzsaw Add Document interface or simply drag the document onto the Project Files list 2 Inthe HTML page reference the cab file added in Step 1 by altering CODE BASE in the HTML OBJECT tag of the MapGuide application to appear as shown in the following code sample CODEBASE https projectpoint buzzsaw com project mgaxctrl cab Version 6 5 0 0 where project is the location in path where the cab file is stored Note The version number following the ActiveX control reference in the pre ceding code sample is for illustration purposes only Managing the Autodesk MapGuide and Buzzsaw Interface 73 Appendix Buzzsaw Code Integration 74 The following code sample illustrates how to integrate Autodesk MapGuide and Buzzsaw so that you can avoid the need to authenticate the Buzzsaw interface retain the current map state and prevent the non secure site warning message from appearing See the preceding section for more infor mation about m
127. source z SDP Data Source Name URL Where I Link to secondary table Select Secondary Table Name source Name column URL source URL column Secondary table E URL Apply SQL where clause to SQL where clause Feature table 7 Cancel Help Associating a Buzzsaw Document with a Map Feature 67 Managing the Autodesk MapGuide and Buzzsaw Interface This section explains how to manage the integration of the Autodesk MapGuide and Buzzsaw interfaces You can manage three aspects of this inte gration m Avoiding Buzzsaw interface authentication Eliminate the requirement to log on through a dialog box when opening a document in Buzzsaw m Map state retention Prevent the loss of the current map state when you use the Back button to return to the Autodesk MapGuide application from a Buzzsaw document m Non secure site warning Prevent the Buzzsaw warning that a page you are opening contains unsecure information Each of these issues is discussed in the following sections 68 Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer Avoiding Buzzsaw Interface Authentication You can open documents associated with Autodesk MapGuide map features without having to enter a logon ID and password to access the appropriate Buzzsaw folder To avoid Buzzsaw Interface Authentication 1 Display the Autodesk Mapguide project document in Buzzsaw showing the list of HTML documents as shown in the following ill
128. t query SQL statements to the spatial queries To use the new enhanced layer features you need to be an advanced Autodesk MapGuide user with a solid understanding of Oracle Structured Query Language SQL In this chapter Summary of enhanced layer functionality Providing access to the enhanced layer functionality API Using geometry functions Applying filters to spatial queries Using a custom spatial query Using SQL pass through statements Tracking enhanced layer features 35 Summary of Enhanced Layer Functionality 36 This release of Autodesk MapGuide provides powerful new tools that you can use to enhance the results of your work with layers Specific new features included in this release are as follows Chapter 4 Access to API for enhanced layer functionality Provide access to the enhanced layer functionality API for a layer See Providing Access to the Enhanced Layer Functionality API on page 37 Enhanced geometry functionality Apply geometry functions to selected features on maps See Using Geometry Functions on page 39 Enhanced spatial query function Add filters to queries to limit the data returned by a query See Applying Filters to Spatial Queries on page 42 Custom spatial query functionality Execute custom queries instead of the default Autodesk MapGuide spatial query See Using a Custom Spatial Query on page 46 Pre and post SQL statement functiona
129. t the map state informa tion 2 Save the current map view by using the following APIs Managing the Autodesk MapGuide and Buzzsaw Interface 71 MGMap getLat MGMap getLon MGMap getWidth MGMap getUnits 3 Save the list of layers groups and their corresponding visibility by using the following APIs m MgMap getMapLayersEx m MgMap getMapLayerGroups m MgMapLayer getVisibility m MgMapLayerGroup getVisibility 4 Save the feature selection state by using the following API m MgMap getSelection To restore the map state 1 When the HTML page loads restore the current view and selection state using the PARAMs to the HTML OBJECT tag that specifies the MapGuide map 2 Use Document write to specify the PARAMs dynamically when the page loads setting the following PARAMS Selobjs Lat Lon MapWidth m Units Note All parameters are described in Autodesk MapGuide Viewer Help Advanced Topics URL Parameters 3 Set the layer and group visibility using the following MapGuide Viewer APIs m MGMap getMapLayerEx m MGMapLayer setVisibility m MGMap getMapLayerGroups m MGMapLayerGroup setVisibility Note Use the onMapLoaded event to get the list of layers and groups and change their visibility 72 Chapter 6 Using Buzzsaw with Autodesk MapGuide Viewer Preventing the Non Secure Site Warning Buzzsaw is a secure site requiring any HTML pages to contain references to secure information If a referenced document is con
130. t the value that determines if the layer treats closed polylines as polygons is successfully set False Indicates that the value that determines if the layer treats closed polylines as polygons is not set Error Codes 1 Busy 15 DoesNotApply See Also getTreatClosedPolylinesAsPolygons TreatClosedPolylinesAsPolygons TreatClosedPolylinesAsPolygons Property Syntax TreatClosedPolylinesAsPolygons Description Gets and sets how polygon layers that are created from DWG data treats closed polylines A value of True indicates that closed polylines are treated as polygons A value of False indicates that closed polylines are treated as indi vidual polylines not as polygons Note If this property is set to False and closed polylines are treated as polylines instead of polygons the polylines are displayed on a polyline layer instead of the polygon layer Chapter 7 DWG API Additions For more information about how closed polylines are treated on polygon layers see Chapter on page Parameters none Return Values boolean read write Specifies whether or not to treat closed polylines as polygons True Indicates that the layer is set to treat closed polylines as polygons False Indicates that the layer is not set to treat closed polylines as polygons They are treated as individual polylines and are displayed on a polyline layer Error Codes 1 Busy This error code is for the write oper
131. ter Return Values boolean Specifies whether or not the category of the theme is successfully set True Indicates that the theme category has been set successfully False Indicates that the theme category has not been set Error Codes 1 Busy See Also getThemeCategory ThemeCategory getThemeName setThemeName ThemeName ThemeCategory Property Syntax ThemeCategory Description Gets and sets the category of the theme that is assigned as the DWG filter It also automatically sets FilterType to a Theme Filter value of 2 For infoma tion about FilterType see FilterType Property on page 83 In DWG layers you can specify an AutoCAD Map theme as the filter for layer data Use this property to get and set the category of the theme that is assigned as the filter For information about theme categories see Step 8 under Creating a Layer from a Theme on page 13 Chapter 7 DWG API Additions Parameters none Return Values String read write Represents the category of the theme that is assigned as the filter Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply This error code is returned for the read operation See Also getThemeCategory setThemeCategory getThemeName setThemeName ThemeName getNameSource Method Syntax int getNameSource Description Gets the source of the feature names for layers that are created from DWG
132. ter 7 DWG API Additions Error Codes 1 Busy 15 DoesNotApply See Also getSecondaryTable SecondaryTable SecondaryTable Property Syntax SecondaryTable Description Gets and sets the secondary table linked to layers that are created from DWG data This property gets and sets the secondary table linked only to polyline polygon and point layers It does not get or set the secondary table linked to Autodesk DWG layers For more information about linking layers that are created from DWG data to secondary tables see Accessing Data Using a Link Template on page 20 Parameters none Return Values String read write Represents the name of the secondary table that is linked to the layer Error Codes 1 Busy This error code is for the write operation 15 DoesNotApply See Also getSecondaryTable setSecondaryTable MGDwgDataSources Object 113 114 getSecondaryKeyColumn Method Syntax String getSecondaryKeyColumn Description Gets the secondary key column linked to layers that are created from DWG data This method gets the secondary key column linked only to polyline polygon and point layers It does not get the secondary key column linked to Autodesk DWG layers For more information about linking layers that are created from DWG data to secondary key columns see Accessing Data Using a Link Template on page 20 Parameters none Return Values String Represents the
133. tes that closed polylines are not treated as polygons They are treated as individual polylines and are displayed on a polyline layer Error Codes Parameters 15 DoesNotApply See Also setTreatClosedPolylinesAsPolygons TreatClosedPolylinesAsPolygons setTreatClosedPolylinesAsPolygons Method Syntax boolean setTreatClosedPolylinesAsPolygons Boolean treatClosedPolylinesAsPolygons Description Sets how polygon layers that are created from DWG data should treat closed polylines A value of True indicates that closed polylines are treated as poly gons A value of False indicates that closed polylines are treated as individual polylines not as polygons Note If this method is set to False and closed polylines are treated as polylines instead of polygons the polylines appear on a polyline layer instead of the poly gon layer For more information about how closed polylines are treated on polygon layers created from DWG sources see Chapter on page MGDwgDataSources Object 117 118 Parameters treatClosedPolylinesAsPolygons Boolean value specifying whether or not the layer treats closed polylines as polygons True Sets the layer to treat closed polylines as polygons False Sets the layer not to treat closed polylines as polygons Return Values boolean Specifies whether or not the value that determines if the layer treats closed polylines as polygons is successfully set True Indicates tha
134. that the list of post SQL statement was successfully cleared False Indicates that the list of SQL statement was not cleared Error Codes 1 Busy 5 Security Violation 15 Does not apply MGMapLayerSetup Object 163 See Also getPostSQLStatements addPostSQLStatement getSpatialQuery Method Syntax String getSpatialQuery Description Gets the custom spatial query that is applied to the layer A custom spatial query consists of user defined SQL statements that you can use instead of the default Autodesk MapGuide spatial queries You can use custom spatial queries if the parameters of the default spatial queries don t include the restraints you need for your data For more information about custom spatial queries see Using a Custom Spatial Query on page 46 Parameters none Returns String Represents the custom spatial query that is applied to the layer Returns an empty string if no custom spatial query is defined Error Codes 5 Security Violation 15 Does not apply See Also setSpatialQuery setSpatialQuery Method Syntax boolean setSpatialQuery String query 164 Chapter 9 Enhanced Layer Functionality API Additions Description Sets the custom spatial query to apply to the layer Custom spatial queries consist of a set of user defined SQL statements that you can use instead of the default Autodesk MapGuide spatial queries You can use custom spatial queries if the pa
135. thod 143 SheetName property 150 UrlColumn property 144 MGDwfDataSources property 127 MGDwegDataSources Object additions to 82 FilterType property 83 getFilterType method 82 getNameSource method 95 getQueryCategory method 86 getQueryName method 84 getSecondaryDataSource method 109 getSecondaryKeyColumn method 114 getSecondaryTable method 111 getSQLWhereClause method 104 getThemeCategory method 92 getThemeName method 89 getTreatBlocksAsPoints method 119 getTreatClosedPolylinesAsPolygons method 116 getUrlSource method 98 getWhereSource method 101 isLinkedToSecondaryTable method 107 LinkedToSecondaryTable property 108 NameSource property 97 QueryCategory property 88 QueryName property 86 SecondaryDataSource property 110 SecondaryKeyColumn property 115 SecondaryTable property 113 setNameSource method 96 setQueryCategory method 87 setQueryName method 85 setSecondaryDataSource method 109 setSecondaryKeyColumn method 114 setSecondaryTable method 112 setSQLWhereClause method 105 setThemeCategory method 93 setThemeName method 90 setTreatBlocksAsPoints method 120 setTreatClosedPolylinesAsPolygons method 117 setUrlSource method 99 setWhereSource method 102 SQLWhereClause property 106 ThemeCategory property 94 ThemeName property 91 TreatBlocksAsPoints property 121 TreatClosedPolylinesAsPolygons property 118 UrlSource property 100 Index I7I WhereSource property 103 MGMap Object additions to 124 MGMapLayer object additions to
136. to associate a Buzzsaw document with a map feature Note Before you associate Buzzsaw documents with a map feature you should familiarize yourself with the ways you can customize your interactions with maps using the Autodesk MapGuide Viewer API For information about the Autodesk MapGuide Viewer API see the Autodesk Viewer API Help which you can access by clicking Programs gt Autodesk MapGuide Release 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help from the Start menu You can get more infor mation regarding the viewer API by going to the Autodesk MapGuide Web site at http www autodesk com mapguide To associate a Buzzsaw document with a map feature 1 Insert the Buzzsaw URL information into the data SDF or SHP file OLE database table XLS spreadsheet and so on that you want displayed in Autodesk MapGuide Note The method you use to insert URL information depends on the type of data you are using See Steps 3 and 4 for more information about obtaining Buzzsaw URL information 2 Open Buzzsaw and navigate to the document to which you want to link 3 To obtain the URL information you want to add to your data right click the document in the Project Files list and then click Copy URL Note Selected URLs are copied to the Windows clipboard in the following form https folders buzzsaw com client Project document_path document_name typ 4 After adding the URL remove client from the path shown in the Note fol lowi
137. todesk MapGuide Viewer ActiveX Control Plug In and Java Edition For the ActiveX Control MGMap is a COM interface This object has one new method that you can use to save the current view of the MWF file in the Autodesk MapGuide Viewer to a DWF file For more information about the MGMap object see the Autodesk MapGuide Viewer API Help You can access the Autodesk MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu saveAsDwf Method Syntax boolean saveAsDWF String pathFileName Description Saves the current view of the map to a DWF file Note This method supports both local and UNC absolute paths It does not sup port relative paths or the creation of multiple nested folders In addition you can not save DWF files to a read only folder but you can create a new folder within a read only folder and save the DWF file to that new folder For more information about saving maps as DWF files see Saving a View As a DWF File on page 32 Parameters pathFileName String representing the absolute path and file name for the saved DWF Returns boolean Specifies whether or not the map has been successfully saved as a DWF file True Indicates it has been successfully saved False Indicates it has not been saved Chapter 8 DWF API Additions Error Codes 1 busy 2 not ready 3 illegal argument 16 write
138. tructure changes can find a complete description of the provider in the Provider E Manually editing a UDL file for Oracle Spatial Guide on your Autodesk MapGuide Release 6 5 CD 59 Dialog Box Changes New arc parameters have been added to the Autodesk Data Link Properties dialog box You access this dialog box by editing the properties of an Oracle data source in the Autodesk MapGuide Server Admin program or by double clicking an Oracle UDL file Using the parameters you can now specify how finely arcs are rendered as polylines when they are brought into Autodesk MapGuide Keep in mind that finer arcs slow performance Data Link Properties Provider Connection Advanced al Error Logging Level Specifies the error logging level Logs Reporte d x only Error and Warning Arc Parameters Fine Medium C Coarse C Custom Defines the number of degrees a between the points that create the line segments of the arc New Advanced tab for Autodesk Data Link Properties dialog box 60 Chapter 5 Oracle Spatial Data Provider Enhancements Registry Structure Changes In previous releases of Autodesk MapGuide there were four settings for the Provider for Oracle Spatial which applied to any Oracle data source accessed by the server All of these settings have been removed Two of these SegmentsPerArc and RadiansPerArcStroke have been replaced by the arc parameters described in
139. ttached files The example in the illustration is a very simple query called a location query because it is based on a location in the drawing in this case a circular area Queries can be much more complex than this one with multiple lines that include SQL statements However to bring data from any Autodesk Map query into Autodesk MapGuide Author the procedure is the same Creating a Layer from a Query Use the following steps to create a new layer from a query in Autodesk MapGuide To create a new layer from a query 1 In Autodesk MapGuide Author right click Map Layers and then click New Layer gt Autodesk DWG _ Dublin California Map Layers 2 n Py 2 pa Properties X Zoom Gotos New Layer Text E Popup Menu New Layer Group Point Polyline Polygon Raster Cut Ctrl x Copy Ctrl C Autodesk DWF Save as Map Layer File ava as Prep Mayer rie Autodesk DWG i R emove Del Autodesk GIS Design Server Theme J On the General tab enter a name for the new layer w N Click the Data Sources tab and make sure that the map server agent path is pointing to the correct location A Click the Data Source Browse button and select a DWG data source Click the Autodesk DWG Browse button and select a DWG file Optionally select a key table and key column if you want to associate table data with the geometry on this layer For more information see the topic About DWG Data Sources
140. turn a database in excess of one terabyte 1 024 gigabytes in size Established time limits in retrieval functions would probably shut down the query before it completes and if not you could wait a long time to retrieve the data even if you have room to store it To turn spatial filtering on and off 1 Open the map containing the layer to which you want to apply or remove spatial filtering 2 Double click the name of the layer in the list to the left of the map The Map Layer Properties dialog box is displayed 3 In the Map Layer Properties dialog box click the Data Sources tab as shown in the following illustration Chapter 4 Enhanced Layer Functionality Map Layer Properties Polygon Parcels Eg General Data Sources Styles Security Map server agent URL Draw features from spp Spatial Data Provider data source hi SDP Data Source Name URL Where Data source SDF_Dublin eB Feature table eublin_parcels E Key column Key column type FEATURED H Sting x Geometry column Geometry function FEATURE_GEOM lah E Advanced Settings Cancel Help 4 Click the Advanced Settings button The Advanced Settings dialog box is displayed as shown in the following illustration Advanced Settings x rm Spatial Filter Feature table dublin_parcels IV Use Autodesk MapGuide Server s spatial filter I Apply clipping adjustment to Autodesk MapGuide Server s spatial fi
141. ty Syntax MGDwfDataSources Description Gets the MGDwfDataSources object for this layer For more information about the MGDataSources object see MGDwfData Sources Object on page 128 Parameters none Returns MGDwfDataSources read only The MGDwfDataSources object for this layer See Also getDwfDataSources MGMapLayerSetup Object 127 getSourceType Method This is an existing method that returns the type of data source for the layer In this release this method now can return DWF as a data source type For more information about the getSourceType method see the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Returns String Represents the source type for the layer data The following are valid source types for map data Database DWG DWE RasterImageFile Spatial DataFile or VisionTheme SourceType Property This is an existing property that returns the type of data source for the layer In this release this property can now set and return DWF as a data source type For more information about the SourceType property see the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Returns String read only
142. u can now specify how finely arcs are rendered as polylines when they are brought into Autodesk MapGuide note that finer arcs slow performance Autodesk Data Link Properties Advanced tab has ar 4 additional content Arc Parameters Fine C Medium C Coarse Custom Degrees Arc Stroke 5 Minimum Segments Arc Defines the number of degrees between the points that create the line segments of the arc New Advanced tab for Autodesk Data Link Properties dialog box Dialog Box Changes Autodesk MapGuide Server 7 Dialog Box Changes Autodesk MapGuide Author The Map Layer Properties dialog box has been rearranged and updated to make it easier to use and to provide a logical interface for the new DWG features Map Layer Propertie Polygon New Layer fe N _ General Data Sources Styles Layer type appears in the title bar Security fap server agent URL http cesdell8200 mapquide6 5 mapagent exe Map Server Agent URL has been moved to top of Draw features from Autodesk DWG data source work area Name URL Data source Where tab has DWG_Dublin been added See the illustra sae al tion below poe l 4 Key table Filter type FP_FeatureProperties Key column Key column type Layer namefs PARCELS f For Filter Type 7 you can select Layer Query or Theme DWG Data Source Name URL Where F Link to secondary ta
143. uccessfully it automatically sets the rebuild flag of the layer to True For more information on the rebuild flag see setRebuild in the Autodesk MapGuide Viewer API Help You can access the MapGuide Viewer API Help by clicking Autodesk MapGuide 6 5 gt Documentation gt Autodesk MapGuide Viewer API Help on the Program menu Note This method is not case sensitive For information about using key columns with DWF layers see Displaying Friendly Names and URLs on page 31 Parameters keyColumntType String representing the data type to assign to the key column 138 Chapter 8 DWF API Additions Returns boolean Specifies whether or not the data type of the key column is success fully set True Indicates that the data type of the key column is successfully set False Indicates that the data type of the key column is not set Error Codes 1 Busy 3 Illegal Argument See Also getKeyColumnType KeyColumnType KeyColumnType Property Syntax KeyColumnType Description Gets and sets the data type of the key column You can set the key column data type to one of the following String Numeric Decimal Integer SmallInt Float Double Date Time TimeStamp Boolean UnsignedInteger UnsignedSmallInt Byte UnsignedByte MGDwfDataSources Object 139 140 It is recommended that you do not use Float or Double types because of the inherent inaccuracies in comparing them If this property is
144. ustration BuzzsawIntegration Buzzsaw Professional EE HE File Edit View Tools Help say DE SOB x PR Se xe G aval ad gt Q Project Buzzsawintegration amp Project Files luzzsawIntegration a uli Wheaton General View Discussions Versions MapGuide Application Site Z Wheaton Map html BESET Parcels 517410000 51741 Parcels 517420000 51742 R ey ia oe aQ Q ihe A 1 autodesk E 517420050 517420051 a ii Bi n oo EVERGREEN fay 517420052 pe MERERSEN 517420053 E amp 517420054 Mi mi jii Wheaton MapGuide Application Wheaton Map html 517420055 Project a 517420056 Administratio 517420057 es ee y 517420058 ROOSEVELT RD y 517420059 Project Files E 517420060 y 517420061 y 517420062 E 517420063 E 517420064 Fa sizaennas 2 Right click the HTML document in the Project Files list in Buzzsaw and click Edit to display the Save File To Edit As dialog box 3 Add the saved document to the desired local drive and click Save The default HTML editor on your local system opens 4 Add the following parameter to the HTML anywhere between the begin ning and end object tags lt PARAM NAME ObjectLinkTarget VALUE _self gt Note If the ObjectLinkTarget parameter is already present make sure that it is set to the value _ self Managing the Autodesk MapGuide and Buzzsaw Interface 69 The HTML appears as shown in the following s
145. ut managing the interface between Autodesk MapGuide Viewer and Buzzsaw Note You should be familiar with both Buzzsaw and Autodesk MapGuide before you begin working with the Buzzsaw MapGuide interface In this chapter Accessing maps and MWF files from Buzzsaw Associating a Buzzsaw document with a map feature Managing the Autodesk MapGuide and Buzzsaw Interface Appendix Buzzsaw code integration 63 Accessing Maps and MWF Files from Buzzsaw 64 You can use Buzzsaw as a Web server where you can publish your Autodesk MapGuide applications so that others can access them For more information about publishing maps to a Web server see Publishing a Map in the Autodesk MapGuide User s Guide You can access the Autodesk MapGuide User s Guide by clicking Programs gt Autodesk MapGuide Release 6 5 gt Documen tation gt Autodesk MapGuide User s Guide from the Start menu You can also use Buzzsaw to store MWFs that you want to make available to Autodesk MapGuide Viewer This program can display MWF files directly from Buzzsaw or it can display a MWF file referenced in an Autodesk MapGuide application Note Only the Microsoft ActiveX Control version of Autodesk MapGuide Viewer can display maps and MWF files stored in Buzzsaw You can use MWF files with other viewers but only the ActiveX Control can be used to open the MWFs within Buzzsaw Referencing MWF Files from Autodesk MapGuide Applic
146. xample OLE DB SELECT F_ID LAT LON FLNAME FROM PARCELS Data a a Cancel 3 In the Data area enter the custom spatial query SQL statement to be exe cuted You can use the sample statements under Information to help you with the statement s syntax as shown in the preceding illustration Note When using a custom spatial query you must specify the correct column order Click the Help button or see Using a Custom Spatial Query on page 46 50 Chapter 4 Enhanced Layer Functionality Sample 1 Running a Custom Query In this sample custom query the user is supplying parameters to customize a standard spatial query The parameters simply provide the user with the convenience of using parameters instead of having to type in in this case geometry column and feature table names This can be particularly helpful if such names appear multiple times within a spatial query If the values change the user can run the query multiple times without having to edit the query details each time by allowing the parameters to pick up the correct values Advanced Settings E x rm Spatial Filter Feature table dublin_parcels El Geometry Column FEATURE _GEOM El IV Use Autodesk MapGuide Server s spatial filter I Apply clipping adjustment to Autodesk MapGuide Server s spatial filter Adjustment E FOOT Query List Spatial Query Custom SELECT ID GEOMCOL FROM FEATTABLE Down e Delete OK
147. xecuted select the statement and click the Up button to reposition the statement above the spatial query 7 Optionally continue to add statements selecting them individually and clicking the Up or Down button to position a statement above or below the spatial query as desired Note Only one spatial query statement either the default or customized is allowed per layer Also regardless of their position the results of pre and post query SQL statements are ignored by the Autodesk MapGuide Server and are not used during its internal processing of the spatial query Tracking Enhanced Layer Features 58 The ITEM trace log parameter now has additional information that you can use to track the enhanced layer features including geometry functions custom spatial queries filter adjustments and both pre or post SQL state ments Database access trace log parameters are available in this version of Autodesk MapGuide as they were in the previous version For more information about these parameters see the Autodesk MapGuide Help topic Customizing the Access Log Click the Help Contents tab to find this topic or search for Customizing in the index Chapter 4 Enhanced Layer Functionality Oracle Spatial Data Provider Enhancements This chapter describes minor changes to the Provider for In this chapter Oracle Spatial sometimes abbreviated to Oracle SDP You E Dialog box changes M Registry s
148. yerSetup Object 153 Parameters none Returns String Represents the geometry function that is applied to layer features Returns an empty string if there is no geometry function Error Codes 5 Security Violation 15 Does not apply 18 Custom Spatial Query See Also setGeometryFunction setGeometryFunction Method Syntax boolean setGeometryFunction String function Description Sets the geometry function text to apply to the geometry column of the SDP layer You can apply geometry functions directly to selected features on a layer For more information about using geometry functions see Using Geometry Functions on page 39 Parameters function String representing the geometry function that you want to use Returns boolean Specifies whether or not the geometry function was successfully set True Indicates that the geometry function was successfully set 154 Chapter 9 Enhanced Layer Functionality API Additions False Indicates that the geometry function has not been set Error Codes 5 Security Violation 15 Does not apply 18 Custom Spatial Query See Also getGeometryFunction getClipAdjust Method Syntax double getClipAdjust Description Gets the clipping adjustment that is applied to the spatial filter of the layer You use the clipping adjustment to change the extents of the filter by increasing or decreasing the dimensions of its bounding box so t
Download Pdf Manuals
Related Search
Related Contents
Polar FT80 Sony Walkman WM-EX194 User's Manual Application: Period Checker Aeneon DDR2-667 1GB CL5 Betriebsanleitung Manuals SW0080 / TC-6310HD - Trail Cameras Australia Harbor Freight Tools Non_Contact Infrared Thermometer With Laser Targeting Product manual Mark Levinson No33H User's Manual Denon DJ DN-X1700 User's Manual Copyright © All rights reserved.
Failed to retrieve file