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] 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] 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] 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] 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] 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] Problem with mapserverGML

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


[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.mapservice=WMSversion=1.1.1request=GetMaptransparent=truestyles=format=image/pngsrs=EPSG:32648width=500height=500bbox=102.06899309916874,10.13684987316996,107.89237806590529,14.907098809695391SLD=http://www.cambodiaatlas.com/track/gm.xmllayers=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] 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


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] 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

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


[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] 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


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] 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] 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