Version 1 (modified by 17 years ago) ( diff ) | ,
---|
MapGuide RFC 27 - New DWG Load Procedure Schema¶ This page contains an change request (RFC) for the MapGuide Open Source project. More MapGuide RFCs can be found on the RFCs page.
Status ¶
RFC Template Version (1.0) Submission Date August 13, 2007 Last Modified Bill Kellner Mon Aug 13 13:40:15 2007 Author Bill Kellner RFC Status draft Implementation Status under development Proposed Milestone 1.3 Assigned PSC guide(s) (when determined) Voting History (vote date) +1 Bob, Andy, Haris +0 Paul -0 Tom, Bruce -1 Jason (troublemaker)
Overview ¶ This change adds a new version of the DWG Load Procedure resource schema.
Motivation ¶ Autodesk MapGuide Studio will start using a new DWG load procedure XML document. Because the DWG load procedure document is stored in the repository the schema must be made available to the server.
Proposed Solution ¶ Add DWGLoadProcuedure-2.0.0.xsd to the Common/Schema folder. this is enough to get the server to store DWG load procedures in the new format in the repository.
<xs:complexType name="DwgLoadProcedureType">
<xs:annotation>
<xs:documentation>Extension of LoadProcedure for DWGs and DXFs</xs:documentation>
</xs:annotation> <xs:complexContent>
<xs:extension base="LoadProcedureType">
<xs:sequence>
<xs:element name="FileComponents">
<xs:annotation>
<xs:documentation>List of DWG files and their layers to be extracted, whether selected or not.</xs:documentation>
</xs:annotation> <xs:complexType>
<xs:sequence>
<xs:element name="FileComponent" type="DwgFileComponentType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>One DWG file and its layers</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element> <xs:element name="CombineComponents" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicate whether to combine components into one resource or create a separate resource for each component</xs:documentation>
</xs:annotation>
</xs:element> <xs:element name="Generalization" type="PercentageType">
<xs:annotation>
<xs:documentation>Reduces the point (or vertex) count of each map feature to the specified percentage of the original count</xs:documentation>
</xs:annotation>
</xs:element> <xs:element name="ClosedPolylinesToPolygons" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether to convert closed polyline features to polygons</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType> <xs:complexType name="DwgFileComponentType">
<xs:annotation>
<xs:documentation>Specifies a DWG file and its list of layers</xs:documentation>
</xs:annotation> <xs:sequence>
<xs:element name="Name" type="xs:string">
<xs:annotation>
<xs:documentation>The name of the DWG file</xs:documentation>
</xs:annotation>
</xs:element> <xs:element name="LayerComponents">
<xs:annotation>
<xs:documentation>List of DWG layers</xs:documentation>
</xs:annotation> <xs:complexType>
<xs:sequence>
<xs:element name="LayerComponent" type="DwgLayerComponentType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>One DWG layer</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType> <xs:complexType name="DwgLayerComponentType">
<xs:annotation>
<xs:documentation>Specifies a layer and a flag to indicate if it should be extracted</xs:documentation>
</xs:annotation> <xs:sequence>
<xs:element name="Name" type="xs:string">
<xs:annotation> <xs:documentation>The name of the layer</xs:documentation> </xs:annotation>
</xs:element> <xs:element name="Selected" type="xs:boolean">
<xs:annotation>
<xs:documentation>Indicates whether this layer is to be extracted when executing the Load Procedure</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
Implications ¶ None.
Test Plan ¶ There were no unit tests to test the dwg load procedure. No new unit tests are planned.
Funding/Resources ¶ Supplied by Autodesk.