<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Even,<br><br>>But as CreateCopy() is already implemented, you can for example create a<br>>in-memory raster (see the MEM driver) and CreateCopy() it into a geospatial PDF.<br><div><br></div><div>Awesome!  I did not know of the MEM driver.  Looking at the specs from http://www.gdal.org/frmt_mem.html  it kind of reminds me of</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">GDAL virtual format (.vrt) as I think it uses the MEM driver under the hood.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new
 york,times,serif; background-color: transparent; font-style: normal;">So, essentially you are telling me I can create a MEM object and store my image band information to the recently created GDALDatasetH object (I use the C API) and</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">to set PDF metadata via GDALSetMetadata().  Would that be the direction I could go to use CreateCopy() for a valid Geospatial PDF file?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I do have a few questions on PDF creation fields:</div><div style="color: rgb(0, 0, 0); font-size: 16px;
 font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">1. If a neatline is not provided, what gets populated in the neatline?<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">2. For EXTRA_CONTENT_STREAM and EXTRA_IMAGES, are we limited to one entry?  Is it each time we call GDALSetMetadata() is will append another</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">entry request?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style:
 normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Correct me if I am wrong, but EXTRA_CONTENT_STREAM is associated by EXTRA_IMAGES where EXTRA_IMAGES tells the PDF file where on the page to</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">display the EXTRA_CONTENT_STREAM data?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">My concern is how to add multiple entries of EXTRA_CONTENT_STREAM?   I know the content stream is described by its information and EXTRA_IMAGES and EXTRA_CONTENT_LAYER_NAME.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif;
 background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I hope you understand my thoughts.  <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Thanks for the response,<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Robert<br></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div> 
 <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Even Rouault <even.rouault@mines-paris.org><br> <b><span style="font-weight: bold;">To:</span></b> Robert Zermeno <refriguy68@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "gdal-dev@lists.osgeo.org" <gdal-dev@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, November 21, 2012 4:11 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [gdal-dev] GeoPDF Writing support using Create()?<br> </font> </div> <br>
Selon Robert Zermeno <<a ymailto="mailto:refriguy68@yahoo.com" href="mailto:refriguy68@yahoo.com">refriguy68@yahoo.com</a>>:<br><br>> GDAL Community (Especially Even Rouault),<br>><br>> It has been around 1 1/2 years the last time I had used GDAL and noticed GDAL<br>> now has capabilities of generating Geospatial PDF files from existing<br>> GDALDataset objects.  How far in the future do you see GDAL having<br>> capabilities of using Create() to generate your own Geospaital PDF?<br>><br>> I would like to have the freedom of providing GDAL all the required, and<br>> optional, information needed to generate a Geospatial PDF file from a given<br>> image buffer my application possesses.  I am not sure if any other GDAL<br>> community members concur with my desire.<br>><br>> What would be the effort level to supply Create() for Geospatial PDF files?<br><br>Implementing Create(), with the capability of
 random writing (for example like<br>being needed by gdalwarp or nearblack), is not doable due to the nature of PDF.<br>But as CreateCopy() is already implemented, you can for example create a<br>in-memory raster (see the MEM driver) and CreateCopy() it into a geospatial PDF.<br><br>><br>> Robert<br><br><br><br><br><br><br><br> </div> </div>  </div></body></html>