Added GEOV_LINK as PostgisTable.Field

This commit is contained in:
Francesco Mangiacrapa 2023-03-29 12:04:24 +02:00
parent c23245151f
commit 292fe88107
2 changed files with 10 additions and 6 deletions

View File

@ -39,8 +39,8 @@ public class PostgisIndexer {
public static class StandardFields{ public static class StandardFields{
public static final PostgisTable.Field PROJECT_ID= new PostgisTable.Field(DBConstants.Defaults.PROJECT_ID, PostgisTable.FieldType.TEXT); public static final PostgisTable.Field PROJECT_ID= new PostgisTable.Field(DBConstants.Defaults.PROJECT_ID, PostgisTable.FieldType.TEXT);
public static final PostgisTable.Field GEOM= new PostgisTable.Field(DBConstants.Defaults.DEFAULT_GEOMETRY_COLUMN_NAME, PostgisTable.FieldType.GEOMETRY); public static final PostgisTable.Field GEOM= new PostgisTable.Field(DBConstants.Defaults.DEFAULT_GEOMETRY_COLUMN_NAME, PostgisTable.FieldType.GEOMETRY);
public static final PostgisTable.Field DISPLAY=new PostgisTable.Field(DBConstants.Defaults.DISPLAYED,PostgisTable.FieldType.BOOLEAN); public static final PostgisTable.Field DISPLAY=new PostgisTable.Field(DBConstants.Defaults.DISPLAYED,PostgisTable.FieldType.BOOLEAN);
public static final PostgisTable.Field GEOV_LINK=new PostgisTable.Field(DBConstants.Defaults.GEOVIEWER_LINK_FIELD,PostgisTable.FieldType.TEXT);
} }
@ -85,10 +85,10 @@ public class PostgisIndexer {
tableFields.add(StandardFields.GEOM); tableFields.add(StandardFields.GEOM);
tableFields.add(StandardFields.PROJECT_ID); tableFields.add(StandardFields.PROJECT_ID);
tableFields.add(StandardFields.DISPLAY); tableFields.add(StandardFields.DISPLAY);
tableFields.add(StandardFields.GEOV_LINK);
tableFields.addAll(customFields); tableFields.addAll(customFields);
table = new PostgisTable(indexName,tableFields, PostgisTable.GeometryType.POINT); table = new PostgisTable(indexName,tableFields, PostgisTable.GeometryType.POINT);
log.trace("Index Postgis Table is {} ",table); log.trace("Index Postgis Table is {} ",table);
log.debug("Create if missing.."); log.debug("Create if missing..");

View File

@ -79,11 +79,15 @@ public class SDIIndexerPlugin extends SDIAbstractPlugin implements IndexerPlugin
} }
/** /**
* Expected parameters : - indexName (unique) - workspace - flagInternalIndex: * Expected parameters :
* boolean - centroidRecord (OPT) * - indexName (unique)
* - workspace
* - flagInternalIndex as Boolean;
* boolean - centroidRecord (OPT).
* *
* @param request * @param request the request
* @return * @return the index document report
* @throws InvalidPluginRequestException the invalid plugin request exception
*/ */
@Override @Override