[mapserver-users] Symbology Exchange

2008-11-23 Thread Gregor Mosheh
Hey folks. A FYI: Due to hobu's request, I have moved the Symbology 
Exchange into the Trac Wiki and updated the old pages on the MapServer 
Plone site. This means that we can post symbols and still have the code 
look good, which is nice.


http://mapserver.gis.umn.edu/docs/howto/symbologyexchange
is now
http://trac.osgeo.org/mapserver/wiki/SymbologyExchange

--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver & ECW in Linux

2008-10-30 Thread Gregor Mosheh

Carlos Ruiz wrote:

Yep, ECW and JPEG2000 appears using gdalinfo --formats


Good start. That brings us up to Mapserver. If you rebuilt it with GDAL 
support and GDAL supports ECW, then Mapserver should support ECW 
silently as any other raster format.


So exactly how is it not working?
Generating an error?
Generating emptiness?
Can you post relevant parts of your mapfile?

If it's a blank map, check your projection; I slap my forehead all the 
time over that, requesting a map in latlon with data in UTM so my 
request is millions of units away from the data.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver & ECW in Linux

2008-10-30 Thread Gregor Mosheh

Carlos Ruiz wrote:

Then i configure and make the gdal to support ECW


Do you then run "gdalinfo --formats" ?
That shows a list of formats; make sure that ECW is listed. Otherwise, 
you're not getting GDAL with ECW and should try again.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] How can i incorporate Cache?

2008-10-23 Thread Gregor Mosheh

mhungc wrote:

I'm using Ajax in javascript for get Image Map. I wonder how can i
incorporate cache with the image using ajax..like GoogleMap or Kmap when
i do pan in there.


The most popular is TileCache. It's a WMS-C server. Of course, your AJAX 
request thing would have to be making WMS-C calls which it likely is not 
if you wrote it yourself.


Another idea could be to roll your own, and that should be fairly easy. 
Replace your call to the mapserv binary with a call to a MapScript 
program that generates the same images. Then modify it to track the 
layer and extent, save a copy, and so on. In theory, fairly easy. :)


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache.

2008-10-20 Thread Gregor Mosheh

Asif Memon wrote:
Could someone please point me to the documentation for serving large 
(2GB to 3GB) raster images using tile cache. I want to use Minnesota Map 
Server and GDAL to achieve this.


You'll want to ask the TileCache list about that, likely. Once you have 
MapServer actually serving up the imagery, get your client using 
MapServer or WMS (I like OpenLayers, myself). Then install TileCache and 
change the OL app to use TC's URL instead of MapServer's. Easy.


But you may want to install OpenLayers and get it working with MapServer 
first, then hit up the OL and TC mailing lists.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is using ECW format allowed or not?

2008-10-20 Thread Gregor Mosheh

1. Can we use our compressed ECW images as input for MapServer WMS?
2. Can we use ECW as an output format for MapServer WCS?


The license agreement says that the ECW SDK cannot be used "on a server" 
then goes on to define that as a computer connected to the Internet 
which provides images. I'd say that clearly rules out MapServer 
consuming ECW. Very unfortunate, but in my opinion very clear.


In my tests, I have found that JPEG2000 and ECW are really too slow for 
production use anyway. Maybe that's some "sour grapes" consolation? :)


 --
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] speed optimization with shptree - when is it wothwhile?

2008-10-16 Thread Gregor Mosheh

Mark Volz wrote:
For example should I use ShpTree for shapefiles that have 100 features 
or wait until there are 1,000 features in the shapefiles?


Not to sound simplistic, but it never HURTS to use it, so why not use it 
every time? Only takes a second, doesn't even increase the disk usage.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Ed's Rules for the Best Raster Performance

2008-09-15 Thread Gregor Mosheh

Jim Klassen wrote:

Just out of curiosity, has anyone tested the performance of Jpegs vs. GeoTiffs?


Yep. In my tests, GeoTIFF was the fastest format by some margin, even up 
to 2 GB filesizes. That was on 8-CPU machines, too. If you check the 
mailing list archive, you'll likely find the "papers" I posted to the 
list putting real numbers to it.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] I would like to kno w your opinion‏

