Re: [mapserver-users] PGeo (Personal Geodatabases) options under Linux

2009-11-30 Thread Dan Little
I am making the gross assumption that someone, who is producing the PGeo file 
is on Windows and that person(s) would be available to do the conversion...


- Original Message 
 From: Stephen Woodbridge wood...@swoodbridge.com
 To: Dan Little danlit...@yahoo.com
 Cc: Chuck Jungmann ch...@cpjj.net; mapserver-users@lists.osgeo.org
 Sent: Sun, November 29, 2009 10:22:37 PM
 Subject: Re: [mapserver-users] PGeo (Personal Geodatabases) options under 
 Linux
 
 Dan Little wrote:
  not that this answers the problem... but is there any reason this
  cannot be exported to a shapefile and then served with mapserver?
 
 Good question. I think you would have to do that on a Windows box because the 
 MDBTools on Linux is just not up to the task. If you could export it on Linux 
 then you could also probably serve it directly via mapserver and ogr.
 
 -Steve W
 
  - Original Message 
  From: Chuck Jungmann To: Stephen Woodbridge
  Cc: mapserver-users@lists.osgeo.org Sent:
  Fri, November 27, 2009 5:17:03 PM Subject: Re: [mapserver-users]
  PGeo (Personal Geodatabases) options under Linux
  
  I've read that page several times. I have also built MDBTools,
  unixODBC and GDAL from CVS sources and applied patches, etc, so I
  could try to trace execution to the errors.  What I've found are
  instances where the code ultimately ends up in an empty function
  that simply returns SQL_SUCCESS or SQL_OK or whatever without doing
  anything.  That seems to be why MDBTools has trouble with SELECT
  COUNT(*) FROM xxx and why it can't find a primary key.
  
  While I can see that these database features are not working, it's
  also possible that they are not necessary.  I'm wondering if anyone
  has had success, either despite these errors, or by not
  encountering these errors, in which case I may find some success if
  I can duplicate their environment.
  
  Thanks for the quick reply, Chuck Jungmann
  
  On Fri, 2009-11-27 at 18:00 -0500, Stephen Woodbridge wrote:
  Chuck Jungmann wrote:
  I have a Personal Geodatabase (PGeo) from which I would like to
  display layers in MapServer on Ubuntu 9.04.  I have been
  fighting with MDBTools, unixODBC, and GDAL for what seems like
  forever.  The ogrinfo and isql fail with Segmentation Faults.
  
  I have two questions:
  
  1. Has anyone successfully used a PGeo file to display maps on
  MapServer under Linux?  Perhaps my efforts were doomed from the
  start.
  
  2. Since GDAL is using ODBC to read the MDB file, would using
  ODBC to access MySQL be a transparent replacement, assuming I
  copy all of the tables and indexes from the PGeo file to MySQL?
  Has anyone done this? I don't want to waste a lot of time on
  this if it's another dead end.
  Chuck,
  
  There was a recent thread related to these problems on the GDAL
  list. Frank posted the follow link and commented that there are
  also probable some open bugs. Evidently, the mdbtools are not
  well supported and buggy which makes using them problematic.
  
  http://trac.osgeo.org/gdal/wiki/mdbtools
  
  Check out this thread on the gdal-dev archives: [gdal-dev] mdb to
  shape conversion: no geometry exported
  
  -Steve
  
  ___ 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] Can not draw single point

2009-11-30 Thread Fawcett, David (MPCA)
You should also note that if your point is not in Antarctica, but instead in 
Afton NY, USA, you are specifying your XY values in reverse order.   

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ludwig Kniprath
Sent: Friday, November 27, 2009 3:15 PM
To: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Can not draw single point

Hello,
I used your slightly changed PHP and the mapfile below, it worked 
perfectly for me. Maybe your problems were caused by the extent defined 
in your mapfile?
Regards
Ludwig

?php
$map = ms_newMapObj('e:\website\WVER_IMS\mapfiles\test.map');
$daLayer = ms_newLayerObj($map);
$daLayer-set(type, MS_LAYER_POINT);
$daLayer-set(status, MS_ON);
$class = ms_newClassObj($daLayer);
$style = ms_newStyleObj($class);
$style-color-setRGB(255,0,0);
$style-set(symbolname, circle);
$style-set(size, 10);
$my_point = ms_newpointObj();
$my_point-setXY(60,60);
$image=$map-draw();
$my_point-draw( $map, $daLayer, $image, 0, Temp Point );
$image_url=$image-saveWebImage();
echo img src='$image_url'/;
?

