RE: [mapserver-users] Truetype font rendering changes?

2012-05-07 Thread Johan Forsman
Thank you for the suggestion however I regret to report that there is no 
discernible difference in the appearance of the text when using cairopng in the 
Windows environment. I have also created a test case using MS6 on the same 
Linux server (but outside the FGS95 environment) as my MS5.4 and the text is 
rendered exactly the same as on the Windows platform, with the same reduced 
legibility. 

Thanks,
Johan.

-Original Message-
From: Donald Kerr [mailto:donald.k...@dkerr.co.uk] 
Sent: Thursday, May 03, 2012 12:39 PM
To: Johan Forsman; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Johan,

Have you tried cairopng as an alternative to AGG?

Regards,

Donald


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: 03 May 2012 16:07
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Truetype font rendering changes?


Hello All:

I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to 
MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well 
however I have a peculiar TrueType font rendering issue where the readability 
on the new system is far less than on the old system. I have attached two 
screenshots taken at the same scale to illustrate the issue. In these images 
the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 
8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP 
files were copied directly from the old system to the new system. I have tried 
with antialias on and off in the label definition and with a couple of 
different AGG image output formats but there are no visible differences.

I would really appreciate any suggestions or pointers where to investigate.

Thanks!
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Truetype font rendering changes?

2012-05-07 Thread Lime, Steve D (DNR)
Is that test case available someplace?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: Monday, May 07, 2012 8:32 AM
To: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Thank you for the suggestion however I regret to report that there is no 
discernible difference in the appearance of the text when using cairopng in the 
Windows environment. I have also created a test case using MS6 on the same 
Linux server (but outside the FGS95 environment) as my MS5.4 and the text is 
rendered exactly the same as on the Windows platform, with the same reduced 
legibility. 

Thanks,
Johan.

-Original Message-
From: Donald Kerr [mailto:donald.k...@dkerr.co.uk] 
Sent: Thursday, May 03, 2012 12:39 PM
To: Johan Forsman; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Johan,

Have you tried cairopng as an alternative to AGG?

Regards,

Donald


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: 03 May 2012 16:07
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Truetype font rendering changes?


Hello All:

I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to 
MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well 
however I have a peculiar TrueType font rendering issue where the readability 
on the new system is far less than on the old system. I have attached two 
screenshots taken at the same scale to illustrate the issue. In these images 
the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 
8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP 
files were copied directly from the old system to the new system. I have tried 
with antialias on and off in the label definition and with a couple of 
different AGG image output formats but there are no visible differences.

I would really appreciate any suggestions or pointers where to investigate.

Thanks!
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309



___
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] Truetype font rendering changes?

2012-05-07 Thread Johan Forsman
No. Unfortunately none of the sites are accessible from the outside. The best I 
can do are screenshots.

I attached two examples from the same Linux server. One is from the FGS95 
(MS54) environment and the other (MS60) is under the main system environment. 
Both samples are of Arial Narrow 7 point, and the image is rendered using the 
following output format:

OUTPUTFORMAT
NAME 'agg_q'
DRIVER AGG/PNG
IMAGEMODE RGB
FORMATOPTION QUANTIZE_FORCE=ON
FORMATOPTION QUANTIZE_DITHER=OFF
FORMATOPTION QUANTIZE_COLORS=256
END

I freely confess to not knowing much about the various output formats. This one 
I picked from the list some time long ago. I tried other formats also, both 8- 
and 24-bit and both the AGG and Cairo drivers, but I have not noticed any clear 
differences.

Thanks for any suggestions and I'll be glad to collect additional information 
if needed.

Johan.

-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Sent: Monday, May 07, 2012 9:43 AM
To: Johan Forsman; Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Is that test case available someplace?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: Monday, May 07, 2012 8:32 AM
To: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Thank you for the suggestion however I regret to report that there is no 
discernible difference in the appearance of the text when using cairopng in the 
Windows environment. I have also created a test case using MS6 on the same 
Linux server (but outside the FGS95 environment) as my MS5.4 and the text is 
rendered exactly the same as on the Windows platform, with the same reduced 
legibility. 

Thanks,
Johan.

-Original Message-
From: Donald Kerr [mailto:donald.k...@dkerr.co.uk] 
Sent: Thursday, May 03, 2012 12:39 PM
To: Johan Forsman; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Johan,

