Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #38 from yjacolin/noExtent
Browse files Browse the repository at this point in the history
Don't calculate extent if there is not geometry
  • Loading branch information
fxprunayre authored Nov 16, 2017
2 parents 927ff51 + 48e16b6 commit 2c800ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions METADATA-CRAWLER/process/scan_vector_0.1.item
Original file line number Diff line number Diff line change
Expand Up @@ -1048,10 +1048,10 @@
<mapperTableEntries name="var1" expression="Utility.PROJ(row9.geo_extent, context.default_projection, &quot;EPSG:4326&quot;, false) " type="id_Geometry"/>
<mapperTableEntries name="var2" expression="Utility.PROJ(row9.geo_extent, context.default_projection, &quot;EPSG:4326&quot;, true) " type="id_Geometry"/>
<mapperTableEntries name="keywordList" expression="context.isDb ? &quot;&quot; : Var.filepathBase.replace(&quot;/&quot; + Var.filename, &quot;&quot;) " type="id_String"/>
<mapperTableEntries name="geo_extent_xmin" expression="row9.nb_features == 0 ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,0,&quot;X&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_xmax" expression="row9.nb_features == 0 ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,2,&quot;X&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_ymin" expression="row9.nb_features == 0 ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,2,&quot;Y&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_ymax" expression="row9.nb_features == 0 ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,0,&quot;Y&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_xmin" expression="(row9.nb_features == 0 ||Utility.returnFirstNotNullOrBlank(row9.geom_column)) ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,0,&quot;X&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_xmax" expression="(row9.nb_features == 0 ||Utility.returnFirstNotNullOrBlank(row9.geom_column)) ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,2,&quot;X&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_ymin" expression="(row9.nb_features == 0 ||Utility.returnFirstNotNullOrBlank(row9.geom_column)) ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,2,&quot;Y&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
<mapperTableEntries name="geo_extent_ymax" expression="(row9.nb_features == 0 ||Utility.returnFirstNotNullOrBlank(row9.geom_column)) ? &quot;&quot; : (&#xD;&#xA;GeometryOperation.GETCOORDINATE(row9.geo_extent,0,&quot;Y&quot;) + &quot;&quot; &#xD;&#xA;) &#xA;" type="id_String"/>
</varTables>
<outputTables sizeState="INTERMEDIATE" name="metadata">
<mapperTableEntries name="uuid" expression="Var.mdUuid " type="id_String" nullable="true"/>
Expand Down

0 comments on commit 2c800ad

Please sign in to comment.