Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the ShapeValueMap class.
        /// </summary>
        /// <param name="shapeFilePath">Shape file path.</param>
        /// <param name="regionHvmapPath">Region map file path.</param>
        /// <param name="shapeKey">Shape key used.</param>
        public ShapeValueMap(string shapeFilePath, string regionHvmapPath, string shapeKey)
        {
            if (string.IsNullOrWhiteSpace(shapeFilePath))
            {
                throw new ArgumentNullException("shapeFilePath");
            }

            if (string.IsNullOrWhiteSpace(regionHvmapPath))
            {
                throw new ArgumentNullException("regionHvmapPath");
            }

            this.validator = new RegionMask(shapeFilePath, regionHvmapPath, shapeKey);
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the ShapeValueMap class.
        /// </summary>
        /// <param name="shapeFilePath">Shape file path.</param>
        /// <param name="regionHvmapPath">Region map file path.</param>
        /// <param name="shapeKey">Shape key used.</param>
        public ShapeValueMap(string shapeFilePath, string regionHvmapPath, string shapeKey)
        {
            if (string.IsNullOrWhiteSpace(shapeFilePath))
            {
                throw new ArgumentNullException("shapeFilePath");
            }

            if (string.IsNullOrWhiteSpace(regionHvmapPath))
            {
                throw new ArgumentNullException("regionHvmapPath");
            }

            this.validator = new RegionMask(shapeFilePath, regionHvmapPath, shapeKey);
        }