Skip to content

Commit

Permalink
Hull Index suffers the same issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgdrummer committed Feb 29, 2016
1 parent 6cec8d7 commit 594f45e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import mil.nga.giat.geowave.analytic.param.MapReduceParameters;
import mil.nga.giat.geowave.analytic.param.ParameterEnum;
import mil.nga.giat.geowave.analytic.param.StoreParameters;
import mil.nga.giat.geowave.core.geotime.ingest.SpatialDimensionalityTypeProvider;
import mil.nga.giat.geowave.mapreduce.input.GeoWaveInputKey;
import mil.nga.giat.geowave.mapreduce.output.GeoWaveOutputKey;

Expand Down Expand Up @@ -75,7 +76,8 @@ public int run(
new ParameterEnum<?>[] {
HullParameters.Hull.WRAPPER_FACTORY_CLASS,
HullParameters.Hull.PROJECTION_CLASS,
HullParameters.Hull.DATA_TYPE_ID
HullParameters.Hull.DATA_TYPE_ID,
HullParameters.Hull.INDEX_ID
},
config,
getScope());
Expand Down Expand Up @@ -109,7 +111,7 @@ public int run(
checkIndex(
runTimeProperties,
HullParameters.Hull.INDEX_ID,
"hull_idx");
new SpatialDimensionalityTypeProvider().createPrimaryIndex().getId().getString());
return super.run(
config,
runTimeProperties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import mil.nga.giat.geowave.analytic.param.MapReduceParameters;
import mil.nga.giat.geowave.analytic.param.OutputParameters;
import mil.nga.giat.geowave.analytic.param.ParameterEnum;
import mil.nga.giat.geowave.core.geotime.ingest.SpatialDimensionalityTypeProvider;
import mil.nga.giat.geowave.mapreduce.input.GeoWaveInputKey;
import mil.nga.giat.geowave.mapreduce.output.GeoWaveOutputKey;

Expand Down Expand Up @@ -73,7 +74,7 @@ public int run(
OutputParameters.Output.INDEX_ID,
runTimeProperties.getPropertyAsString(
CentroidParameters.Centroid.INDEX_ID,
"hull_idx"));
new SpatialDimensionalityTypeProvider().createPrimaryIndex().getId().getString()));
OutputParameters.Output.INDEX_ID.getHelper().setValue(
config,
getScope(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import mil.nga.giat.geowave.core.cli.DataStoreCommandLineOptions;
import mil.nga.giat.geowave.core.cli.GenericStoreCommandLineOptions;
import mil.nga.giat.geowave.core.cli.IndexStoreCommandLineOptions;
import mil.nga.giat.geowave.core.geotime.ingest.SpatialDimensionalityTypeProvider;
import mil.nga.giat.geowave.core.geotime.store.query.SpatialQuery;
import mil.nga.giat.geowave.core.store.DataStore;
import mil.nga.giat.geowave.core.store.adapter.AdapterStore;
Expand Down Expand Up @@ -198,7 +199,7 @@ private int readHulls(
adapterStore,
new SimpleFeatureItemWrapperFactory(),
"concave_hull",
"hull_idx",
new SpatialDimensionalityTypeProvider().createPrimaryIndex().getId().getString(),
"bx5",
0);

Expand Down

0 comments on commit 594f45e

Please sign in to comment.