Re: [mapserver-users] MapServer on Intel Atom?

2009-01-13 Thread Milo van der Linden

Just out of curiosity,

With what reason would you like to have a mapserver on a mobile device? 
I assume mostly to have some sort of localhost connection from a local 
application, and in that case, I would opt for a solution where one can 
for instance download raster-tiles from a server to the mobile device 
that are then used by the application through more simplified functions, 
for vector the same procedure, download vectors and make them available 
through libraries. Installing a httpserver with mapserver as a cgi app 
sounds like a bit of overkill. Perhaps the mobile app can simply use 
gdal and ogr libraries.





Dan Little wrote:

I agree with where Jukka is going...  Raster layers are usually pretty fast so 
long as they are tuned correctly.


- Original Message 
  

From: Rahkonen Jukka jukka.rahko...@mmmtike.fi
To: kreshna_icehe...@yahoo.com; mapserver-users@lists.osgeo.org
Sent: Tuesday, January 13, 2009 6:04:07 AM
Subject: Re: [mapserver-users] MapServer on Intel Atom?

Hi,

You say that your raster layer is slower than vector layers, but do you feel it 
is too slow?  Your image should be served pretty fast by Mapserver.  The key is 
that tiff file is tiled (for zoom-in situation) and that it has overviews (for 
zoom-out case). Could you send the gdalinfo report about your image if you 
suffer from slowness?


-Jukka Rahkonen-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
kreshna_icehe...@yahoo.com

Lähetetty: 13. tammikuuta 2009 12:35
Vastaanottaja: mapserver-users@lists.osgeo.org; Dan Little
Aihe: Re: [mapserver-users] MapServer on Intel Atom?

Hi, thanks.

The vectors are quite simple. I've never experienced slow 
down when displayed vector data, not even on an old Toshiba 
M20 laptop.


Raster, on the other hand, is always the biggest problem. 
Compared to polygons, my raster is always slower to zoom, to 
pan, etc (despite the size is only 500 Mb). Is displaying 
raster more CPU-intensive or memory-intensive? If I'm using 
Intel Atom, will my raster be affected severely?


Also, can using bigger RAM (let say, 2GB or so) compensate 
for the lack of processing power of Intel Atom?


Thanks again,
-Kresh


--- On Mon, 1/12/09, Dan Little wrote:

  
From: Dan Little 
Subject: Re: [mapserver-users] MapServer on Intel Atom?

To: kreshna_icehe...@yahoo.com, mapserver-users@lists.osgeo.org
Date: Monday, January 12, 2009, 9:18 PM I think the atom 

will be more 
  

than adequate... depending on the dataset. :-)

Serving 100 points is significantly less intensive than serving 100 
city-boundary polygons.



(Oops forgot to send to the list)


- Original Message 


From: kreshna_icehe...@yahoo.com
  
To: mapserver-users@lists.osgeo.org

Sent: Monday, January 12, 2009 8:09:15 PM
Subject: [mapserver-users] MapServer on Intel Atom?

I'll be doing a lot of MapServer demo in the
  

future. I'm quite interested in


Intel Atom-based subnotebooks for the purpose (like
  

Lenovo IdeaPad S10), since


they are light and mobile.

However, I wonder if Intel Atom is adequate to run
  

MapServer. The MapServer will


be run on either ms4w on Windows XP, or directly on
  

Linux. The layers are stored


on postGIS (there are fifteen layers or so), and there
  

is also a 476 megabytes


raster file in .TIFF format.

Will Intel Atom be adequate for the purpose? Will 2GB
  

of memory help? Has anyone


ever done such thing before?

Many thanks,
-Kresh


 
___

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





  
___

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 on Intel Atom?

2009-01-13 Thread Milo van der Linden
Oops, sorry. Should have read the initial post, for demonstration 
purposes, using datasets that are not to big sounds possible to me.


Dan Little wrote:

I agree with where Jukka is going...  Raster layers are usually pretty fast so 
long as they are tuned correctly.


- Original Message 
  

From: Rahkonen Jukka jukka.rahko...@mmmtike.fi
To: kreshna_icehe...@yahoo.com; mapserver-users@lists.osgeo.org
Sent: Tuesday, January 13, 2009 6:04:07 AM
Subject: Re: [mapserver-users] MapServer on Intel Atom?

Hi,

You say that your raster layer is slower than vector layers, but do you feel it 
is too slow?  Your image should be served pretty fast by Mapserver.  The key is 
that tiff file is tiled (for zoom-in situation) and that it has overviews (for 
zoom-out case). Could you send the gdalinfo report about your image if you 
suffer from slowness?


-Jukka Rahkonen-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
kreshna_icehe...@yahoo.com

Lähetetty: 13. tammikuuta 2009 12:35
Vastaanottaja: mapserver-users@lists.osgeo.org; Dan Little
Aihe: Re: [mapserver-users] MapServer on Intel Atom?

Hi, thanks.

The vectors are quite simple. I've never experienced slow 
down when displayed vector data, not even on an old Toshiba 
M20 laptop.