Have you tried cairopng as an alternative to AGG?

Regards,

Donald


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: 03 May 2012 16:07
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Truetype font rendering changes?


Hello All:

I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to 
MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well 
however I have a peculiar TrueType font rendering issue where the readability 
on the new system is far less than on the old system. I have attached two 
screenshots taken at the same scale to illustrate the issue. In these images 
the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 
8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP 
files were copied directly from the old system to the new system. I have tried 
with antialias on and off in the label definition and with a couple of 
different AGG image output formats but there are no visible differences.

I would really appreciate any suggestions or pointers where to investigate.

Thanks!
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


attachment: ms60_linux2.PNGattachment: ms54_linux2.PNG___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: mapserver-users Digest, Vol 52, Issue 10

2012-05-07 Thread sam
Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC 
business can be sent to the YLUPC director at r...@planyukon.ca. 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Truetype font rendering changes?

2012-05-07 Thread Lime, Steve D (DNR)
It looks like the effective size of the text has changed. What happens if you 
play with the font size in 6.0 and increase it a bit?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: Monday, May 07, 2012 10:32 AM
To: Lime, Steve D (DNR); Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

No. Unfortunately none of the sites are accessible from the outside. The best I 
can do are screenshots.

I attached two examples from the same Linux server. One is from the FGS95 
(MS54) environment and the other (MS60) is under the main system environment. 
Both samples are of Arial Narrow 7 point, and the image is rendered using the 
following output format:

OUTPUTFORMAT
NAME 'agg_q'
DRIVER AGG/PNG
IMAGEMODE RGB
FORMATOPTION QUANTIZE_FORCE=ON
FORMATOPTION QUANTIZE_DITHER=OFF
FORMATOPTION QUANTIZE_COLORS=256
END

I freely confess to not knowing much about the various output formats. This one 
I picked from the list some time long ago. I tried other formats also, both 8- 
and 24-bit and both the AGG and Cairo drivers, but I have not noticed any clear 
differences.

Thanks for any suggestions and I'll be glad to collect additional information 
if needed.

Johan.

-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Sent: Monday, May 07, 2012 9:43 AM
To: Johan Forsman; Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Is that test case available someplace?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: Monday, May 07, 2012 8:32 AM
To: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Thank you for the suggestion however I regret to report that there is no 
discernible difference in the appearance of the text when using cairopng in the 
Windows environment. I have also created a test case using MS6 on the same 
Linux server (but outside the FGS95 environment) as my MS5.4 and the text is 
rendered exactly the same as on the Windows platform, with the same reduced 
legibility. 

Thanks,
Johan.

-Original Message-
From: Donald Kerr [mailto:donald.k...@dkerr.co.uk] 
Sent: Thursday, May 03, 2012 12:39 PM
To: Johan Forsman; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Johan,

Have you tried cairopng as an alternative to AGG?

Regards,

Donald


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: 03 May 2012 16:07
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Truetype font rendering changes?


Hello All:

I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to 
MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well 
however I have a peculiar TrueType font rendering issue where the readability 
on the new system is far less than on the old system. I have attached two 
screenshots taken at the same scale to illustrate the issue. In these images 
the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 
8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP 
files were copied directly from the old system to the new system. I have tried 
with antialias on and off in the label definition and with a couple of 
different AGG image output formats but there are no visible differences.

I would really appreciate any suggestions or pointers where to investigate.

Thanks!
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309



___
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] Truetype font rendering changes?

2012-05-07 Thread Stephen Woodbridge

Johan,

You need to provide a simple test case if you want a developer to help 
diagnose this problem.


I would suggest creating a simple mapfile that draws a single label like 
the following. Adjust it to your needs


MAP
  SIZE 100 100
  EXTENT 100 100
  UNITS inches
  FONTSET fontset.txt
  IMAGETYPE ...

  OUTPUTFORMAT
...
  END

  LAYER
TYPE POINT
STATUS DEFAULT
FEATURE
  POINTS 50 50 END
END
CLASS
  STYLE
SYMBOL 0
COLOR 0 0 0
  END
  TEXT 123
  LABEL
TYPE TRUETYPE
FONT arial-narrow
SIZE 7
COLOR 0 0 0
  END
END
  END
END

