模式管理

SPD管理模式 一、医用耗材管理的发展历程根据管理模式的先进性,大致可分为四个过程:1.早期粗放式管理 早期医疗机构的信息化建设处于初级阶段,主要建设的系统以医院信息管理系统(HIS)、实验室(检验科)信息管理系统(LIS)、影像归档和通信系统(PACS)为主,有了三个系统就可以开业运营了,至于其他如耗材管理之类的系统,都属于非核心不重要的系统,因此各科室自行管理,有的放在HIS里管理,有的使用一些进销存系统进行管理,耗材的管理存在于不同的系统里,而且有大量的手工单据。这个阶段最大的问题是信息孤岛林立,耗材数 阅读详情

 

FeatureClass

<xs:element ...请参考 ClassDefinition (带有主键属性)...

</xs:element>

<xs:complexType name=“<className>Type”

abstract=“<true | false>“/>

{ 请参考FeatureClass.GeometryProperty }

<xs:complexContent>

<xs:extension base=“{baseClass}?{baseClass.schema.name}:{baseClass.name} :

‘gml:AbstractFeatureType’ “

> 

<xs:sequence>

{属性列表请参考DataProperty和Geometric属性}

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

FeatureClass. GeometryProperty

<!--这些是xs:complexType元素的属性-->

fdo:geometryName=“<geometryPropertyName>“

fdo:geometricTypes=“<list of FdoGeometricTypes>“

fdo:geometryReadOnly=“<true | false>“

fdo:hasMeasure=“<true | false>“

fdo:hasElevation=“<true | false>“

fdo:srsName=“<spatialContextName>“/>

DataProperty

(decimal或string类型)

<!--minOccurs属性仅当值是1的时候才生成;Default属性仅当存在默认值时才生成;fdo:readOnly属性仅当值是1的时候才生成。-->

<xs:element name=“<propertyName>“

minOccurs=“{isNullable ? 0 : 1}”

default=“<defaultValue>“

fdo:readOnly=“<true | false>“>

<xs:simpleType>

{请参考 DataType String或DataType Decimal }

</xs:simpleType>

</xs:element>

DataProperty (其他类型)

<xs:element name=“<propertyName>“

type=“<datatype>“

minOccurs=“{isNullable ? 0 : 1}”

default=“<defaultValue>“

fdo:readOnly=“<true | false>“>

</xs:element>

DataType String

<xs:restriction base=“xs:string”>

<xs:maxLength value=“<length>“/>

</xs:restriction>

DataType Decimal

<xs:restriction base=“xs:decimal”>

<xs:totalDigits value=“<precision>“/>

<xs:fractionDigits value=“<scale>“/>

</xs:restriction>

GeometricProperty

 

<xs:element name=“<propertyName>“

type=“gml:AbstractGeometryType”

fdo:geometryName=“<propertyName>“

fdo:geometricTypes=“<list of FdoGeometricTypes>“

fdo:geometryReadOnly=“<true | false>“

fdo:hasMeasure=“<true | false>“

fdo:hasElevation=“<true | false>“

fdo:srsName=“<spatialContextName>“/>

> 

</xs:element>

MetaData

<!--在xs:schema元素中为FeatureSchema引用的模式-->

<xs:annotation>

<xs:documentation>

{对FdoFeatureSchema::Create()的描述}

</xs:documentation>

</xs:annotation>

<!--在xs:schema元素中为DataProperty引用的样式-->

<xs:annotation>

<xs:documentation>

{对FdoDataPropertyDefinition::Create()的描述}

</xs:documentation>

</xs:annotation>

<!--在xs:element元素为非要素GeometricProperty引用的模式-->

<xs:annotation>

<xs:documentation>

{对FdoGeometricPropertyDefinition::Create()的描述}

</xs:documentation>

</xs:annotation>

<!--在xs:complexType元素为FeatureClass引用的样式-->

<xs:annotation>

<xs:documentation>

{对FdoFeatureClass::Create()的描述}

</xs:documentation>

<xs:appinfo source=“<uri>“/>

<xs:documentation>

{对FdoGeometricPropertyDefinition::Create()的描述}

</xs:documentation>

</xs:annotation>

表 9‑3 FDO模式元素和GML模式片段的对应关系

 

表 9‑4显示了Map FDO数据类型和GML数据类型对照关系。

 

FDO数据类型

GML数据类型

Boolean

xs:boolean

Byte

fdo:Byte

DateTime

xs:dateTime

Double

xs:double

Int16

fdo:Int16

Int32

fdo:Int32

Int64

fdo:Int64

Single

xs:float

BLOB

xs:base64Binary

CLOB

xs:string

表 9‑4 FDO数据类型和GML数据类型对照表

1.1.1        GML 模式文件的创建