Raster, on the other hand, is always the biggest problem. 
Compared to polygons, my raster is always slower to zoom, to 
pan, etc (despite the size is only 500 Mb). Is displaying 
raster more CPU-intensive or memory-intensive? If I'm using 
Intel Atom, will my raster be affected severely?


Also, can using bigger RAM (let say, 2GB or so) compensate 
for the lack of processing power of Intel Atom?


Thanks again,
-Kresh


--- On Mon, 1/12/09, Dan Little wrote:

  
From: Dan Little 
Subject: Re: [mapserver-users] MapServer on Intel Atom?

To: kreshna_icehe...@yahoo.com, mapserver-users@lists.osgeo.org
Date: Monday, January 12, 2009, 9:18 PM I think the atom 

will be more 
  

than adequate... depending on the dataset. :-)

Serving 100 points is significantly less intensive than serving 100 
city-boundary polygons.



(Oops forgot to send to the list)


- Original Message 


From: kreshna_icehe...@yahoo.com
  
To: mapserver-users@lists.osgeo.org

Sent: Monday, January 12, 2009 8:09:15 PM
Subject: [mapserver-users] MapServer on Intel Atom?

I'll be doing a lot of MapServer demo in the
  

future. I'm quite interested in


Intel Atom-based subnotebooks for the purpose (like
  

Lenovo IdeaPad S10), since


they are light and mobile.

However, I wonder if Intel Atom is adequate to run
  

MapServer. The MapServer will


be run on either ms4w on Windows XP, or directly on
  

Linux. The layers are stored


on postGIS (there are fifteen layers or so), and there
  

is also a 476 megabytes


raster file in .TIFF format.

Will Intel Atom be adequate for the purpose? Will 2GB
  

of memory help? Has anyone


ever done such thing before?

Many thanks,
-Kresh


 
___

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





  
___

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] Show WFS layer

2009-01-13 Thread Alexandre Dube

Maybe this could help : http://faq.openlayers.org/wfs/

Best of luck,

Alexandre

Peesjee wrote:

Hi,

i'm new to Mapserver, i succesfully added a WMS layer from a shapefile, but
now i want to add a WFS layer that connects to my Sybase (via ODBC). I
followed the doc on Virtual Spatial data. This connection works well
(tested with ogrinfo). The shp2img tool gives me a map image, with my
features on, so far so good...

I can do a getcapabilities and a getfeature. The last one return my two
test records nicely. But here i'm stuck, now i want to display this data.

I tried the following:
  - I added this WFS layer with OpenLayers (which i also used for my WMS
layer), nothing shows...
  - i used uDig to open this WFS layer, the layer opens, but i get an
RenderingError (and saying 0 features)

These are my getcapabilities and a getfeature. I also added my Map-file.
I've been stuck since two days on this, so some properties maybe just there
for testing...

http://n2.nabble.com/file/n2150639/getcapabilities.xml getcapabilities.xml 
http://n2.nabble.com/file/n2150639/getfeature.xml getfeature.xml 
http://n2.nabble.com/file/n2150639/test3.map test3.map 


So whats my next step? I don't know what i can do here...

Greetz
Peesjee 
  



--
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] Show WFS layer

2009-01-13 Thread Rahkonen Jukka
Hi,

I am not sure how strict uDig is with the getCapabilities response, but if uDig 
is trying to utilise the information it is reading from the document then I 
suppose it will fail. Your server is advertising the following as getMap 
onlineResource:

GetFeature
...
Get onlineResource=http://localhost/cgi-bin/mapserv.exe?map=test3.map/

Try to edit onlineResource to be something like
Get 
onlineResource=http://localhost/cgi-bin/mapserv.exe?service=WFSversion=1.0.0request=getFeaturemap=test3.map/

-Jukka Rahkonen-
 

 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Peesjee
 Lähetetty: 13. tammikuuta 2009 13:07
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] Show WFS layer
 
 
 Hi,
 
 i'm new to Mapserver, i succesfully added a WMS layer from a 
 shapefile, but now i want to add a WFS layer that connects to 
 my Sybase (via ODBC). I followed the doc on Virtual Spatial 
 data. This connection works well (tested with ogrinfo). The 
 shp2img tool gives me a map image, with my features on, so 
 far so good...
 
 I can do a getcapabilities and a getfeature. The last one 
 return my two test records nicely. But here i'm stuck, now i 
 want to display this data.
 
 I tried the following:
   - I added this WFS layer with OpenLayers (which i also used 
 for my WMS layer), nothing shows...
   - i used uDig to open this WFS layer, the layer opens, but 
 i get an RenderingError (and saying 0 features)
 
 These are my getcapabilities and a getfeature. I also 
 added my Map-file.
 I've been stuck since two days on this, so some properties 
 maybe just there for testing...
 
 http://n2.nabble.com/file/n2150639/getcapabilities.xml 
 getcapabilities.xml 
 http://n2.nabble.com/file/n2150639/getfeature.xml 
 getfeature.xml http://n2.nabble.com/file/n2150639/test3.map test3.map 
 
 So whats my next step? I don't know what i can do here...
 
 Greetz
 Peesjee
 --
 View this message in context: 
 http://n2.nabble.com/Show-WFS-layer-tp2150639p2150639.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Show WFS layer