Test this on both servers. Also make sure you are using the same font 
file, ie copy it to your test example directory and create a new 
fontset.txt that only have this single font referenced in it. If you 
still get different results, then tar/zip up the test example and email 
it to Steve L or me and I will make it available as a link if you can 
post a link to it.


-Steve W

On 5/7/2012 11:31 AM, Johan Forsman wrote:

No. Unfortunately none of the sites are accessible from the outside. The best I 
can do are screenshots.

I attached two examples from the same Linux server. One is from the FGS95 (MS54) 
environment and the other (MS60) is under the main system environment. Both 
samples are of Arial Narrow 7 point, and the image is rendered using the following output 
format:

OUTPUTFORMAT
 NAME 'agg_q'
 DRIVER AGG/PNG
 IMAGEMODE RGB
 FORMATOPTION QUANTIZE_FORCE=ON
 FORMATOPTION QUANTIZE_DITHER=OFF
 FORMATOPTION QUANTIZE_COLORS=256
END

I freely confess to not knowing much about the various output formats. This one 
I picked from the list some time long ago. I tried other formats also, both 8- 
and 24-bit and both the AGG and Cairo drivers, but I have not noticed any clear 
differences.

Thanks for any suggestions and I'll be glad to collect additional information 
if needed.

Johan.

-Original Message-
From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: Monday, May 07, 2012 9:43 AM
To: Johan Forsman; Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Is that test case available someplace?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: Monday, May 07, 2012 8:32 AM
To: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Thank you for the suggestion however I regret to report that there is no 
discernible difference in the appearance of the text when using cairopng in the 
Windows environment. I have also created a test case using MS6 on the same 
Linux server (but outside the FGS95 environment) as my MS5.4 and the text is 
rendered exactly the same as on the Windows platform, with the same reduced 
legibility.

Thanks,
Johan.

-Original Message-
From: Donald Kerr [mailto:donald.k...@dkerr.co.uk]
Sent: Thursday, May 03, 2012 12:39 PM
To: Johan Forsman; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Johan,

Have you tried cairopng as an alternative to AGG?

Regards,

Donald


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Johan Forsman
Sent: 03 May 2012 16:07
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Truetype font rendering changes?


Hello All:

I am in the process of migrating from MapServer 5.4 (FGS95 on Linux) to 
MapServer 6 (MS4W3 on Windows Server 2008 R2). Most things are migrating well 
however I have a peculiar TrueType font rendering issue where the readability 
on the new system is far less than on the old system. I have attached two 
screenshots taken at the same scale to illustrate the issue. In these images 
the parish labels are Arial Bold Italic 6 pt., the interstate shields are Arial 
8 pt., and US highway shields are Arial Narrow 7 pt. The TTF files and the MAP 
files were copied directly from the old system to the new system. I have tried 
with antialias on and off in the label definition and with a couple of 
different AGG image output formats but there are no visible differences.

I would really appreciate any suggestions or pointers where to investigate.

Thanks!
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309



___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] elevation profile

2012-05-07 Thread Fawcett, David (MPCA)
Thanks Puneet.  Very nice looking app.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mr. Puneet Kishor
Sent: Saturday, May 05, 2012 1:15 PM
To: mapserver
Subject: Re: [mapserver-users] elevation profile

The elevation profile widget is finally implemented at 
http://earth-base.org/geomaps

Click on the fourth button from the top on the left, then draw a line on the 
map to see the profile. As with all my apps, the values themselves can be 
retrieved by querying for them directly from the browser or from the command 
line. For example

http://earth-base.org/geomaps/elevation.json?linestring=LINESTRING(-118.706+37.933%2C-109.477+42.494)


This one is dedicated to Steve Woodbridge, Brent Wood and David Fawcett.



 ..




--
Puneet Kishor___
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] polygon border artifacts

2012-05-07 Thread Rahkonen Jukka
Hi,

Perhaps it is mostly an AGG issue because I think that Mapnik makes similar 
artifacts too.  See Corine landuse polygons here  
http://www.openstreetmap.org/?lat=60.820709lon=27.201925zoom=18layers=M
Sea areas do not have artifacts in OSM because sea is just background colour 
and is is not rendered at all from any data. But I do not know what Mapnik is 
doing with the land polygons. I cannot see artifacts between them in OMS maps.

-Jukka Rahkonen-

