Project

General

Profile

« Previous | Next » 

Revision 8734

use NSEW for the bounding box geohash calculation from EML - all versions

View differences:

metacat-index/src/main/resources/application-context-eml200.xml
44 44
    <ref bean="eml.attributeText" />
45 45
    <ref bean="eml.fileID" />
46 46
    <ref bean="eml.fullText" />
47
    <ref bean="eml.geohash1" />
48
    <ref bean="eml.geohash2" />
49
    <ref bean="eml.geohash3" />
50
    <ref bean="eml.geohash4" />
51
    <ref bean="eml.geohash5" />
52
    <ref bean="eml.geohash6" />
53
    <ref bean="eml.geohash7" />
54
    <ref bean="eml.geohash8" />
55
    <ref bean="eml.geohash9" />    
47 56
   </list>
48 57
  </property>
49 58
 </bean>
metacat-index/src/main/resources/application-context-eml201.xml
44 44
    <ref bean="eml.attributeText" />
45 45
    <ref bean="eml.fileID" />
46 46
    <ref bean="eml.fullText" />
47
    <ref bean="eml.geohash1" />
48
    <ref bean="eml.geohash2" />
49
    <ref bean="eml.geohash3" />
50
    <ref bean="eml.geohash4" />
51
    <ref bean="eml.geohash5" />
52
    <ref bean="eml.geohash6" />
53
    <ref bean="eml.geohash7" />
54
    <ref bean="eml.geohash8" />
55
    <ref bean="eml.geohash9" />    
47 56
   </list>
48 57
  </property>
49 58
 </bean>
metacat-index/src/main/resources/application-context-eml210.xml
48 48
    <ref bean="eml.attributeText" />
49 49
    <ref bean="eml.fileID" />
50 50
    <ref bean="eml.fullText" />
51
    <ref bean="eml.geohash1" />
52
    <ref bean="eml.geohash2" />
53
    <ref bean="eml.geohash3" />
54
    <ref bean="eml.geohash4" />
55
    <ref bean="eml.geohash5" />
56
    <ref bean="eml.geohash6" />
57
    <ref bean="eml.geohash7" />
58
    <ref bean="eml.geohash8" />
59
    <ref bean="eml.geohash9" />
51 60
   </list>
52 61
  </property>
53 62
 </bean>
metacat-index/src/main/resources/application-context-eml211.xml
44 44
    <ref bean="eml.attributeText" />
45 45
    <ref bean="eml.fileID" />
46 46
    <ref bean="eml.fullText" />
47
    <ref bean="eml.geohash1" />
48
    <ref bean="eml.geohash2" />
49
    <ref bean="eml.geohash3" />
50
    <ref bean="eml.geohash4" />
51
    <ref bean="eml.geohash5" />
52
    <ref bean="eml.geohash6" />
53
    <ref bean="eml.geohash7" />
54
    <ref bean="eml.geohash8" />
55
    <ref bean="eml.geohash9" />
56
    
47 57
   </list>
48 58
  </property>
49 59
 </bean>
metacat-index/src/main/resources/application-context-eml-base.xml
60 60
	<bean id="eml.geohashRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
61 61
		p:name="geohashRoot"
62 62
		p:xPath="//dataset/coverage/geographicCoverage/boundingCoordinates"
63
		p:template="[northBoundingCoordinate] [westBoundingCoordinate] [southBoundingCoordinate] [eastBoundingCoordinate]">
63
		p:template="[northBoundingCoordinate] [southBoundingCoordinate] [eastBoundingCoordinate] [westBoundingCoordinate]">
64 64
		<property name="leafs">
65 65
			<list>
66 66
				<ref bean="eml.northBoundingCoordinateLeaf"/>
67
				<ref bean="eml.westBoundingCoordinateLeaf"/>
68 67
				<ref bean="eml.southBoundingCoordinateLeaf"/>
69 68
				<ref bean="eml.eastBoundingCoordinateLeaf"/>
69
				<ref bean="eml.westBoundingCoordinateLeaf"/>
70 70
			</list>
71 71
		</property>
72 72
	</bean>
73 73
	
74
	<bean id="eml.northBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
75
		p:name="northBoundingCoordinate"
76
		p:xPath="northBoundingCoordinate/text()" />
74 77
		
78
	<bean id="eml.westBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
79
		p:name="westBoundingCoordinate"
80
		p:xPath="westBoundingCoordinate/text()" />
81
	
82
	<bean id="eml.southBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
83
		p:name="southBoundingCoordinate"
84
		p:xPath="southBoundingCoordinate/text()" />		
85
		
86
	<bean id="eml.eastBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
87
		p:name="eastBoundingCoordinate"
88
		p:xPath="eastBoundingCoordinate/text()" />
89
	
90
		
75 91
	<!-- use the root to calculate different geohash lengths -->
76 92
	<bean id="eml.geohash1" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
77 93
		p:multivalue="true"

Also available in: Unified diff