From: Michael B. <mic...@gm...> - 2010-05-29 03:06:28
|
Hi Spencer, > What about this idea: Let's say you have a regular .jpg file that you > want to insert as it's own MapLayer object, but obviously there is no > georeferencing data. Once it is detected as a .jpg file and an > 'UnknownFormat' object, I would then automatically make it into a World > File, based on the current CRS of the MapPane, by creating a .jgw file and, > by default, just dropping it on the center of the current view of the > JMapPane (some sort of auto-georeferencing by default)? So it would be its > own MapLayer Object on the Map Context. Once it is it's own MapLayer > object, I would then extend JMapPane so I can resize, crop, or move the > image around within its Layer and having some sort of save operation. Yep, that all sounds do-able though possible with quite a bit of coding involved. If you go down that track (and you don't want to wait for the MapContext / MapLayer rewrite that I mentioned earlier) let me know if you need any help on the map pane side of things. Michael |