2009-01-13 Thread Peesjee

Hi, 

i tried it, no luck here. I added some WMS specs in my mapfile, and i can
see my two test records when i open the layer as a WMS in openlayers... but,
if i may, let me ask another question...

I'm very new in this technology, i'm just testing all this, because we want
to now if we can develop ourself what our customer asks us, or do we have to
'buy' the solution from another company (who is more an expert is this kind
of software). 

The requirement is simple: i need to show some raster data (will be
delivered to me) together with positions of ships (that come from a
database). The ships need to be clickable and of course, some information
about the ship comes up (classic hugh ;)) Because of the heavy amount of
ships ( 1000), i do not want to use javascript-code to add my objects. (our
current project does that in Googlemaps, which act slow if many markers'
are added)

So, I'm able to show a WMS layer (based on my test shapefile). i guess if
that works, i will be able to show some raster data aswell. Now comes the
'unknown' part for me. I know i can show my ships as an WMS layer, as a pure
image, (i tested this) but can i add my clickable funtionality? or is a WFS
layer better here...?

i know the site mentions books to read about Mapserver, but the books date
from 2005, are there any more recent good books out there?

Greetz
Peesjee



Jukka Rahkonen wrote:
 
 Hi,
 
 I am not sure how strict uDig is with the getCapabilities response, but if
 uDig is trying to utilise the information it is reading from the document
 then I suppose it will fail. Your server is advertising the following as
 getMap onlineResource:
 
 GetFeature
 ...
 Get
 onlineResource=http://localhost/cgi-bin/mapserv.exe?map=test3.map/
 
 Try to edit onlineResource to be something like
 Get
 onlineResource=http://localhost/cgi-bin/mapserv.exe?service=WFSversion=1.0.0request=getFeaturemap=test3.map/
 
 -Jukka Rahkonen-
  
 
 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Peesjee
 Lähetetty: 13. tammikuuta 2009 13:07
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] Show WFS layer
 
 
 Hi,
 
 i'm new to Mapserver, i succesfully added a WMS layer from a 
 shapefile, but now i want to add a WFS layer that connects to 
 my Sybase (via ODBC). I followed the doc on Virtual Spatial 
 data. This connection works well (tested with ogrinfo). The 
 shp2img tool gives me a map image, with my features on, so 
 far so good...
 
 I can do a getcapabilities and a getfeature. The last one 
 return my two test records nicely. But here i'm stuck, now i 
 want to display this data.
 
 I tried the following:
   - I added this WFS layer with OpenLayers (which i also used 
 for my WMS layer), nothing shows...
   - i used uDig to open this WFS layer, the layer opens, but 
 i get an RenderingError (and saying 0 features)
 
 These are my getcapabilities and a getfeature. I also 
 added my Map-file.
 I've been stuck since two days on this, so some properties 
 maybe just there for testing...
 
 http://n2.nabble.com/file/n2150639/getcapabilities.xml 
 getcapabilities.xml 
 http://n2.nabble.com/file/n2150639/getfeature.xml 
 getfeature.xml http://n2.nabble.com/file/n2150639/test3.map test3.map 
 
 So whats my next step? I don't know what i can do here...
 
 Greetz
 Peesjee
 --
 View this message in context: 
 http://n2.nabble.com/Show-WFS-layer-tp2150639p2150639.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Show-WFS-layer-tp2150639p2151774.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] Mapserver.org sample ...

2009-01-13 Thread Christopher Schmidt
On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote:
 Thanks Tamas...
 Is It possible to use OpenLayers with mapscript?

In what way? OpenLayers would typically take over many of the roles that
a custom application would -- building your application in Javascript
instead of PHP. Depending on what you are doing with mapScript, it may
be possibl t simply use MapServer as a CGI instead, or it may be
possible to implement what you want such that OpenLayers can ccomplish
it.

 
 
 On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres szeker...@gmail.comwrote:
 
  Paul,
 
  This kind of functionality requires some client side scripting like
  javascript implemented by OpenLayers in this particular case.
 
  Best regards,
 
  Tamas
 
 
  2009/1/13 Paul james paulj...@gmail.com
 
Hello guys...
  Looking at mapserver.org map sample. I´d like to know how can I do
  something like that ... Can someone point me the right direction to do 
  that?
  Is it possible to use mapscript c# to do that?
 
  Thanks
 
  ___
  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


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


Re: [mapserver-users] Mapserver.org sample ...

2009-01-13 Thread Paul james
Thanks !
Can you point me some quickstart with openlayer + mapserver + tilecache? I´m
kind lost on it...
I have a custom app using mapscript + postgis... And I´d like to make a
version using openlayers and tilecache...