map
   name test
   units dd
   extent 0 0 100 100
   size 640 480
   imagecolor 255 255 255
   WEB
   IMAGEPATH your_path
   IMAGEURL your_url
   END
   SYMBOL
   NAME circle
   FILLED true
   TYPE vector
   POINTS
   0 0
   0 1
   1 1
   1 0
   0 0
   END
   END
end


 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Helen 
 Eskina
 Sent: Wednesday, November 25, 2009 5:39 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Can not draw single point

  

 Hello,

  

 I try to draw single point on the map. My point is defined by lat/long
 coordinates. The problem is that the point is always in the same place on
 the map regardless of the lat/long defined.

 Here is my code:

 $map = ms_newMapObj($map_path.mymap.map);

 $daLayer = ms_newLayerObj($map);

  $daLayer-set(type, MS_LAYER_POINT);

 $daLayer-set(status, MS_ON);

  $class = ms_newClassObj($daLayer);

  $style = ms_newStyleObj($class);

  $style-color-setRGB(255,0,0);

  $style-set(symbolname, circle);

  $style-set(size, 10);

  

 $my_point = ms_newpointObj();

  

 $my_point-setXY(42.19,-75.46);

  

 $image=$map-draw();

 $my_point-draw( $map, $ daLayer, $image, 0, Temp Point );

  

 $image_url=$image-saveWebImage();

  

 What is wrong with it? I will appreciate any help.
  

 Thank you,

 Helen


___
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] Black background with palette

2009-11-30 Thread Alexandre Dube

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of having 
the backgroundcolor drawn it's all black instead. 


 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 66K 
png image.  With the palette, it's down to 17K but with a black background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END


--
Alexandre Dubé
Mapgears
www.mapgears.com

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


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Stephen Woodbridge

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would put 
the background color as the first color in the mypalette.txt file and 
see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of having 
the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 66K 
png image.  With the palette, it's down to 17K but with a black background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




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


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Stephen Woodbridge
Another thought on this is the because you are asking for a transparent 
image, the IMAGECOLOR tag is usually transparent and I have seen that 
come up as black in some cases.


-Steve W

Stephen Woodbridge wrote:

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would put 
the background color as the first color in the mypalette.txt file and 
see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of having 
the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 66K 
png image.  With the palette, it's down to 17K but with a black 
background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




___
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] Black background with palette

2009-11-30 Thread Alexandre Dube

Stephen,

 The MAP imagecolor isn't black and to put it at first position in my 
palette file but that didn't help.


Thanks for your help,

Alexandre


Stephen Woodbridge wrote:
Another thought on this is the because you are asking for a 
transparent image, the IMAGECOLOR tag is usually transparent and I 
have seen that come up as black in some cases.


-Steve W

Stephen Woodbridge wrote:

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would 
put the background color as the first color in the mypalette.txt file 
and see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of 
having the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 
66K png image.  With the palette, it's down to 17K but with a black 
background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




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





--
Alexandre Dubé
Mapgears
www.mapgears.com

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


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Stephen Woodbridge

Alexandre,

Try this as a hack and see if it helps.
Create a dummy LAYER like:

LAYER
  NAME pixel
  STATUS DEFAULT
  TYPE POINT
  TRANSFORM OFF
  FEATURE
POINTS 0 0 END
  END
  CLASS
COLOR backgroundcolor
  END
END

and make it your first layer. This will draw a one pixel dot in the 
upper left corner of the image in background color, but it might fake 
out mapserver if you have it some funny corner case.


Also can you reproduce this with a mapfile with one layer like the 
above, but with POINTS -2 -2 END so that it is drawn off the image? THen 
post you that makefile and we can try it.


What version of mapserver?

Otherwise if that doesn't work, maybe someone has other ideas.

-Steve W

Alexandre Dube wrote:

Stephen,

 The MAP imagecolor isn't black and to put it at first position in my 
palette file but that didn't help.


Thanks for your help,

Alexandre


Stephen Woodbridge wrote:
Another thought on this is the because you are asking for a 
transparent image, the IMAGECOLOR tag is usually transparent and I 
have seen that come up as black in some cases.


