MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:Feature Identifier

From MapWindow GIS

Jump to: navigation, search

Simple Feature Identifier

Here are the basic steps for creating a simple feature identifier using the MapWinGIS ActiveX Control.

1) Set the SendSelectBoxFinal property = true (so you get these events) http://www.mapwindow.org/wiki/index.php/MapWinGIS:AxMap_SendSelectBoxFinal

2) Use the SelectBoxFinal event to get the XY coordinates where the user clicked. http://www.mapwindow.org/wiki/index.php/MapWinGIS:AxMap_SelectBoxFinal

3) Convert the XY coordinates to "real" map coordinates using PixelToProj http://www.mapwindow.org/wiki/index.php/MapWinGIS:AxMap_PixelToProj

4) Now use the real map coordinates in the SelectShapes function to do a selection within your shapefile: http://www.mapwindow.org/wiki/index.php/MapWinGIS:Shapefile_SelectShapes

5) Now get the attribute table entries for your shapefile using CellValue: http://www.mapwindow.org/wiki/index.php/MapWinGIS:Shapefile_CellValue

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGIS:Feature_Identifier"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: September 04 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links