Showing results for 
Search instead for 
Do you mean 

Add queryable to GIM(Generated item metadata)

by Technical Evangelist ‎08-31-2018 07:35 AM - edited ‎12-11-2019 04:16 PM (265 Views)

User can create custom Gim (Generated item metadata) for business data

For more info about GIM, see Apollo server user guide->Business data in the catalog)

https://hexagongeospatial.fluidtopics.net/reader/JmIvzN0qCQzgtWYtOP2PvQ/jb2_82dM_x3vqW4mLE0N2g

 

 

 For example, if use has the following business data 'Test.jpg' and GIM file 'Test.jpg.gim', user can define the following queryable "finalization"

 

Test.jpg

Test.jpg.gim

<property name="finalization" type="integer" value="5"/>

 

 

here is gim:

 

<?xml version='1.0' encoding='utf-8' ?>
<item xmlns="http://schema.erdas.com/apollo/catalog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.erdas.com/apollo/catalog http://schema.erdas.com/apollo/catalog/generic-item-metadata-1.0.xsd" version="1.0" type="document/txt" identifiedBy="identifier">
<identifier></identifier>
<name>name_test_jpeg</name>
<title>title_test_jpeg</title>
<description>description_test_jpeg</description>
<tags>tags_test_jpeg</tags>
<footprint srs="EPSG:4326">POINT (-84.49315667152405 34.259038712339894)</footprint>
<resource-url mimeType="application/jpg">test.jpg</resource-url>
<properties>
<property name="finalization" type="integer" value="5"/>
</properties>
</item>

 

Of course user need to enable queryable slot "finalization". For how to setup queryable, see the following KB

 

http://community.hexagongeospatial.com/t5/ERDAS-APOLLO/Using-Queryables-in-ERDAS-APOLLO/ta-p/484test.jpg

 

 

 

Now user can crawl this business data, and Apollo will consume the queryable into catalog:

test2.jpg

test2.jpg

 

 

Below are supported properties type

 

<xsd:simpleType name="propertyType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="string" />
<xsd:enumeration value="integer" />
<xsd:enumeration value="double" />
<xsd:enumeration value="long" />
<xsd:enumeration value="float" />
<xsd:enumeration value="date" />
</xsd:restriction>
</xdd:simpleType>

 

 

Contributors