On Tue, Jan 13, 2009 at 2:03 PM, Christopher Schmidt 
crschm...@metacarta.com wrote:

 On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote:
  Thanks Tamas...
  Is It possible to use OpenLayers with mapscript?

 In what way? OpenLayers would typically take over many of the roles that
 a custom application would -- building your application in Javascript
 instead of PHP. Depending on what you are doing with mapScript, it may
 be possibl t simply use MapServer as a CGI instead, or it may be
 possible to implement what you want such that OpenLayers can ccomplish
 it.

 
 
  On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
   Paul,
  
   This kind of functionality requires some client side scripting like
   javascript implemented by OpenLayers in this particular case.
  
   Best regards,
  
   Tamas
  
  
   2009/1/13 Paul james paulj...@gmail.com
  
 Hello guys...
   Looking at mapserver.org map sample. I´d like to know how can I do
   something like that ... Can someone point me the right direction to do
 that?
   Is it possible to use mapscript c# to do that?
  
   Thanks
  
   ___
   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


 --
 Christopher Schmidt
 MetaCarta

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


Re: [mapserver-users] Map File for Open Street Map symbology

2009-01-13 Thread Stephen Woodbridge

thomas bonfort wrote:

http://code.google.com/p/mapserver-utils/source/browse/trunk/

you'll need the code from the mapserver graphics sandbox (rev 8254 is
preferred as it doesn't have the cairo code in it yet)


Hi Thomas,

I have been looking over your osm mapfile and have a few questions.

1) As you mentioned in your original post, I should grab some code from 
a sandbox, what does this have in it over say todays svn?


2) I noticed you have both:

LABELITEM name
and
TEXT ([ref])

Does the TEXT override the LABELITEM for the given class it is in? and 
then default to the LABELITEM if it is not present? I guess this seems 
logical, but I never thought about it before.


3) This looks a little strange. It looks like you are drawing the 
outline first without the body of the road, then drawing the body of the 
road afterwards.


STYLE
WIDTH _motorway_width
OUTLINEWIDTH 1
OUTLINECOLOR _motorway_ol_clr
MINWIDTH _motorway_minwidth
MAXWIDTH _motorway_maxwidth
END
STYLE
WIDTH _motorway_width
COLOR _motorway_clr
MINWIDTH _motorway_minwidth
MAXWIDTH _motorway_maxwidth
END

Why not draw it like in a single pass? are there quality issues with this?

STYLE
WIDTH _motorway_width
COLOR _motorway_clr
OUTLINEWIDTH 1
OUTLINECOLOR _motorway_ol_clr
MINWIDTH _motorway_minwidth
MAXWIDTH _motorway_maxwidth
END

Or draw it like where (_motorway_width + 2) is a value not an expression:

STYLE
WIDTH _motorway_width + 2
COLOR _motorway_ol_clr
MINWIDTH _motorway_minwidth
MAXWIDTH _motorway_maxwidth
END
STYLE
WIDTH _motorway_width
COLOR _motorway_clr
MINWIDTH _motorway_minwidth
MAXWIDTH _motorway_maxwidth
END

I assume this is slower because you have to draw all the pixels between 
the outlines.


4) I have not seen MINWIDTH and MAXWIDTH before. What do these do? Isn't 
the width fixed? Or is this controlling the how wide the antialiasing is 
allowed to propagate?


Wow! After 10 years of working with mapfile files there is still a lot 
of new interesting stuff to learn!


Thank you for sharing this!

Best regards,
  -Steve W
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Need help with build-order of libraries used by mapserver (UTF8 support, SDE, etc)

2009-01-13 Thread Russell McOrmond


On Tue, 6 Jan 2009, Russell McOrmond wrote with Subject:
  Re: [mapserver-users] Confirmation of status of UTF8 support,
  and where transcoding to Latin-1 may be happening.

 I hope people don't mind me posting as I learn things, hoping that it will 
spark some ideas from other people.


 Another issue, this time with iconv.  I know this is not a mapserver issue, 
but it is possible that someone has seen something similar.



  As an update, I am still tracking this problem.

  Like the binary created by the FGS folks http://maptools.org/fgs/ , we 
are trying to compile mapserver against libraries we build ourselves so 
that mapserver is not as dependant on the operating system environment.


  The problem we are having comes down to some library incompatability 
between iconv_open and some other library.


  I have a simple test program.

#include iconv.h
int main() {
iconv_t cd;
cd = iconv_open(UTF-8, UTF-16);
printf(iconv_open returns %d\n\n, (int)cd);
iconv_close(cd);
return 0;
}


  If I compile this against the standard libc (gcc iconvbroke.c ; ./a.out) 
, then I get a value other than -1.


  If I compile with the same linking that mapserver is using, then I 
always get -1




My successful test had the following environement:

1) all libraries/etc built with sepatate libiconv
2) back up and then remove libiconv and separate iconv.h
3) rebuild libxml2 and mapserver  (now not linked against libiconv)
4) restore libiconv files.

  If I build my 'iconvbroke' test after these steps then I get numbers 
other than (-1).  That is, it is not linking against libiconv (as it was 
removed in step 2), but is linked against a libgd that was built with 
libiconv still there.


  If I put libiconv back and build just configure and build mapserver, it 
