Skip to content

Commit

Permalink
Update XSDs to March 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-HNguyen committed Apr 2, 2019
1 parent b410ca1 commit d2e59b9
Show file tree
Hide file tree
Showing 38 changed files with 9,187 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transform.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static void main(String[] args) throws TransformerFactoryConfigurationErr
String line = null;
boolean found = false;

String xsdLocation = "http://www.3dcitydb.org/citygml3/2018-12-06/xsds/";
String xsdLocation = "http://www.3dcitydb.org/citygml3/2019-03-08/xsds/";

ArrayList<String[]> ns = new ArrayList<>();
ns.add(new String[] { "app", "http://www.opengis.net/citygml/appearance/3.0", xsdLocation + "appearance.xsd" });
Expand Down
1 change: 1 addition & 0 deletions xsds/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

325 changes: 325 additions & 0 deletions xsds/2018-06-06/xsds/appearance.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,325 @@
<?xml version="1.0" encoding="UTF-8"?><schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:app="http://www.opengis.net/citygml/appearance/3.0" xmlns:core="http://www.opengis.net/citygml/3.0" xmlns:gml="http://www.opengis.net/gml/3.2" elementFormDefault="qualified" targetNamespace="http://www.opengis.net/citygml/appearance/3.0" version="3.0.0">
<import namespace="http://www.opengis.net/citygml/3.0" schemaLocation="c:/temp/xsds/cityGMLBase.xsd"/>
<import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
<!--XML Schema document created by ShapeChange - http://shapechange.net/-->
<element abstract="true" name="AbstractSurfaceData" substitutionGroup="gml:AbstractFeature" type="app:AbstractSurfaceDataType">
<annotation>
<documentation>SIG3D: Abstract superclass of X3DMaterial and AbstractTexture</documentation>
</annotation>
</element>
<complexType abstract="true" name="AbstractSurfaceDataType">
<complexContent>
<extension base="gml:AbstractFeatureType">
<sequence>
<element default="true" minOccurs="0" name="isFront" type="boolean">
<annotation>
<documentation>SIG3D: Indicates whether the X3DMaterial, GeoreferencedTexture or, ParametrizedTexture is assigned to the front side or back side of the surface</documentation>
</annotation>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="AbstractSurfaceDataPropertyType">
<sequence minOccurs="0">
<element ref="app:AbstractSurfaceData"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
<element abstract="true" name="AbstractTexture" substitutionGroup="app:AbstractSurfaceData" type="app:AbstractTextureType">
<annotation>
<documentation>SIG3D: Abstract super class of ParameterizedTexture and GeoreferencedTexture</documentation>
</annotation>
</element>
<complexType abstract="true" name="AbstractTextureType">
<complexContent>
<extension base="app:AbstractSurfaceDataType">
<sequence>
<element name="imageURI" type="anyURI">
<annotation>
<documentation>SIG3D: URI identifying the image data resource for the texture</documentation>
</annotation>
</element>
<element minOccurs="0" name="mimeType" type="gml:CodeType">
<annotation>
<documentation>SIG3D: Mime type describing the data format of the image resource</documentation>
</annotation>
</element>
<element minOccurs="0" name="textureType" type="app:TextureTypeType">
<annotation>
<documentation>"SIG3D: Distinction between prototypical (value ""typical""), object specific (value ""specific"") textures, and textures with unknown classification (value ""unknown"")."</documentation>
</annotation>
</element>
<element minOccurs="0" name="wrapMode" type="app:WrapModeType">
<annotation>
<documentation>Collada: Definition of behavior when accessing the texture outside the underlying image raster</documentation>
</annotation>
</element>
<element minOccurs="0" name="borderColor" type="app:ColorPlusOpacityType">
<annotation>
<documentation>SIG3D: Color definition for texture borders.</documentation>
</annotation>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="AbstractTexturePropertyType">
<sequence minOccurs="0">
<element ref="app:AbstractTexture"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
<element abstract="true" name="AbstractTextureParameterization" substitutionGroup="gml:AbstractObject" type="app:AbstractTextureParameterizationType"/>
<complexType abstract="true" name="AbstractTextureParameterizationType">
<sequence/>
</complexType>
<complexType name="AbstractTextureParameterizationPropertyType">
<sequence>
<element ref="app:AbstractTextureParameterization"/>
</sequence>
</complexType>
<element name="Appearance" substitutionGroup="core:AbstractFeatureWithLifespan" type="app:AppearanceType">
<annotation>
<documentation>SIG3D: Named container for all AbstractSurfaceData</documentation>
</annotation>
</element>
<complexType name="AppearanceType">
<complexContent>
<extension base="core:AbstractFeatureWithLifespanType">
<sequence>
<element minOccurs="0" name="theme" type="string">
<annotation>
<documentation>SIG3D: Theme name for all surfaceDataMembers. A theme is a catagory defining the semantics of the referenced surfaceDataMembers (e.g. infrared radiation,</documentation>
</annotation>
</element>
<element maxOccurs="unbounded" minOccurs="0" name="surfaceDataMember">
<complexType>
<complexContent>
<extension base="gml:AbstractFeatureMemberType">
<sequence minOccurs="0">
<element ref="app:AbstractSurfaceData"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</extension>
</complexContent>
</complexType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="AppearancePropertyType">
<sequence minOccurs="0">
<element ref="app:Appearance"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
<simpleType name="ColorType">
<restriction base="core:DoubleBetween0and1ListType"/>
</simpleType>
<simpleType name="ColorPlusOpacityType">
<restriction base="core:DoubleBetween0and1ListType"/>
</simpleType>
<element name="GeoreferencedTexture" substitutionGroup="app:AbstractTexture" type="app:GeoreferencedTextureType">
<annotation>
<documentation>SIG3D: Specialized class for georeferenced textures containing an implicit parametrization that is either stored within the image file, an acompanying world file</documentation>
</annotation>
</element>
<complexType name="GeoreferencedTextureType">
<complexContent>
<extension base="app:AbstractTextureType">
<sequence>
<element default="true" minOccurs="0" name="preferWorldFile" type="boolean">
<annotation>
<documentation>SIG3D: Flag for defining the precedence of an accompanying worldfile before the georeference included in the image source. If this value is false, the world file</documentation>
</annotation>
</element>
<element minOccurs="0" name="referencePoint" type="gml:PointPropertyType">
<annotation>
<documentation>SIG3D: Defines the location of the center of the upper left image pixel in world space.</documentation>
</annotation>
</element>
<element minOccurs="0" name="orientation" type="core:TransformationMatrix2x2Type">
<annotation>
<documentation>SIG3D: Defines the rotation and scaling of the image in form of a 2x2 matrix (a list of 4 doubles in row-major order).</documentation>
</annotation>
</element>
<element maxOccurs="unbounded" minOccurs="0" name="target" type="anyURI">
<annotation>
<documentation>SIG3D: Geometry object which is associated with the texture.</documentation>
</annotation>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="GeoreferencedTexturePropertyType">
<sequence minOccurs="0">
<element ref="app:GeoreferencedTexture"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
<element name="ParameterizedTexture" substitutionGroup="app:AbstractTexture" type="app:ParameterizedTextureType">
<annotation>
<documentation>SIG3D: Specialization of AbstractTexture to describe textures with specified transformation or texture coordinates.</documentation>
</annotation>
</element>
<complexType name="ParameterizedTextureType">
<complexContent>
<extension base="app:AbstractTextureType">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="target">
<complexType>
<complexContent>
<extension base="gml:AbstractMemberType">
<sequence minOccurs="0">
<element ref="app:TextureAssociation"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</extension>
</complexContent>
</complexType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ParameterizedTexturePropertyType">
<sequence minOccurs="0">
<element ref="app:ParameterizedTexture"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
<element name="TexCoordGen" substitutionGroup="app:AbstractTextureParameterization" type="app:TexCoordGenType"/>
<complexType name="TexCoordGenType">
<complexContent>
<extension base="app:AbstractTextureParameterizationType">
<sequence>
<element name="worldToTexture" type="core:TransformationMatrix3x4Type"/>
</sequence>
<attributeGroup ref="gml:SRSReferenceGroup"/>
</extension>
</complexContent>
</complexType>
<complexType name="TexCoordGenPropertyType">
<sequence>
<element ref="app:TexCoordGen"/>
</sequence>
</complexType>
<element name="TexCoordList" substitutionGroup="app:AbstractTextureParameterization" type="app:TexCoordListType"/>
<complexType name="TexCoordListType">
<complexContent>
<extension base="app:AbstractTextureParameterizationType">
<sequence>
<element maxOccurs="unbounded" name="textureCoordinates" type="gml:doubleList"/>
<element maxOccurs="unbounded" name="ring" type="anyURI"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="TexCoordListPropertyType">
<sequence>
<element ref="app:TexCoordList"/>
</sequence>
</complexType>
<element name="TextureAssociation" substitutionGroup="gml:AbstractGML" type="app:TextureAssociationType"/>
<complexType name="TextureAssociationType">
<complexContent>
<extension base="gml:AbstractGMLType">
<sequence>
<element name="uri" type="anyURI"/>
<element name="target" type="app:AbstractTextureParameterizationPropertyType"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="TextureAssociationPropertyType">
<sequence minOccurs="0">
<element ref="app:TextureAssociation"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
<simpleType name="TextureTypeType">
<restriction base="string">
<enumeration value="specific"/>
<enumeration value="typical"/>
<enumeration value="unknown"/>
</restriction>
</simpleType>
<simpleType name="WrapModeType">
<restriction base="string">
<enumeration value="none"/>
<enumeration value="wrap"/>
<enumeration value="mirror"/>
<enumeration value="clamp"/>
<enumeration value="border"/>
</restriction>
</simpleType>
<element name="X3DMaterial" substitutionGroup="app:AbstractSurfaceData" type="app:X3DMaterialType">
<annotation>
<documentation>SIG3D: Definition of material properties based on X3D standard.</documentation>
</annotation>
</element>
<complexType name="X3DMaterialType">
<complexContent>
<extension base="app:AbstractSurfaceDataType">
<sequence>
<element default="0.2" minOccurs="0" name="ambientIntensity" type="core:DoubleBetween0and1Type">
<annotation>
<documentation>X3D: Minimum percentage of diffuseColor that is visible regardless of light sources</documentation>
</annotation>
</element>
<element default="0.8 0.8 0.8" minOccurs="0" name="diffuseColor" type="app:ColorType">
<annotation>
<documentation>X3D: Color of the diffusely reflected light</documentation>
</annotation>
</element>
<element default="0.0 0.0 0.0" minOccurs="0" name="emissiveColor" type="app:ColorType">
<annotation>
<documentation>X3D: Color of the light emitted by the surface</documentation>
</annotation>
</element>
<element default="1.0 1.0 1.0" minOccurs="0" name="specularColor" type="app:ColorType">
<annotation>
<documentation>X3D: Color of the directly reflected light</documentation>
</annotation>
</element>
<element default="0.2" minOccurs="0" name="shininess" type="core:DoubleBetween0and1Type">
<annotation>
<documentation>X3D: Controls the sharpness of specular highlights. 0 produces a soft glow. 1 produces sharp highlights.</documentation>
</annotation>
</element>
<element default="0.0" minOccurs="0" name="transparency" type="core:DoubleBetween0and1Type">
<annotation>
<documentation>X3D: Degree of transparency of the surface. 0 means fully opaque. 1 means fully transparent.</documentation>
</annotation>
</element>
<element default="false" minOccurs="0" name="isSmooth" type="boolean">
<annotation>
<documentation>X3D: Hint for normal interpolation. If true vertex normals used for shading. Otherwise normals are constant for the patch.</documentation>
</annotation>
</element>
<element maxOccurs="unbounded" minOccurs="0" name="target" type="anyURI">
<annotation>
<documentation>X3D: URI identifying the target surface geometry to apply the material properties</documentation>
</annotation>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="X3DMaterialPropertyType">
<sequence minOccurs="0">
<element ref="app:X3DMaterial"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attributeGroup ref="gml:OwnershipAttributeGroup"/>
</complexType>
</schema>
Loading

0 comments on commit d2e59b9

Please sign in to comment.