Hi,

I had successfuly mapped ELF GeographicalNames schema, but now I want to map
ELF Addresses schema (
http://www.locationframework.eu/schemas/Addresses/0.1/Addresses.xsd ). There
are no elements in schema, so basically it is the same as INSPIRE Addresses.
But I have problems creating correct mapping files. 

My datastore.xml
/<dataStore>
  <id>elf_Address_datastore</id>
  <name>elf_Address</name>
  <enabled>true</enabled>
  <workspace>
    <id>elf_addr_workspace_id</id>
  </workspace>
  <connectionParameters>
    <entry key="dbtype">app-schema</entry>
    <entry
key="url">file:workspaces/elf_addr/elf_Address/elf_Address.xml</entry>
    <entry
key="namespace">http://www.locationframework.eu/schemas/Addresses/0.1</entry>
  </connectionParameters>
  <__default>false</__default>
</dataStore>/

my namespace.xml
/<namespace>
  <id>elf_addr_namespace_id</id>
  <prefix>elf_addr</prefix>
  <uri>http://www.locationframework.eu/schemas/Addresses/0.1</uri>
</namespace>/

my elf_Address.xml (I left out irrelevant information)
/.
.
.
<Namespace>
  <prefix>inspire_addr</prefix>
   <uri>urn:x-inspire:specification:gmlas:Addresses:3.0</uri>
</Namespace>
<Namespace>
  <prefix>elf_addr</prefix>
  <uri>http://www.locationframework.eu/schemas/Addresses/0.1</uri>
</Namespace>
.
.
.
    <targetTypes>
        <FeatureType>
           
<schemaUri>http://www.locationframework.eu/schemas/Addresses/0.1/Addresses.xsd</schemaUri>
        </FeatureType>
    </targetTypes>
    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>datasource</sourceDataStore>
            <sourceType>INS_AD</sourceType>
            <targetElement>inspire_addr:Address</targetElement>
            <isDenormalised>false</isDenormalised>
            <attributeMappings>
                <AttributeMapping>
                    <targetAttribute>
                        inspire_addr:Address
                    </targetAttribute>
                    <idExpression>
                        <OCQL>strConcat('SI.GURS.RPE.AD.', ID)</OCQL>
                    </idExpression>
                </AttributeMapping>
.
.
./

When I run geoserver I get this error, even though
urn:x-inspire:specification:gmlas:Addresses:3.0 should had top element
Addresss:
/31 jul 13:20:42 WARN [data.complex] - No top level element found in
schemas: {urn:x-inspire:specification:gmlas:Addresses:3.0}Address
31 jul 13:20:42 WARN [complex.config] - Error creating app-schema data store
for 'inspire_addr:Address', caused by: No top level element found in
schemas: {urn:x-inspire:specification:gmlas:Addresses:3.0}Address
31 jul 13:20:42 WARN [org.geoserver] - Error connecting to 'elf_Address'.
Disabling./

Somebody has a solution how to correctly map this schema?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problem-mapping-ELF-Addresses-schema-tp5217968.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to