-Steve W

Stephen Woodbridge wrote:

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would 
put the background color as the first color in the mypalette.txt file 
and see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of 
having the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 
66K png image.  With the palette, it's down to 17K but with a black 
background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




___
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] PGeo (Personal Geodatabases) options under Linux

2009-11-30 Thread Chuck Jungmann
Responding to both of your comments:

My client regularly acquires a database of property maps from a county.
The database is a ESRI Personal Database.  An employee of my client has
been converting this database (and others like it) to MapX files for
running on MapXtreme (on Windows, as you observed).  I understand it to
be a rather involved process.

On the subject of creating a shape file from the PGeo file: one of the
layer tables has almost 200,000 records. That's just for the parcel
outlines. I also would need to add the text labels and other outlines as
well.  That would make for an unwieldy shape file.  In fact, I think
that employee mentioned above actually does combine the shapes into 9
MapX layers that I have been combining for display.  The combined MAP
files come to 221.3MB, and 351.6 MB for all layer files.

I am exploring the possibility of delivering the same web application
using open source software, including MapServer, on Linux.  I was hoping
to use the database as delivered, because it would save time and
effort. 

Although it looked like it should have been possible to display layers
from the PGeo file, I haven't had any luck.  I have spent a lot of time
trying to figure out if I could apply some patch, looking for
insufficient buffers that I could lengthen, etc., but have pretty much
come to the conclusion that using PGeo files is perhaps only feasible on
MapServer for Windows, where there is native support for the MDB files.

I originally asked the question because
1.  I didn't want to give up too soon if someone has had some success
using unixODBC and MDBTools, and
2.  I wanted to know if making an exact copy of the PGeo tables in a
MySQL database would allow me to use PGeo to access the layers.  This
seems feasible since both MDBTools and MySQL can be accessed through the
ODBC layer.

It would be nice if OGR wouldn't know the difference between MDB and
MySQL databases because I could then run a script (that I'm working on
now) that would run on Windows to make a restore file for MySQL to
import the data.  I hope to finish the script today or tomorrow.  If it
works as I hope, I'll report it here since it would answer the second
question.

Assuming success using MySQL, the first question is moot: MySQL would be
a much more robust solution.  If I can make a turnkey conversion from
MDB to MySQL, it's really a no-brainer to abandon MDB. But I'm still
curious, and it would be nice to document somewhere online, if it's
possible to use PGeo files on a Linux-based MapServer.

Chuck Jungmann

On Mon, 2009-11-30 at 05:59 -0800, Dan Little wrote:
 I am making the gross assumption that someone, who is producing the PGeo file 
 is on Windows and that person(s) would be available to do the conversion...
 
 
 - Original Message 
  From: Stephen Woodbridge wood...@swoodbridge.com
  To: Dan Little danlit...@yahoo.com
  Cc: Chuck Jungmann ch...@cpjj.net; mapserver-users@lists.osgeo.org
  Sent: Sun, November 29, 2009 10:22:37 PM
  Subject: Re: [mapserver-users] PGeo (Personal Geodatabases) options under 
  Linux
  
  Dan Little wrote:
   not that this answers the problem... but is there any reason this
   cannot be exported to a shapefile and then served with mapserver?
  
  Good question. I think you would have to do that on a Windows box because 
  the 
  MDBTools on Linux is just not up to the task. If you could export it on 
  Linux 
  then you could also probably serve it directly via mapserver and ogr.
  
  -Steve W
  
   - Original Message 
   From: Chuck Jungmann To: Stephen Woodbridge
   Cc: mapserver-users@lists.osgeo.org Sent:
   Fri, November 27, 2009 5:17:03 PM Subject: Re: [mapserver-users]
   PGeo (Personal Geodatabases) options under Linux
   
   I've read that page several times. I have also built MDBTools,
   unixODBC and GDAL from CVS sources and applied patches, etc, so I
   could try to trace execution to the errors.  What I've found are
   instances where the code ultimately ends up in an empty function
   that simply returns SQL_SUCCESS or SQL_OK or whatever without doing
   anything.  That seems to be why MDBTools has trouble with SELECT
   COUNT(*) FROM xxx and why it can't find a primary key.
   
   While I can see that these database features are not working, it's
   also possible that they are not necessary.  I'm wondering if anyone
   has had success, either despite these errors, or by not
   encountering these errors, in which case I may find some success if
   I can duplicate their environment.
   
   Thanks for the quick reply, Chuck Jungmann
   
   On Fri, 2009-11-27 at 18:00 -0500, Stephen Woodbridge wrote:
   Chuck Jungmann wrote:
   I have a Personal Geodatabase (PGeo) from which I would like to
   display layers in MapServer on Ubuntu 9.04.  I have been
   fighting with MDBTools, unixODBC, and GDAL for what seems like
   forever.  The ogrinfo and isql fail with Segmentation Faults.
   
   I have two questions:
   
   1. Has anyone successfully used 