以下示例为“Buildings”要素定义了一个表格,这是Open GIS联盟的文档98-046r1中的一个示例。本节中,我们将通过为要素类“Buildings”创建GML模式文件来展示如何创建GML模式文件。

<ogc-sfsql-table>

<table-definition>

  <name>buildings</name>

  <column-definition>

    <name>fid</name>

    <type>INTEGER</type>

    <constraint>NOT NULL</constraint>

    <constraint>PRIMARY KEY</constraint>

  </column-definition>

  <column-definition>

    <name>address</name>

    <type>VARCHAR(64)</type>

  </column-definition>

  <column-definition>

    <name>position</name>

    <type>POINT</type>

  </column-definition>

  <column-definition>

    <name>footprint</name>

    <type>POLYGON</type>

    <column-definition>

</table-definition>

1.1.1.1  添加模式

让我们从一个基本的GML框架开始添加一个模式。

<xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema

  targetNamespace=“http://<customer_url>/<FeatureSchemaName>“

  xmlns:fdo=http://fdo.osgeo.org/schema

  xmlns:gml=http://www.opengis.net/gml

  xmlns:<FeatureSchemaName>=“http://<customer_url>/<FeatureSchemaName>“

  elementFormDefault=“qualified”

  attributeFormDefault=“unqualified”>

  <xs:annotation>

    <xs:documentation>{对FdoFeatureSchema::Create()的描述}</xs:documentation>

  </xs:annotation>

  {<每个类中只能有一个 xs:element 和/或 xs:complexType >}

</xs:schema>

通过如下的替换,可以设置要素模式的名称和描述。

l  用“fdo_customer”代替“<customer_url>”。

l  用“OGC980461FS”代替“<FeatureSchemaName>”,从而设置要素模式名称。

l  设置要素模式描述:用“OGC Simple Features Specification for SQL” 代替“{对FdoFeatureSchema::Create()的描述}”,从而设置要素模式描述。

1.1.1.2  添加要素类

在以上GML模式的基础上,让我们接着添加一个要素类。

<xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema”

  targetNamespace=“http://fdo_customer/OGC980461FS”

  xmlns:fdo=“http://fdo.osgeo.org/schema”

  xmlns:gml=“http://www.opengis.net/gml”

  xmlns:OGC980461FS=“http://fdo_customer/OGC980461FS”

  elementFormDefault=“qualified”

  attributeFormDefault=“unqualified”>

  <xs:annotation>

    <xs:documentation>OGC Simple Features Specification for SQL</xs:documentation>

  </xs:annotation>

  <xs:element name=“<className>“

    type=“<className>Type”

    abstract=“<true | false>“

    substitutionGroup=“gml:_Feature”>

    <xs:key name=“<className>Key”>

      <xs:selector xpath=“.//<className>“/>

      <xs:field xpath=“<identityPropertyName>“/>

    </xs:key>

  </xs:element>

  <xs:complexType name=“<className>Type”

    abstract=“<true | false>“/>

    fdo:geometryName=“<geometryPropertyName>“

    fdo:geometricTypes=“<list of FdoGeometricTypes>“

    fdo:geometryReadOnly=“<true | false>“

    fdo:hasMeasure=“<true | false>“

    fdo:hasElevation=“<true | false>“

    fdo:srsName=“<spatialContextName>“/>>

    <xs:annotation>

      <xs:documentation>

        {对FdoFeatureClass::Create()的描述}

      </xs:documentation>

      <xs:appinfo source=“<uri>“/>

      <xs:documentation>

        {对FdoGeometricPropertyDefinition::Create()的描述}

      </xs:documentation>

    </xs:annotation>

    <xs:complexContent>

      <xs:extension base=“{baseClass} ? {baseClass.schema.name}:{baseClass.name} : ‘gml:AbstractFeatureType’ “>

        <xs:sequence>

          {属性类表;请参考 DataProperty, GeometricProperty}

        </xs:sequence>

      </xs:extension>

    </xs:complexContent>

  </xs:complexType>

</xs:schema>

通过如下的替换,可以添加一个要素类,并且设置了这个要素类的几何属性和主键属性。

l  用“buildings”代替“<className>”,从而设置要素类的名称:。

l  将“xs:element”元素的“abstract”属性置为“false”。

l  用“fid”代替“<identityPropertyName>”,从而设置要素类的主键属性名称。

l  将“xs:complexType”元素的“abstract”属性置为false。

l  用“footprint”代替“<geometryPropertyName>”,从而设置要素类的几何属性名称。

l  用“surface”代替“<list of FdoGeometricTypes>”,从而设置几何属性的类型。

l  将“fdo:geometryReadOnly”,“fdo:hasMeasure”和“fdo:hasElevation”都置为“false”。

l  用“SC_0”代替“<spatialContextName>”,从而设置要素相关联的空间上下文。

l  用“OGC 98-046r1 buildings”代替“{对FdoFeatureClass::Create()的描述}”,从而设置要素类的描述。