Lime, Steve D wrote:

 I tried locally and it's definitely a rendering artifact related to 
 anti-aliasing. Should an outline always be drawn?


 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf  Of Sven Geggus
 Sent: Friday, May 04, 2012 6:04 AM
 To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] polygon border artifacts

thomas bonfort thomas.bonf...@gmail.com wrote:

 with a recentish version of mapserver, try setting PROCESSING
 APPROXIMATION_SCALE=FULL
 on your ocean layer, to avoid feature simplification (it will slow
 down the rendering if the resolution of your data is much greater than
 the resolution of the requested map).

Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately 
this does not seem to fix the problem.

Regards

Sven

--
Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang 
Schäuble)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web 
___
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] Mapserver + mapcache + Google Map

2012-05-07 Thread Krassovski, Misha B.
I work on a project that has 4.5 mil points (each one is a single dot, with 
lat, lon),  that have to be shown on the world map.
I managed to do it with mapserver (wms) + Google map. It works fine, but very 
slow, so I decided to add a mapcache caching system.
Spend already a week but still can't get it work. Please take a look at error 
messages and my map and mapcache files.
Thank you in advance for the help!!


Here are error messages that I have.
In Firebug console:
NetworkError: 404 Not Found - 
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/1.png;
NetworkError: 404 Not Found - 
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/2.png;
NetworkError: 502 Bad Gateway - 
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/2.png;
NetworkError: 500 Internal Server Error - 
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/1.png;
NetworkError: 502 Bad Gateway - 
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/1/1.png;
NetworkError: 502 Bad Gateway - 
http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/3.png;
and so on …..