[mapserver-users] How Can I Get More Control over getLegendGraphic?

2009-11-30 Thread Bill Thoen
I'm trying to build a custom legend with MapServer (and OpenLayers plus 
some custom JS and PHP) and I'm using the getLegendGraphic request to 
get the graphic pieces for the legend. However, I've got some layers 
with data from 2003, 2005 and 2009 (3 separate layers) that I want to 
represent on the legend with their common style and one label  (e.g. 
Forest Lands instead of 3 icons labeled Forest Lands 2003, Forest 
Lands 2005, Forest Lands 2009).


I tried making a group layer, but getLegendGraphic() didn't like this 
and it returned null.
Is there a way I can specify both the style icon and the label? Or is 
there some other way to do this?


Help would be appreciated (as it always is).

Thanks,

--
Bill Thoen
GISnet -  www.gisnet.com
1401 Walnut St., Suite C
Boulder, CO 80302
303-786-9961 tel
303-443-4856 fax

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


Re: [mapserver-users] PGeo (Personal Geodatabases) options under Linux

2009-11-30 Thread Jeff McKenna

Chuck Jungmann wrote:

Responding to both of your comments:

My client regularly acquires a database of property maps from a county.
The database is a ESRI Personal Database.  An employee of my client has
been converting this database (and others like it) to MapX files for
running on MapXtreme (on Windows, as you observed).  I understand it to
be a rather involved process.

On the subject of creating a shape file from the PGeo file: one of the
layer tables has almost 200,000 records. That's just for the parcel
outlines. I also would need to add the text labels and other outlines as
well.  That would make for an unwieldy shape file.  In fact, I think
that employee mentioned above actually does combine the shapes into 9
MapX layers that I have been combining for display.  The combined MAP
files come to 221.3MB, and 351.6 MB for all layer files.

I am exploring the possibility of delivering the same web application
using open source software, including MapServer, on Linux.  I was hoping
to use the database as delivered, because it would save time and
effort. 


Although it looked like it should have been possible to display layers
from the PGeo file, I haven't had any luck.  I have spent a lot of time
trying to figure out if I could apply some patch, looking for
insufficient buffers that I could lengthen, etc., but have pretty much
come to the conclusion that using PGeo files is perhaps only feasible on
MapServer for Windows, where there is native support for the MDB files.

I originally asked the question because
1.  I didn't want to give up too soon if someone has had some success
using unixODBC and MDBTools, and
2.  I wanted to know if making an exact copy of the PGeo tables in a
MySQL database would allow me to use PGeo to access the layers.  This
seems feasible since both MDBTools and MySQL can be accessed through the
ODBC layer.

It would be nice if OGR wouldn't know the difference between MDB and
MySQL databases because I could then run a script (that I'm working on
now) that would run on Windows to make a restore file for MySQL to
import the data.  I hope to finish the script today or tomorrow.  If it
works as I hope, I'll report it here since it would answer the second
question.

Assuming success using MySQL, the first question is moot: MySQL would be
a much more robust solution.  If I can make a turnkey conversion from
MDB to MySQL, it's really a no-brainer to abandon MDB. But I'm still
curious, and it would be nice to document somewhere online, if it's
possible to use PGeo files on a Linux-based MapServer.



Chuck,

Personally a little ogr2ogr script would convert the mdb layers into 
shapefile layers, and then the same script could execute shptree on each 
new shapefile.  One of the (unannounced) results that I saw in the 
recent benchmarking exercise at the FOSS4G event was how fast large 
shapefiles (over 1,000,000 records) that are indexed properly are drawn 
by MapServer.


So my advice is to keep it simple: use MS4W on windows, write a script 
that can be executed each time your client hands you a lovely PGeo file, 
and create the associated layers in a MapServer mapfile.