2008-09-09 Thread Gregor Mosheh

Roberto Urrutia wrote:

What tool or IDE could you recommend me to develop code for mapserver?


It's not just for Mapserver, but... I enjoy Komodo Edit, the open-source 
version of Komodo IDE. Aside from being really slow and laggy at times, 
it supports remote editing via SFTP and FTP, which is a huge deal for me.


And I won't even charge you the two cents for my opinion. :)

--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how do you unsubscribe from this list

2008-09-03 Thread Gregor Mosheh

http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/

http://lists.osgeo.org/mailman/listinfo/mapserver-users

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] expressions for Postgis layers

2008-08-27 Thread Gregor Mosheh

Mike Leahy wrote:

EXPRESSION "('[lcdb1name]' = 'High Producing Exotic Grassland')"


Remove the "" from it. An expression with () around it is the complex 
sort you're looking for.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] epsg code for 'UTM 43 North'

2008-08-19 Thread Gregor Mosheh

Ritesh Ambastha wrote:

How can I calculate exact EPSG code for the date projected in 'UTM 43 North'


The UTM codes, the ones I've used anyway, all start with 267 or 269, 
then the zone. 267 for NAD27 and 269 for WGS84/NAD83


So I would suspect yours to be 26743 or 26943

You'd want to check PROJ's EPSG file to verify it, though:
/usr/share/proj/epsg

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres

2008-08-19 Thread Gregor Mosheh

Ritesh Ambastha wrote:

fseek(-1035313584) failed on DBF file.
What can be the problem? What should be checked in the DBF for these kind of
errors?


Are you positive that the DBF was uploaded correctly? The first thing I 
would suspect is that I FTPd it in ASCII mode, or only got half of the 
file uploaded. Check the DBF and make sure it's the right size and 
md5sum, is my advice.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ShpTree

2008-08-11 Thread Gregor Mosheh

Jay Kapalczynski wrote:
I am trying to figure out what I need to do/install/run to create a .qix 
file (tile index) for a few of my shapefiles.

I have looked this up on a few pages and still am confused.


Example:
   shptree streets.shp
That will create streets.qix

Note that for Mapserver (rather, OGR) to USE the qix file, you must not 
specify the .shp extension in your DATA statement. If you do, the qix 
will simply be skipped. e.g.

   DATA "data/streets/streets.shp"
should be:
   DATA "data/streets/streets"
(someone correct me if this has changed)

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ShpTree

2008-08-11 Thread Gregor Mosheh

Jay Kapalczynski wrote:
I am trying to figure out what I need to do/install/run to create a .qix 
file (tile index) for a few of my shapefiles.

I have looked this up on a few pages and still am confused.


If you installed Mapserver, then you have shptree - at least under 
Unixes. If you're using MS4W, I can't say whether it includes shptree.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


mapserver-users@lists.osgeo.org

2008-06-19 Thread Gregor Mosheh

vendi aja wrote:
Hi all, im kind a newb here, what i want to ask is, is there any way for 
mapserver to Access it data from GML.. sample would be much 
appreciate... thanks in advance


Sure. If it's a remote WFS server, read the "WFS Clients" documentation 
on the website. If it's a GML file, use a OGR data source to connect to 
it; again, that's documented on the website.


http://mapserver.gis.umn.edu/docs/howto/wfs_client

http://mapserver.gis.umn.edu/docs/howto/ogr_howto

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Unknown identifier: LABELSIZEITEM

2008-06-08 Thread Gregor Mosheh

Rainer Spittel wrote:

   loadLayer(): Unknown identifier. Parsing error near
(LABELSIZEITEM):(line 699)


Yep, as of MS 5 they now use "binding" and have omitted the old "item" 
keywords. Try this:


  LABEL
SIZE [label_priority]
  END

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Why isn't this SLD working?

2008-05-28 Thread Gregor Mosheh

Yewondwossen Assefa wrote:

 Could it be related to the imagepath and/or imageurl not set properly


Agh! Yeah; that was it. They keep deleting their temp directory.
Thanks for pointing it out, Yew!


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Why isn't this SLD working?