is broken again.  This suggests it isn't just something specific to 
libxml2.


  If I leave the library there, but just don't restore the iconv.h, then 
mapserver also seems to be fine (it's linked against libiconv likely 
because of libxml2, but its own usage of iconv isn't using that version).


  This seems a bit odd to me and I expect that there is something else 
broken when things are built this way (IE: things that gd, xml2, and other 
libraries are using).  I'm just testing data coming from SDE, and haven't 
yet re-tested things like labels/etc.


  Here is a list of all the stuff we are building.  Not all of these 
components are libraries that mapserver links against, but it is complete. 
I'd rather be complete than manage to not mention something that turns out 
to be relevant.


# 1. JDK 1.5.0_16
# 2. Oracle Client 10.2.0
# 3. ArcSDE 9.2 SP5
# 4. Zlib 1.2.3
# 5. Expat 2.0.1
# 6. iconv 1.12
# 7. Sablot 1.0.3
# 8. Python 2.5.2
# 9. Libxml2 2.6.30
# 10. LibJPEG 6b
# 11. Libpng 1.2.24
# 12. Libtiff 3.8.4
# 13. PDFlib Lite 7.0.2
# 14. curl 7.18.0
# 15. Freetype 2.3.5
# 16. Gettext 0.17
# 17. GD 2.0.35
# 18. GDBM 1.8.3
# 19. cronolog 1.6.2
# 20. GEOS 3.0.0rc4
# 21. Xerces 2.8.0
# 22. PROJ 4.5.0
# 23. Apache 2.2.9
# 24. PHP 5.2.6
# 25. Flex 2.5.35
# 26. Mod_python 3.3.1
# 27. TileCache 2.04
# 28. GDAL 1.4.4
# 29. Modjk 1.2.18
# 30. Tomcat 5.5.26
# 31. Swig 1.3.31
# 32. Open Market fcgi 2.4.0
# 33. mod_fastcgi 2.4.6
# 34. UMN MapServer 5.2.1


  The build environment is CentOS 5, but I'm soon going to try to build in 
RHEL4  (the ultimate target OS for the customer).  I don't expect a 
difference as other binaries targeted for this environment are broken in 
the same way.


  Any suggestions greatly appreciated.

--
 Russell McOrmond, Internet Consultant: http://www.flora.ca/
 Please help us tell the Canadian Parliament to protect our property
 rights as owners of Information Technology. Sign the petition!
 http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca

 The government, lobbied by legacy copyright holders and hardware
  manufacturers, can pry control over my camcorder, computer,
  home theatre, or portable media player from my cold dead hands!
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] GPX format supported?

2009-01-13 Thread bean

Thanks Andreas,

An obvious and simple mistake. Sorry to have bothered the list with 
such a simple question.


I am still getting msLoadMap(): Premature End-of-File. I am a 
relative newbie with mapserver  although I have managed to build a 
2800 line mapfile of many layer types. This is my first 
CONNECTIONTYPE OGR layer and I just don't seem to get the context.


Included is my current mapfile that fails with msLoadMap(): Premature 
End-of-File. OGR reads the file fine from the command line so my 
problem must be in my mapfile right?



LAYER
  NAME 'GPS'
  TYPE POINT
  CONNECTIONTYPE OGR
  CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'
  DATA 'waypoints'
  STATUS ON
  DEBUG 5
  CLASS
STYLE
  SYMBOL 'CIRCLE'
  SIZE 3
   OUTLINECOLOR 0 0 0
   COLOR 106 7 182
END
  END
END

bean

Hi,

I think the 'END' keyword after 'OPACITY 100' shouldn't be there 
since it terminates the LAYER block.

LAYER
  NAME 'GPS'
  TYPE POINT
  CONNECTIONTYPE OGR
  CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'
  DATA 'Waypoints'
  STATUS ON
  DEBUG 5
  OPACITY 100
#  END -- terminates LAYER
  LABELITEM 'name'
  CLASS
NAME 'name = Waypoint'
STYLE
  SYMBOL  'circle'
  SIZE 8
  OUTLINECOLOR 0 0 0
  COLOR 255 255 0
END
LABEL
  SIZE medium
  COLOR 0 0 0
  ANGLE 0
  BUFFER 1
END
  END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Accessing a different type of raster data type

2009-01-13 Thread Roger André
Hi All,

I'm curious if you could give me an idea of the level of effort this would
take.  I have access to a data service at work that will render an array of
values in response to a bbox geographic query.  I'd like the ability to
create a Mapserver raster Layer that uses this service as a data source, so
that I can populate a web map using dynamically generated data, rather than
pre-rendering a raster set.  How hard would it be to write a new connector
that could read this data service?

Thanks in advance for any advice you can give me,

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


Re: [mapserver-users] Accessing a different type of raster data type

2009-01-13 Thread Frank Warmerdam

Roger André wrote:

Hi All,

