<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">what about making a script or program in addon for doing these operation in single click or command<br><div> </div>--<br> Rashad<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Roger Miller <roger@spinn.net><br><b><span style="font-weight: bold;">To:</span></b> Mohammed Rashad <rashadkm@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> grass-dev@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, June 7, 2010 6:51:08 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [GRASS-dev] r.in.pdf<br></font><br>
I don't know enough about the pdf format to give you a comprehensive<br>answer, but I can tell you what I've done in the past. You will need<br>more information than is inherent in the pdf; you need to know the<br>projection of the map and you need the information to fit the map to its<br>location.<br><br>1) use the utility pdftoppm to convert the pdf to a ppm file. pdftoppm<br>is not a GRASS utility, but is commonly included in linux distributions<br>and is probably available for other systems as well.<br><br>2) convert the ppm file to a jpeg or tiff file. This can be done with<br>the common utilities ppmtojpeg or cjpeg, neither of which is part of<br>grass.<br><br>3) construct a world file for the jpeg or tiff file. You can find<br>format information for the world file in Wikipedia.<br><br>4) use <a target="_blank" href="http://r.in.gd">r.in</a>.gdal to import the file to a location that is correct for<br>the map's
projection.<br><br>Usually the difficult part in the process is getting the geographic<br>information necessary to fill out the world file. The process can be<br>easily scripted, but it uses filters (pdftoppm and e.g. ppmtojpeg) that<br>don't come with GRASS.<br><br><br>Roger<br> <br>On Mon, 2010-06-07 at 02:21 -0700, Mohammed Rashad wrote:<br>> I have a map in pdf format. i want to import the map in grass.<br>> reading pdf map is available in ArcGIS. so I thought of developing and<br>> contributing a module to GRASS GIS (<a target="_blank" href="http://r.in">r.in</a>.pdf) to read maps in pdf<br>> formats directly.I dont know where to start. will anyone please<br>> provide me any information or links related to importing raster maps<br>> into grass gis.how a map is processed when we perform r.in.* module on<br>> the map?. How files are like cellhd,fcell etc are created in GRASS?<br>> <br>> any help,
suggestion or comments are really welcome<br>> <br>> -- <br>> Rashad<br>> <br>> <br>> <br>> _______________________________________________<br>> grass-dev mailing list<br>> <a ymailto="mailto:grass-dev@lists.osgeo.org" href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br><span>> <a target="_blank" href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></span><br><br></div></div>
</div><br>
</body></html>