2008-05-28 Thread Gregor Mosheh

Hey hey. Any thoughts on this?

As far as I can tell, the SLD is proper and the URL is proper for using 
that SLD. I have verified that from "within" the server I can wget the 
gm.xml file, so I know it's in fact accessible. So why isn't the SLD 
being applied?


http://www.cambodiaatlas.com/cgi-bin/mapserv?map=/var/www/mango-v1.0.0/Track/track.map&service=WMS&version=1.1.1&request=GetMap&transparent=true&styles=&format=image/png&srs=EPSG:32648&width=500&height=500&bbox=102.06899309916874,10.13684987316996,107.89237806590529,14.907098809695391&SLD=http://www.cambodiaatlas.com/track/gm.xml&layers=dn_pol_clip

http://www.cambodiaatlas.com/track/gm.xml

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver & GDAL in various Linux repositories

2008-05-14 Thread Gregor Mosheh

Why, thank you Gail. That just brings out a smile.

FYI, I've started construction of HGL 4.3 so this is a great time to hit 
up the mailing list, and to send in requests and complaints about HGL 
4.2 The diffs will be about a dozen bugfixes, and mostly just good ol' 
package upgrades, and a lot of work toward package upgrades.


And now I'll quit spamming plugs for our own product. :)

--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver & GDAL in various Linux repositories

2008-05-14 Thread Gregor Mosheh
Any other ideas? - custom repositories with more up to date, or 
consistent across Linux systems, version?

> Maybe something similar

to FWTools but with stable versions only?


There's our own open-source product: HostGIS Linux
http://www.hostgis.com/linux/
We use it in production on both 32-bit and 64-bit platforms, with great 
success.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer's image quality stinks serving up these NOAA NRCs

2008-04-20 Thread Gregor Mosheh
I asked the GDAL list about this some weeks back, but we only explored a 
few ideas and then forgot about it for a few days.


URL   http://ms2.geowake.com/
These were KAP files downloaded from NOAA's Raster Nautical Charts 
(NRCs), converted to TIFF with gdalwarp.


The image quality there stnks! A second map (no longer available) 
made of the raw images sliced into PNGs and not run via MapServer, looks 
very nice. You can make out text in 1 zoom, the high-level maps are less 
grainy, the quality once you zoom in is better...


Any thoughts on why it'd be so ugly? The images almost look as if 
they've been downsized, don't they?


Factors which we've tried and seem to have eliminated:

* The KAPs themselves aren't damaged, and GDAL isn't creating crummy 
TIFFs. I can gdalwarp them to TIFF or PNG, and back and forth, and the 
output image looks great -- if I download it and view it on my PC.


* Reprojection: If I request a WMS image in a browser, using plain 
latlong (the KAPs are georef'd in latlong) the image quality doesn't 
improve. Also, if I project the KAP to EPSG:54004 and request there, it 
makes no difference. That seems to eliminate reprojection as a likely cause.


* Output image format. Requesting PNG, JPEG, or GIF from MapServer WMS 
makes no difference. I can share the IMAGEFORMAT blocks if requested.


Items still not entirely eliminated:

* Resampling: If I add PROCESSING "RESAMPLE=BILINEAR" it makes a small 
difference in the quality, but not a lot. Same goes for bicubic as well: 
a visible difference, but not significant. The other two didn't make any 
difference at all.


* Color depth: gdalwarp on the KAPs generates 8-bit palleted TIFFs. That 
may not be the best for quality.



Any thoughts?

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Php mapscript manual

2008-04-10 Thread Gregor Mosheh

Paul Alarcon wrote:

Hello i want to make an interface in php but i dont know all the commands for 
this. Does anyone know where i can find a tutorial or manual for php mapscript ?


The Mapserver website, in Documents.
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] What's the correct reference to MapServer now for Info linking?

2008-04-01 Thread Gregor Mosheh

Frank Warmerdam wrote:

UMN Mapserver

Gregor,
I wonder how you establish that?


