Giter Site home page Giter Site logo

mapview's Introduction

DeMap

Version Author License
IDE Platform

基于微软基础类库(Microsoft Foundation Classes)开发的地图显示软件
计算机地图制图实习作业

Description

读取地图数据,进行坐标变换、建立格网索引并显示地图,提供基本的缩放、移动、点击查询和按分类编号查询功能。 在 DrawDemo 的基础上开发,复用了部分数据结构和方法并进行了一些优化和调整。

Fnctions

  • 读取数据 读取 .usr 文件中的数据并生成一个要素列表。
  • 坐标变换 输入三个控制点的规定坐标,对全部要素的坐标进行仿射变换。
  • 显示地图 将地图显示在文档视图中,每类要素(如河流湖泊、居民地)以不同的样式显示。
  • 建立索引和查询 按指定的分辨率建立规则格网索引,在一个二维数组中存储各个格网中涉及的要素列表。用户可在视图中点击查询要素。

Requirements

Environment

本程序在 Visual Studio Community 2017 上开发,在 Windows 10 上测试运行正常。

File

Filename Description
*.usr 地图数据文件,详细格式见下

数据分为点、线(折线)和面(多边形)三种,文件中每行为一对数字,具体格式如下:

...
序号, 0
分类编码, 0
[坐标对列表]
-666666.0,-666666.0
...
-999999.0,-999999.0

其中 -666666.0,-666666.0 标志坐标对列表结束,-999999.0,-999999.0 标志文件结束。

支持的分类代码如下:

Code Type Name
30000 控制点
10000 图廓点
10001 线 铁路
10003 线 汽渡虚线
10004 线 主要道路
20001 码头
20002 铁路中转站
20003 河流、湖泊
20004 居民地

License

本软件基于 MIT 协议

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.