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.