Conversation
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
| final PrimaryIndex index ) | ||
| throws Exception { | ||
| final PrimaryIndex index = new SpatialIndexBuilder().createIndex(); | ||
| // final PrimaryIndex index = new SpatialIndexBuilder().createIndex(); |
| for (final IntermediateSplitInfo split : splits) { | ||
| retVal.add(split.toFinalSplit()); | ||
| } | ||
|
|
| Envelope mapExtent; | ||
|
|
||
| CoordinateReferenceSystem crs = null; | ||
| if (crsCode.equals(GeometryUtils.DEFAULT_CRS_STR)) { |
There was a problem hiding this comment.
can we check for null || empty || crsCode equals default
| @Parameter(names = "--cqlFilter", description = "An optional CQL filter applied to the input data") | ||
| private String cqlFilter; | ||
|
|
||
| @Parameter(names = "--outputIndex", description = "An optional index for output datastore. Only spatial index is supported") |
There was a problem hiding this comment.
simple wording suggestion: Only spatial index type is supported.
| public void init( | ||
| PrimaryIndex... indices ) { | ||
| // TODO Auto-generated method stub | ||
| String indexCrsCode = null; |
There was a problem hiding this comment.
is this set of code necessary at all? I read it as assigned a local variable that is unused and the index is coming into fitToIndex so this currently seems unnecessary.
| .getConstraints( | ||
| filter, | ||
| GeoWaveGTRasterFormat.DEFAULT_CRS, | ||
| // GeoWaveGTRasterFormat.DEFAULT_CRS, |
| PrimaryIndex[] indices = adapterMapping.getIndices(geowaveIndexStore); | ||
|
|
||
| if (indices != null && indices.length > 0) { | ||
| if (indices[0].getIndexModel() instanceof CustomCrsIndexModel) { |
There was a problem hiding this comment.
this section could probably use GeometryUtils.getCRS(index) to reuse some code
|
|
||
| // for first iteration | ||
| if (indexCrs == null) { | ||
| if (primaryindx.getIndexModel() instanceof CustomCrsIndexModel) { |
There was a problem hiding this comment.
this whole method could probably be in geometryutils, and this section could reuse the GeometryUtils.getCRS(index) method
| public static final PrimaryIndex DEFAULT_SPATIAL_TEMPORAL_INDEX = new SpatialTemporalDimensionalityTypeProvider() | ||
| .createPrimaryIndex(new SpatialTemporalOptions()); | ||
| public static String CUSTOM_CRSCODE = "EPSG:3070"; | ||
| // public static String CUSTOM_CRSCODE = "EPSG:3070"; |
| "geotools-vector", | ||
| 1); | ||
|
|
||
| // File configFile = File.createTempFile( |
| resizeTileSizeCoverageName); | ||
| command.getOptions().setIndexId( | ||
| TestUtils.createCustomCRSPrimaryIndex().getId().getString() | ||
| // TestUtils.DEFAULT_SPATIAL_INDEX.getId().toString() |
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
… raster-custom-projection
| geotiffFile); | ||
| } | ||
|
|
||
| /* |
| } | ||
| catch (FactoryException e) { | ||
| // TODO Auto-generated catch block | ||
| e.printStackTrace(); |
There was a problem hiding this comment.
this should be logged, and remove TODO
Signed-off-by: Srinivas Varala <srinivas.varala@gmail.com>
No description provided.