-jeff

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


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


Re: [mapserver-users] How Can I Get More Control over getLegendGraphic?

2009-11-30 Thread Andy Colson

Bill Thoen wrote:
I'm trying to build a custom legend with MapServer (and OpenLayers plus 
some custom JS and PHP) and I'm using the getLegendGraphic request to 
get the graphic pieces for the legend. However, I've got some layers 
with data from 2003, 2005 and 2009 (3 separate layers) that I want to 
represent on the legend with their common style and one label  (e.g. 
Forest Lands instead of 3 icons labeled Forest Lands 2003, Forest 
Lands 2005, Forest Lands 2009).


I tried making a group layer, but getLegendGraphic() didn't like this 
and it returned null.
Is there a way I can specify both the style icon and the label? Or is 
there some other way to do this?


Help would be appreciated (as it always is).

Thanks,



I kinda ran into this.  I wanted to specialize my legend too.  I end 
up just copying my mapfile to legend.map and editing it to my tastes and 
using that to generate the legend instead of the real mapfile.


Not sure if it'll help...

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


Re: [mapserver-users] Mapserver 5.3.2 configure problems

2009-11-30 Thread Daniel Morissette

Matthew Pettis wrote:

configure errors

Trying to make configure work for mapserver-5.4.2.  I think I'm getting 
tripped up on libgd.  Here's the config I'm using:


sudo ./configure --with-freetype=/usr/ --with-gd=/usr/

I have libraries:
/usr/lib/libfreetype.so.6.3.16
/usr/lib/libgd.so.2.0.0
/usr/lib/libgd.so.2
/usr/lib/libgdbm.so.3.0.0



It seems that you are missing the libgd-dev (or libgd-devel) package on 
your system. Depending on your OS you should use the package manager to 
install this package. You need the -dev/-devel package for all the libs 
that you point to in your configure command.



--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: Mapserver 5.3.2 configure problems

2009-11-30 Thread Matthew Pettis
Never mind -- my version of libgd wasn't higher than Version 2.0.28, so it
was failing.  I installed libgd2-dev instead, and reran the configure
script, and it went through.  Thanks for the help -- I'm sure I'll need
more.

On Mon, Nov 30, 2009 at 4:29 PM, Matthew Pettis matthew.pet...@gmail.comwrote:

 Thanks (again!) Daniel!

 Installing libgd-dev (Ubuntu Hardy Heron 8.04 LTS) via aptitude did the
 trick for getting the freetype and other dependencies to resolve.

 However, I still get the following error (see last line -- I excised things
 in common from original thread output):


 
 m...@votevis:~/dwnld/mapserver-5.4.2$ sudo ./configure
 --with-freetype=/usr/ --with-gd=/usr/
 checking for gcc... gcc
 ...
 MapServer Version from mapserver.h: '5.4.2'
 checking if pkg-config path is provided... checking for pkg-config... no
 couldn't find pkg-config in default path. Please specify full path to
 pkg-config if needed
 configure: checking where FreeType 2.x is installed...
 using libfreetype from -lfreetype -lz
 configure: checking where Zlib is installed...
 checking for zlibVersion in -lz... yes
 using libz from system libs (-DUSE_ZLIB).
 configure: checking where PNG is installed...
 checking for png_init_io in -lpng... yes
 using libpng from system libs.
 configure: checking whether we should include JPEG support...
 checking for jpeg_read_header in -ljpeg... yes
 using libjpeg from system libs.
 configure: checking where libXpm is installed...
 checking for XpmFreeXpmImage in -lXpm... no
 XPM (libXpm) library cannot be found, possibly needed for GD
 configure: checking where libiconv is installed...
 checking for iconv_open in -lc... yes
 checking for libiconv_open in -liconv... no
 checking for iconv_open in -liconv... no
 using libiconv from system libs.
 libiconv found. Enabling internationalization (-DUSE_ICONV)
 configure: checking for GD 2.0.16 or higher...
 checking for gdFontCacheSetup in -lgd... no
 configure: checking whether GD needs libiconv...
 checking for gdFontCacheSetup in -lgd... no
 configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/.  Make
 sure GD 2.0.16 or higher is compiled before calling configure. You may also
 get this error if you didn't specify the appropriate location for one of
 GD's dependencies (freetype, libpng, libjpeg or libiconv).

 

 But I do have these files on my system:

 /usr/include/gd.h
 /usr/lib/libgd.a
 /usr/lib/libgd.so

 I would think they would get recognized from what I provided as my
 '--with-gd=/usr/' argument.

 Any ideas?

 Thanks again,
 Matt