l  用“http://fdo.osgeo.org/schema”代替“<uri>”。

l  用“a polygon defines a building perimeter”代替“{对FdoGeometricPropertyDefinition::Create()的描述}”,从而设置几何属性的描述。

l  该类不存在基类,因此将“xs:extension”元素的“base”属性置为‘gml:AbstractFeatureType’。

1.1.1.3  添加属性

在以上GML模式的基础上,我们再为要素类添加一个名为“fid”的整型数据属性,它已经作为关键属性加入到xs:key元素中了,还将添加名为“name”的数据属性,以及一个名为“position”的几何属性。

<xs:schema xmlns:xs=“http://www.w3.org/2001/XMLSchema”

  targetNamespace=“http://fdo_customer/OGC980461FS”

  xmlns:fdo=“http://fdo.osgeo.org/schema”

  xmlns:gml=“http://www.opengis.net/gml”

  xmlns:OGC980461FS=“http://fdo_customer/OGC980461FS”

  elementFormDefault=“qualified”

  attributeFormDefault=“unqualified” >

  <xs:annotation>

    <xs:documentation>

      OGC Simple Features Specification for SQL

    </xs:documentation>

  </xs:annotation>

  <xs:element name=“buildings” type=“buildingsType” abstract=“false”

    substitutionGroup=“gml:_Feature”>

    <xs:key name=“buildingsKey”>

      <xs:selector xpath=“.//buildings”/>

      <xs:field xpath=“fid”/>

    </xs:key>

  </xs:element>

  <xs:complexType name=“buildingsType”

    abstract=“false”

    fdo:geometryName=“footprint”

    fdo:geometricTypes=“surface”

    fdo:geometryReadOnly=“false”

    fdo:hasMeasure=“false”

    fdo:hasElevation=“alse”

    fdo:srsName=“SC_0” >

    <xs:annotation>

      <xs:documentation>OGC 98-046r1 buildings</xs:documentation>

      <xs:appinfo source=“http://fdo.osgeo.org/schema”/>

      <xs:documentation>

        a polygon defines the perimeter of a building

      </xs:documentation>

    </xs:annotation>

    <xs:complexContent>

      <xs:extension base=“gml:AbstractFeatureType”>

        <xs:sequence>

          <xs:element name=“<propertyName>“

            type=“<datatype>“

            minOccurs=“{isNullable ? 0 : 1}”

            default=“<defaultValue>“

            fdo:readOnly=“<true | false>“ >

            <xs:annotation>

              <xs:documentation>

                {对FdoDataPropertyDefinition::Create()的描述}

              </xs:documentation>

            </xs:annotation>

          </xs:element>

          <xs:element name=“<propertyName>“

            minOccurs=“{isNullable ? 0 : 1}”

            default=“<defaultValue>“

            fdo:readOnly=“<true | false>“ >

            <xs:annotation>

              <xs:documentation>

                {对FdoDataPropertyDefinition::Create()的描述}

              </xs:documentation>

            </xs:annotation>

            <xs:simpleType>

              <xs:restriction base=“xs:string”>

                <xs:maxLength value=“<length>“/>

              </xs:restriction>

            </xs:simpleType>

          </xs:element>

          <xs:element name=“<propertyName>“

            ref=“gml:_Geometry”

            fdo:geometryName=“<propertyName>“

            fdo:geometricTypes=“<list of FdoGeometricTypes>“

            fdo:geometryReadOnly=“<true | false>“

            fdo:hasMeasure=“<true | false>“

            fdo:hasElevation=“<true | false>“

            fdo:srsName=“<spatialContextName>“>

            <xs:annotation>

              <xs:documentation>

                {对FdoGeometricPropertyDefinition::Create()的描述}

              </xs:documentation>

            </xs:annotation>

          </xs:element>

        </xs:sequence>

      </xs:extension>

    </xs:complexContent>

</xs:complexType>

</xs:schema>

l  用“fid”代替第一个“<propertyName>”,从而设置数据属性“fid”。

l  用“fdo:int32”代替“<dataType>”,从而设置数据属性“fid”的数据类型。

l  不必添加“minOccurs”和“default”属性,因为“minOccurs”的值就是默认值0,也没有“<defaultValue>”。

l  将“fid”属性的“fdo:readOnly”置为“false”。

l  将“fid”属性的“xs:documentation”内容置为“feature id”。

l  用“address”代替第二个“<propertyName>”,从而设置数据属性“address”。

l  不必添加“minOccurs”和“default”属性,因为“minOccurs”的值就是默认值0,也没有“<defaultValue>”。

l  将“address”属性的“fdo:readOnly”置为“false”。

l  将“address”属性的“xs:documentation”内容置为“address of the building”。

l  用64代替“<length>”,从而设置数据属性“address”最大长度。

l  用“position”代替第三个“<propertyName>”,从而设置几何属性“position”。

