How do I use OMScalingRaster in OpenMap

38 views
Skip to first unread message

Geoffrey Koo

unread,
Sep 8, 2021, 10:53:29 PM9/8/21
to openmap-users
How do I use OMScalingRaster in OpenMap? I need some OMScalingRaster Examples  or tutorials.

Don Dietrick

unread,
Sep 10, 2021, 2:05:55 PM9/10/21
to Geoffrey Koo, openmap-users
Hi Geoffery,

The OMScalingRaster is good for when the projection type of an image matches the projection type of the map, and you have the upper left and lower right lat/lon coordinates of the image. You create the OMScalingRaster with those coordinates and the image information, and then use it like any other OMGraphic.

You can use an IDE to find OpenMap classes that use them, which include the DTEDLayer (DTEDFrameSubframe), the RPFLayer (RpfSubframe), the ASRPLayer (ASRPDirectory), and the CSVTiledImageLayer. I’ll add an entry into the DemoLayer that uses one, I was kind of surprised to find out that it doesn’t use one directly, although it does use an OMScalingIcon, which is a subclass of OMScalingRaster.

For now, I’d take a look at the CSVTiledImageLayer, that’s the most straightforward example of how to use it.

The OMWarpingImage is a raster OMGraphic that will re-project images into the current projection of the map window. You have to set up the GeoCoordTransformation that will let convert the location of the image pixels back into lat/lon space for that to work. There are some pre-defined GeoCoordTransformation classes in the com.bbn.openmap.proj.coords package.

Hope this helps,

Don

> On Sep 8, 2021, at 10:53 PM, Geoffrey Koo <wxc...@163.com> wrote:
>
> How do I use OMScalingRaster in OpenMap? I need some OMScalingRaster Examples or tutorials.
>
> --
> You received this message because you are subscribed to the Google Groups "openmap-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openmap-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/openmap-users/afe68a62-1162-4125-81f7-8fde3e6d7569n%40googlegroups.com.

Message has been deleted

Don Dietrick

unread,
Sep 23, 2021, 9:26:56 PM9/23/21
to Geoffrey Koo, openmap-users
Hi Geoffery,

My bad, in OpenMap 5.1.15, that OMScalingRaster example is in the com.bbn.openmap.plugin.CSVTiledImagePlugIn.

I was working off the next version of OpenMap, 6.0, which removes the plugins because I simplified the codebase and converted them to Layers.

Hope that helps,

Don

> On Sep 15, 2021, at 1:55 AM, Geoffrey Koo <wxc...@163.com> wrote:
>
> Hi Don,I could not find out which packgae the CSVTiledImageLayer in ?
> To view this discussion on the web visit https://groups.google.com/d/msgid/openmap-users/90a4e239-c81f-45d6-9a87-273418e9ac08n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages