El mié, 27-08-2008 a las 00:30 -0700, Dane Springmeyer escribió:
> Felipe,
> 
> Pasting some of the code you are currently working with might help me  
> and other mapnik users better understand your problem.
> 
> It seems you've got a graphic symbol that represents a dynamically  
> located point placed by a user who has interacted with an OpenLayers  
> Map. You need to figure out how to plot that symbol on your mapnik OSM  
> tiles and then re-render them for printable output.
> 
> Perhaps you can use OpenLayers to get the lon/lat of your screen  
> coordinate graphic location then post that feature to Featureserver  
> (or just a python script using psycopg2 to save the feature to  
> postgis), to save that coordinate to a shapefile or postgis  
> datasource. Then you can kick off a python script to generate a large  
> single tile based on your OSM data and the FeatureServer datasource  
> given the BBOX of the current OpenLayers map view. In your python  
> script you would create a Shield or PointSymbolizer and append it to  
> your map layers before rendering to symbolize your marker graphic.
> 
Thanks Dane, I folllowed this clue and I get a succesful result, still
is far from be ideal, because the concurrency it's a trouble using this
method, because one user just needs to see one location, so if two
request the same area but for different points at the same time the will
see two points, so I will have to think in a work around about this
issue

> 
> Hope that helps,
> 
> Dane
> 
> 
> 
> 
> On Aug 26, 2008, at 8:38 AM, Felipe Reyes wrote:
> 
> > Hi everyone,
> >
> > I'm working with OpenLayers for a web frontend, and the OSM data like
> > backend (using mod_tile for apache), but the user needs to save an  
> > image
> > of the map that is seeing with the marker of the position where a mail
> > was delivered, currently I have a python script that generate the  
> > image,
> > but still I cannot put the marker in the right place, I have the  
> > coords,
> > but I don't know how to translate them to pixels units or use the  
> > mapnik
> > api to put a custom image in a given coord and then render to image
> >
> > can somebody give me clue?, I been looking for docs, but there is a
> > lack, if I get the goal of do this I promise that I will write a  
> > little
> > doc explaining how to do it.
> >
> > thanks in advance y thanks for giving us mapnik because it's so cool
> > -- 
> > Felipe Reyes A. <[EMAIL PROTECTED]>
> > Open Fountain
> > Av. Santa María #2670, Oficina 501
> > Providencia, Santiago de Chile
> >
> > _______________________________________________
> > Mapnik-users mailing list
> > [email protected]
> > https://lists.berlios.de/mailman/listinfo/mapnik-users
> 
-- 
Felipe Reyes A. <[EMAIL PROTECTED]>
Open Fountain
Av. Santa María #2670, Oficina 501
Providencia, Santiago de Chile

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to