l  用“point”代替“<list of FdoGeometricTypes>”,从而设置几何属性“position”的几何类型。

l  将“fdo:geometryReadOnly”,“fdo:hasMeasure”和“fdo:hasElevation”置为“false”。

l  用“SC_0”代替“<spatialContextName>”,从而设置几何属性“position”关联的空间上下文。

l  用“position of the building”代替“{对FdoGeometricPropertyDefinition::Create()的描述}”,从而设置几何属性“position”的描述。

1.1.1.4  最终结果

最终得到的包含Buildings要素的模式为:

<xs:schema xmlns:xs=”http://www.w3.org/2001/XMLSchema”

  targetNamespace=”http://fdo_customer/OGC980461FS”

  xmlns:fdo=”http://fdo.osgeo.org/schema”

  xmlns:gml=”http://www.opengis.net/gml”

  xmlns:OGC980461FS=”http://fdo_customer/OGC980461FS”

  elementFormDefault=”qualified”

  attributeFormDefault=”unqualified”>

  <xs:annotation>

    <xs:documentation>

        OGC Simple Features Specification for SQL

    </xs:documentation>

  </xs:annotation>

  <xs:element name=”buildings” type=”buildingsType” abstract=”false”

    substitutionGroup=”gml:_Feature”>

    <xs:key name=”buildingsKey”>

      <xs:selector xpath=”.//buildings”/>

      <xs:field xpath=”fid”/>

    </xs:key>

  </xs:element>

  <xs:complexType name=”buildingsType”

    abstract=”false”

    fdo:geometryName=”footprint”

    fdo:geometricTypes=”surface”

    fdo:geometryReadOnly=”false”

    fdo:hasMeasure=”false”

    fdo:hasElevation=”false”

    fdo:srsName=”SC_0” >

    <xs:annotation>

      <xs:documentation>OGC 98-046r1 buildings</xs:documentation>

      <xs:appinfo source=”http://fdo.osgeo.org/schema”/>

      <xs:documentation>

        a polygon defines the perimeter of a building

      </xs:documentation>

    </xs:annotation>

    <xs:complexContent>

      <xs:extension base=”gml:AbstractFeatureType“>

        <xs:sequence>

          <xs:element name=”fid” type=”fdo:int32” fdo:readOnly=”false” >

            <xs:annotation>

              <xs:documentation>feature id

              </xs:documentation>

            </xs:annotation>

          </xs:element>

          <xs:element name=”address” fdo:readOnly=”false” >

            <xs:annotation>

              <xs:documentation>address of the building</xs:documentation>

            </xs:annotation>

            <xs:simpleType>

              <xs:restriction base=”xs:string”>

                <xs:maxLength value=”64”/>

              </xs:restriction>

            </xs:simpleType>

          </xs:element>

          <xs:element name=”position”

            ref=”gml:_Geometry”

            fdo:geometryName=”position”

            fdo:geometricTypes=”point”

            fdo:geometryReadOnly=”false”

            fdo:hasMeasure=”false”

            fdo:hasElevation=”false”

            fdo:srsName=”SC_0” >

            <xs:annotation>

              <xs:documentation>position of the building</xs:documentation>

            </xs:annotation>

          </xs:element>

        </xs:sequence>

      </xs:extension>

    </xs:complexContent>

  </xs:complexType>

</xs:schema>

1.1.2        模式管理示例

1.1.2.1  创建要素模式

该示例创建一个名为“SampleFeatureSchema”的FdoFeatureSchema对象,该对象定义了一个包含三个属性的类。该类和属性源自Open GIS联盟的文档98-046r1第10页,它定义了一个“Lakes”(湖)要素类。

<ogc-sfsql-table>

  <table-definition>

    <name>lakes</name>

    <column-definition>

      <name>fid</name>

      <type>INTEGER</type>

      <constgraint>NOT NULL</constraint>

      <constraint>PRIMARY KEY<constraint>

    </column-definition>

    <column-definition>

      <name>name</name>

      <type>VARCHAR(64)</type>

    </column-definition>

    <column-definition>

      <name>shore</name>

      <type>POLYGON</type>

    </column-definition>

  </table-definition>

表“lakes”对应于名为“SampleFeatureClass”的FdoFeatureClass对象。列“fid”对应于名为“SampleIdentityDataProperty”的FdoDataPropertyDefinition对象;列“name”对应于名为“SampleNameDataProperty”的FdoDataPropertyDefinition对象;列“shore”对应于名为“SampleGeometricProperty”的FdoGeometricPropertyDefinition对象。

// 创建ApplySchema命令

FdoPtr<FdoIApplySchema> sampleApplySchema = (FdoIApplySchema *)

connection->CreateCommand(FdoCommandType_ApplySchema);

// 创建要素schema

FdoPtr<FdoFeatureSchema> sampleFeatureSchema =

