Manage a map-building project, its layers, datasets and output maps. More...
Manage a map-building project, its layers, datasets and output maps.
Classes | |
| struct | config |
| Configuration values for a map-building project. More... | |
Public Types | |
| using | interval_t = interval<double, interval_type::closed, interval_type::closed> |
| using | bounds_t = bounds<double, interval_type::closed, interval_type::closed> |
Public Member Functions | |
| MapLinkProject () | |
| Construct a project with the default environment and configuration. | |
| MapLinkProject (std::filesystem::path maplHome, std::filesystem::path userIni) | |
| Construct a project with the specified MapLink home and user configuration paths. | |
| ~MapLinkProject () | |
| Release resources held by the project. | |
| bool | CreateMap (std::filesystem::path const &path, std::optional< OutputMapOptions > options={}) |
| Create an output map containing the selected layers. | |
| bool | CreateMapAtVersion (std::filesystem::path const &path, TSLMapLinkVersion mlVersion) |
| Create an output map at a specified MapLink version. | |
| bool | SelectAllLayersForMap () |
| Select every layer for the next output map. | |
| bool | SelectLayersForMap (const std::vector< std::string > &layerNames, const char *commandStr=0) |
| Select the named layers for the next output map. | |
| InformationTreeItem * | findLayer (const std::string &layer) |
| Find a layer by name in this project. | |
| InformationTreeItem * | findDataset (const std::string &layer, const std::string &dataset) |
| Find a dataset by layer and dataset names. | |
| InformationTreeItem * | findDataset (const std::string &layer_dataset) |
| Find a dataset by its combined layer/dataset path. | |
| std::vector< InformationTreeItem * > | findLayers (std::vector< std::string > const &layers) |
| Find the layers named in a list. | |
| std::vector< InformationTreeItem * > | findDatasets (std::vector< std::string > const &dataset_paths) |
| Find the datasets at the supplied paths. | |
| bool | SetDatasetInputClipping (InformationTreeItem *dataset, bounds_t bounds) |
| Set a dataset's input clipping bounds. | |
| std::optional< bounds_t > | GetDatasetInputClipping (InformationTreeItem *dataset) |
| Get a dataset's input clipping bounds, if configured. | |
| bool | DisableDatasetInputClipping (InformationTreeItem *dataset) |
| Disable input clipping for a dataset. | |
| bool | SetAllDatasetsInputClipping (bounds_t bounds) |
| Set input clipping bounds for all datasets in the project. | |
| bool | SetGeodeticClipping (InformationTreeItem *layer, interval_t latitude, interval_t longitude) |
| Set a layer's latitude and longitude clipping intervals. | |
| bool | GetGeodeticClipping (InformationTreeItem *layer, interval_t &latitude, interval_t &longitude) |
| Retrieve a layer's latitude and longitude clipping intervals. | |
| bool | DisableGeodeticClipping (InformationTreeItem *layer) |
| Disable geodetic clipping for a layer. | |
| bool | SetOutputClipping (InformationTreeItem *layer, bounds_t bounds) |
| Set a layer's output clipping bounds. | |
| bool | GetOutputClipping (InformationTreeItem *layer, bounds_t &bounds) |
| Retrieve a layer's output clipping bounds. | |
| bool | DisableOutputClipping (InformationTreeItem *layer) |
| Disable output clipping for a layer. | |
| bool | getDatasetInputExtent (InformationTreeItem *dataset, double *x1, double *y1, double *x2, double *y2) |
| Query a dataset's extent in input coordinate system units. | |
| bool | getDataInputExtent (const std::string &layer, const std::string &dataset, const std::string &data, double *x1, double *y1, double *x2, double *y2) |
| Query a datafile's extent in input coordinate system units. | |
| bool | setMapCoordinateSystem (const std::string &coordinateSystemName) |
| Set the map's coordinate system by name. | |
| bool | getMapCoordinateSystem (std::string &coordinateSystemName) const |
| Retrieve the name of the map's coordinate system. | |
| long | getMapCoordinateSystemID () const |
| Retrieve the map's coordinate system identifier. | |
| bool | setDatasetCoordinateSystem (InformationTreeItem *dataset, const std::string &coordinateSystemName) |
| Set a dataset's coordinate system by name. | |
| void | getLayerNames (std::vector< std::string > &layerNames) |
| Retrieve the project's layer names. | |
| void | getDatasetNames (const std::string &layer, std::vector< std::string > &datasetNames) |
| Retrieve dataset names for a named layer. | |
| void | getDatafileNames (const std::string &layer, const std::string &dataset, std::vector< std::string > &datafileNames) |
| Retrieve datafile names for a named layer and dataset. | |
| std::string | datasetFilterName (InformationTreeItem *dataset) |
| Return the filter name used by a dataset. | |
| bool | CreateTerrainDatabase (std::filesystem::path const &path) |
| Create an output terrain database at the given path. | |
| bool | MapTMCperMU (short tmcPerMU, int tmcBorderPercentage) |
| Set the map's TMC-per-MU scale and border percentage. | |
| bool | MUToTMCTransform (bool automatic, double MUShiftX, double MUShiftY, long TMCPerMU, int tmcBorderPercentage) |
| Configure the map-unit to TMC transform. | |
| bool | MUToTMCTransform (bool *automatic, double *MUShiftX, double *MUShiftY, long *TMCPerMU, int *tmcBorderPercentage) |
| Retrieve the map-unit to TMC transform settings. | |
| bool | CreateDTED (char const *dtedName, short dtedLevel) |
| Create DTED output at the specified level. | |
| bool | getLayerExtent (InformationTreeItem *layer, double *x1, double *y1, double *x2, double *y2) |
| Get a layer's transformed output extent. | |
| bool | setLayerTilingFixedNumber (InformationTreeItem *layer, short numTilesAcross, short numTilesDown) |
| Tile a layer using a fixed number of tiles across and down. | |
| bool | setLayerTilingFixedSize (InformationTreeItem *layer, double tileWidth, double tileHeight) |
| Tile a layer using a fixed tile size in output coordinate system units. | |
| bool | disableLayerTiling (InformationTreeItem *layer) |
| Disable tiling for a layer. | |
| bool | isLayerTilingEnabled (InformationTreeItem *layer, bool *isTilingFixedNumber) |
| Query whether a layer is tiled and which tiling mode is used. | |
| bool | queryLayerTilingFixedNumber (InformationTreeItem *layer, short *numTilesAcross, short *numTilesDown) |
| Retrieve a layer's fixed tile counts. | |
| bool | queryLayerTilingFixedSize (InformationTreeItem *layer, double *tileWidth, double *tileHeight) |
| Retrieve a layer's fixed tile size. | |
| bool | getFeatureBookSectionNames (std::vector< std::string > §ionNames) |
| Retrieve the names of all feature-book sections. | |
| MaplEditorFeatureBookSection * | createFeatureBookSection (std::string const &name) |
| Create a feature-book section with the given name. | |
| MaplEditorFeatureBookSection * | findFeatureBookSection (std::string const &name) |
| Find a feature-book section by name. | |
| InformationTreeItem * | createDataset (InformationTreeItem *layer, TileFilter *datasetType, MaplEditorFeatureBookSection *featureBookSection, const std::string *datasetName=0) |
| Create a dataset in a layer with the specified filter and feature-book section. | |
| bool | addData (InformationTreeItem *dataset, std::filesystem::path const &path) |
| Add a datafile to a dataset. | |
| std::size_t | addDataToAllDatasets (std::filesystem::path const &path) |
| Add a datafile to every dataset that accepts it. | |
| bool | loadFeatureBook (std::filesystem::path const &path) |
| Load a feature book from disk. | |
| std::vector< std::filesystem::path > | getDataPaths (InformationTreeItem *dataset) |
| Get the paths of datafiles in a dataset. | |
| MapLinkDatasetTypeEnum | DatasetType (InformationTreeItem *dataset) |
| Query whether a dataset is vector, raster or terrain data. | |
| void | enableAutomaticRasterOverviews (bool enable) |
| Enable or disable automatic raster overviews. | |
| bool | enableAutomaticRasterOverviews () |
| Query whether automatic raster overviews are enabled. | |
| void | rasterOverviewResolutionStep (double stepPercent) |
| Set the raster overview resolution step as a percentage. | |
| double | rasterOverviewResolutionStep () |
| Get the raster overview resolution step percentage. | |
| void | rasterOverviewFixedResolution (double res) |
| Set the raster overview fixed resolution. | |
| double | rasterOverviewFixedResolution () |
| Get the raster overview fixed resolution. | |
| void | rasterOverviewBaseName (const std::string &name) |
| Set the base name of generated raster overviews. | |
| std::string | rasterOverviewBaseName () |
| Get the base name of generated raster overviews. | |
| bool | create (uint64_t projectID=time(nullptr)) |
| Create a new project with an optional project identifier. | |
| bool | load (std::filesystem::path path) |
| Load a project from disk. | |
| bool | save (std::filesystem::path path) |
| Save the project to disk. | |
| void | deleteDataset (const std::string &layerName, const std::string &datasetName, int featureBookSection) |
| Remove a dataset from a named layer and feature-book section. | |
| MapInformation * | getMapInformation () |
| Access the project's map information. | |
| void | convertColourIndices (bool newval) |
| Enable or disable conversion of colour indices. | |
| bool | convertColourIndices () |
| Query whether colour indices are converted. | |
| void | generateMetadataOnMapCreation (bool newval) |
| Enable or disable metadata generation when creating a map. | |
| bool | generateMetadataOnMapCreation () |
| Query whether metadata is generated when creating a map. | |
| const MaplEditorAnalyseInfo * | analyseData (const std::string &layer, const std::string &dataset, const std::string &datafile, TSLFilterErrorCode &error, TSLFilterAnalyseCallbackStruct *callbacks, unsigned long &catalogueID, bool forceAnalyse, bool useMainCatInfo=false) |
| Analyse a datafile in the named layer and dataset. | |
| void | recatalogueAllFilesInProject (InformationTreeItem *parent) |
| Recatalogue the files beneath the specified project item. | |
| void | getCodePages (const std::string &key, std::set< int > &codePages) |
| Retrieve the code pages associated with a catalogue key. | |
| void | getShpMifLatin1 (const std::string &key, std::vector< bool > &settings) |
| Retrieve Shapefile/MIF Latin-1 settings for a catalogue key. | |
| void | getOsMastermapLatin1 (const std::string &key, std::vector< bool > &settings) |
| Retrieve OS MasterMap Latin-1 settings for a catalogue key. | |
| bool | datasetDropped () const |
| Query whether a dataset was dropped from the project. | |
| void | getAllCatalogueInformationForDataset (InformationTreeItem *datasetNode, std::list< const MaplEditorAnalyseInfo * > &infos) |
| Collect catalogue analysis information for a dataset. | |
| void | invalidateDatasetsUsing (const MaplEditorFeatureNode *section) |
| Invalidate datasets using a feature-book section. | |
| int | mapLinkVersion () const |
| Get the MapLink output version configured for this project. | |
| void | mapLinkVersion (int ver) |
| Set the MapLink output version configured for this project. | |
| void | launchExternalProcessor (const std::string &processorName, const std::string &executable, const std::vector< std::string > &args) |
| Launch an external processor with the specified executable and arguments. | |
| std::vector< InformationTreeItem * > | getAllLayers () |
| Get the project's layer items. | |
| std::vector< InformationTreeItem * > | getAllDatasets () |
| Get the project's dataset items. | |
| InformationTreeItem * | newLayer (std::string const &reqdLayerName, LayerInformation *layerInfo=0) |
| Add a new layer with the requested name. | |
| struct envitia::MapLinkProject::config |
Configuration values for a map-building project.
| Class Members | ||
|---|---|---|
| bool | autoloadFiles | |
| int | autoTileScreenSizeX | |
| int | autoTileScreenSizeY | |
| win_colorref | backgroundColour | |
| string | cacheDir | |
| bool | cacheFiles | |
| bool | complexPoly | |
| FeatureMaskMode | defaultFeatureMaskMode | |
| string | defaultOutputDirectory | |
| string | defaultProjectTemplate | |
| bool | enterpriseCompression | |
| bool | exportFCC | |
| bool | generateMetadataAsISO19139 | |
| bool | generateMetadataCodeListFormatEx | |
| bool | generateSymbolsWithLineLabelling | |
| GLDataPostProcessorOptions | glPostProcessorOptions | |
| bool | ignoreUserSuppliedCoordinateSystem | |
| bool | keyhole | |
| MapMetadataDefaults | mapMetadataDefaults | |
| int | maxPyramidLayerLevel | |
| int | maxRasterMemoryCacheSizeMB | |
| unsigned | mtRasterProjection | |
| unsigned | mtRasterPyramiding | |
| bool | multiPageTifs | |
| TSLTextEncoding | oldFileFormatTextEncodingOverride | |
| bool | optPyramidTileSize | |
| int | pyramidCompFactor | |
| int | pyramidFormat | |
| int | pyramidTileSize | |
| RasterOverviewDefaults | rasterOverviewDefaults | |
| int | rasterPreloadOption | |
| bool | reloadLayerSkip | |
| int | screensizeX | |
| int | screensizeY | |
| int | splitRastersThreshold | |
| bool | subdirLayers | |
| bool | terrainDatabaseDataTypeEnable | |
| bool | thumbnailRasters | |
| bool | useLowFragmentHeap | |
| int | vectorCacheMemorySizeMb | |
| int | vectorFilterFilePageThreshold | |
| int | vectorFilterPageSize | |
| WMSConfigurationDefaults | wmsConfigurationDefaults | |
| using envitia::MapLinkProject::bounds_t = bounds<double, interval_type::closed, interval_type::closed> |
| using envitia::MapLinkProject::interval_t = interval<double, interval_type::closed, interval_type::closed> |
| envitia::MapLinkProject::MapLinkProject | ( | ) |
Construct a project with the default environment and configuration.
| envitia::MapLinkProject::MapLinkProject | ( | std::filesystem::path | maplHome, |
| std::filesystem::path | userIni ) |
Construct a project with the specified MapLink home and user configuration paths.
| maplHome | Path to the MapLink installation. |
| userIni | Path to the user configuration file. |
| envitia::MapLinkProject::~MapLinkProject | ( | ) |
Release resources held by the project.
| bool envitia::MapLinkProject::addData | ( | InformationTreeItem * | dataset, |
| std::filesystem::path const & | path ) |
Add a datafile to a dataset.
| dataset | Dataset to receive the datafile. |
| path | Path to the datafile. |
| std::size_t envitia::MapLinkProject::addDataToAllDatasets | ( | std::filesystem::path const & | path | ) |
Add a datafile to every dataset that accepts it.
| path | Path to the datafile. |
| const MaplEditorAnalyseInfo * envitia::MapLinkProject::analyseData | ( | const std::string & | layer, |
| const std::string & | dataset, | ||
| const std::string & | datafile, | ||
| TSLFilterErrorCode & | error, | ||
| TSLFilterAnalyseCallbackStruct * | callbacks, | ||
| unsigned long & | catalogueID, | ||
| bool | forceAnalyse, | ||
| bool | useMainCatInfo = false ) |
Analyse a datafile in the named layer and dataset.
| layer | Name of the containing layer. | |
| dataset | Name of the containing dataset. | |
| datafile | Name of the datafile to analyse. | |
| [out] | error | Receives the filter error code. |
| callbacks | Optional filter analysis callbacks. | |
| [out] | catalogueID | Receives the catalogue identifier. |
| forceAnalyse | Force analysis even when catalogue information exists. | |
| useMainCatInfo | Whether to use main catalogue information. |
| bool envitia::MapLinkProject::convertColourIndices | ( | ) |
Query whether colour indices are converted.
| void envitia::MapLinkProject::convertColourIndices | ( | bool | newval | ) |
Enable or disable conversion of colour indices.
| newval | Whether to convert colour indices. |
| bool envitia::MapLinkProject::create | ( | uint64_t | projectID = time(nullptr) | ) |
Create a new project with an optional project identifier.
| projectID | Identifier for the new project; defaults to the current time. |
| InformationTreeItem * envitia::MapLinkProject::createDataset | ( | InformationTreeItem * | layer, |
| TileFilter * | datasetType, | ||
| MaplEditorFeatureBookSection * | featureBookSection, | ||
| const std::string * | datasetName = 0 ) |
Create a dataset in a layer with the specified filter and feature-book section.
| layer | Layer to contain the new dataset. |
| datasetType | Filter used for the dataset. |
| featureBookSection | Feature-book section associated with the dataset. |
| datasetName | Optional name for the new dataset. |
| bool envitia::MapLinkProject::CreateDTED | ( | char const * | dtedName, |
| short | dtedLevel ) |
Create DTED output at the specified level.
| dtedName | Destination name for the DTED output. |
| dtedLevel | DTED output level. |
| MaplEditorFeatureBookSection * envitia::MapLinkProject::createFeatureBookSection | ( | std::string const & | name | ) |
Create a feature-book section with the given name.
| name | Name of the new section. |
| bool envitia::MapLinkProject::CreateMap | ( | std::filesystem::path const & | path, |
| std::optional< OutputMapOptions > | options = {} ) |
Create an output map containing the selected layers.
| path | Destination for the output map. |
| options | Optional version, merge and vector optimisation settings. |
| bool envitia::MapLinkProject::CreateMapAtVersion | ( | std::filesystem::path const & | path, |
| TSLMapLinkVersion | mlVersion ) |
Create an output map at a specified MapLink version.
| path | Destination for the output map. |
| mlVersion | MapLink version for the output. |
| bool envitia::MapLinkProject::CreateTerrainDatabase | ( | std::filesystem::path const & | path | ) |
Create an output terrain database at the given path.
| path | Destination of the terrain database. |
| bool envitia::MapLinkProject::datasetDropped | ( | ) | const |
Query whether a dataset was dropped from the project.
| std::string envitia::MapLinkProject::datasetFilterName | ( | InformationTreeItem * | dataset | ) |
Return the filter name used by a dataset.
| dataset | Dataset whose filter name is requested. |
| MapLinkDatasetTypeEnum envitia::MapLinkProject::DatasetType | ( | InformationTreeItem * | dataset | ) |
Query whether a dataset is vector, raster or terrain data.
| dataset | Dataset to query. |
| void envitia::MapLinkProject::deleteDataset | ( | const std::string & | layerName, |
| const std::string & | datasetName, | ||
| int | featureBookSection ) |
Remove a dataset from a named layer and feature-book section.
| layerName | Name of the containing layer. |
| datasetName | Name of the dataset to remove. |
| featureBookSection | Feature-book section associated with the dataset. |
| bool envitia::MapLinkProject::DisableDatasetInputClipping | ( | InformationTreeItem * | dataset | ) |
Disable input clipping for a dataset.
| dataset | Dataset whose clipping is disabled. |
| bool envitia::MapLinkProject::DisableGeodeticClipping | ( | InformationTreeItem * | layer | ) |
Disable geodetic clipping for a layer.
| layer | Layer whose clipping is disabled. |
| bool envitia::MapLinkProject::disableLayerTiling | ( | InformationTreeItem * | layer | ) |
Disable tiling for a layer.
| layer | Layer whose tiling is disabled. |
| bool envitia::MapLinkProject::DisableOutputClipping | ( | InformationTreeItem * | layer | ) |
Disable output clipping for a layer.
| layer | Layer whose output clipping is disabled. |
| bool envitia::MapLinkProject::enableAutomaticRasterOverviews | ( | ) |
Query whether automatic raster overviews are enabled.
| void envitia::MapLinkProject::enableAutomaticRasterOverviews | ( | bool | enable | ) |
Enable or disable automatic raster overviews.
| enable | Whether to generate raster overviews automatically. |
| InformationTreeItem * envitia::MapLinkProject::findDataset | ( | const std::string & | layer, |
| const std::string & | dataset ) |
Find a dataset by layer and dataset names.
| layer | Name of the containing layer. |
| dataset | Name of the dataset to find. |
| InformationTreeItem * envitia::MapLinkProject::findDataset | ( | const std::string & | layer_dataset | ) |
Find a dataset by its combined layer/dataset path.
| layer_dataset | Combined path identifying the dataset. |
| std::vector< InformationTreeItem * > envitia::MapLinkProject::findDatasets | ( | std::vector< std::string > const & | dataset_paths | ) |
Find the datasets at the supplied paths.
| dataset_paths | Paths identifying the datasets to find. |
| MaplEditorFeatureBookSection * envitia::MapLinkProject::findFeatureBookSection | ( | std::string const & | name | ) |
Find a feature-book section by name.
| name | Name of the section to find. |
| InformationTreeItem * envitia::MapLinkProject::findLayer | ( | const std::string & | layer | ) |
Find a layer by name in this project.
| layer | Name of the layer to find. |
| std::vector< InformationTreeItem * > envitia::MapLinkProject::findLayers | ( | std::vector< std::string > const & | layers | ) |
Find the layers named in a list.
| layers | Names of the layers to find. |
| bool envitia::MapLinkProject::generateMetadataOnMapCreation | ( | ) |
Query whether metadata is generated when creating a map.
| void envitia::MapLinkProject::generateMetadataOnMapCreation | ( | bool | newval | ) |
Enable or disable metadata generation when creating a map.
| newval | Whether to generate map metadata. |
| void envitia::MapLinkProject::getAllCatalogueInformationForDataset | ( | InformationTreeItem * | datasetNode, |
| std::list< const MaplEditorAnalyseInfo * > & | infos ) |
Collect catalogue analysis information for a dataset.
| datasetNode | Dataset whose catalogue information is requested. | |
| [out] | infos | Receives the analysis information entries. |
| std::vector< InformationTreeItem * > envitia::MapLinkProject::getAllDatasets | ( | ) |
Get the project's dataset items.
| std::vector< InformationTreeItem * > envitia::MapLinkProject::getAllLayers | ( | ) |
Get the project's layer items.
| void envitia::MapLinkProject::getCodePages | ( | const std::string & | key, |
| std::set< int > & | codePages ) |
Retrieve the code pages associated with a catalogue key.
| key | Catalogue key to query. | |
| [out] | codePages | Receives the code pages. |
| void envitia::MapLinkProject::getDatafileNames | ( | const std::string & | layer, |
| const std::string & | dataset, | ||
| std::vector< std::string > & | datafileNames ) |
Retrieve datafile names for a named layer and dataset.
| layer | Name of the containing layer. | |
| dataset | Name of the containing dataset. | |
| [out] | datafileNames | Receives the datafile names. |
| bool envitia::MapLinkProject::getDataInputExtent | ( | const std::string & | layer, |
| const std::string & | dataset, | ||
| const std::string & | data, | ||
| double * | x1, | ||
| double * | y1, | ||
| double * | x2, | ||
| double * | y2 ) |
Query a datafile's extent in input coordinate system units.
| layer | Name of the containing layer. | |
| dataset | Name of the containing dataset. | |
| data | Name of the datafile. | |
| [out] | x1 | Receives the lower X coordinate. |
| [out] | y1 | Receives the lower Y coordinate. |
| [out] | x2 | Receives the upper X coordinate. |
| [out] | y2 | Receives the upper Y coordinate. |
| std::vector< std::filesystem::path > envitia::MapLinkProject::getDataPaths | ( | InformationTreeItem * | dataset | ) |
Get the paths of datafiles in a dataset.
| dataset | Dataset whose datafile paths are requested. |
| std::optional< bounds_t > envitia::MapLinkProject::GetDatasetInputClipping | ( | InformationTreeItem * | dataset | ) |
Get a dataset's input clipping bounds, if configured.
| dataset | Dataset whose clipping bounds are requested. |
| bool envitia::MapLinkProject::getDatasetInputExtent | ( | InformationTreeItem * | dataset, |
| double * | x1, | ||
| double * | y1, | ||
| double * | x2, | ||
| double * | y2 ) |
Query a dataset's extent in input coordinate system units.
| dataset | Dataset whose extent is requested. | |
| [out] | x1 | Receives the lower X coordinate. |
| [out] | y1 | Receives the lower Y coordinate. |
| [out] | x2 | Receives the upper X coordinate. |
| [out] | y2 | Receives the upper Y coordinate. |
| void envitia::MapLinkProject::getDatasetNames | ( | const std::string & | layer, |
| std::vector< std::string > & | datasetNames ) |
Retrieve dataset names for a named layer.
| layer | Name of the containing layer. | |
| [out] | datasetNames | Receives the dataset names. |
| bool envitia::MapLinkProject::getFeatureBookSectionNames | ( | std::vector< std::string > & | sectionNames | ) |
Retrieve the names of all feature-book sections.
| [out] | sectionNames | Receives the section names. |
| bool envitia::MapLinkProject::GetGeodeticClipping | ( | InformationTreeItem * | layer, |
| interval_t & | latitude, | ||
| interval_t & | longitude ) |
Retrieve a layer's latitude and longitude clipping intervals.
| layer | Layer whose clipping intervals are requested. | |
| [out] | latitude | Receives the latitude interval. |
| [out] | longitude | Receives the longitude interval. |
| bool envitia::MapLinkProject::getLayerExtent | ( | InformationTreeItem * | layer, |
| double * | x1, | ||
| double * | y1, | ||
| double * | x2, | ||
| double * | y2 ) |
Get a layer's transformed output extent.
| layer | Layer whose extent is requested. | |
| [out] | x1 | Receives the lower X coordinate. |
| [out] | y1 | Receives the lower Y coordinate. |
| [out] | x2 | Receives the upper X coordinate. |
| [out] | y2 | Receives the upper Y coordinate. |
| void envitia::MapLinkProject::getLayerNames | ( | std::vector< std::string > & | layerNames | ) |
Retrieve the project's layer names.
| [out] | layerNames | Receives the layer names. |
| bool envitia::MapLinkProject::getMapCoordinateSystem | ( | std::string & | coordinateSystemName | ) | const |
Retrieve the name of the map's coordinate system.
| [out] | coordinateSystemName | Receives the coordinate system name. |
| long envitia::MapLinkProject::getMapCoordinateSystemID | ( | ) | const |
Retrieve the map's coordinate system identifier.
| MapInformation * envitia::MapLinkProject::getMapInformation | ( | ) |
Access the project's map information.
| void envitia::MapLinkProject::getOsMastermapLatin1 | ( | const std::string & | key, |
| std::vector< bool > & | settings ) |
Retrieve OS MasterMap Latin-1 settings for a catalogue key.
| key | Catalogue key to query. | |
| [out] | settings | Receives the Latin-1 settings. |
| bool envitia::MapLinkProject::GetOutputClipping | ( | InformationTreeItem * | layer, |
| bounds_t & | bounds ) |
Retrieve a layer's output clipping bounds.
| layer | Layer whose output clipping bounds are requested. | |
| [out] | bounds | Receives the output clipping bounds. |
| void envitia::MapLinkProject::getShpMifLatin1 | ( | const std::string & | key, |
| std::vector< bool > & | settings ) |
Retrieve Shapefile/MIF Latin-1 settings for a catalogue key.
| key | Catalogue key to query. | |
| [out] | settings | Receives the Latin-1 settings. |
| void envitia::MapLinkProject::invalidateDatasetsUsing | ( | const MaplEditorFeatureNode * | section | ) |
Invalidate datasets using a feature-book section.
| section | Feature-book section whose datasets should be invalidated. |
| bool envitia::MapLinkProject::isLayerTilingEnabled | ( | InformationTreeItem * | layer, |
| bool * | isTilingFixedNumber ) |
Query whether a layer is tiled and which tiling mode is used.
| layer | Layer to query. | |
| [out] | isTilingFixedNumber | Receives whether fixed tile counts are used. |
| void envitia::MapLinkProject::launchExternalProcessor | ( | const std::string & | processorName, |
| const std::string & | executable, | ||
| const std::vector< std::string > & | args ) |
Launch an external processor with the specified executable and arguments.
| processorName | Name identifying the processor. |
| executable | Path to the processor executable. |
| args | Arguments passed to the executable. |
| bool envitia::MapLinkProject::load | ( | std::filesystem::path | path | ) |
Load a project from disk.
| path | Path to the project file. |
| bool envitia::MapLinkProject::loadFeatureBook | ( | std::filesystem::path const & | path | ) |
Load a feature book from disk.
| path | Path to the feature book. |
| int envitia::MapLinkProject::mapLinkVersion | ( | ) | const |
Get the MapLink output version configured for this project.
| void envitia::MapLinkProject::mapLinkVersion | ( | int | ver | ) |
Set the MapLink output version configured for this project.
| ver | Output version to configure. |
| bool envitia::MapLinkProject::MapTMCperMU | ( | short | tmcPerMU, |
| int | tmcBorderPercentage ) |
Set the map's TMC-per-MU scale and border percentage.
| tmcPerMU | TMC units per map unit. |
| tmcBorderPercentage | Border percentage to apply. |
| bool envitia::MapLinkProject::MUToTMCTransform | ( | bool * | automatic, |
| double * | MUShiftX, | ||
| double * | MUShiftY, | ||
| long * | TMCPerMU, | ||
| int * | tmcBorderPercentage ) |
Retrieve the map-unit to TMC transform settings.
| [out] | automatic | Receives whether automatic calculation is enabled. |
| [out] | MUShiftX | Receives the horizontal map-unit shift. |
| [out] | MUShiftY | Receives the vertical map-unit shift. |
| [out] | TMCPerMU | Receives TMC units per map unit. |
| [out] | tmcBorderPercentage | Receives the border percentage. |
| bool envitia::MapLinkProject::MUToTMCTransform | ( | bool | automatic, |
| double | MUShiftX, | ||
| double | MUShiftY, | ||
| long | TMCPerMU, | ||
| int | tmcBorderPercentage ) |
Configure the map-unit to TMC transform.
| automatic | Whether to calculate the transform automatically. |
| MUShiftX | Horizontal map-unit shift. |
| MUShiftY | Vertical map-unit shift. |
| TMCPerMU | TMC units per map unit. |
| tmcBorderPercentage | Border percentage to apply. |
| InformationTreeItem * envitia::MapLinkProject::newLayer | ( | std::string const & | reqdLayerName, |
| LayerInformation * | layerInfo = 0 ) |
Add a new layer with the requested name.
| reqdLayerName | Requested name for the new layer. |
| layerInfo | Optional initial layer information. |
| bool envitia::MapLinkProject::queryLayerTilingFixedNumber | ( | InformationTreeItem * | layer, |
| short * | numTilesAcross, | ||
| short * | numTilesDown ) |
Retrieve a layer's fixed tile counts.
| layer | Layer to query. | |
| [out] | numTilesAcross | Receives the horizontal tile count. |
| [out] | numTilesDown | Receives the vertical tile count. |
| bool envitia::MapLinkProject::queryLayerTilingFixedSize | ( | InformationTreeItem * | layer, |
| double * | tileWidth, | ||
| double * | tileHeight ) |
Retrieve a layer's fixed tile size.
| layer | Layer to query. | |
| [out] | tileWidth | Receives the tile width. |
| [out] | tileHeight | Receives the tile height. |
| std::string envitia::MapLinkProject::rasterOverviewBaseName | ( | ) |
Get the base name of generated raster overviews.
| void envitia::MapLinkProject::rasterOverviewBaseName | ( | const std::string & | name | ) |
Set the base name of generated raster overviews.
| name | Base name to use for generated raster overviews. |
| double envitia::MapLinkProject::rasterOverviewFixedResolution | ( | ) |
Get the raster overview fixed resolution.
| void envitia::MapLinkProject::rasterOverviewFixedResolution | ( | double | res | ) |
Set the raster overview fixed resolution.
| res | Fixed resolution setting for raster overviews. |
| double envitia::MapLinkProject::rasterOverviewResolutionStep | ( | ) |
Get the raster overview resolution step percentage.
| void envitia::MapLinkProject::rasterOverviewResolutionStep | ( | double | stepPercent | ) |
Set the raster overview resolution step as a percentage.
| stepPercent | Percentage step between overview resolutions. |
| void envitia::MapLinkProject::recatalogueAllFilesInProject | ( | InformationTreeItem * | parent | ) |
Recatalogue the files beneath the specified project item.
| parent | Root item of the subtree to recatalogue. |
| bool envitia::MapLinkProject::save | ( | std::filesystem::path | path | ) |
Save the project to disk.
| path | Destination path for the project file. |
| bool envitia::MapLinkProject::SelectAllLayersForMap | ( | ) |
Select every layer for the next output map.
| bool envitia::MapLinkProject::SelectLayersForMap | ( | const std::vector< std::string > & | layerNames, |
| const char * | commandStr = 0 ) |
Select the named layers for the next output map.
| layerNames | Names of layers to include. |
| commandStr | Optional selection command. |
| bool envitia::MapLinkProject::SetAllDatasetsInputClipping | ( | bounds_t | bounds | ) |
Set input clipping bounds for all datasets in the project.
| bounds | Clipping bounds in input coordinates. |
| bool envitia::MapLinkProject::setDatasetCoordinateSystem | ( | InformationTreeItem * | dataset, |
| const std::string & | coordinateSystemName ) |
Set a dataset's coordinate system by name.
| dataset | Dataset whose coordinate system is changed. |
| coordinateSystemName | Name of the coordinate system to set. |
| bool envitia::MapLinkProject::SetDatasetInputClipping | ( | InformationTreeItem * | dataset, |
| bounds_t | bounds ) |
Set a dataset's input clipping bounds.
| dataset | Dataset whose input is clipped. |
| bounds | Clipping bounds in input coordinates. |
| bool envitia::MapLinkProject::SetGeodeticClipping | ( | InformationTreeItem * | layer, |
| interval_t | latitude, | ||
| interval_t | longitude ) |
Set a layer's latitude and longitude clipping intervals.
| layer | Layer whose input is clipped. |
| latitude | Latitude interval. |
| longitude | Longitude interval. |
| bool envitia::MapLinkProject::setLayerTilingFixedNumber | ( | InformationTreeItem * | layer, |
| short | numTilesAcross, | ||
| short | numTilesDown ) |
Tile a layer using a fixed number of tiles across and down.
| layer | Layer whose tiling is configured. |
| numTilesAcross | Number of tiles horizontally. |
| numTilesDown | Number of tiles vertically. |
| bool envitia::MapLinkProject::setLayerTilingFixedSize | ( | InformationTreeItem * | layer, |
| double | tileWidth, | ||
| double | tileHeight ) |
Tile a layer using a fixed tile size in output coordinate system units.
| layer | Layer whose tiling is configured. |
| tileWidth | Width of each tile. |
| tileHeight | Height of each tile. |
| bool envitia::MapLinkProject::setMapCoordinateSystem | ( | const std::string & | coordinateSystemName | ) |
Set the map's coordinate system by name.
| coordinateSystemName | Name of the coordinate system to set. |