-- 
I have never come across anyone in whom the moral sense was dominant who
was not heartless, cruel, vindictive and entirely lacking in the smallest
sense of humanity. --- Oscar Wilde
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Steve Lime
Are you compiling with the experimental png support?

 On 11/30/2009 at 12:47 PM, in message 4b141344.3040...@mapgears.com,
Alexandre Dube ad...@mapgears.com wrote:
 Stephen,
 
   Everything is there : http://trac.osgeo.org/mapserver/ticket/3217 
 
 Kind regards,
 
 Alexandre
 
 Stephen Woodbridge wrote:
 Alexandre,

 Try this as a hack and see if it helps.
 Create a dummy LAYER like:

 LAYER
   NAME pixel
   STATUS DEFAULT
   TYPE POINT
   TRANSFORM OFF
   FEATURE
 POINTS 0 0 END
   END
   CLASS
 COLOR backgroundcolor
   END
 END

 and make it your first layer. This will draw a one pixel dot in the 
 upper left corner of the image in background color, but it might fake 
 out mapserver if you have it some funny corner case.

 Also can you reproduce this with a mapfile with one layer like the 
 above, but with POINTS -2 -2 END so that it is drawn off the image? 
 THen post you that makefile and we can try it.

 What version of mapserver?

 Otherwise if that doesn't work, maybe someone has other ideas.

 -Steve W

 Alexandre Dube wrote:
 Stephen,

  The MAP imagecolor isn't black and to put it at first position in my 
 palette file but that didn't help.

 Thanks for your help,

 Alexandre


 Stephen Woodbridge wrote:
 Another thought on this is the because you are asking for a 
 transparent image, the IMAGECOLOR tag is usually transparent and I 
 have seen that come up as black in some cases.

 -Steve W

 Stephen Woodbridge wrote:
 Alexandre,

 Do you have IMAGECOLOR #00 set at the MAP level? Also I would 
 put the background color as the first color in the mypalette.txt 
 file and see if that helps.

 -Steve W

 Alexandre Dube wrote:
 Hi,

 == problem ==

  I'm pretty sure I saw this problem on the list somewhere, but I 
 couldn't find the actual thread so here it is : while using
 agg  palette option, when there's no data to draw, instead of 
 having the backgroundcolor drawn it's all black instead.
  How can I go around this problem ?


 == my actual need ==

  I want to produce smaller images.  Currently, my getMap renders a 
 66K png image.  With the palette, it's down to 17K but with a 
 black background.


 == ouputformat definition ==

OUTPUTFORMAT
NAME aggpng24
DRIVER AGG/PNG
MIMETYPE image/png
IMAGEMODE RGB
EXTENSION png
FORMATOPTION INTERLACE=OFF
FORMATOPTION PALETTE_FORCE=ON
FORMATOPTION PALETTE=/my/path/mypalette.txt
TRANSPARENT ON
FORMATOPTION TRANSPARENT=ON
END



 ___
 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] MapServer 5.6.0-rc1 released [Ubuntu package]

2009-11-30 Thread Alan Boudreault
For those who are running a Ubuntu machine and would like to test the 
mapserver 5.6.0-rc1 release, you can simply add the following line in 
the /etc/apt/sources.list file:


deb http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu 
codename main

(Where codename is hardy, jaunty or karmic.)
and type: sudo apt-get update  sudo apt-get install cgi-mapserver

Alan

Daniel Morissette wrote:
MapServer 5.6.0-rc1 (release candidate 1) has just been released and 
is available for download at


  http://mapserver.org/download.html OR
  http://download.osgeo.org/mapserver/mapserver-5.6.0-rc1.tar.gz

Please also keep an eye on the 5.4 to 5.6 Migration Guide where we are 
documenting migration issues for this release:
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT 



We have fixed the blocker issues that were holding the release, and 
hope that this release candidate can be promoted to final release next 
week if no blocker issues are found.


Please test this release candidate with your applications. We need 
your help to ensure a high quality product, and you can help out by 
testing your applications with this release candidate and reporting 
your results.