I'm curious if you could give me an idea of the level of effort this 
would take.  I have access to a data service at work that will render an 
array of values in response to a bbox geographic query.  I'd like the 
ability to create a Mapserver raster Layer that uses this service as a 
data source, so that I can populate a web map using dynamically 
generated data, rather than pre-rendering a raster set.  How hard would 
it be to write a new connector that could read this data service?


Thanks in advance for any advice you can give me,


Roger,

It should be reasonable easy to add this as a new GDAL format driver,
or alternatively as an extension of the existing WMS driver which
has a minidriver mechanism to add new web service types beyond
WMS.

Some helpful resources:

* The driver implementation tutorial:

  http://www.gdal.org/gdal_drivertut.html

* The WMS driver code (see mini drivers for examples of new protocols):

  http://svn.osgeo.org/gdal/trunk/gdal/frmts/wms/

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


[mapserver-users] GPX format supported?

2009-01-13 Thread bean

Hi Steve,

Thanks for the rapid reply. I have removed the layers one by one. 
They all parse right but this GPX layer.
Curiously if I remove the class statement (including the first end 
statement) I get no parse errors but the layer fails to render.


Still puzzled,
bean


Bean,

You probably have some other layer that does not have the block ... 
ENDs match up correctly. Try making a mapfile with just the single 
layer below and see if that works, then add another layer and test 
it, and so on until it breaks. Also check the all quoted strings are 
properly terminated.


No magic here, just take it layer by layer until you find the problem.

-Steve W



LAYER
  NAME 'GPS'
  TYPE POINT
  CONNECTIONTYPE OGR
  CONNECTION 
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'

  DATA 'waypoints'
  STATUS ON
  DEBUG 5
  CLASS
STYLE
  SYMBOL 'CIRCLE'
  SIZE 3
   OUTLINECOLOR 0 0 0
   COLOR 106 7 182
END
  END

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


Re: [mapserver-users] Mapserver queries for line layer

2009-01-13 Thread Steve Lime
Here's an example that uses OpenLayers with a hover event to fire queries off 
to MapServer:

  http://www.dnr.state.mn.us/waters/csg/index_copy.html 

The relevant javascript is at:

  http://maps.dnr.state.mn.us/waters/csg/current_test.js 

When ever the user pauses the app fires a query off to MapServer. In this case 
I'm querying points
but the same code would work for lines. If the query fails (e.g. nothing found) 
I use the webObj
EMPTY parameter to return content that just contains a -1. If it succeeds, 
templated query results
are passed back and displayed. In this case I'm using an Ext.js window but you 
could just as easily
update a div or use another popup library.

Hope it helps...

Steve

 On 1/12/2009 at 4:01 AM, in message 496b1512.8000...@gslab.com, Subha
Ramakrishnan su...@gslab.com wrote:
 Hi All,
 
 I using Mapserver 5.0.2 and Openlayers. I had posted a query before on 
 how to show pop up for a line layer.
 
 I am trying to use the mapserver queries for the same. I find 
 documentation that uses a shapefile for the data and use variables from 
 that on the template file. But all the data I've is in a postgresql DB.
 
 Can someone please give me an example as to how to query DB for the 
 features' details and show it on the map as a pop up?
 And is there anything on Openlayers side that I've to do to enable this 
 mapserver queries?( like sending a request to fetch a map)
 
 Thanks a lot for the help.
 
 Regards,
 Subha
 ___
 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] Accessing a different type of raster data type

2009-01-13 Thread Roger André
Frank, you rock.

Thanks for the links.

Roger
--

On Tue, Jan 13, 2009 at 1:17 PM, Frank Warmerdam warmer...@pobox.comwrote:

 Roger André wrote:

 Hi All,

 I'm curious if you could give me an idea of the level of effort this would
 take.  I have access to a data service at work that will render an array of
 values in response to a bbox geographic query.  I'd like the ability to
 create a Mapserver raster Layer that uses this service as a data source, so
 that I can populate a web map using dynamically generated data, rather than
 pre-rendering a raster set.  How hard would it be to write a new connector
 that could read this data service?

 Thanks in advance for any advice you can give me,


 Roger,

 It should be reasonable easy to add this as a new GDAL format driver,
 or alternatively as an extension of the existing WMS driver which
 has a minidriver mechanism to add new web service types beyond
 WMS.

 Some helpful resources:

 * The driver implementation tutorial:

  http://www.gdal.org/gdal_drivertut.html

 * The WMS driver code (see mini drivers for examples of new protocols):

  http://svn.osgeo.org/gdal/trunk/gdal/frmts/wms/

 Best regards,
 --

 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com
 light and sound - activate the windows | 
 http://pobox.com/~warmerdamhttp://pobox.com/%7Ewarmerdam
 and watch the world go round - Rush| Geospatial Programmer for Rent


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


Re: [mapserver-users] GPX format supported?

2009-01-13 Thread Stephen Woodbridge

b...@warbaby.com wrote:

Hi Steve,

Thanks for the rapid reply. I have removed the layers one by one. They 
all parse right but this GPX layer.
Curiously if I remove the class statement (including the first end 
statement) I get no parse errors but the layer fails to render.


Still puzzled,
bean


