uur p Verzonden vanaf Samsung Mobile
-------- Oorspronkelijk bericht -------- Onderwerp: mapserver-users Digest, Vol 42, Issue 60 Van: mapserver-users-requ...@lists.osgeo.org Aan: mapserver-users@lists.osgeo.org Cc: Send mapserver-users mailing list submissions to mapserver-users@lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-requ...@lists.osgeo.org You can reach the person managing the list at mapserver-users-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: How to convert from 2393(Finish YKJ) to 4326 (WGS84) (Rahkonen Jukka) 2. Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) (Mihaela Caluian) 3. Re: Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) (Steve Lime) 4. Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) (Pena Kupen) ---------------------------------------------------------------------- Message: 1 Date: Sun, 24 Jul 2011 17:16:46 +0000 From: Rahkonen Jukka <jukka.rahko...@mmmtike.fi> Subject: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) To: Pena Kupen <ku...@wippies.fi>, "mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org> Message-ID: <84446def76453c439e9e97e438e13a63015...@suutari.haapa.mmm.fi> Content-Type: text/plain; charset="iso-8859-1" Hi, I suppose that towgs84 parameters are missing. You can check this with psql: select proj4text from spatial_ref_sys where srid=2393; The result should be close to +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs If it is not, update the record. A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). -Jukka Rahkonen- Pena Kupen wrote: > Hello all, > Last time I was successfully helped by Ralf - Thank's once more time! http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > Now I have same type of problem, but I cannot get correct result. Table is: CREATE TABLE location ( location_id integer NOT NULL, coord geometry ); Data is in coord column as 2393 format. My sql is like: select y(location.coord) as y_ykj, x(location.coord) as x_ykj, y(ST_Transform(location.coord,4326)) as y_wgs84, x(ST_Transform(location.coord,4326)) as x_wgs84 from location where location_id = 'AAA123A' result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. -Pena -- Wippies-vallankumous on t��ll�! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 2 Date: Mon, 25 Jul 2011 00:14:20 -0400 From: Mihaela Caluian <mihaela.calu...@gmail.com> Subject: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) To: mapserver-users@lists.osgeo.org Message-ID: <CAFJRrfRVVA98mPiczXk1-A_oqv_J8Ztmk=1c3enwa4iribn...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hello everybody, I am very new to MapServer and I have a lots of problem that I cannot find answer. Currently I am having trouble to figure out what is wrong with my .map files. I am getting this error when I try to click the button to load the map file: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers. When I installed for the first time MapServer everything works, but I had to reinstall it and I cannot even see my work now. I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version 3.0.3: (This is my first time when I am working with MapServer, actually I am learning it.) The map file that I tried to open is: MAP NAME "Rail" # Map image size SIZE 600 400 UNITS meters EXTENT -132.193287 28.711430 -50.854471 74.207982 FONTSET 'c:/wwwroot/fonts/fontset.txt' SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "\ms4w\tmp\ms_tmp\" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'Rail' 'ows_onlineresource' ' http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'rail.html' END LAYER NAME 'Rails' TYPE LINE DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -132.193287 28.711430 -50.854471 74.207982 DATA 'C:\wwwroot\assignment3\rails.shp' METADATA 'ows_title' 'Rails' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END CLASS NAME 'Rails' STYLE WIDTH 2 COLOR 146 154 155 END END END END Please, if somebody can help me I will really appreciate. I tried so many times and now I really don't know what to do more. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110725/17503ec1/attachment-0001.html ------------------------------ Message: 3 Date: Sun, 24 Jul 2011 23:30:04 -0500 From: Steve Lime <sdl...@gmail.com> Subject: Re: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) To: Mihaela Caluian <mihaela.calu...@gmail.com> Cc: mapserver-users@lists.osgeo.org Message-ID: <camrkz98kbjvtcazecahncv5tkcf-drkxthotanh8caa_uqg...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" In MapServer 6.0, the GD driver can only produce 8-bit output so your output format is invalid. Try commenting it out and see what happens. I believe you can leave "IMAGETYPE png" in place and you'll get AGG-based, 8-bit output. Should look much nicer. Steve On Sun, Jul 24, 2011 at 11:14 PM, Mihaela Caluian <mihaela.calu...@gmail.com > wrote: > Hello everybody, > > I am very new to MapServer and I have a lots of problem that I cannot find > answer. > > Currently I am having trouble to figure out what is wrong with my .map > files. I am getting this error when I try to click the button to load the > map file: > > loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) > msOutputFormatValidate(): General error message. OUTPUTFORMAT png has > IMAGEMODE RGB/RGBA, which is not supported for GD drivers. > > When I installed for the first time MapServer everything works, but I had > to reinstall it and I cannot even see my work now. > > I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version > 3.0.3: (This is my first time when I am working with MapServer, actually I > am learning it.) > > The map file that I tried to open is: > > MAP > NAME "Rail" > # Map image size > SIZE 600 400 > UNITS meters > EXTENT -132.193287 28.711430 -50.854471 74.207982 > FONTSET 'c:/wwwroot/fonts/fontset.txt' > SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "\ms4w\tmp\ms_tmp\" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'Rail' > 'ows_onlineresource' ' > http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'rail.html' > END > LAYER > NAME 'Rails' > TYPE LINE > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT -132.193287 28.711430 -50.854471 74.207982 > DATA 'C:\wwwroot\assignment3\rails.shp' > METADATA > 'ows_title' 'Rails' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > CLASS > NAME 'Rails' > STYLE > WIDTH 2 > COLOR 146 154 155 > END > END > END > END > > Please, if somebody can help me I will really appreciate. I tried so many > times and now I really don't know what to do more. > > Thanks. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110724/e87a2a06/attachment-0001.html ------------------------------ Message: 4 Date: Mon, 25 Jul 2011 08:54:03 +0300 (EEST) From: Pena Kupen <ku...@wippies.fi> Subject: Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) To: mapserver-users@lists.osgeo.org Message-ID: <1134235633.2761311573244115.javamail.ku...@wippies.fi> Content-Type: text/plain; Charset=iso-8859-1; Format=Flowed Thank's Jukka, On my spatial_ref_sys-table, there is proj4text like: +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs So towgs84-parameter is missing. > If it is not, update the record. > It this safe? Can it affect with unwanted result somewhere? >You can read also >http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in >Finnish, I suppose it is not a problem for you). > Yeps, language not, but understanding is something else ;-) -Pena Rahkonen Jukka [jukka.rahko...@mmmtike.fi] kirjoitti: > Hi, > > I suppose that towgs84 parameters are missing. You can check this with psql: > > select proj4text from spatial_ref_sys where srid=2393; > > The result should be close to > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl > +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs > If it is not, update the record. > > A related thing is that Mapserver epsg text file often comes without towgs84 > parameters for the Finnish KKJ zones. This is what I seem to have on this > computer: > KKJ / Finland Uniform Coordinate System > <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl > +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m > +no_defs <> > > You can see that the parameters are not the same. There are more parameter > sets around and that's actually the reason why Proj4 comes or at least used > to come without any parameters because none of the sets was authorized. The > results of these transformations are rather close and accurate to about one > meter. You can read also > http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in > Finnish, I suppose it is not a problem for you). > > -Jukka Rahkonen- > > Pena Kupen wrote: > > > Hello all, > > > Last time I was successfully helped by Ralf - Thank's once more time! > http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > > > Now I have same type of problem, but I cannot get correct result. > > Table is: > CREATE TABLE location ( > location_id integer NOT NULL, > coord geometry > ); > > Data is in coord column as 2393 format. > > My sql is like: > select > y(location.coord) as y_ykj, > x(location.coord) as x_ykj, > y(ST_Transform(location.coord,4326)) as y_wgs84, > x(ST_Transform(location.coord,4326)) as x_wgs84 > from location where location_id = 'AAA123A' > > result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about > 180meters too much in east. > > -Pena > > -- Wippies-vallankumous on t��ll�! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 42, Issue 60 ***********************************************
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users