[mapserver-users] Number of registered users and developers on the forum
Hi, Is there a way I could know how many active users and developers are registered to this forum. Will appreciate for the response. Cheers Ali. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Number-of-registered-users-and-developers-on-the-forum-tp5064862p5064862.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: OSM Renderer using mapfile. A Projection Problem?
Hi Thomas, Thanks. Its just: http://localhost I have my index.html file under c:\ms4w\Apache\htdocs cheers, Ali. --- On Thu, 3/4/10, thomas bonfort [via OSGeo.org] ml-node+4674463-1131212596-288...@n2.nabble.com wrote: From: thomas bonfort [via OSGeo.org] ml-node+4674463-1131212596-288...@n2.nabble.com Subject: Re: OSM Renderer using mapfile. A Projection Problem? To: Ali_ ali_informat...@yahoo.com Date: Thursday, March 4, 2010, 7:13 PM what's the url that is requested for the left image ? On Tue, Mar 2, 2010 at 15:17, Ali_ [hidden email] wrote: Hi, I have used the tutorial to render OSM from the url: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData The problem is the output image I get seemed to be in the wrong projection. Please find the link below to see the image. http://img7.imageshack.us/img7/8279/imagelw.png On the left, It's been generated using a tutorial and on the right it's an OSM. There is definitely wrong with the map on the left. Is it a projection problem? All the layers in mapfile are using SRID=4326 and the output projection in my openlayers (html page) is google projection which is 900913. The database is PostGIS and the data is imported using osm2pgsql using projection 4326. Any ideas, suggestions will be greatly appreciated. thanks, Ali.. -- View this message in context: http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4661186.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users View message @ http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4674463.html To unsubscribe from OSM Renderer using mapfile. A Projection Problem?, click here. -- View this message in context: http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4676351.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OSM Renderer using mapfile. A Projection Problem?
Hi, I have used the tutorial to render OSM from the url: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData The problem is the output image I get seemed to be in the wrong projection. Please find the link below to see the image. http://img7.imageshack.us/img7/8279/imagelw.png On the left, It's been generated using a tutorial and on the right it's an OSM. There is definitely wrong with the map on the left. Is it a projection problem? All the layers in mapfile are using SRID=4326 and the output projection in my openlayers (html page) is google projection which is 900913. The database is PostGIS and the data is imported using osm2pgsql using projection 4326. Any ideas, suggestions will be greatly appreciated. thanks, Ali.. -- View this message in context: http://n2.nabble.com/OSM-Renderer-using-mapfile-A-Projection-Problem-tp4661186p4661186.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OSM data rendering with Mapserver and Openlayers
Hi guys, Thanks for all those who responded to my previous queries. I am using the same tutorial http://trac.osgeo.org/mapserver/wiki/RenderingOsmData I managed to see the proper image when I run shp2img utility and it looks good. But when I follow the code given for Openlayers to display the same image in my web page. I am just getting an incomplete map only showing some linear features. It seems different than one generated using shp2img utility. Does anybody has any idea what could be wrong? Response will be appreciated. Cheers Ali. -- View this message in context: http://n2.nabble.com/OSM-data-rendering-with-Mapserver-and-Openlayers-tp3931883p3931883.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OSM data rendering using Mapserver
Stephen Woodbridge wrote: Ali_ wrote: Hi Stephen, Thanks for your response. I am grateful to you. Cygwin worked. I am getting this error loadLabel(): Unknown identifier. Parsing error near (MAXSCALEDENOM):(line 48) Is that something to do with the Mapserver versions? Yes this sounds like you are on a very old version of mapserver. You need to be on at least Mapserver 5.4.2 to use that mapfile. What version are you using? /path/to/mapserv.exe -v Should tell you. Thanks a lot. That worked. I downloaded the latest version of Mapserver. Yet another... I have included the openlayers page from the same tutorial and unable to see the map. The error is 'msProcessProjection() prjection library error. no such file or directory found'. The interesting thing is I have generated the osm.png image using shp2img utility and I can see the map as an image using the same configurations. I have checked all the paths and the projection tag in the osm mapfile looks like this PROJECTION +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs END I have also added this line in epsg file: 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs From my HTML page, the openlayers code looks like this: projection:new OpenLayers.Projection(EPSG:900913), Any idea where things are going wrong? -Steve Ali. Stephen Woodbridge wrote: Ali_ wrote: Hi, I am new to MapServer and wanted to render OSM data through that. I followed the tutorial http://trac.osgeo.org/mapserver/wiki/RenderingOsmData but unfortunately I am unable to run it at the final stage. I am on the last step where I use 'make' command to compile osm.map file as an output but something seems wrong. I am getting 3 syntax errors in makefile. Now I am using Borland C++ compiler make utility. Before that I tried with TC compiler make utility. I was getting 5 syntax errors before but now its only 3. So I have some points in my mind which if you could clarify. cpp is the GNU C preprocessor, you might have better luck if you install cygwin on Windows. 1) The other map files such as landuse, buildings and highways have not MAP keyword at the start of each file. Though I tried with this but still couldn't get it working. The map file is broken into logical pieces and uses lots of variables that get resolved and replaces by the cpp. You can not use them as they are. When cpp runs all the pieces get assembled into the usable mapfile. 2) The osm_line and osm_road table have not been assigned the primary key while conversion using osm2pgsql and where we query in the map file we use USING UNIQUE osm_id which may be incompatible and may be make is unable to give the result. This probably will not impact mapserver running unless you are guerying the features. 3) The first line in the makefile CPP=cpp tells about the compiler we are using. Could you tell me which exactly is the compiler I should use. This is the GNU C preprocessor. I shall be grateful if I could get some comments from you. Thanking you in anticipation. Cheers, Ali Hope this helps, -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/OSM-data-rendering-using-Mapserver-tp3911799p3924550.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] OSM data rendering using Mapserver
Thanks David for your response. Yeah I was using old version. The problem is sorted out. Fawcett, David wrote: Probably. MAXSCALEDENOM was introduced around version 5.0. Are you using an old version of MapServer? What version are you using? What does your map file look like? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ali_ Sent: Thursday, October 29, 2009 5:34 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] OSM data rendering using Mapserver Hi Stephen, Thanks for your response. I am grateful to you. Cygwin worked. I am getting this error loadLabel(): Unknown identifier. Parsing error near (MAXSCALEDENOM):(line 48) Is that something to do with the Mapserver versions? Ali. Stephen Woodbridge wrote: Ali_ wrote: Hi, I am new to MapServer and wanted to render OSM data through that. I followed the tutorial http://trac.osgeo.org/mapserver/wiki/RenderingOsmData but unfortunately I am unable to run it at the final stage. I am on the last step where I use 'make' command to compile osm.map file as an output but something seems wrong. I am getting 3 syntax errors in makefile. Now I am using Borland C++ compiler make utility. Before that I tried with TC compiler make utility. I was getting 5 syntax errors before but now its only 3. So I have some points in my mind which if you could clarify. cpp is the GNU C preprocessor, you might have better luck if you install cygwin on Windows. 1) The other map files such as landuse, buildings and highways have not MAP keyword at the start of each file. Though I tried with this but still couldn't get it working. The map file is broken into logical pieces and uses lots of variables that get resolved and replaces by the cpp. You can not use them as they are. When cpp runs all the pieces get assembled into the usable mapfile. 2) The osm_line and osm_road table have not been assigned the primary key while conversion using osm2pgsql and where we query in the map file we use USING UNIQUE osm_id which may be incompatible and may be make is unable to give the result. This probably will not impact mapserver running unless you are guerying the features. 3) The first line in the makefile CPP=cpp tells about the compiler we are using. Could you tell me which exactly is the compiler I should use. This is the GNU C preprocessor. I shall be grateful if I could get some comments from you. Thanking you in anticipation. Cheers, Ali Hope this helps, -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/OSM-data-rendering-using-Mapserver-tp3911799p391596 5.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/OSM-data-rendering-using-Mapserver-tp3911799p3924554.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] OSM data rendering using Mapserver
Hi, I am new to MapServer and wanted to render OSM data through that. I followed the tutorial http://trac.osgeo.org/mapserver/wiki/RenderingOsmData but unfortunately I am unable to run it at the final stage. I am on the last step where I use 'make' command to compile osm.map file as an output but something seems wrong. I am getting 3 syntax errors in makefile. Now I am using Borland C++ compiler make utility. Before that I tried with TC compiler make utility. I was getting 5 syntax errors before but now its only 3. So I have some points in my mind which if you could clarify. 1) The other map files such as landuse, buildings and highways have not MAP keyword at the start of each file. Though I tried with this but still couldn't get it working. 2) The osm_line and osm_road table have not been assigned the primary key while conversion using osm2pgsql and where we query in the map file we use USING UNIQUE osm_id which may be incompatible and may be make is unable to give the result. 3) The first line in the makefile CPP=cpp tells about the compiler we are using. Could you tell me which exactly is the compiler I should use. I shall be grateful if I could get some comments from you. Thanking you in anticipation. Cheers, Ali -- View this message in context: http://n2.nabble.com/OSM-data-rendering-using-Mapserver-tp3911799p3911799.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OSM data rendering using Mapserver
Thanks Rahkonen, I'll see what's wrong with this makefile then. It's still giving me command syntax error in line 7, 9 and 12 of makefile downloaded from http://code.google.com/p/mapserver-utils/source/browse/trunk/ Ali. Rahkonen Jukka wrote: Hi Ali_ wrote: 2) The osm_line and osm_road table have not been assigned the primary key while conversion using osm2pgsql and where we query in the map file we use USING UNIQUE osm_id which may be incompatible and may be make is unable to give the result. At least the osm2pgsql version I am using is creating dublicate osm_ids on these layers because relations which are converted to lines are getting the osm_id of a relation and there can also be same osm_id used by an OSM line feature. Mapfile works still even it if USING UNIQUE refers to a non unique field. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/OSM-data-rendering-using-Mapserver-tp3911799p3912145.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OSM data rendering using Mapserver
Hi Stephen, Thanks for your response. I am grateful to you. Cygwin worked. I am getting this error loadLabel(): Unknown identifier. Parsing error near (MAXSCALEDENOM):(line 48) Is that something to do with the Mapserver versions? Ali. Stephen Woodbridge wrote: Ali_ wrote: Hi, I am new to MapServer and wanted to render OSM data through that. I followed the tutorial http://trac.osgeo.org/mapserver/wiki/RenderingOsmData but unfortunately I am unable to run it at the final stage. I am on the last step where I use 'make' command to compile osm.map file as an output but something seems wrong. I am getting 3 syntax errors in makefile. Now I am using Borland C++ compiler make utility. Before that I tried with TC compiler make utility. I was getting 5 syntax errors before but now its only 3. So I have some points in my mind which if you could clarify. cpp is the GNU C preprocessor, you might have better luck if you install cygwin on Windows. 1) The other map files such as landuse, buildings and highways have not MAP keyword at the start of each file. Though I tried with this but still couldn't get it working. The map file is broken into logical pieces and uses lots of variables that get resolved and replaces by the cpp. You can not use them as they are. When cpp runs all the pieces get assembled into the usable mapfile. 2) The osm_line and osm_road table have not been assigned the primary key while conversion using osm2pgsql and where we query in the map file we use USING UNIQUE osm_id which may be incompatible and may be make is unable to give the result. This probably will not impact mapserver running unless you are guerying the features. 3) The first line in the makefile CPP=cpp tells about the compiler we are using. Could you tell me which exactly is the compiler I should use. This is the GNU C preprocessor. I shall be grateful if I could get some comments from you. Thanking you in anticipation. Cheers, Ali Hope this helps, -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/OSM-data-rendering-using-Mapserver-tp3911799p3915965.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users