FdoFeatureSchema::Create(L"SampleFeatureSchema", L"要素模式描述");

// 得到指向要素模式中类集合的指针,该指针用来向模式中加入类。

FdoPtr<FdoClassCollection> sampleClassCollection = sampleFeatureSchema->GetClasses();

// 创建一个要素类。例如,一个包含一个几何(geometric)属性的要素类

FdoPtr<FdoFeatureClass> sampleFeatureClass =

FdoFeatureClass::Create(L"SampleFeatureClass", L"要素类描述");

sampleFeatureClass->SetIsAbstract(false);

// 得到指向要素类中属性集合的指针,该指针用来向类中加入数据和其他属性。

FdoPtr<FdoPropertyDefinitionCollection> sampleFeatureClassProperties =

sampleFeatureClass->GetProperties();

// 得到指向要素模式中类集合的指针,该指针用来向模式中加入类。

FdoPtr<FdoClassCollection> sampleClassCollection = sampleFeatureSchema->GetClasses();

// 得到指向要素类关键属性集合的指针,该指针用来向要素类中加入主键属性。

FdoPtr<FdoDataPropertyDefinitionCollection> sampleFeatureClassIdentityProperties =

sampleFeatureClass->GetIdentityProperties();

// 创建一个Int32类型的数据属性,并将其设置为主键属性

FdoPtr<FdoDataPropertyDefinition> sampleIdentityDataProperty =

FdoDataPropertyDefinition::Create(L"SampleIdentityDataProperty",

L"关键数据属性描述");

sampleIdentityDataProperty->SetDataType(FdoDataType_Int32);

sampleIdentityDataProperty->SetReadOnly(false);

sampleIdentityDataProperty->SetNullable(false);

sampleIdentityDataProperty->SetIsAutoGenerated(false);

// 向sampleFeatureClass中加入关键属性

sampleFeatureClassProperties->Add(sampleIdentityDataProperty);

sampleFeatureClassIdentityProperties->Add(sampleIdentityDataProperty);

// 创建一个String类型的数据属性

FdoPtr<FdoDataPropertyDefinition> sampleNameDataProperty =

FdoDataPropertyDefinition::Create(L"SampleNameDataProperty", L"数据属性描述");

sampleNameDataProperty->SetDataType(FdoDataType_String);

sampleNameDataProperty->SetLength(64);

sampleNameDataProperty->SetReadOnly(false);

sampleNameDataProperty->SetNullable(false);

sampleNameDataProperty->SetIsAutoGenerated(false);

// 添加名称属性到sampleFeatureClass

sampleFeatureClassProperties->Add(sampleNameDataProperty);

// 创建一个几何属性

FdoPtr<FdoGeometricPropertyDefinition> sampleGeometricProperty =

FdoGeometricPropertyDefinition::Create(L"SampleGeometricProperty", L"几何属性描述");

sampleGeometricProperty->SetGeometryTypes(FdoGeometricType_Surface);

sampleGeometricProperty->SetReadOnly(false);

sampleGeometricProperty->SetHasMeasure(false);

sampleGeometricProperty->SetHasElevation(false);

// 添加几何属性到sampleFeatureClass

sampleFeatureClassProperties->Add(sampleGeometricProperty);

// 将其标记为几何属性

sampleFeatureClass->SetGeometryProperty(sampleGeometricProperty);

// 将要素类添加到schema

sampleClassCollection->Add(sampleFeatureClass);

// 为ApplySchema命令指定新建的模式,并且执行此命令

sampleApplySchema->SetFeatureSchema(sampleFeatureSchema);

sampleApplySchema->Execute();

1.1.2.2  描述和导出模式

以下示例代码展示了如何描述一个模式并把它导出到XML文件。

// 创建DescribeSchema命令

FdoPtr<FdoIDescribeSchema> sampleDescribeSchema = (FdoIDescribeSchema *)

connection->CreateCommand(FdoCommandType_DescribeSchema);

// 执行DescribeSchema命令将得到Data Store中所有要素模式的集合

FdoPtr<FdoFeatureSchemaCollection> sampleFeatureSchemaCollection =

sampleDescribeSchema->Execute();

// 从集合中找出想要导出的要素模式,然后将其写入XML文件,最后清空集合

sampleFeatureSchema =

sampleFeatureSchemaCollection->FindItem(L”SampleFeatureSchema”);

sampleFeatureSchema->WriteXml(L"SampleFeatureSchema.xml");

sampleFeatureSchemaCollection->Clear();

以下是在调用FdoFeatureSchema::WriteXml(...)方法后导出的XML文件的内容。