Off the lanyard I got at the conference :) and the  tag of the 
website. I did typo it, though, and didn't capitalize the S.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] What's the correct reference to MapServer now for Info linking?

2008-04-01 Thread Gregor Mosheh

Bob Basques wrote:

What from below is most correct?


UMN Mapserver

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-29 Thread Gregor Mosheh

I guess I don't get the process that the nice image is going through.
Are you having to pre-reproject it to Mercator before slicing it
up for the exact Google maps zoom levels?  Or do you just provide
it in 4326 and google maps takes care of reprojecting it?


It's in latlong and letting Google Maps do whatever it does; or 
Mapserver reproject it. Reprojecting it ahead of time made no difference.




Are the source PNGs paletted or RGB 24bit?


The original PNGs are 8-bit paletted. Presented to me is a RGB TIFF, 
because I knew that paletted wasn't going to cut it.




Selecting PROCESSING "RESAMPLE=BILINEAR" and giving it 24bit RGB
input files should give something fairly similar I'd think.


Nope. I've already tried all 4 resampling algorithms, 24 bit TIFFs, and 
overviews with -r average, and the oversample_ratio directive. No 
significant effect. That current combination is up now if you want to see.


Hmm?

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread Gregor Mosheh

Frank Warmerdam wrote:
> I zoomed in on both, and I don't see the effect you are talking about.
> Perhaps you need something a little less error prone, like screen
> snaps that demonstrate what you are talking about!

Sure thing:

http://ms2.geowake.com/ms_fullview.png
http://ms2.geowake.com/ms_3_notches_in.png
http://ms2.geowake.com/ms_5_notches_in.png

http://ms2.geowake.com/png_fullview.png
http://ms2.geowake.com/png_3_notches_in.png
http://ms2.geowake.com/png_5_notches_in.png


Note how the png ones lack the jagged "crunchy" quality, how even the 
smaller text is legible and smooth at the tighter zoomlevels. The 
Mapserver one, though, is illegible and looks as if it's been downsized 
or something.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Resampling and image quality?

2008-03-27 Thread Gregor Mosheh
I'll be on the plane all day tomorrow, on my way to DC for the 
PostgreSQL East conference. If I don't reply, it's not personal. :)



P Kishor wrote:

yikes! The ms2 version is fugly.


M hm. This is the first time we've ever compared the PNG with the 
Mapserver output side by side, especially in a situation where the 
raster has text in it, so I'm also surprised!




This sounds really silly, but have you tried with exactly the same
image in both instances? That is, not the sliced version for
MapServer, but exactly the same one you have for Google Maps?


The one I'm given for use in Mapserver, is the same PNG except left 
whole and with a world file added. The "plain PNG" version is sliced for 
use in a GTileoverlay, but is otherwise the same.


Or did I misunderstand the question?

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Resampling and image quality?

2008-03-27 Thread Gregor Mosheh
Hi, all. We're seeing some distortion in an image, a loss of viewing 
quality, and am hoping that y'all can provide some insight into what may 
be the issue.


Here are the URLs:
   http://dev.geowake.com/chart.test/index.php
   http://ms2.geowake.com/
Yes, it's Google Maps, but bear with me. :)
The "dev" one is using a PNG sliced for use in Google Maps.
The "ms2" one is Mapserver WMS, using the same PNG but with a worldfile 
and without slicing since the idea here is to use WMS and save a lot of 
work as well as being vendor-neutral.


You'll see that the "dev" one has a much "smoother" look to it. If you 
zoom in three notches, you can read the map's title clearly. The 
Mapserver WMS version, the text is very obviously blocky even if you 
zoom in 4 notches. As you keep zooming in, the quality difference 
becomes more obvious as you can read the PNG's smaller text but not the 
WMS's.



So, what to do? I have tried and eliminated several possibilities, and 
am stumped.


- Source image quality; the PNGs on both sides are visually identical in 
an image viewer. I have tried the source image in TIFF and PNG with 
various options.


- Bad world file; the spatial extent matches that of the other map, and 
I've checked the math repeatedly and found it A-OK


