You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2008-06-16 15:28:36

jean.pommier
Member
4 posts

jean.pommier said:

publish metadata to geonetwork

Hi,

I'm trying to publish some metadata to geonetwork. I looked at the corresponding tutorial, and adapted the example to my situation. Since i didn't manage to get metadata from sPostgisOutput (see previous post), i decided to output my Postgis data to a new shapefile, and use this shapefile's metadata output. So far so nice.
But when i trigger a "OnComponentOK" from this shapefile to a sCataloguePublisher, set up as in the example, I get the following message
"org.talend.sdi.metadata.GeoNetwork | Connected to GeoNetwork.
org.talend.sdi.metadata.Catalogue | Invalid XML Document 'Error on line 33 of document  : The element type "META" must be terminated by the matching end-tag "</META>". Nested exception: The element type "META" must be terminated by the matching end-tag "</META>".'
null
sCataloguePublisher_1 | Metadata published."
and/but nothing is published on the catalogue.
It's pretty disappointing.
Any idea to help me ?
Thanks,

Jean

Offline

#2 2008-06-17 00:23:37

Fxp
Member
193 posts

Fxp said:

Re: publish metadata to geonetwork

Hi,
It looks like you get an error from the GeoNetwork catalogue when inserting the metadata.

Could you post your xml metadata document for test ?
You could also try a metadata XML insert from the admin interface to check the import.

HTH.
Francois

Offline

#3 2008-06-30 17:30:29

jean.pommier
Member
4 posts

jean.pommier said:

Re: publish metadata to geonetwork

Hi,
Thanks for the answer. You're right, i did not think of publishing the XML file and then insert it via the geonetwork interface.
The fact is i can't find how to write de metadata output as an XML file, in SDI's interface. It looks like i'm not allowed to output metadata to classic XML file output.
Any idea ?

Offline

#4 2008-07-01 10:11:15

mbaroudi
Member
20 posts

mbaroudi said:

Re: publish metadata to geonetwork

Hi,

You can use tFileOutputXML in XML Menu.

Regards


“About eighty percent of all data stored in corporate databases has a spatial component” [Franklin 1992]

Offline

#5 2008-07-01 13:30:01

Fxp
Member
193 posts

Fxp said:

Re: publish metadata to geonetwork

Hello,

jean.pommier wrote:

Hi,
Thanks for the answer. You're right, i did not think of publishing the XML file and then insert it via the geonetwork interface.
The fact is i can't find how to write de metadata output as an XML file, in SDI's interface. It looks like i'm not allowed to output metadata to classic XML file output.
Any idea ?

The XML document should be in the same directory as your shapefile, with shapefile_name.shp.xml as filename.

HTH. Francois

Offline

#6 2008-07-02 15:53:18

jean.pommier
Member
4 posts

jean.pommier said:

Re: publish metadata to geonetwork

Right, thanks. It didn't think of looking in the filesystem.

