Re: ImageMap

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marcin Grzębski (mgrzebski_at_taxussi.no.com.spam.pl)
Date: 09/06/04


Date: Mon, 06 Sep 2004 12:25:26 +0200

Hi

The simpliest way is:
- Identify these regions by their centroids (center of region),
and find the neares one.

Other ways:
- Define a rectangle (rectangles) for each region, this rect
will represent range of x,y for a region.
- Raster region recognition - keep each region as its binary
raster map (e.g. region-white, black-else), scan those maps
to find the choosen one.
- 2D vector region recognition - keep each region as polygon,
and use (advanced) search to find the choosen one.

Look for GIS or 2D (3D) algorithms on web for more info.

Regards

Marcin

> Hi to all,
>
> I have a Spain Map as webcontrol. This webcontrol its a ImageButton.
>
> How could i identify in wich region (area) the user clicks?
>
> I only know how obtain the x and y coordinates where the user click. But i
> dont know how identify the area.
>
> Any help would be appreciated.
> Thx.



Relevant Pages

  • Re: Using JViewport for an overview+detail map
    ... > thumbnail version of my map, and a rectangle that you can move around ... > JViewport seems to be the way to go, ... resolution in separate pane. ...
    (comp.lang.java.gui)
  • Re: Display problem on Garmin Topo GB v.2
    ... The display on the Topo GB map has become less useful than it might ... inner rectangle, ... Don't tell anyone I told you, but you can open the .img files which comprise TopoGB using gpsmapedit, save them as .mp files, and do what the heck you like with them (although printing is still a PITA). ...
    (uk.rec.walking)
  • Re: Display problem on Garmin Topo GB v.2
    ... The display on the Topo GB map has become less useful than it might ... inner rectangle, ... advice from experienced users would be welcome. ...
    (uk.rec.walking)
  • Re: conformal map from a square onto a rectangle
    ... rectangle(which is not a square surely), ... conformal map taking the square to the rectangle and vertices to ... you'd get a conformal map of the disk to itself taking s_j to ...
    (sci.math)