In apache log:
[Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in 
[0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
[Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] mapcache fcgi conf 
file: /var/www/mapcache/mapcache.xml, referer: 
http://cdiac5.ornl.gov/waves/underway/test.html
[Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in 
[0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
[Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to request 
url 
http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.mapVERSION=1.1.1REQUEST=GetMapSERVICE=WMSSTYLES=BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609WIDTH=1044HEIGHT=1044FORMAT=image/pngSRS=EPSG:900913LAYERS=atl_indTRANSPARENT=true
 : Failed to connect to ::1: Permission denied, referer: 
http://cdiac5.ornl.gov/waves/underway/test.html
[Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tileset test: unknown 
error (another thread/process failed to create the tile I was waiting for), 
referer: http://cdiac5.ornl.gov/waves/underway/test.html
and so on ……

If I run just the failed url from apache log, it creates 1044x1044 image with a 
single point in the center, and gives no error messages.

My mapfile:
MAP
  NAME underway_ai
  DEBUG ON
  STATUS ON
  SIZE 970 715
  EXTENT -180 -90 180 90
  UNITS DD
  IMAGETYPE GIF
  SHAPEPATH /var/www/html/waves/underway/images

  WEB
IMAGEPATH /var/www/html/waves/tmp
IMAGEURL tmp/
METADATA
ows_enable_request *
wms_title Underway_ai
wms_onlineresource http://cdiac5.ornl.gov/cgi-bin/mapserv?;
wms_srs epsg:900913
wms_enable_request GetMap
END
  END

  PROJECTION
init=epsg:900913
  END

  SYMBOL
NAME Dot
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
  END

  LAYER
DEBUG ON
CONNECTION underway_ai.ovf
CONNECTIONTYPE OGR
DATA atl_ind
METADATA
wms_srs epsg:900913
wms_title atl_ind
wms_group_title test_group
wms_exceptions_format application/vnd.ogc.se_xml
END
NAME atl_ind

PROJECTION
init=epsg:900913
END
GROUP atl_ind
SIZEUNITS PIXELS
TYPE POINT
STATUS ON
TOLERANCE 0
TOLERANCEUNITS PIXELS
CLASS
  STYLE
SYMBOL Dot
SIZE 2
COLOR 255 0 0
  END
END
  END

END

and my mapcache file:
mapcache
   cache name=disk type=disk
  base/var/www/mapcache/cache/base
  symlink_blank/
   /cache

   source name=vmap0 type=wms
  getmap
 params
FORMATimage/png/FORMAT
LAYERSatl_ind/LAYERS
TRANSPARENTtrue/TRANSPARENT
 /params
  /getmap

  http
 
urlhttp://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map/url
  /http
   /source
   tileset name=test
  sourcevmap0/source
  cachedisk/cache
  gridWGS84/grid
  gridg/grid
  gridGoogleMapsCompatible/grid
  formatPNG/format
  metatile5 5/metatile
  metabuffer10/metabuffer
  expires3600/expires
   /tileset
   tileset name=test1
  sourcevmap0/source
  cachedisk/cache
  gridWGS84/grid
  gridg/grid
  gridGoogleMapsCompatible/grid
  formatPNG/format
  metatile5 5/metatile
  metabuffer10/metabuffer
  expires3600/expires
   /tileset
   default_formatJPEG/default_format
   service type=wms enabled=true
  full_wmsassemble/full_wms
  resample_modebilinear/resample_mode
  formatJPEG/format
  maxsize4096/maxsize
   /service
   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
   service type=gmaps enabled=true/
   service type=ve enabled=true/
   service type=demo enabled=true/

   errorsreport/errors
   lock_dir/var/www/mapcache/cache/lock_dir
   log_leveldebug/log_level


RE: [mapserver-users] polygon border artifacts

2012-05-07 Thread Lime, Steve D (DNR)
The artifacts are more or less prominent depending on the color something is 
drawn over. I think it's a result
of the analytic anti-aliasing done by AGG. I had read a thread once that talked 
about it, I recall it being most
prominent with horizontal and vertical lines. In the example Sven provided if 
you change the IMAGE color also to
blue you don't see any artifacts between ocean polys, although of course you 
don't see the islands, so the artifacts
is related to anti-aliasing blue on red. A different background might make it 
more subtle.

The work around is easy enough, draw an outline, although I don't know why 
anti-aliasing associated with that rendering
doesn't itself produce an artifact.

Steve

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Monday, May 07, 2012 1:05 PM
To: Lime, Steve D (DNR); Sven Geggus; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] polygon border artifacts

Hi,

Perhaps it is mostly an AGG issue because I think that Mapnik makes similar 
artifacts too.  See Corine landuse polygons here  
http://www.openstreetmap.org/?lat=60.820709lon=27.201925zoom=18layers=M
Sea areas do not have artifacts in OSM because sea is just background colour 
and is is not rendered at all from any data. But I do not know what Mapnik is 
doing with the land polygons. I cannot see artifacts between them in OMS maps.

-Jukka Rahkonen-

Lime, Steve D wrote:

 I tried locally and it's definitely a rendering artifact related to 
 anti-aliasing. Should an outline always be drawn?


 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf  Of Sven 
 Geggus
 Sent: Friday, May 04, 2012 6:04 AM
 To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] polygon border artifacts

thomas bonfort thomas.bonf...@gmail.com wrote:

 with a recentish version of mapserver, try setting PROCESSING 
 APPROXIMATION_SCALE=FULL
 on your ocean layer, to avoid feature simplification (it will slow 
 down the rendering if the resolution of your data is much greater than 
 the resolution of the requested map).

Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately 
this does not seem to fix the problem.

Regards

Sven

--
Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang 
Schäuble)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web 
___
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: polygon border artifacts

2012-05-07 Thread Sven Geggus
Lime, Steve D (DNR) steve.l...@state.mn.us wrote:

 I tried locally and it's definitely a rendering artifact related to 
 anti-aliasing. 

The artifact is getting worse in lower zoom levels (smaller islands).

I just tried a huge overlap of the polygons which made it better but
did not make it disapear also. So the workaround could be to find the
perfect combination of outlinewidth (as small as possible) and
overlap factor (also as small as possible).

 Should an outline always be drawn?

Tiled ocean polygons like I have them should be the perfect example
where an outline just does not make sense.

One would probably want to have an outline on the coastline but not
on polygon borders. Something one would need to render from a separate
linestring layer anyway. 

Regards

Sven


-- 
If you don't make lower-resolution mapping data publicly
available, there will be people with their cars and GPS
devices, driving around with their laptops (Tim Berners-Lee)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver + mapcache + Google Map

2012-05-07 Thread Travis Kirstine
Does apache have permission to write to the mapcache directory
/var/www/mapcache/cache?

On 7 May 2012 14:13, Krassovski, Misha B. krassovsk...@ornl.gov wrote:
 I work on a project that has 4.5 mil points (each one is a single dot, with 
 lat, lon),  that have to be shown on the world map.
 I managed to do it with mapserver (wms) + Google map. It works fine, but very 
 slow, so I decided to add a mapcache caching system.
 Spend already a week but still can't get it work. Please take a look at error 
 messages and my map and mapcache files.
 Thank you in advance for the help!!


 Here are error messages that I have.
 In Firebug console:
 NetworkError: 404 Not Found - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/1.png;
 NetworkError: 404 Not Found - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/2.png;
 NetworkError: 502 Bad Gateway - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/2.png;
 NetworkError: 500 Internal Server Error - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/1.png;
 NetworkError: 502 Bad Gateway - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/1/1.png;
 NetworkError: 502 Bad Gateway - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/3.png;
 and so on …..

 In apache log:
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in 
 [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] mapcache fcgi conf 
 file: /var/www/mapcache/mapcache.xml, referer: 
 http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in 
 [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to 
 request url 
 http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.mapVERSION=1.1.1REQUEST=GetMapSERVICE=WMSSTYLES=BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609WIDTH=1044HEIGHT=1044FORMAT=image/pngSRS=EPSG:900913LAYERS=atl_indTRANSPARENT=true
  : Failed to connect to ::1: Permission denied, referer: 
 http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tileset test: 
 unknown error (another thread/process failed to create the tile I was waiting 
 for), referer: http://cdiac5.ornl.gov/waves/underway/test.html
 and so on ……

 If I run just the failed url from apache log, it creates 1044x1044 image with 
 a single point in the center, and gives no error messages.

 My mapfile:
 MAP
  NAME underway_ai
  DEBUG ON
  STATUS ON
  SIZE 970 715
  EXTENT -180 -90 180 90
  UNITS DD
  IMAGETYPE GIF
  SHAPEPATH /var/www/html/waves/underway/images

  WEB
    IMAGEPATH /var/www/html/waves/tmp
    IMAGEURL tmp/
    METADATA
        ows_enable_request *
        wms_title Underway_ai
        wms_onlineresource http://cdiac5.ornl.gov/cgi-bin/mapserv?;
        wms_srs epsg:900913
        wms_enable_request GetMap
    END
  END

  PROJECTION
    init=epsg:900913
  END

  SYMBOL
    NAME Dot
    TYPE ELLIPSE
    POINTS 1 1 END
    FILLED TRUE
  END

  LAYER
    DEBUG ON
    CONNECTION underway_ai.ovf
    CONNECTIONTYPE OGR
    DATA atl_ind
    METADATA
        wms_srs epsg:900913
        wms_title atl_ind
        wms_group_title test_group
        wms_exceptions_format application/vnd.ogc.se_xml
    END
    NAME atl_ind

    PROJECTION
        init=epsg:900913
    END
    GROUP atl_ind
    SIZEUNITS PIXELS
    TYPE POINT
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      STYLE
        SYMBOL Dot
        SIZE 2
        COLOR 255 0 0
      END
    END
  END

 END

 and my mapcache file:
 mapcache
   cache name=disk type=disk
      base/var/www/mapcache/cache/base
      symlink_blank/
   /cache

   source name=vmap0 type=wms
      getmap
         params
            FORMATimage/png/FORMAT
            LAYERSatl_ind/LAYERS
            TRANSPARENTtrue/TRANSPARENT
         /params
      /getmap

      http
         
 urlhttp://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map/url
      /http
   /source
   tileset name=test
      sourcevmap0/source
      cachedisk/cache
      gridWGS84/grid
      gridg/grid
      gridGoogleMapsCompatible/grid
      formatPNG/format
      metatile5 5/metatile
      metabuffer10/metabuffer
      expires3600/expires
   /tileset
   tileset name=test1
      sourcevmap0/source
      cachedisk/cache
      gridWGS84/grid
      gridg/grid
      gridGoogleMapsCompatible/grid
      formatPNG/format
      metatile5 5/metatile
      metabuffer10/metabuffer
      expires3600/expires
   /tileset
   default_formatJPEG/default_format
   service type=wms enabled=true
      full_wmsassemble/full_wms
      resample_modebilinear/resample_mode
      formatJPEG/format
      maxsize4096/maxsize
   /service
   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
 

[mapserver-users] Re: Mapserver + mapcache + Google Map

2012-05-07 Thread mkrassovski
Travis, thank you, for the reply.
Yes, it does. I double checked it.

Misha

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4958632.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] Truetype font rendering changes?

2012-05-07 Thread Stephen Woodbridge

Hello Johan,

I have created bug #4308
https://github.com/mapserver/mapserver/issues/4308
and put a link to your tar file on my server.

Thank you for taking the time to create a simple test case, I'm sure 
this will accelerate getting it resolved.


-Steve W

On 5/7/2012 4:06 PM, Johan Forsman wrote:

Hello Steve and thanks.

I adapted your example and packaged a small test case following your
instructions. It's attached. I ran it with MS54 under FGS95 on Linux
and also with MS60 under the main environment on the same server,
as well as with MS60 under MS4W3 on Windows Server 3008. I see the
same rendering differences as in my general case originally reported.
I hope the attachment provides the data you need.

Thanks again, Johan.

-Original Message- From:
mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge Sent: Monday, May 07, 2012 10:57 AM To:
mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users]
Truetype font rendering changes?

Johan,

You need to provide a simple test case if you want a developer to
help diagnose this problem.

I would suggest creating a simple mapfile that draws a single label
like the following. Adjust it to your needs

MAP SIZE 100 100 EXTENT 100 100 UNITS inches FONTSET fontset.txt
IMAGETYPE ...

OUTPUTFORMAT ... END

LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS 50 50 END END CLASS
STYLE SYMBOL 0 COLOR 0 0 0 END TEXT 123 LABEL TYPE TRUETYPE FONT
arial-narrow SIZE 7 COLOR 0 0 0 END END END END

Test this on both servers. Also make sure you are using the same font
file, ie copy it to your test example directory and create a new
fontset.txt that only have this single font referenced in it. If you
still get different results, then tar/zip up the test example and
email it to Steve L or me and I will make it available as a link if
you can post a link to it.

-Steve W

On 5/7/2012 11:31 AM, Johan Forsman wrote:

No. Unfortunately none of the sites are accessible from the
outside. The best I can do are screenshots.

I attached two examples from the same Linux server. One is from the
FGS95 (MS54) environment and the other (MS60) is under the main
system environment. Both samples are of Arial Narrow 7 point, and
the image is rendered using the following output format:

OUTPUTFORMAT NAME 'agg_q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION
QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION
QUANTIZE_COLORS=256 END

I freely confess to not knowing much about the various output
formats. This one I picked from the list some time long ago. I
tried other formats also, both 8- and 24-bit and both the AGG and
Cairo drivers, but I have not noticed any clear differences.

Thanks for any suggestions and I'll be glad to collect additional
information if needed.

Johan.

-Original Message- From: Lime, Steve D (DNR)
[mailto:steve.l...@state.mn.us] Sent: Monday, May 07, 2012 9:43 AM
To: Johan Forsman; Donald Kerr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Truetype font rendering changes?

Is that test case available someplace?

-Original Message- From:
mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
Johan Forsman Sent: Monday, May 07, 2012 8:32 AM To: Donald Kerr;
mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users]
Truetype font rendering changes?

Thank you for the suggestion however I regret to report that there
is no discernible difference in the appearance of the text when
using cairopng in the Windows environment. I have also created a
test case using MS6 on the same Linux server (but outside the FGS95
environment) as my MS5.4 and the text is rendered exactly the same
as on the Windows platform, with the same reduced legibility.

Thanks, Johan.

-Original Message- From: Donald Kerr
[mailto:donald.k...@dkerr.co.uk] Sent: Thursday, May 03, 2012 12:39
PM To: Johan Forsman; mapserver-users@lists.osgeo.org Subject: RE:
[mapserver-users] Truetype font rendering changes?

Johan,

Have you tried cairopng as an alternative to AGG?

Regards,

Donald


-Original Message- From:
mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
Johan Forsman Sent: 03 May 2012 16:07 To:
mapserver-users@lists.osgeo.org Subject: [mapserver-users] Truetype
font rendering changes?


Hello All:

I am in the process of migrating from MapServer 5.4 (FGS95 on
Linux) to MapServer 6 (MS4W3 on Windows Server 2008 R2). Most
things are migrating well however I have a peculiar TrueType font
rendering issue where the readability on the new system is far less
than on the old system. I have attached two screenshots taken at
the same scale to illustrate the issue. In these images the parish
labels are Arial Bold Italic 6 pt., the interstate shields are
Arial 8 pt., and US highway shields are Arial Narrow 7 pt. The TTF
files and the MAP files were copied directly from the old system