<?xml version="1.0" encoding="UTF-8" ?>

  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

    targetNamespace="http://fdo_customer/SampleFeatureSchema"

    xmlns:fdo="http://fdo.osgeo.org/schema"

    xmlns:gml="http://www.opengis.net/gml"

    xmlns:SampleFeatureSchema="http://fdo_customer/

      SampleFeatureSchema"

    elementFormDefault="qualified"

    attributeFormDefault="unqualified">

  <xs:annotation>

    <xs:documentation>Sample Feature Schema Description

      </xs:documentation>

    <xs:appinfo source="http://fdo.osgeo.org/schema" />

  </xs:annotation>

  <xs:element name="SampleFeatureClass"

    type="SampleFeatureSchema:SampleFeatureClassType"

    abstract="false" substitutionGroup="gml:_Feature">

    <xs:key name="SampleFeatureClassKey">

      <xs:selector xpath=".//SampleFeatureClass" />

      <xs:field xpath="SampleIdentityDataProperty" />

    </xs:key>

  </xs:element>

  <xs:complexType name="SampleFeatureClassType"

    abstract="false"

    fdo:geometryName="SampleGeometricProperty"

    fdo:hasMeasure="false"

    fdo:hasElevation="false"

    fdo:srsName="SC_0"

    fdo:geometricTypes="surface">

    <xs:annotation>

      <xs:documentation>Sample Feature Class Description

      </xs:documentation>

      <xs:appinfo source="http://fdo.osgeo.org/schema" />

      <xs:documentation>Sample Geometric Property Description</xs:documentation>

    </xs:annotation>

    <xs:complexContent>

      <xs:extension base="gml:AbstractFeatureType">

        <xs:sequence>

          <xs:element name="SampleIdentityDataProperty"

            default=""

            type="fdo:int32">

            <xs:annotation>

              <xs:documentation>

                Sample Identity Data Property Description

              </xs:documentation>

            </xs:annotation>

          </xs:element>

          <xs:element name="SampleNameDataProperty"

            default="">

            <xs:annotation>

              <xs:documentation>

                Sample Name Data Property Description

              </xs:documentation>

            </xs:annotation>

            <xs:simpleType>

              <xs:restriction base="xs:string">

                <xs:maxLength value="64" />

              </xs:restriction>

            </xs:simpleType>

          </xs:element>

        </xs:sequence>

      </xs:extension>

    </xs:complexContent>

  </xs:complexType>

</xs:schema>

1.1.2.3  销毁模式

以下示例代码展示了如何销毁一个模式。

// 创建DestroySchema命令

FdoPtr<FdoIDestroySchema> sampleDestroySchema = (FdoIDestroySchema *)

connection->CreateCommand(FdoCommandType_DestroySchema);

// 销毁模式

sampleDestroySchema->SetSchemaName(L"SampleFeatureSchema");

sampleDestroySchema->Execute();

1.1.2.4  从XML中读入一个模式

以下示例代码展示了如何从一个XML中读入一个模式。

sampleFeatureSchemaCollection->ReadXml(L"SampleFeatureSchema.xml");

sampleFeatureSchema =

sampleFeatureSchemaCollection->FindItem(L"SampleFeatureSchema");

sampleApplySchema->SetFeatureSchema(sampleFeatureSchema);

sampleApplySchema->Execute();

sampleFeatureSchemaCollection->Clear();

DM模式对象管理 模式对象管理 ⚫ 管理模式 一个模式仅能归属于一个用户,而一个用户可以包含多个模式。模式是一组对象的集合,使用模式可以使不同业务隔离。 创建模式: create SCHEMA sche1 AUTHORIZATION hrtest; 模式下创建表: create table sche1.t_test(id int, name varchar(20)); 查询数据库中所有模式信息: select * from SYSOBJECTS t where t.type$=‘SCH’; 查询模式归属于哪个用户: sele 阅读详情

相关推荐

AUTOSAR各类的模式管理

AUTOSAR各类的模式管理

weixin_43084908的博客 514

复习电商笔记-11-EasyUI-商品列表

Mybatis那些事-拦截器(Plugin+Interceptor) 参考链接:https://blog.csdn.net/yhjyumi/article/details/49188051 EasyUI分页和返回结果集对象 Service层代码: //带分页查询,并返回EasyUI所学结果集供EasyUI grid控件绑定数据 public EasyUIResult queryList(...

小贺的博客 919

有哪些 生产管理 模式

生产管理模式是制造业根据产品特性和市场需求形成的系统性管理方法。主流模式包括:按驱动方式划分的推动式(预测驱动,适合大批量)和拉动式(订单驱动,降低库存);按批量划分的大规模量产(高效低成本)、批量生产(兼顾多样性)和单件定制(高柔性);优化导向的精益生产(消除浪费)、敏捷制造(快速响应)和约束理论(聚焦瓶颈);以及数字化智能制造(自动化决策)等。企业需结合产品特性、市场需求和技术能力选择模式,当前"精益+智能"等融合模式成为趋势。不同模式在效率、成本与灵活性上各具优势,适用场景各异。