Bean,

You probably have some other layer that does not have the block ... 
ENDs match up correctly. Try making a mapfile with just the single 
layer below and see if that works, then add another layer and test it, 
and so on until it breaks. Also check the all quoted strings are 
properly terminated.


No magic here, just take it layer by layer until you find the problem.

-Steve W




So the following nesting of tags looks correct:

 LAYER
   NAME 'GPS'
   TYPE POINT
   CONNECTIONTYPE OGR
   CONNECTION 
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'

   DATA 'waypoints'
   STATUS ON
   DEBUG 5
   CLASS
 STYLE
   SYMBOL 'CIRCLE'
   SIZE 3
   OUTLINECOLOR 0 0 0
   COLOR 106 7 182
 END
   END
 END

I a can't help you a lot with the the OGR connection, as I don't use it 
that often.


Are sure that DATA 'waypoints' is correct?

You might try at the command line, something like:

ogrinfo --formats

and verify that GPX is supported.

ogrinfo /Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx

and see what it says. I would also ask OGR specific question on the 
GDAL/OGR list, as they might have more info on ogr related problems.


-Steve

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


Re: [mapserver-users] Where is the raster classifier code in Mapserver?

2009-01-13 Thread Frank Warmerdam

Roger André wrote:
This is probably a question for Frank W..  I'd like to re-write the 
raster classifier in Mapserver so that it can apply a linear color 
gradient using LUTs.  I've got code written already to do this with the 
Python API to GDAL, and would like to be able to do the same thing in 
Mapserver.  Can someone point me to the right C code?


Roger,

The core of the existing classification logic is msGetClass() in mapraster.c.
Also if you search on classified in mapdrawgdal.c you will see most
of the places it gets used.

I believe that ramp based gradients should be written up as an RFC.  There
was a previous effort which I think was partially implemented.  I would
suggest you dig up information on it, before going too far.

  http://mapserver.org/development/rfc/ms-rfc-6.html

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


RE: [mapserver-users] GPX format supported?

2009-01-13 Thread Fawcett, David
Don't forget to set STATUS to DEFAULT, or explicitly request the layer
by name in the URL request.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Tuesday, January 13, 2009 3:59 PM
To: b...@warbaby.com
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] GPX format supported?


b...@warbaby.com wrote:
 Hi Steve,
 
 Thanks for the rapid reply. I have removed the layers one by one. They
 all parse right but this GPX layer.
 Curiously if I remove the class statement (including the first end 
 statement) I get no parse errors but the layer fails to render.
 
 Still puzzled,
 bean
 
 Bean,

 You probably have some other layer that does not have the block ...
 ENDs match up correctly. Try making a mapfile with just the single 
 layer below and see if that works, then add another layer and test
it, 
 and so on until it breaks. Also check the all quoted strings are 
 properly terminated.

 No magic here, just take it layer by layer until you find the 
 problem.

 -Steve W
 

So the following nesting of tags looks correct:

  LAYER
NAME 'GPS'
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION 
'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'
DATA 'waypoints'
STATUS ON
DEBUG 5
CLASS
  STYLE
SYMBOL 'CIRCLE'
SIZE 3
OUTLINECOLOR 0 0 0
COLOR 106 7 182
  END
END
  END

I a can't help you a lot with the the OGR connection, as I don't use it 
that often.

Are sure that DATA 'waypoints' is correct?

You might try at the command line, something like:

ogrinfo --formats

and verify that GPX is supported.

ogrinfo /Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx

and see what it says. I would also ask OGR specific question on the 
GDAL/OGR list, as they might have more info on ogr related problems.

-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] Where is the raster classifier code in Mapserver?

2009-01-13 Thread Roger André
Very cool.  Looks like it is scheduled for inclusion in Release 5.4., and
even better, the code is still functional.  I'm playing around with it now,
and am easily applying a gradient to a single range of values, but have not
yet figured out how to apply different color gradients to different ranges.

Will keep working on it.

Thanks for the lead.
--



On Tue, Jan 13, 2009 at 2:02 PM, Frank Warmerdam warmer...@pobox.comwrote:

 Roger André wrote:

 This is probably a question for Frank W..  I'd like to re-write the raster
 classifier in Mapserver so that it can apply a linear color gradient using
 LUTs.  I've got code written already to do this with the Python API to GDAL,
 and would like to be able to do the same thing in Mapserver.  Can someone
 point me to the right C code?


 Roger,

 The core of the existing classification logic is msGetClass() in
 mapraster.c.
 Also if you search on classified in mapdrawgdal.c you will see most
 of the places it gets used.

 I believe that ramp based gradients should be written up as an RFC.  There
 was a previous effort which I think was partially implemented.  I would
 suggest you dig up information on it, before going too far.

  http://mapserver.org/development/rfc/ms-rfc-6.html

 Best regards,
 --

 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com
 light and sound - activate the windows | 
 http://pobox.com/~warmerdamhttp://pobox.com/%7Ewarmerdam
 and watch the world go round - Rush| Geospatial Programmer for Rent


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