OK. So, the errors are on validation of the document. first error is about the "Equivalent scale Denominator" (name in geonetwork's interface) not filled.
I get an error "Exception in endElement: cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'."
Looks like the problem is that some compulsary informations are missing, so it fails to pass the validation.
Here is the XML file generated by SDI (that is, in fact, almost empty except from the geographical bouding box)
<?xml version="1.0" encoding="UTF-8"?>

<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:geonet="http://www.fao.org/geonetwork"> 
  <gmd:fileIdentifier>
    <gco:CharacterString>36c3f008-3225-46d2-8ad7-ab3cd618d659</gco:CharacterString>
  </gmd:fileIdentifier> 
  <gmd:language>
    <gco:CharacterString>eng</gco:CharacterString>
  </gmd:language> 
  <gmd:characterSet>
    <gmd:MD_CharacterSetCode codeListValue="utf8" codeList="./resources/codeList.xml#MD_CharacterSetCode"/>
  </gmd:characterSet> 
  <gmd:contact>
    <gmd:CI_ResponsibleParty>
      <gmd:individualName>
        <gco:CharacterString/>
      </gmd:individualName> 
      <gmd:organisationName>
        <gco:CharacterString/>
      </gmd:organisationName> 
      <gmd:positionName>
        <gco:CharacterString/>
      </gmd:positionName> 
      <gmd:contactInfo>
        <gmd:CI_Contact>
          <gmd:phone>
            <gmd:CI_Telephone>
              <gmd:voice>
                <gco:CharacterString/>
              </gmd:voice> 
              <gmd:facsimile>
                <gco:CharacterString/>
              </gmd:facsimile>
            </gmd:CI_Telephone>
          </gmd:phone> 
          <gmd:address>
            <gmd:CI_Address>
              <gmd:deliveryPoint>
                <gco:CharacterString/>
              </gmd:deliveryPoint> 
              <gmd:city>
                <gco:CharacterString/>
              </gmd:city> 
              <gmd:administrativeArea>
                <gco:CharacterString/>
              </gmd:administrativeArea> 
              <gmd:postalCode>
                <gco:CharacterString/>
              </gmd:postalCode> 
              <gmd:country>
                <gco:CharacterString/>
              </gmd:country> 
              <gmd:electronicMailAddress>
                <gco:CharacterString>___SDI_AUTO___TODO</gco:CharacterString>
              </gmd:electronicMailAddress>
            </gmd:CI_Address>
          </gmd:address>
        </gmd:CI_Contact>
      </gmd:contactInfo> 
      <gmd:role>
        <gmd:CI_RoleCode codeList="./resources/codeList.xml#CI_RoleCode" codeListValue="pointOfContact"/>
      </gmd:role>
    </gmd:CI_ResponsibleParty>
  </gmd:contact> 
  <gmd:dateStamp>
    <gco:DateTime>2008-06-30T16:35:01</gco:DateTime>
  </gmd:dateStamp> 
  <gmd:metadataStandardName>
    <gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>
  </gmd:metadataStandardName> 
  <gmd:metadataStandardVersion>
    <gco:CharacterString>1.0</gco:CharacterString>
  </gmd:metadataStandardVersion> 
  <gmd:spatialRepresentationInfo>
    <gmd:MD_VectorSpatialRepresentation>
      <gmd:geometricObjects>
        <gmd:MD_GeometricObjects>
          <gmd:geometricObjectType>
            <gmd:MD_GeometricObjectTypeCode codeList="" codeListValue="point"/>
          </gmd:geometricObjectType> 
          <gmd:geometricObjectCount>
            <gco:Integer>56</gco:Integer>
          </gmd:geometricObjectCount>
        </gmd:MD_GeometricObjects>
      </gmd:geometricObjects>
    </gmd:MD_VectorSpatialRepresentation>
  </gmd:spatialRepresentationInfo> 
  <gmd:referenceSystemInfo>
    <gmd:MD_ReferenceSystem>
      <gmd:referenceSystemIdentifier>
        <gmd:RS_Identifier>
          <gmd:code>
            <gco:CharacterString>TODO</gco:CharacterString>
          </gmd:code>
        </gmd:RS_Identifier>
      </gmd:referenceSystemIdentifier>
    </gmd:MD_ReferenceSystem>
  </gmd:referenceSystemInfo> 
  <gmd:identificationInfo>
    <gmd:MD_DataIdentification>
      <gmd:citation>
        <gmd:CI_Citation>
          <gmd:title>
            <gco:CharacterString>Toponymes for TV (jean)</gco:CharacterString>
          </gmd:title> 
          <gmd:date>
            <gmd:CI_Date>
              <gmd:date>
                <gco:DateTime>2008-06-30T16:35:01</gco:DateTime>
              </gmd:date> 
              <gmd:dateType>
                <gmd:CI_DateTypeCode codeList="./resources/codeList.xml#CI_DateTypeCode" codeListValue="creation"/>
              </gmd:dateType>
            </gmd:CI_Date>
          </gmd:date> 
          <gmd:edition>
            <gco:CharacterString/>
          </gmd:edition> 
          <gmd:presentationForm>
            <gmd:CI_PresentationFormCode codeList="./resources/codeList.xml#CI_PresentationFormCode" codeListValue="mapDigital"/>
          </gmd:presentationForm>
        </gmd:CI_Citation>
      </gmd:citation> 
      <gmd:abstract>
        <gco:CharacterString>Metadata abstract jean</gco:CharacterString>
      </gmd:abstract> 
      <gmd:purpose>
        <gco:CharacterString>Metadata Purpose</gco:CharacterString>
      </gmd:purpose> 
      <gmd:status>
        <gmd:MD_ProgressCode codeList="./resources/codeList.xml#MD_ProgressCode" codeListValue="completed"/>
      </gmd:status> 
      <gmd:resourceMaintenance>
        <gmd:MD_MaintenanceInformation>
          <gmd:maintenanceAndUpdateFrequency>
            <gmd:MD_MaintenanceFrequencyCode codeList="./resources/codeList.xml#MD_MaintenanceFrequencyCode" codeListValue="asNeeded"/>
          </gmd:maintenanceAndUpdateFrequency>
        </gmd:MD_MaintenanceInformation>
      </gmd:resourceMaintenance> 
      <gmd:graphicOverview>
        <gmd:MD_BrowseGraphic>
          <gmd:fileName>
            <gco:CharacterString>___SDI_AUTO___</gco:CharacterString>
          </gmd:fileName> 
          <gmd:fileDescription>
            <gco:CharacterString>thumbnail</gco:CharacterString>
          </gmd:fileDescription> 
          <gmd:fileType>
            <gco:CharacterString>png</gco:CharacterString>
          </gmd:fileType>
        </gmd:MD_BrowseGraphic>
      </gmd:graphicOverview> 
      <gmd:descriptiveKeywords>
        <gmd:MD_Keywords>
          <gmd:keyword>
            <gco:CharacterString>XXX</gco:CharacterString>
          </gmd:keyword> 
          <gmd:type>
            <gmd:MD_KeywordTypeCode codeList="./resources/codeList.xml#MD_KeywordTypeCode" codeListValue="theme"/>
          </gmd:type>
        </gmd:MD_Keywords>
      </gmd:descriptiveKeywords> 
      <gmd:descriptiveKeywords>
        <gmd:MD_Keywords>
          <gmd:keyword>
            <gco:CharacterString>XXX</gco:CharacterString>
          </gmd:keyword> 
          <gmd:type>
            <gmd:MD_KeywordTypeCode codeList="./resources/codeList.xml#MD_KeywordTypeCode" codeListValue="place"/>
          </gmd:type>
        </gmd:MD_Keywords>
      </gmd:descriptiveKeywords> 
      <gmd:resourceConstraints>
        <gmd:MD_Constraints>
          <gmd:useLimitation>
            <gco:CharacterString/>
          </gmd:useLimitation>
        </gmd:MD_Constraints>
      </gmd:resourceConstraints> 
      <gmd:spatialRepresentationType>
        <gmd:MD_SpatialRepresentationTypeCode codeList="./resources/codeList.xml#MD_SpatialRepresentationTypeCode" codeListValue="vector"/>
      </gmd:spatialRepresentationType> 
      <gmd:spatialResolution>
        <gmd:MD_Resolution>
          <gmd:equivalentScale>
            <gmd:MD_RepresentativeFraction>
              <gmd:denominator>
                <gco:Integer/>
              </gmd:denominator>
            </gmd:MD_RepresentativeFraction>
          </gmd:equivalentScale>
        </gmd:MD_Resolution>
      </gmd:spatialResolution> 
      <gmd:language>
        <gco:CharacterString>eng</gco:CharacterString>
      </gmd:language> 
      <gmd:characterSet>
        <gmd:MD_CharacterSetCode codeList="./resources/codeList.xml#MD_CharacterSetCode" codeListValue="utf8"/>
      </gmd:characterSet> 
      <gmd:topicCategory>
        <gmd:MD_TopicCategoryCode>boundaries</gmd:MD_TopicCategoryCode>
      </gmd:topicCategory> 
      <gmd:extent>
        <gmd:EX_Extent>
          <gmd:temporalElement>
            <gmd:EX_TemporalExtent>
              <gmd:extent>
                <gml:TimePeriod>
                  <gml:beginPosition/> 
                  <gml:endPosition/>
                </gml:TimePeriod>
              </gmd:extent>
            </gmd:EX_TemporalExtent>
          </gmd:temporalElement>
        </gmd:EX_Extent>
      </gmd:extent> 
      <gmd:extent>
        <gmd:EX_Extent>
          <gmd:geographicElement>
            <gmd:EX_GeographicBoundingBox>
              <gmd:westBoundLongitude>
                <gco:Decimal>3.13169279</gco:Decimal>
              </gmd:westBoundLongitude> 
              <gmd:eastBoundLongitude>
                <gco:Decimal>10.94161413</gco:Decimal>
              </gmd:eastBoundLongitude> 
              <gmd:southBoundLatitude>
                <gco:Decimal>22.53219891</gco:Decimal>
              </gmd:southBoundLatitude> 
              <gmd:northBoundLatitude>
                <gco:Decimal>26.26297897</gco:Decimal>
              </gmd:northBoundLatitude>
            </gmd:EX_GeographicBoundingBox>
          </gmd:geographicElement>
        </gmd:EX_Extent>
      </gmd:extent> 
      <gmd:supplementalInformation>
        <gco:CharacterString/>
      </gmd:supplementalInformation>
    </gmd:MD_DataIdentification>
  </gmd:identificationInfo> 
  <gmd:distributionInfo>
    <gmd:MD_Distribution>
      <gmd:transferOptions>
        <gmd:MD_DigitalTransferOptions>
          <gmd:onLine>
            <gmd:CI_OnlineResource>
              <gmd:linkage>
                <gmd:URL>D:/SDI-All-V1.2.0-TOSV2.3.2/workspace/out.shp</gmd:URL>
              </gmd:linkage> 
              <gmd:protocol>
                <gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString>
              </gmd:protocol> 
              <gmd:name>
                <gco:CharacterString></gco:CharacterString>
              </gmd:name> 
              <gmd:description>
                <gco:CharacterString>File for download</gco:CharacterString>
              </gmd:description>
            </gmd:CI_OnlineResource>
          </gmd:onLine>
        </gmd:MD_DigitalTransferOptions>
      </gmd:transferOptions>
    </gmd:MD_Distribution>
  </gmd:distributionInfo> 
  <gmd:dataQualityInfo>
    <gmd:DQ_DataQuality>
      <gmd:scope>
        <gmd:DQ_Scope>
          <gmd:level>
            <gmd:MD_ScopeCode codeList="./resources/codeList.xml#MD_ScopeCode" codeListValue="dataset"/>
          </gmd:level>
        </gmd:DQ_Scope>
      </gmd:scope> 
      <gmd:lineage>
        <gmd:LI_Lineage>
          <gmd:statement>
            <gco:CharacterString>Generated by Talend SDI.</gco:CharacterString>
          </gmd:statement>
        </gmd:LI_Lineage>
      </gmd:lineage>
    </gmd:DQ_DataQuality>
  </gmd:dataQualityInfo> 
  <gmd:featureType/>
</gmd:MD_Metadata>

Offline

#7 2008-07-04 08:39:19

Fxp
Member
193 posts

Fxp said:

Re: publish metadata to geonetwork

Hi, for now Talend is taking care of filling the following info using your input in the component properties:
* title
* abstract
* purpose
* topic category
... and automatically set:
* bbox
* number of features
* feature types
* creation date

Then all other informations are set in the XML templates used (look at workspace/.spatial/md/template/iso19139.xml). Feel free to edit the template (or create a new one) to set info like contact, maxscale denominator, and other ... which could not be set automatically.

Maybe some other elements could be set by Talend during the process (e.g CRS, lineage ...) but this has not be done so far ... And not planned from my side for now.

If you have comments, inputs, advices on how to improve that metadata creation process do not hesitate to discuss that point here.

HTH.

Francois

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy