[mapserver-users] Re: Rendering Problem
- what are the data sources for these layers? Postgis - what are the library versions used for each MapServer build, are they the exact same on both systems? This is server side (local version is ms4w 5.4.0-rc2, not he same libraries!!) ii libfreetype62.3.7-2+lenny1 FreeType 2 font engine, shared library files ii libfreetype6-dev2.3.7-2+lenny1 FreeType 2 font engine, development files ii libgd2-xpm 2.0.36~rc1~dfsg-3+lenny1 GD Graphics Library version 2 ii libgd2-xpm-dev 2.0.36~rc1~dfsg-3+lenny1 GD Graphics Library version 2 (development version) ii libgdal1-1.5.0 1.5.2-3 Geospatial Data Abstraction Library ii libgdal1-dev1.5.2-3 Geospatial Data Abstraction Library - Development files ii libgdbm31.8.3-3 GNU dbm database routines (runtime version) ii libogdi3.2 3.2.0~beta1-3.1 Open Geographic Datastore Interface Library -- library ii libpng12-0 1.2.27-2+lenny2 PNG library - runtime ii libpng12-dev1.2.27-2+lenny2 PNG library - development ii optipng 0.6.1.1-2advanced PNG (Portable Network Graphics) optimizer ii pngnq 0.5-3tool for optimizing PNG (Portable Network Graphics) images - does that same problem occur if the layer is TYPE ANNOTATION ? yes - using ogrinfo to return the features through the commandline, does GDAL/OGR return the same problem for that label layer? don't know how to test - what happens if you remove the 'WRAP' parameter? nothing changes - what happens if you use a different font type? nothing changes. Tryed over 5 fonts including Monospaced Fonts. Thanks in advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5097451.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: Rendering Problem
- what are the data sources for these layers? Postgis - what are the library versions used for each MapServer build, are they the exact same on both systems? This is server side (local version is ms4w 5.4.0-rc2, not he same libraries!!) ii libfreetype62.3.7-2+lenny1 FreeType 2 font engine, shared library files ii libfreetype6-dev2.3.7-2+lenny1 FreeType 2 font engine, development files ii libgd2-xpm 2.0.36~rc1~dfsg-3+lenny1 GD Graphics Library version 2 ii libgd2-xpm-dev 2.0.36~rc1~dfsg-3+lenny1 GD Graphics Library version 2 (development version) ii libgdal1-1.5.0 1.5.2-3 Geospatial Data Abstraction Library ii libgdal1-dev1.5.2-3 Geospatial Data Abstraction Library - Development files ii libgdbm31.8.3-3 GNU dbm database routines (runtime version) ii libogdi3.2 3.2.0~beta1-3.1 Open Geographic Datastore Interface Library -- library ii libpng12-0 1.2.27-2+lenny2 PNG library - runtime ii libpng12-dev1.2.27-2+lenny2 PNG library - development ii optipng 0.6.1.1-2advanced PNG (Portable Network Graphics) optimizer ii pngnq 0.5-3tool for optimizing PNG (Portable Network Graphics) images - does that same problem occur if the layer is TYPE ANNOTATION ? yes - using ogrinfo to return the features through the commandline, does GDAL/OGR return the same problem for that label layer? don't know how to test - what happens if you remove the 'WRAP' parameter? nothing changes - what happens if you use a different font type? nothing changes. Tryed over 5 fonts including Monospaced Fonts. Thanks in advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5097222.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] Compiling on CentOS 5
On Mon, 2010-05-24 at 16:08 -0500, Gerald Creager wrote: I'm having to reinstall Mapserver after some significant hardware issues. I was perusing the documentation and find several explicit entries for installing on Windows. For Linux, there's the suggestion to use FGS (used it before, isn't latest version, but will probably work), or Debian. Sorry, guys, ubuntu is a debian variant, so while it's nice that there's GIS systems for debian, they are, to my mind, the same. My question: Where's the information on dependencies to compile and use Mapserver? If they reside in the pdf documentation, I've tried to snag it, and the pdf appears damaged: unreadable in eVince or Acrobat reader. Usually I take the the current Fedora source packages and recompile them. If you are comfortable recompiling rpm source packages, then this may give you what you need. The hardest one, IMHO, is gdal. Looking for suggestions on how I might proceed. Thanks, Gerry Peter -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgart...@r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com XING : http://www.xing.com/go/invita/8917535 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map background color using OL/WMS
Paul james wrote: Hello all... I have a Mapserver WMS application (using OL) ... How can I set the map background color? I tried to use : MAP IMAGECOLOR 230 254 254 ... Without success... Tried too : METADATA wms_bgcolor 0x8B No color change... To test your MapServer mapfile I recommend using the shp2img commandline utility (http://www.mapserver.org/utilities/shp2img.html). Once you have shp2img's resulting map image looking like you want, then you can test in your application. (this is how I would debug your problem, if I was hitting your issue) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Compiling on CentOS 5
Gerald Creager wrote: I'm having to reinstall Mapserver after some significant hardware issues. I was perusing the documentation and find several explicit entries for installing on Windows. For Linux, there's the suggestion to use FGS (used it before, isn't latest version, but will probably work), or Debian. Sorry, guys, ubuntu is a debian variant, so while it's nice that there's GIS systems for debian, they are, to my mind, the same. My question: Where's the information on dependencies to compile and use Mapserver? If they reside in the pdf documentation, I've tried to snag it, and the pdf appears damaged: unreadable in eVince or Acrobat reader. Looking for suggestions on how I might proceed. Gerry, Here are some of my comments: - FGS version 9.5 contains MapServer 5.6.3 (the latest MapServer release), I use it often and recommend it - documentation for compiling MapServer on Unix systems is found at: http://www.mapserver.org/installation/unix.html - if you feel like giving back to the community, as you travel down the compilation path you could record your steps in the MapServer wiki, so others can learn from your steps: http://trac.osgeo.org/mapserver/ -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Rendering Problem
Ibrahim Saricicek wrote: - using ogrinfo to return the features through the commandline, does GDAL/OGR return the same problem for that label layer? don't know how to test See ogrinfo examples in: http://www.mapserver.org/input/vector/postgis.html For example, you might try something like the following, which will return all of your features: ogrinfo PG:host=127.0.0.1 user=postgres password=postgres dbname=mine port=5432 layername or also: ogrinfo PG:host=127.0.0.1 user=postgres password=postgres dbname=mine port=5432 layername |more -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Rendering Problem
Hi all, Returns the same results cos they are using the same PostgreSql on linux. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5098281.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: Rendering Problem
Ibrahim Saricicek wrote: Hi all, Returns the same results cos they are using the same PostgreSql on linux. Next I would view the records using PostgreSQL's psql command on both operating systems. I might also make sure to install Postgres on a unix system, and test; then install Postgres on a Windows system and test all of the above again. After that I am not sure. Hopefully someone else can jump in to help. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Compiling on CentOS 5
That's a trick I'll try. OF note, when using available RPMs theoretically for CentOS 5: * the netcdf RPM doesn't create a link that's just libnetcdf.so and this link needs to be created. * the link flr libpd.so needs to be created, too * the RPMs for proj4 and proj4-devel do not provide the epsg info and put things in /usr rather than /usr/local. everything that is expected, for example, in /usr/local/share/epsg needs to go into /usr/share/epsg and then it'll work fine. We were able to find appropriate RPMs for all dependencies. I'll make a list and serve that up soon. gerry On 5/25/10 5:42 AM, Peter Hopfgartner wrote: On Mon, 2010-05-24 at 16:08 -0500, Gerald Creager wrote: I'm having to reinstall Mapserver after some significant hardware issues. I was perusing the documentation and find several explicit entries for installing on Windows. For Linux, there's the suggestion to use FGS (used it before, isn't latest version, but will probably work), or Debian. Sorry, guys, ubuntu is a debian variant, so while it's nice that there's GIS systems for debian, they are, to my mind, the same. My question: Where's the information on dependencies to compile and use Mapserver? If they reside in the pdf documentation, I've tried to snag it, and the pdf appears damaged: unreadable in eVince or Acrobat reader. Usually I take the the current Fedora source packages and recompile them. If you are comfortable recompiling rpm source packages, then this may give you what you need. The hardest one, IMHO, is gdal. Looking for suggestions on how I might proceed. Thanks, Gerry Peter -- Gerry Creager -- gerry.crea...@tamu.edu Texas Mesonet -- AATLT, Texas AM University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Compiling on CentOS 5
Thanks, Jeff: More in-line, below... On 5/25/10 7:29 AM, Jeff McKenna wrote: Gerald Creager wrote: I'm having to reinstall Mapserver after some significant hardware issues. I was perusing the documentation and find several explicit entries for installing on Windows. For Linux, there's the suggestion to use FGS (used it before, isn't latest version, but will probably work), or Debian. Sorry, guys, ubuntu is a debian variant, so while it's nice that there's GIS systems for debian, they are, to my mind, the same. My question: Where's the information on dependencies to compile and use Mapserver? If they reside in the pdf documentation, I've tried to snag it, and the pdf appears damaged: unreadable in eVince or Acrobat reader. Looking for suggestions on how I might proceed. Gerry, Here are some of my comments: - FGS version 9.5 contains MapServer 5.6.3 (the latest MapServer release), I use it often and recommend it The wiki link to FGS needs to be updated. When I followed the link, it was for 5.4, which I can use, but since we crashed so much, I wanted to go ahead and get current. - documentation for compiling MapServer on Unix systems is found at: http://www.mapserver.org/installation/unix.html I just *knew* it had to be around somewhere. However the PDF link produced a bad download several times for the Mapserver docs... That might bear looking into. I tried it at home, even using several methods to download it, and two readers to look at the results, then, last night, I tried again from home and still failed. Is Mapserver allergic to Texans, perhaps? In the end, I fell back to what I thought I remembered from years past, and that (surprisingly) worked. It was a bit more work than having the instructions in front of you, but it's good to know I could still do it. - if you feel like giving back to the community, as you travel down the compilation path you could record your steps in the MapServer wiki, so others can learn from your steps: http://trac.osgeo.org/mapserver/ I'll try to get started on that today. It's been awhile since I've contributed anything save moral support to the community, so it's time I did some good. gerry -- Gerry Creager -- gerry.crea...@tamu.edu Texas Mesonet -- AATLT, Texas AM University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map background color using OL/WMS
Thanks Jeff... But do you know how change map background ? Using Mapscript IMAGECOLOR works fine... With CGI/WMS/OL i cant get that to work... Paul On Tue, May 25, 2010 at 9:23 AM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote: Paul james wrote: Hello all... I have a Mapserver WMS application (using OL) ... How can I set the map background color? I tried to use : MAP IMAGECOLOR 230 254 254 ... Without success... Tried too : METADATA wms_bgcolor 0x8B No color change... To test your MapServer mapfile I recommend using the shp2img commandline utility (http://www.mapserver.org/utilities/shp2img.html). Once you have shp2img's resulting map image looking like you want, then you can test in your application. (this is how I would debug your problem, if I was hitting your issue) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.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] Map background color using OL/WMS
Am 25.05.2010 20:21, schrieb Paul james: Thanks Jeff... But do you know how change map background ? Using Mapscript IMAGECOLOR works fine... With CGI/WMS/OL i cant get that to work... Paul Just a guess - I think you have to change the backround of your Map in the Client Side. If you don't have only one Layer, your wms Layers should be transparent. And as wms serves only Layers, there is no way to change the backgroundcolor on Server Side. But maybe I'm wrong Thomasch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map background color using OL/WMS
Thanks Thomas... But how can I change the backround in Client Side? Paul Just a guess - I think you have to change the backround of your Map in the Client Side. If you don't have only one Layer, your wms Layers should be transparent. And as wms serves only Layers, there is no way to change the backgroundcolor on Server Side. But maybe I'm wrong Thomasch ___ 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] Map background color using OL/WMS
If you really needed to set a background color, you could probably create an image of that color, georeference it to have an extent that matches your map extent and then set layer status to default for both of your layers. It still may be possible for someone to send a WMS to request only your data layer. Adding this raster layer will also incur some resources for processing. Whether it is significant or not, I don't know. To help you figure out the best solution, tell us what your use case is. It is likely that someone else has had a similar need. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul james Sent: Tuesday, May 25, 2010 2:37 PM To: thomas...@gmx.de Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Map background color using OL/WMS Thanks Thomas... But how can I change the backround in Client Side? Paul Just a guess - I think you have to change the backround of your Map in the Client Side. If you don't have only one Layer, your wms Layers should be transparent. And as wms serves only Layers, there is no way to change the backgroundcolor on Server Side. But maybe I'm wrong Thomasch ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto: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] Map background color using OL/WMS
Am 25.05.2010 21:36, schrieb Paul james: Thanks Thomas... But how can I change the backround in Client Side? Just find the Id of your DIV containing yout map and change the backgound Color. Maybe there is in the Styles Secion someting like style #map { width: 800px; height: 500px; float: left; border: 1px solid #ccc; } [...] /style Just add background-color:#FF like style #map { width: 800px; height: 500px; float: left; border: 1px solid #ccc; background-color:#FF } [...] /style Thomasch ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: msOracleSpatialLayerWhichShapes(): OracleSpatial error
Thank you Tamas. I think that the new 5.6 functions does not work properly with oracle spatial. Also with the last build from http://vbkto.dyndns.org/sdk/ i have error. The following code works: layerObj lo = map.getLayer(i); ... res = lo.queryByAttributes(map, null, strQuery.ToString(), mapscript.MS_MULTIPLE); ... resultCacheObj results = lo.getResults(); int numres = results.numresults; for (int j = 0; j numres; j++) { int shapeInd = results.getResult(j).shapeindex; shapeObj shp = lo.getFeature(shapeInd, -1); layerObj loSel = GetSelectionLayer(map, lo.type); shp.draw(map, loSel, img); } but if i write this using new functions: layerObj lo = map.getLayer(i); ... res = lo.queryByAttributes(map, null, strQuery.ToString(), mapscript.MS_MULTIPLE); ... int numres = lo.getNumResults(); for (int j = 0; j numres; j++) { resultCacheMemberObj reso = lo.getResult(j); shapeObj shp = new shapeObj((int)lo.type); lo.resultsGetShape(shp, reso.shapeindex, reso.tileindex); layerObj loSel = GetSelectionLayer(map, lo.type); shp.draw(map, loSel, img); } i have the exception msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00600: codice di errore interno, argomenti: [17182], [0x2581CE802], [], [], [], [], [], [] after call drawmap(). Agostino. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msOracleSpatialLayerWhichShapes-OracleSpatial-error-tp5048929p5100718.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] Exception: System.AccessViolationException
I'm using Mapscript csharp with IIS 6/Windows 2003 R2/ASP.NET 3.5/Oracle 10gR2 (ms4w 3 beta 10) I need to restart IIS with iisreset because the web site throws random but frequent errors of type: Exception: System.AccessViolationException StackTrace:in OSGeo.MapServer.mapscriptPINVOKE.delete_imageObj(HandleRef jarg1) in OSGeo.MapServer.imageObj.Dispose() or Exception: System.AccessViolationException StackTrace:in OSGeo.MapServer.mapscriptPINVOKE.delete_layerObj(HandleRef jarg1) in OSGeo.MapServer.layerObj.Dispose() in OSGeo.MapServer.layerObj.Finalize() Thank you Agostino. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Exception-System-AccessViolationException-tp5101047p5101047.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