- Image format options; I have tried every image format supported, and 
the image always comes out looking the same, so it's not interlacing 
gone wrong, nor lossy JPEG compression, etc. The outputformat block is 
set to generate PNG-24 RGBA, and I have verified by downloading from the 
WMS that it is doing so.


Possibilities I've not yet exhausted:

- Resampling; using PROCESSING "RESAMPLE=AVERAGE" improved the image 
quality but only very slightly.


- Reprojection; the images are in WGS84 (EPSG 4326) and I know that 
Google uses their weird Mercator (54004). I added 54004 to our EPSG 
file, and have tried various approaches such as reprojecting the image 
to 54004 ahead of time, and using 54004's numbers in a worldfile so 
there'd be no reprojection at all, but the effect is always the same.



Any ideas what's up here?

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem creating WMS

2008-03-25 Thread Gregor Mosheh

bernardo wrote:
This program cannot read feature info in type "text/html", only 
"gml"


GML is for WFS, which is for sending vector data (as opposed to raster 
pictures of data) over the net. Perhaps you're interested in WFS and not 
WMS?


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Hiding overviews

2008-03-25 Thread Gregor Mosheh

Daniel Morissette wrote:

Well, in the meantime I patched the MapServer code a
little bit and made it being an Apache module, reading and parsing the
map file only once on startup.


Are you serious, mod_mapserver? Holy cow, that would be awesome!

I would be VERY interested to hear about stability with prefork MPM, 
whether it seems production grade, etc. I'd be glad to try it out as a 
patch to some of our systems (production but willing) and provide feedback.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Running with MrSID (not scissors)

2008-03-19 Thread Gregor Mosheh

Jeshua Lacock wrote:

It might be good to share for what platform...


M hm. One item of note, is that the Linux version of the SDK is for 
32-bit only, and will not work in 64-bit environments. Most sad. 
LizardTech doesn't even have immediate plans for the next version, only 
the idea that it will support 64-bit. Sigh.



I suspect that the GDAL list would be a more appropriate place to 
inquire about GDAL support.


Indeed. I can provide a few pointers right here, though, before you take 
it to the other list. :)


1. First you need to install the MrSID SDk, from LizardTech's downloads 
area. After that, when you run configure, use --help and look for the 
--with-mrsid option.


2. I have found the runtime performance of wavelet-compressed images 
(ECW, JPEG2000, MrSID) to be unacceptable for my needs. Your mileage may 
vary, but you may want to save yourself some trouble by fetching 
mrsiddecode and extracting it to TIFFs.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rotate labels based on angle defined in attribute field

2008-03-18 Thread Gregor Mosheh

Steven De Vriendt wrote:

  I'd like to rotate my labels based on an angle defined in an attribute field.
  But I don't know if it's possible to do that in mapserver ?


Sure, it's called "binding" and is all the rage in 5.0  :)

LABEL
  ..blah..
  ANGLE [field]
END

This replaces the old ANGLEITEM keyword from 4.8, so if you're using 4.8 
search the docs for ANGLEITEM.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Which OS for Mapserver?

2008-03-07 Thread Gregor Mosheh
A major consideration is that MrSID exists mainly for Windows. For 
64-bit Linux, the only option for MrSID at this point is their 
precompiled utilities, extracting the data out into rasters in some 
other format more GDAL-friendly. For 32-bit Linux, you can contrive to 
build GDAL with MrSID support.


Personally, I have found that the runtime performance of wavelet 
compression (ECW, MrSID, JPEG2000?) to be so poor as to not be worth the 
trouble, and prefer to decompress into fast and space-hogging TIFFs.


And if you have a spare PC, have VMWare, or are willing to partition 
your disk, you can always try it out yourself, run your own tests. I 
always recommend our own free/oss product HostGIS Linux, especially for 
someone who wants to avoid a lot of the learning curve of a new Linux 
and skip to the maps.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Roads: road style and shields

2008-02-27 Thread Gregor Mosheh

I have been browsing the archives for examples of nice (read: googlish) ways
of rendering roads and using shields


