Re: [mapserver-users] OSM Renderer using mapfile. A Projection Problem?
what's the url that is requested for the left image ? On Tue, Mar 2, 2010 at 15:17, Ali_ ali_informat...@yahoo.com 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 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
[mapserver-users] Re: Mapscript WFS wrapper for C-sharp
I tried using your binaries, but now Visual Studio's webserver crashes without any error messages. -- View this message in context: http://n2.nabble.com/Mapscript-WFS-wrapper-for-C-sharp-tp4661038p4674525.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] DXF layer definition in mapfile
Hi, Since DXF driver has been made, I would like to show a DXF file on the map. Is this possible? What syntax do I have to use to make it work? I have tried defining it similar to dgn syntax, but it doesn't work. I get: msOGRFileOpen(): Open failed for OGR connection in layer `layer_name'. File not found or unsupported format.. ogrinfo works fine on this file. For example: root# ogrinfo -so test.dxf entities INFO: Open of `/Library/WebServer/Documents/demodata/test.dxf' using driver `DXF' successful. Layer name: entities Geometry: Unknown (any) Feature Count: 888 Extent: (5416785.444339, 5009511.330286) - (5431570.527990, 5024296.413476) Layer SRS WKT: (unknown) Layer: String (0.0) SubClasses: String (0.0) ExtendedEntity: String (0.0) Linetype: String (0.0) EntityHandle: String (0.0) Text: String (0.0) My layer definition looks like this: LAYER # dxf NAME layer_name GROUPgroup_name STATUS ON TYPE LINE METADATA DESCRIPTION Description END CONNECTIONTYPE OGR CONNECTION /Library/WebServer/Documents/demodata/test.dxf DATA 0 STYLEITEM AUTO CLASS NAME All END PROJECTION init=epsg:31275 END END I also tried without DATA and STYLEITEM keywords but doens't help. Any hint? Thanks very much regards, dejan___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] DXF layer definition in mapfile
Dejan Gambin wrote: Hi, Since DXF driver has been made, I would like to show a DXF file on the map. Is this possible? What syntax do I have to use to make it work? I have tried defining it similar to dgn syntax, but it doesn't work. I get: msOGRFileOpen(): Open failed for OGR connection in layer `layer_name'. File not found or unsupported format.. ogrinfo works fine on this file. For example: ... My layer definition looks like this: LAYER # dxf NAME layer_name GROUPgroup_name STATUS ON TYPE LINE METADATA DESCRIPTION Description END CONNECTIONTYPE OGR CONNECTION /Library/WebServer/Documents/demodata/test.dxf DATA 0 STYLEITEM AUTO CLASS NAME All END PROJECTION init=epsg:31275 END END Dejan, I suspect you have more than one gdal/ogr on your system and MapServer isn't using the new one. Because DXF files are represented as having only one layer you don't normally need a DATA statement to select the layer. One example of mine looks like: MAP STATUS ON EXTENT 0 80 120 160 SIZE 600 400 FONTSET /home/warmerda/mapserver/fonts.lst IMAGECOLOR 0 0 128 IMAGETYPE png LAYER NAME shppoly TYPE line CONNECTIONTYPE OGR CONNECTION assorted.dxf STATUS default STYLEITEM AUTO CLASS NAME work END END LAYER NAME textstuff TYPE annotation CONNECTIONTYPE OGR CONNECTION assorted.dxf STATUS default STYLEITEM AUTO CLASS NAME work END END END -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ 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
Re: [mapserver-users] Re: OSM Renderer using mapfile. A Projection Problem?
no, the url of the actual image (right click on it, the properties) On Thu, Mar 4, 2010 at 19:45, Ali_ ali_informat...@yahoo.com wrote: 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] [hidden email] wrote: From: thomas bonfort [via OSGeo.org] [hidden email] Subject: Re: OSM Renderer using mapfile. A Projection Problem? To: Ali_ [hidden email] 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: Re: OSM Renderer using mapfile. A Projection Problem? 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
RE: [mapserver-users] A Question of Group
Version 5.6 introduces an XML mapfile schema and stylesheet. So (in theory) one could manage a mapfile in XML and transform it for use. We intend to allow more direct use somehow although that hasn't been decided. At the code sprint an on-the-fly transformation was tested successfully. Other options include just-in-time conversion from XML to .map (via XSLT) or native XML parsing. We'll see... On a side note, developers here played with using HTML legends to create output suitable for use with the YUI collapsible menu widgets. In the end we gave up and instead worked up a PHP/MapScript-based solution. The script works off a mapfile and a bit of embedded metadata to produce a JSON legend object. That object is passed in turn to a legend widget that is based on YUI. The legend is somewhat framework agnostic and we've hooked it up to dbox (where it started) and more recently OpenLayers. With an XML mapfile one could probably to the JSON production independent of MapScript or entirely on the client although that's probably sharing too much information. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bill Thoen [bth...@gisnet.com] Sent: Wednesday, March 03, 2010 1:47 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] A Question of Group Bob Basques wrote: Bill, This is a shameless plug for GeoMoose functionality, it was prompted by your comments below however, so I don't feel too bad :c) Grab every opportunity that sets you up for a pitch! Although I'm actually not unhappy with HTML Legends --I've found workarounds for things I don't like-- but it would have been nice to have known in advance where it runs out of steam or just doesn't go, so I'd know whether I would reach the point of implementing kludges before or after I reached my goal. GeoMoose sounds pretty good and seems to solve my problems 1-2-3... But before I go try it out now instead of later and spend a lot of time I can't spare contemplating a software switch and testing its capabilities for possible use in a project with a tight deadline, can you highlight for me the top two or three areas where the hard, cold ground rises up to meet it (i.e. where it falls on its face)? I'm not looking for what's broken, but more along the lines of what it is NOT designed for, so I don't make th e mistake of trying to use in a situation where it will not do well. * Each layer (or group of layers) is controlled via it's own mapfile, while this might seem cumbersome to manage, it does allow for separate and integrated management of data layers by many data custodians, which is what GeoMoose was originally designed for, many data custodians doing their own thing. It's also very good for automation purposes in general. One of the both strong points and weak points in the FOSS mapping software I've seen so far is its almost universal core dependence on mapfiles or templates as the driving mechanism. These are powerful in that the are easily modified, human and machine readable and you can record layer states and mix and match the objects later on as you like to create alternate configurations. But where they're a weak point is when you want to provide a warm 'n fuzzy front end for User B. Goode. Templates are difficult to work with at that point. They're based on the 1950s-60s notion of batch programming in which the programmer decides where the process starts and ends. So when you try to build an interactive, user-driven interface on top of this, the bugs and shortcomings you tend to run into are usually rooted in a sort of schizophrenia between the two paradigms. Has anyone here considered breaking down the rigidity of the mapfile architecture by writing them in XML or JSON formats so they can be more easily manipulated by an application? - Bill Thoen ___ 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
Re: [mapserver-users] DXF layer definition in mapfile
Frank, You were right (as usual I would say :-) I was using MapServer 5.6.0 (on Mac OSX, from KyngChaos) with GDAL Complete 1.6. I upgraded GDAL to 1.7 but didn't upgrade MapServer to 5.6.1 so it was using GDAL 1.6 I suppose. Now everything works Thanks very much regards, dejan On 4. ožu. 2010., at 17:06, Frank Warmerdam wrote: Dejan Gambin wrote: Hi, Since DXF driver has been made, I would like to show a DXF file on the map. Is this possible? What syntax do I have to use to make it work? I have tried defining it similar to dgn syntax, but it doesn't work. I get: msOGRFileOpen(): Open failed for OGR connection in layer `layer_name'. File not found or unsupported format.. ogrinfo works fine on this file. For example: ... My layer definition looks like this: LAYER # dxf NAME layer_name GROUP group_name STATUS ON TYPE LINE METADATA DESCRIPTION Description END CONNECTIONTYPE OGR CONNECTION /Library/WebServer/Documents/demodata/test.dxf DATA 0 STYLEITEM AUTO CLASS NAME All END PROJECTION init=epsg:31275 END END Dejan, I suspect you have more than one gdal/ogr on your system and MapServer isn't using the new one. Because DXF files are represented as having only one layer you don't normally need a DATA statement to select the layer. One example of mine looks like: MAP STATUS ON EXTENT 0 80 120 160 SIZE 600 400 FONTSET /home/warmerda/mapserver/fonts.lst IMAGECOLOR 0 0 128 IMAGETYPE png LAYER NAME shppoly TYPE line CONNECTIONTYPE OGR CONNECTION assorted.dxf STATUS default STYLEITEM AUTO CLASS NAME work END END LAYER NAME textstuff TYPE annotation CONNECTIONTYPE OGR CONNECTION assorted.dxf STATUS default STYLEITEM AUTO CLASS NAME work END END END -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver in ubuntu: not displaying map
Dear Alan, yes . the issue was with the imageurl. WEB TEMPLATE /var/www/tutorial/example2-1.html IMAGEPATH /var/www/tutorial/tmp/ IMAGEURL http://localhost/tutorial/tmp/; END now it works ! I was worrying about the permission , as not familiar with ubuntu and failed to identify actual error. Thanks a lot Ashka On Thu, Mar 4, 2010 at 6:48 AM, Alan Boudreault aboudrea...@mapgears.comwrote: ashka, Have you taken a look at the image url (in the browser) ? Since the image path is /var/www/tutorial/tmp and /var/www/ is already available from the web (with the default apache configuration) the image url of your image should be something like http://localhost/tutorial/tmp/EX2.1_12675266704111.png;. The image url can be configured in the mapfile: http://mapserver.org/mapfile/web.html Alan ashka fernando wrote: Dear all, I am trying to run Mapserver in Ubuntu Karmic Koala. I have successfully used Mapserver in windows and now want to migrate to ubuntu . But I'm very much new to ubuntu and struggle to get the work done smoothly. The Mapserver and Apache both are running ,works fine as localhost. I can get a map in map mode ( based on map server tutorial examples) but failed to get the map display in the browse mode. There is no error massage and the web template is displaying with all components except the map image. The map images are created inside the tmp folder however they are not displayed in the template interface. I think its due to permission issues but failed to solve it, even after going through forums. The locations of the templete and map files are /var/www/tutorial The location of the image path /var/www/tutorial/tmp For /var/www/tutorial/tmp permissions are as follows drwxrwsr-x 2 gisuser www-data 4096 2010-03-02 16:14 tmp when the new map images are created by the mapserver , the image files have permissions like this -rwxrwxr-- 1 www-data www-data 11686 2010-03-02 16:14 EX2.1_12675266704111.png Why doesn't these map images are not displaying in the web template file? Can anyone suggest a way to solve this issue? This may be rather relate to running Apache in Ubuntu. As failed to get any help from ubuntu forum, compelled to ask help from you all. appreciate any help . ashka ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users