追随内心 277

商品列表数据格式化

商品列表数据格式化 页面JS如何引入 <jsp:include page="/commons/common-js.jsp"></jsp:include> 页面引入JS <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <link rel="stylesheet" type="text/css" href="/js/jquery-easy

qq_42317239的博客 190

手把手复现金蝶云星空V8.1文件上传漏洞(附完整POC与修复方案)

本文深度解析金蝶云星空V8.1文件上传漏洞,提供详细的漏洞复现步骤与完整POC,涵盖技术原理、测试环境搭建及验证流程。同时给出多维防护方案,包括官方补丁部署、临时缓解措施和长期安全加固建议,帮助企业有效防范任意文件上传风险。

weixin_30505225的博客 187

STM32 FDCAN热插拔恢复机制与自动重发功能优化

本文深入分析了STM32 FDCAN在热插拔场景下触发bus-off状态导致通讯中断的根本原因,指出自动重发功能是问题关键。通过禁用自动重发、配置硬件自动恢复机制及优化总线参数,实现了FDCAN热插拔后的100%稳定恢复,为工业应用提供了可靠的CAN总线解决方案。

ice55的博客 690

KindEditor初始化参数列表

width 编辑器的宽度,可以设置px或%,比textarea输入框样式表宽度优先度高。 数据类型: String默认值: textarea输入框的宽度 示例: K.create('#id', { width : '700px' }); height 编辑器的高度,只能设置px,比textarea输入框样式表高度优先度高。 数据类

FreshMan 3万+

Windows 11 + AMD 780M 运行 ComfyUI 完整指南:DirectML 实战方案

ComfyUI 是基于 PyTorch 的 Stable Diffusion 可视化工作流工具,其性能高度依赖 GPU 后端支持。在 Windows 平台,传统 CUDA 方案仅适配 NVIDIA 显卡,而 AMD 核显用户长期面临 ROCm 兼容性差、驱动链路断裂等系统级障碍。DirectML 作为微软原生机器学习 API,绕过 ROCm 生态断层,直接对接 DirectX 12 硬件抽象层,成为 RDNA 3 架构(如 Radeon 780M)在 Windows 11 上运行 AI 绘画的最优解。它提供

weixin_30099989的博客 795

MODE01-AUTOSAR模式管理看这一篇就够了,吐血整理

1 概述 1.1 模式管理的组成 AUTOSAR为ECU的运行时软件的状态处理提供了模式管理组件,例如 • BswM模式管理器 • NM网络管理 • ECU状态管理器 • COMM通信管理器 • WDGM看门狗管理器 当然,除了这几个标准的AUTOSAR基础模块外,模式管理组件还涉及到了应用程序模式管理器(APP Mode Management)和RTE的相关功能。后面的章节将一一为你剖析。 2 ..................

1万+

HC32F460 FPU实战:从零开启硬件浮点加速

本文详细介绍了如何在HC32F460开发板上启用和优化FPU(浮点运算单元),以显著提升硬件浮点运算性能。从工程配置、关键代码修改到实战优化技巧,全面解析FPU加速的实现方法,并分享常见问题的解决方案,帮助开发者避免常见陷阱,充分发挥HC32F460的硬件潜力。

weixin_42620340的博客 355

手把手教你用Python+Playwright实现抖音/B站/视频号三平台自动上传(附完整配置流程)

本文详细介绍了如何使用Python和Playwright构建一个多平台视频自动化上传系统,涵盖抖音、B站和视频号三大平台。文章从环境搭建、身份验证持久化、平台特异性上传引擎设计到任务调度与错误处理,提供了完整的配置流程和实战代码,帮助开发者实现高效、稳定的批量上传功能。

weixin_29294975的博客 1177

如何用cmd打开管理员模式

是这样的 我python要pip一个国外的easygui 的 我是在文件那里直接cmd 的 然后有上面的warning -> python -m pip install --upgrade pip 但是当我去pip时候 ERROR: Exception: Traceback (most recent call last): File "C:\Program Files\pytho...

szuwaterbrother的博客 6641

数学:箭头符号→(to)都表示什么意义?

数学符号“→”在不同领域有不同含义:在逻辑中表示“蕴含”(p→q);在函数中表示映射关系(f:A→B);在极限中表示变量趋近(x→a);在推导过程中表示推理方向(A→B)。此外,它也可能用于向量表示或数列趋势。其具体含义需结合上下文判断,核心应用场景包括逻辑运算、函数定义、极限分析和数学推导等。

shunzi2016的博客 5617

高手常用的管理模式有哪些?

先让团队成员说。当然,就算你最后说,还是可能出现团队成员都附和你的情况,就算有人有不同意见,也不太敢说。所以你可能还需要用到第二个技巧,那就是。

qq_33240556的博客 889

GD32F130之USART多机通信