Re: [mapserver-users] GPX format supported?

2009-01-13 Thread Jeff McKenna

b...@warbaby.com wrote:

Thanks Andreas,

An obvious and simple mistake. Sorry to have bothered the list with such 
a simple question.


I am still getting msLoadMap(): Premature End-of-File. I am a relative 
newbie with mapserver  although I have managed to build a 2800 line 
mapfile of many layer types. This is my first CONNECTIONTYPE OGR layer 
and I just don't seem to get the context.


Included is my current mapfile that fails with msLoadMap(): Premature 
End-of-File. OGR reads the file fine from the command line so my problem 
must be in my mapfile right?




While testing gpx just now I realized that we don't have a GPX page in 
the MapServer Vector Data Access doc, so I have added it into SVN.


In my testing I was forced to use the track_points feature, as there 
was no actual data in the waypoints feature (you can test this through 
ogrinfo).


-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


[mapserver-users] GPX format supported?

2009-01-13 Thread bean

Hi Jeff,

Thanks for the reply. I ran ogrinfo on both waypoints and 
track_points. waypoints returns 147 entries and track_points 
returns 0 entries (there are no tracks recorded in my GPS unit at 
this point, just trying to keep it simple for now). This is returned 
from a Garmin eTrex Venture through gps babel.


Thanks for entering the SVN.

I am still puzzled about my mapfile layer however. It fails to parse 
when CLASS is added and the layer fails to load when CLASS is 
deleted. I feel sure my mapfile layer syntax is correct (although my 
previous blooper with the errant END statement says I shouldn't be so 
sure). Would you mind looking for obvious errors for the following?


LAYER
  NAME 'GPS'
  TYPE POINT
  CONNECTIONTYPE OGR
  CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx'
  DATA 'waypoints'
  STATUS ON
  DEBUG 5
  CLASS
STYLE
  SYMBOL 'CIRCLE'
  SIZE 3
   OUTLINECOLOR 0 0 0
   COLOR 106 7 182
END
  END
END

Thanks,
bean





While testing gpx just now I realized that we don't have a GPX page 
in the MapServer Vector Data Access doc, so I have added it into SVN.


In my testing I was forced to use the track_points feature, as 
there was no actual data in the waypoints feature (you can test 
this through ogrinfo).


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


[mapserver-users] Can I turn off bounding box check for postgis query?

2009-01-13 Thread Ben Madin

G'day all,

This might be a postgis list question, but I thought I'd try here first.

I have a table with approx 4 million rows, each with a date and start  
and end point (and some other). This table would probably increase by  
around 300 000 rows per month. The table is indexed and clustered by  
date, and the table has no specific geometry information, just a code  
to link to a geometry table.


To produce a useful sense of the activity, I am collecting all the  
start and end points in a given time frame, and making line segments,  
then aggregating by start and end point, and counting the total number  
of each line.


EXPLAIN ANALYZE
SELECT  
bucket::text,asbinary(force_collection(force_2d(route)),'NDR'),mid::text
from ( SELECT (ogid*1000 + dgid)::int as mid, origtta, desttta,  
ST_MakeLine(s.orig, s.dest) as route, total_head,  
ceiling(log(total_head))::int as bucket
FROM ( SELECT o.gid as ogid, d.gid as dgid, o.area_name as origtta,  
d.area_name as desttta, st_centroid(o.the_geom) as orig,  
st_centroid(d.the_geom) as dest, count(n.id) as total_head

FROM nlis n
JOIN tailtagarea o ON n.sourceshire = o.shortcode
JOIN tailtagarea d ON n.destinationshire = d.shortcode
WHERE sourceshire is not null AND sourceshire not like ' '
AND destinationshire is not null AND destinationshire not like ' '
AND transferdate = '13/06/2008' AND transferdate = '15/06/2008'
GROUP BY o.gid, d.gid, o.area_name, d.area_name,  
st_centroid(o.the_geom), st_centroid(d.the_geom)

) AS s
) AS foo

in the terminal, this runs in either about 4 or 9 seconds depending on  
the date range - if it becomes more than about 3 days of reports the  
query analyzer notes moving to disk based sorts etc.


However, when I run it in MapServer, the following statement is added :

WHERE route  setSRID('BOX3D(105.204213080645  
-37.0327214193548,143.604244080645 -9.31123074193548)'::BOX3D, 4326 )


and it never completes, and neither does it if I take the final  
statement and run it directly in psql.


So, I read the documentation, and read about moving the BBOX statement  
using !BOX!, which I did (using st_within on both the joins, but in  
fact, this is not the behaviour I want, as it stops any lines being  
created if they start or end outside the window ( I want to see these  
ones as well).


Additionally, it didn't stop the final bbox statement being added,  
which I thought it was meant to?


So can I just trick MapServer into not adding the BBOX?

After aggregation, there is unlikely to be more than about 200 lines  
to be rendered, so whether or not they are in the map window shouldn't  
damage rendering performance too much - should it?



cheers

Ben



--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

b...@remoteinformation.com.au



Out here, it pays to 
know...


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