PDF Grid/Mapping Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vnwebworld
Forum Newbie
Posts: 9
Joined: Thu Mar 09, 2006 8:07 am

PDF Grid/Mapping Question

Post by vnwebworld »

Hey all,

I basically want to make a grid system of a map image. Like columns and rows, so City XX is at A5 of B9.

The only solution I can think of is to take an image of a map, turn it into a PDF file and then use the PDFLib with PHP to make grid lines on the PDF file. Then using the PDFLib coordinate system, I can pick out locations on the map. Bad idea?

I've seen the grid system done before on a PDF but couldn't find any tutorials on it, can anyone point the right direction?

So basically in the end, I want to be able to retrieve city information like Shanghai, City - Grid D-9. Then it will open up the PDF for the user to see a map and have a STAR located at D-9

Any help is appreciated

Thanks,
Lester
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I'd use an image of the map, GD2 to draw grid lines on it, and an html image map to pick locations. Then GD2 to draw a star whereever a star is meant to be draw.
Post Reply