简介 在多机通信中,一个从机应该只接收它需要接收的数据,且只应该在它需要接收数据时才检测串口。而始终接收RX线上的数据对从机来说是一种负担。 多机通信硬件设计 远距离方案:RS485 板级方案: 静默模式 静默模式有什么作用? 答:如果 USART 处于静默模式,所有的接收状态标志位将不会被置位。 如何进入静默模式? 答:软件可以通过将 USART_CMD 寄存器中MMCMD 位置 1 使 USART 进入静默模式。 如何从静默模式中唤醒? 答:有两种方式可选,①检测到总线

luliplus的博客 304

ISO13849功能安全从入门到精通(3):安全功能及其对降低风险的贡献4

例如,如果机器必须在有限速度下运行时进行设置,那么在低加速度值下进行设置时,参数P1将是正确的选择:随着危险缓慢出现并给予足够的运动自由,操作员将能够移出危险区域。例如,在无故障的条件下,在操作者的手的方向移动的滚子不能陷住它。在所有其他情况下,F1是正确的选择,前提是危险暴露的持续时间不超过机器总操作时间的1/20。需求来源于必要的风险降低。由于这些考虑而降低的PLr在任何情况下都不得低于通过比较方式考虑的机器的PLr,因为并不能从事故发生率低和严重程度低得出实施的安全功能提供的安全水平高于要求。

wdconan001的博客 839

模式管理机制

背景介绍: Sugar 的开源麦轮车项目在遥控功能上已经比较完善了,下一步要往“自动化”、“智能化”方向发展。 为了保持开源项目的生命力,发展的每一步都是要踏实认真的。Sugar 一个人求不得速度,但可以用知识、经验保证项目的质量。 本篇就来解决转向的第一个问题:多方号令下车该听谁的? 模式管理 模式管理是一个自动控制上的经典问题。经典的原因是:如果让人说两个“模式”的例子,那么几乎十成十的人都能想到“手动模式”和“自动模式”。下面 Sugar 用表格来说一下开源麦轮车项目中的三个模式计划: .

handsomeswp的专栏 890

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

什么是vmi管理模式?vmi管理模式管理的价值与作用

VMI管理模式,也是供应商管理库存模式。它是一个在供应链领域中备受关注的话题,其价值与作用也是非常引人瞩目的。在本文中,我将为大家深入解析VMI管理模式的含义、特点,以及它在现代供应链管理中的重要作用。

weixin_52213728的博客 3862

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

大中型企业九种资金管理模式

一、监控模式 账户开立:分子公司自行在商业银行开立自身的结算账户,集团并不干预分子公司的账户如何开立,只参与指导性意见,分子公司对外的支出与收入,根据开户的银行进行自营管理,集团通过ERP系统收集各单位资金信息,仅仅进行余额监控与查询,做到“你的钱,我看着花”,根据监控情况参与指导性意见。 管理特点:全面集中集团资金信息,为集团决策提供支持;进行集团资金监控,可适当避免违反财务制度的支出;不...

Carey 7910

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

模式管理与网络通信管理笔记

本文系统介绍了AUTOSAR架构下的模式管理机制。重点分析了BSWM模块作为模式管理中心的功能定位、核心机制(信息汇聚、中心调度、状态管理)及其两种通知方式(RTE层和BSW层)。详细阐述了动作执行的服务函数和回调函数两种实现方式,并提供了BSWM模块的配置指南,包括general和config两大配置选项的详细说明。此外,文章还介绍了网络状态管理、COM构成及CANSM模块的功能定位与协同机制,完整呈现了AUTOSAR模式下集中化状态管理的技术实现方案。

weixin_44399845的博客 797

资金集中管理模式

根据管理的集权与分权的程度不同、行业的资金运行规律不同,集团资金集中管理大致可划分为: 集中监控模式: 成员单位定期上报资金调度表或者采用技术手段搭建一个跨银行的资金集中监控平台。集团公司对下属公司的资金管理不干预,在资金使用和用途上,给下属公司较大的自主权,自主安排流动资金总量,分配不同流动资金所占比例,自主决定于公司经营有关的各项支出。然后集团公司对下属公司的资金接待规模和负债比率要严格控制,

java相关技术(partner4java专栏)希望对您的学习有所帮助 2259

Cocosd-x设计模式之三:管理者模式

想必读者一看这个题目又要纳闷了,神马又是“管理者模式”啊? 管理者(Manager)就是专门负责管理其它类的实例的类,比如Cocoa里面的NSFontManager、NSInputManager、NSFileManager和NSLayoutManager类。此模式和“二段构建模式”一样,也没有出现在GoF的23个设计模式中,但是《Cocoa设计模式》一书中有提及,感兴趣的读者可以去查阅一下。

1854
上一篇: 深入FDO----能力API
下一篇: 模式管理
MapGuide_Inside
博客等级 码龄17年 340粉丝 71原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址