I hate to be a metoo, but if someone does have such available, would you 
please post it to the Symbology Exchange on the Mapserver site (I think 
it's in HOWTOs)? The goal there was to collect nice symbologies and have 
them in a publicly-accessible shared splace.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: Antwort: Re: [mapserver-users] Strange line in picture

2008-02-24 Thread Gregor Mosheh

[EMAIL PROTECTED] wrote:

I repeated the test  with 5.0.2.
Error doesn't occure. Seems to be solved.


Oh good. Thanks for getting back to us. Now I know.

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Strange line in picture

2008-02-24 Thread Gregor Mosheh

[EMAIL PROTECTED] wrote:
In some cases Mapserver produces an unwanted and strange horizontal line 
at the bottom of a map, if a point is rendered near  the bottom.


If the answer is the same as when I noted this some months ago:

That's a known GD+Mapserver bug. But strangely I didn't find this bug in 
the MS Trac; not that I looked very hard.


Try AGG, or grab the latest Subversion version of Mapserver. Then again, 
the fix may be in 5.0.1 by now.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Off-Topic: Contour lines from depth CSV?

2008-02-16 Thread Gregor Mosheh

Maxim Dubinin wrote:

try GMT http://gmt.soest.hawaii.edu/


Perfect!  Thanks a lot, Maxim.

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Off-Topic: Contour lines from depth CSV?

2008-02-16 Thread Gregor Mosheh
Hey, all, a how-to question. I admit that it's off-topic, but y'all 
being some of the smartest folks I know, it's worth asking.


We have bathymetry models in CSV format: lon, lat, depth.
Does anyone know of software, preferably Unix command-line, for 
assembling contour-polygons from this?


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Get a pixel's RGB by latlon?

2008-02-14 Thread Gregor Mosheh

Fawcett, David wrote:

Did you go with CGI or MapScript?  Care to share a snippet?


Still, here are all the steps in one place. Hopefully this will get 
archived and spidered, and the next Google user will have an easier time 
than I did! (though a missing - sign in my coords was the true culprit 
in many of my tribulations)


I used Mapserver's built-in CGI query mechanism, as it provides 
sufficient abstraction to automagically convert latlon and layer into a 
image file and pixel, even crossing tileindexes. That would've been 90% 
of the hard stuff, done already!


The mapfile does need a query template for the raster layer, as is 
documented:

LAYER
  NAME "avhrr"
  STATUS on
  TYPE raster
  DATA "AVHRR_SST/avhrr-today.tif"
  TEMPLATE "/maps/wms/pixel.template.html"
END

And pixel.template.html is simply this one word, the raw pixel value 
from whatever point was selected, from band 0.

[value_0]

The query was intended, as you can see, for a given latlon as opposed to 
a point-click and pixels within an image of known height. And since this 
was within PHP, I really did want to use 'localhost'


http://localhost/cgi-bin/mapserv?map=/maps/wms/sst.map&mode=query&layers=%s&mapxy=%f+%f

Now in PHP, I simply do file_get_contents($url) and I have the raw pixel 
value. In many cases, the pixel value is not the same as the desired 
data value but that conversion varies with your particular dataset.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Get a pixel's RGB by latlon?

2008-02-13 Thread Gregor Mosheh
Never mind, I got it. A silly typo in the coordinates, putting my query 
on the wrong end of the planet.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Get a pixel's RGB by latlon?

2008-02-13 Thread Gregor Mosheh

Hi, all.
I have a bunch of Mapserver layers, with GeoTIFFs and sometimes 
tileindexes as the backend. Given a single layer, I would like to get 
the color of the pixel at a given lat/lon.


If anyone has code handy that does this, preferably in either PHP or 
Mapserver-via-CGI, I would appreciate it greatly, as it would be a major 
time saver.


There seem to be a few methods of doing this, from CGI's mode=query to 
MapScript's queryByPoint() but a working example would sure be nice, 
since my queries are returning nothing and the Python Mapscript example 
on the MS website is apparently for an older version of Mapscript.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] How can i do that the street's label have the same directions...?

2008-02-10 Thread Gregor Mosheh

How can i do that the street's label have the same diretions of them?


Set the LABEL's ANGLE to "follow"
That's as of Mapserver 4.10 and also in 5.0

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users