Thanks for your help

The MapServer development team.


Version 5.6.0-rc1 (2009-11-27):
---

- Fixed a problem with shape-based queries against projected layers when
  using a tolerance (#3211)

- Fixed long expression evaluation (#2123)

- Added simplfy and topologyPreservingSimplify to MapScript (#2753)

- Fixed Oracle FastCGI memory leak (#3187)

- layer-project flag not being reset properly for drawquerylayer 
(#673 #2079)


- OGC SLD: support multi-polygons geometries for filters embedded in
  an SLD (#3097)

- [WMC] embedded SLD in context does not work with namespace prefix 
(#3115)


- Support name aliases used in sld text symbolizer (#3114)

- decode html and unicode entities for polygon truetype symbol fills 
(#3203)


- Parse PropertyName parameter for wfs requests (#675)

- Fixed when saving a map, layer-transform isn't written properly in
  all cases. (#3198)

- Fixed buffer overflow in oracle spatial driver with large sql data 
(#2694)


- Improve FastCGI include file finding logic (#3200)

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



--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


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


[mapserver-users] Help: Getting started with FGS on linux

2009-11-30 Thread krj
I just installed FGS on suse linux.  

Like many new users I have confirmed the following message:

No query information to decode. QUERY_STRING is set, but empty.

However, it is not really clear what steps are needed to get a workings example 
going a hello world on mapserver. It looks like gmap is outdated and there is 
mapdemo, but it is not installed using fgs. 

Any hints on getting a basic example running to test drive mapserver?

I attempted the following with no luck:

http://localhost:8080/cgi-bin/mapserv?map=/opt/fgs/apps/gmap-demo-cvs_MS_VERSION_54/htdocs/gmap75.map.

mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE 
in the WEB section, but none was provided.


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


[mapserver-users] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread geetha
 
 Hi all, 
  I tried to install php/mapscript in windows,I get the above
error.I use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works
fine.Im able to run files with .php extension,but the below coding
produces error: 
My php_mapscript.dll is in ..php/ext folder by default.My php.ini 
php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
add?It is said php/mapscript is preconfigured right...then what might
be wrong?Thanks in advance. 

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


Re: [mapserver-users] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread Milo van der Linden
Dear geetha,

This has nothing to do with mapserver/mapscript, but is a php error. The
dl method is (correct me if I am wrong) a little outdated and has to
specifically be set to ENABLED in the php.ini.

Please google a bit on the dl error and see what parameter you need to
change (sorry that I cannot give you a full answer, but I am on 3G in a
train and unable to do some serious googlin')

On Tue, 2009-12-01 at 00:37 -0500, gee...@ttkmaps.com wrote:
 
 
 Hi all,
 
  
 
   I tried to install php/mapscript in windows,I get the above error.I
 use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works fine.Im
 able to run files with .php extension,but the below coding produces
 error:
 
 HTML
 BODY
 
 ?php
 dl(php_mapscript.dll);
 phpinfo();
 ?
 
 /BODY
 /HTML
 
 My php_mapscript.dll is in ..php/ext folder by default.My php.ini 
 php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
 add?It is said php/mapscript is preconfigured right...then what might
 be wrong?Thanks in advance.
 
 NewUser.
 
 
 
 
 
 ___
 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] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread new

Thanks milo,

I checked with php.ini dl method is enabled.I tried in commmand prompt 
php C:/ms4w/Apache/htdocs/phpmapscript.php 
No windows error was reported.

newuser.


Milo van der Linden-3 wrote:
 
 Dear geetha,
 
 This has nothing to do with mapserver/mapscript, but is a php error. The
 dl method is (correct me if I am wrong) a little outdated and has to
 specifically be set to ENABLED in the php.ini.
 
 Please google a bit on the dl error and see what parameter you need to
 change (sorry that I cannot give you a full answer, but I am on 3G in a
 train and unable to do some serious googlin')
 
 On Tue, 2009-12-01 at 00:37 -0500, gee...@ttkmaps.com wrote:
 
 
 Hi all,
 
  
 
   I tried to install php/mapscript in windows,I get the above error.I
 use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works fine.Im
 able to run files with .php extension,but the below coding produces
 error:
 
 HTML
 BODY
 
 ?php
 dl(php_mapscript.dll);
 phpinfo();
 ?
 
 /BODY
 /HTML
 
 My php_mapscript.dll is in ..php/ext folder by default.My php.ini 
 php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
 add?It is said php/mapscript is preconfigured right...then what might
 be wrong?Thanks in advance.
 
 NewUser.
 
 
 
 
 
 ___
 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
 
 

-- 
View this message in context: 
http://n2.nabble.com/Fatal-error-Call-to-undefined-function-dl-in-C-ms4w-Apache-htdocs-phpmapscript-php-on-line-5-tp4092107p4092227.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] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread Milo van der Linden
Hello Geetha,

Does this mean that the problem is solved? 

On Mon, 2009-11-30 at 22:51 -0800, new wrote:
 Thanks milo,
 
 I checked with php.ini dl method is enabled.I tried in commmand prompt 
 php C:/ms4w/Apache/htdocs/phpmapscript.php 
 No windows error was reported.
 
 newuser.
 
 
 Milo van der Linden-3 wrote:
  
  Dear geetha,
  
  This has nothing to do with mapserver/mapscript, but is a php error. The
  dl method is (correct me if I am wrong) a little outdated and has to
  specifically be set to ENABLED in the php.ini.
  
  Please google a bit on the dl error and see what parameter you need to
  change (sorry that I cannot give you a full answer, but I am on 3G in a
  train and unable to do some serious googlin')
  
  On Tue, 2009-12-01 at 00:37 -0500, gee...@ttkmaps.com wrote:
  
  
  Hi all,
  
   
  
I tried to install php/mapscript in windows,I get the above error.I
  use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works fine.Im
  able to run files with .php extension,but the below coding produces
  error:
  
  HTML
  BODY
  
  ?php
  dl(php_mapscript.dll);
  phpinfo();
  ?
  
  /BODY
  /HTML
  
  My php_mapscript.dll is in ..php/ext folder by default.My php.ini 
  php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
  add?It is said php/mapscript is preconfigured right...then what might
  be wrong?Thanks in advance.
  
  NewUser.
  
  
  
  
  
  ___
  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] Fatal error: Call to undefined function dl() in C:\ms4w\Apache\htdocs\phpmapscript.php on line 5

2009-11-30 Thread new

No,i am still not able to get it.It was given in 

http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html

troubleshooting part, to check for dll errors using cmd prompt.I did so,but
it gives file info.

newuser.

Milo van der Linden-3 wrote:
 
 Hello Geetha,
 
 Does this mean that the problem is solved? 
 
 On Mon, 2009-11-30 at 22:51 -0800, new wrote:
 Thanks milo,
 
 I checked with php.ini dl method is enabled.I tried in commmand
 prompt 
 php C:/ms4w/Apache/htdocs/phpmapscript.php 
 No windows error was reported.
 
 newuser.
 
 
 Milo van der Linden-3 wrote:
  
  Dear geetha,
  
  This has nothing to do with mapserver/mapscript, but is a php error.
 The
  dl method is (correct me if I am wrong) a little outdated and has to
  specifically be set to ENABLED in the php.ini.
  
  Please google a bit on the dl error and see what parameter you need to
  change (sorry that I cannot give you a full answer, but I am on 3G in a
  train and unable to do some serious googlin')
  
  On Tue, 2009-12-01 at 00:37 -0500, gee...@ttkmaps.com wrote:
  
  
  Hi all,
  
   
  
I tried to install php/mapscript in windows,I get the above error.I
  use mapserver version 5.4.2,Apache 2.2.11,PHP 5.3.Php works fine.Im
  able to run files with .php extension,but the below coding produces
  error:
  
  HTML
  BODY
  
  ?php
  dl(php_mapscript.dll);
  phpinfo();
  ?
  
  /BODY
  /HTML
  
  My php_mapscript.dll is in ..php/ext folder by default.My php.ini 
  php.exe is in /ms4w/Apache/cgi-bin.Is there any other dll i should
  add?It is said php/mapscript is preconfigured right...then what might
  be wrong?Thanks in advance.
  
  NewUser.
  
  
  
  
  
  ___
  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
 
 

-- 
View this message in context: 
http://n2.nabble.com/Fatal-error-Call-to-undefined-function-dl-in-C-ms4w-Apache-htdocs-phpmapscript-php-on-line-5-tp4092107p4092286.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