Hello Ivan, Raster images and associated geo-referencing parameters can be loaded using the gt-image module as described in this user guide page:
http://docs.geotools.org/latest/userguide/library/coverage/image.html I don't think bmp files are supported, although I haven't tested this and someone else here can correct me if I'm wrong. However, you could convert your bmp file to gif or png and edit your parameters into the "world file" format. The GeoTools Image tutorial has some code for loading an image into a MapContent and creating a simple display Style, which should help you to get started: http://docs.geotools.org/latest/userguide/tutorial/raster/image.html Michael On 29 August 2012 14:05, Ivan Petrov <[email protected]> wrote: > Hello geotools users! > I have .bmp file contains map. It already been colibrated with with MapInfo, > and i have .tab file containing coibration info. > > .tab file > > !table > !version 300 > !charset WindowsCyrillic > Definition Table > File "10.bmp" > Type "RASTER" > (2332820.62,607247.94) (0,5919) Label "Pt 1", > (2335318.18,607316.63) (5919,5919) Label "Pt 2", > (2335249.49,609814.19) (5919,0) Label "Pt 3", > (2332751.93,609745.51) (0,0) Label "Pt 4" > CoordSys NonEarth Units "m" > Units "m" > > How can i add raster to MapContent, and add another vector layer ? > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/How-to-add-raster-to-MapContent-tp4998467.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
