[mapguide-users] SDF with Base Feature class Need Help

Flipper scotth at mpowerinnovations.com
Wed May 20 14:54:22 EDT 2009


I have a bunch of data coming in from a data collector, Poles(pts),
Meters(pts), Lines(lines) etc....I want to be able to put them each into
their own individual schema in an SDF...But what i want is for them to have
Their own unique GIS_ID *KEY ASPECT HERE*...I thought I had conquered this
with a base class That had a Geometry of Point/Curve/Surface A FeatId (I
dont want to use this as my unique ID), and A INT32 Autogenerated Field
callid GIS_ID...I then based A schema off of this schema for lets say
poles...It works fine if I put no geometry in this schema...But I want to
restrain the Geometry to just points on this layer...Also for Lines i want
to restrain it to just curves/lines on that layer...I beat it by giving the
Base a different Geometry name like BASEGeometry..I was able to add points
to the valves, lines to the pipes etc in Autodesk Map...Then when I brought
it to mapguide it only displayed things drawn on the Base layer..Any help or
any examples..I hate how AJAX shows three icons if I keep the Geometry as
all three types when all it has is valves.
I can send the extensive schema or SDF, but does anyone have an example of
this?

<?xml version="1.0" encoding="UTF-8" ?> 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fdo.osgeo.org/schemas/feature/Default"
xmlns:fdo="http://fdo.osgeo.org/schemas"
xmlns:gml="http://www.opengis.net/gml"
xmlns:Default="http://fdo.osgeo.org/schemas/feature/Default"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
  <xs:documentation>Default schema.</xs:documentation> 
  </xs:annotation>
<xs:element name="MASTERGEOM" type="Default:MASTERGEOMType" abstract="false"
substitutionGroup="gml:_Feature">
<xs:key name="MASTERGEOMKey">
  <xs:selector xpath=".//MASTERGEOM" /> 
  <xs:field xpath="MasterFeatId" /> 
  </xs:key>
  </xs:element>
<xs:complexType name="MASTERGEOMType" abstract="false"
fdo:geometryName="MasterGeometry">
<xs:annotation>
  <xs:documentation>Default feature class</xs:documentation> 
  </xs:annotation>
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="MasterFeatId" fdo:readOnly="true"
fdo:autogenerated="true">
<xs:simpleType>
  <xs:restriction base="fdo:int32" /> 
  </xs:simpleType>
<xs:annotation>
  <xs:documentation>Default identity property</xs:documentation> 
  </xs:annotation>
  </xs:element>
<xs:element name="MasterGeometry" type="gml:AbstractGeometryType"
fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default"
fdo:geometricTypes="point curve surface" fdo:geometryTypes="point multipoint
linestring multilinestring curvestring multicurvestring polygon multipolygon
curvepolygon multicurvepolygon">
<xs:annotation>
  <xs:documentation>Default geometry property</xs:documentation> 
  </xs:annotation>
  </xs:element>
<xs:element name="GIS_ID" fdo:readOnly="true" minOccurs="0"
fdo:autogenerated="true">
<xs:simpleType>
  <xs:restriction base="fdo:int32" /> 
  </xs:simpleType>
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>
<xs:element name="METER" type="Default:METERType" abstract="false"
substitutionGroup="gml:_Feature">
<xs:key name="METERKey">
  <xs:selector xpath=".//METER" /> 
  <xs:field xpath="FeatId" /> 
  </xs:key>
  </xs:element>
<xs:complexType name="METERType" abstract="false"
fdo:geometryName="Geometry">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:complexContent>
<xs:extension base="Default:MASTERGEOMType">
<xs:sequence>
<xs:element name="FeatId" fdo:readOnly="true" fdo:autogenerated="true">
<xs:simpleType>
  <xs:restriction base="fdo:int32" /> 
  </xs:simpleType>
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
<xs:element name="ADDRESS" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="POLE" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="PEDISTAL" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="FIRENUM" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="PARENT" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="OHUG" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="PT_ID" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="32" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="NORTHING" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="EASTING" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="ELEVATION" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="DESCRIPTIO" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="Geometry" type="gml:AbstractGeometryType"
fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default"
fdo:geometricTypes="point" fdo:geometryTypes="point">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>
<xs:element name="POLE" type="Default:POLEType" abstract="false"
substitutionGroup="gml:_Feature">
<xs:key name="POLEKey">
  <xs:selector xpath=".//POLE" /> 
  <xs:field xpath="FeatId" /> 
  </xs:key>
  </xs:element>
<xs:complexType name="POLEType" abstract="false"
fdo:geometryName="Geometry">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:complexContent>
<xs:extension base="Default:MASTERGEOMType">
<xs:sequence>
<xs:element name="FeatId" fdo:readOnly="true" fdo:autogenerated="true">
<xs:simpleType>
  <xs:restriction base="fdo:int32" /> 
  </xs:simpleType>
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
<xs:element name="POLENUM" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="POLECOND" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="TRANS1" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="FUSEA" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="RISER" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="TRANS1KVA" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="TRANS2" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="TRANS2KVA" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="TRANS3" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="TRANS3KVA" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="FUSEB" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="FUSEC" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="STLIGHT" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="OCR" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="OCRSIZE" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="OCRNUM" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="CAP" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="JOINT" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="REGULATOR" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="AMR" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="PRIJBOX" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="LINEEND" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="LINESTART" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="PT_ID" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="32" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="NORTHING" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="EASTING" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="ELEVATION" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="DESCRIPTIO" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="Geometry" type="gml:AbstractGeometryType"
fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default"
fdo:geometricTypes="point" fdo:geometryTypes="point">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>
<xs:element name="UNDERGROUND" type="Default:UNDERGROUNDType"
abstract="false" substitutionGroup="gml:_Feature">
<xs:key name="UNDERGROUNDKey">
  <xs:selector xpath=".//UNDERGROUND" /> 
  <xs:field xpath="FeatId" /> 
  </xs:key>
  </xs:element>
<xs:complexType name="UNDERGROUNDType" abstract="false"
fdo:geometryName="Geometry">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:complexContent>
<xs:extension base="Default:MASTERGEOMType">
<xs:sequence>
<xs:element name="FeatId" fdo:readOnly="true" fdo:autogenerated="true">
<xs:simpleType>
  <xs:restriction base="fdo:int32" /> 
  </xs:simpleType>
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
<xs:element name="TRANS" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="JUNCBOX" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="PT_ID" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="32" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="NORTHING" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="EASTING" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="ELEVATION" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
  <xs:totalDigits value="12" /> 
  <xs:fractionDigits value="4" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="DESCRIPTIO" minOccurs="0">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
  <xs:maxLength value="50" /> 
  </xs:restriction>
  </xs:simpleType>
  </xs:element>
<xs:element name="Geometry" type="gml:AbstractGeometryType"
fdo:hasMeasure="false" fdo:hasElevation="false" fdo:srsName="Default"
fdo:geometricTypes="point" fdo:geometryTypes="point">
<xs:annotation>
  <xs:documentation /> 
  </xs:annotation>
  </xs:element>
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>
  </xs:schema>
-- 
View this message in context: http://n2.nabble.com/SDF-with-Base-Feature-class-Need-Help-tp2947934p2947934.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list