Re: [mapserver-users] openlayers in vs2005 website

2009-05-27 Thread Adam Eskreis
Pretty sure since OpenLayers is pure javascript, running it in a .net
environment would be just fine

-Adam

On Mon, May 25, 2009 at 11:17 AM, Paolo Corti pco...@gmail.com wrote:




 sunny74 wrote:
 
 
  I want to use openlayers javascript library for doing operations like pan
  zoom, rectangular select,tooltip etc.
  Pls tell me in detail i.e step by step. I am looking for detailed
  guidance/support in respect of this map display and I am ready for
  alternative arrangement other than this forum.
  If you r ready for alternative arrangement pls let me know I shall give u
  my email id.
 
  Pls reply ASAP.
 

 Hi

 i think you are in the wrong list then ;-)
 Anyway if you need the basic things like pan, zoom, select etc OpenLayers
 will brilliantly make the trick without needing to use any mapscript
 version
 (.NET in your case).
 In fact you will just need to cook a bit of JS, expose your map as WFS/WMS
 and you will be ready.
 I think you can manage the whole thing easily by reading this
 documentation:

 OpenLayers doc: http://docs.openlayers.org/
 OpenLayers samples: http://openlayers.org/dev/examples/
 MapServer as WMS: http://mapserver.org/ogc/wms_server.html
 MapServer as WFS: http://mapserver.org/ogc/wfs_server.html
 OpenLayers mailing lists: http://openlayers.org/mailman/listinfo

 If you still need a consultant to do this for you i am available, drop me
 an
 email and i will answer you

 best regards
 Paolo Corti


 --
 View this message in context:
 http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p2970131.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


[mapserver-users] Problems getting a JP2 or TIFF raster layer drawen

2009-05-27 Thread Michael Da Silva Pereira
Hi,

I am having a problem displaying a JP2 / TIFF image in mapserver, it
draws my shape files. However I can not get it to draw my RASTER layer
:(

Any Suggestions?




MAP
SIZE 1300 600
DEBUG 5

EXTENT 23.5 -34 23.6 -25
IMAGECOLOR 180 180 250
UNITS DD
SCALEBAR
STATUS EMBED
UNITS KILOMETERS
INTERVALS 3
TRANSPARENT TRUE
OUTLINECOLOR 0 0 0
END
LEGEND
STATUS EMBED
POSITION LR
TRANSPARENT TRUE
END
WEB
TEMPLATE global.html
IMAGEPATH /var/www/ms-tmp/
IMAGEURL /ms-tmp/
END
LAYER
NAME vereenigingroads
STATUS ON
DATA vereenigingroads/vereenigingroads.shp
TYPE LINE
CLASS
NAME 'the world'
COLOR 0 0 0
END
END
LAYER
NAME '2627D'
TYPE RASTER
STATUS ON
DATA /var/www/ms-tmp/2627D.JP2
END
END

r...@michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v
MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE

[Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s
[Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0
(vereenigingroads), 0.039s
[Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering.
[Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s
[Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, 0.000s
[Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s
[Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s
[Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8.
[Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at 0x911d508.
[Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at 0x911e1d0.
[Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at 0x9246188.
[Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at 0x92fea48.
[Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s


r...@michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2
129M2627D.JP2


-- 

Regards,
Michael da Silva Pereira
Mobile: +27 84 245 2376
Office: +27 11 251 2036
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen

2009-05-27 Thread David Martinez Morata
Hello.
Try to change the palcement of your layers and configure your shape  with
TRANSPARENT TRUE varible..
Something like

LAYER
   NAME '2627D'
   TYPE RASTER
   STATUS ON
   DATA /var/www/ms-tmp/2627D.JP2
END
LAYER
   NAME vereenigingroads
   STATUS ON
   DATA vereenigingroads/vereenigingroads.shp
   TYPE LINE
TRANSPARENT TRUE
   CLASS
   NAME 'the world'
   COLOR 0 0 0
   END
END


2009/5/27 Michael Da Silva Pereira michael.dasilvapere...@iburstafrica.com

 Hi,

 I am having a problem displaying a JP2 / TIFF image in mapserver, it
 draws my shape files. However I can not get it to draw my RASTER layer
 :(

 Any Suggestions?




 MAP
SIZE 1300 600
DEBUG 5

EXTENT 23.5 -34 23.6 -25
IMAGECOLOR 180 180 250
UNITS DD
SCALEBAR
STATUS EMBED
UNITS KILOMETERS
INTERVALS 3
TRANSPARENT TRUE
OUTLINECOLOR 0 0 0
END
 LEGEND
STATUS EMBED
POSITION LR
TRANSPARENT TRUE
 END
 WEB
TEMPLATE global.html
IMAGEPATH /var/www/ms-tmp/
IMAGEURL /ms-tmp/
 END
 LAYER
NAME vereenigingroads
STATUS ON
DATA vereenigingroads/vereenigingroads.shp
TYPE LINE
CLASS
NAME 'the world'
COLOR 0 0 0
END
 END
 LAYER
NAME '2627D'
TYPE RASTER
STATUS ON
DATA /var/www/ms-tmp/2627D.JP2
 END
 END

 r...@michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v
 MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV
 SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE

 [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s
 [Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0
 (vereenigingroads), 0.039s
 [Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering.
 [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s
 [Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, 0.000s
 [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s
 [Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s
 [Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8.
 [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at 0x911d508.
 [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at 0x911e1d0.
 [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at 0x9246188.
 [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at 0x92fea48.
 [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s


 r...@michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2
 129M2627D.JP2


 --

 Regards,
 Michael da Silva Pereira
 Mobile: +27 84 245 2376
 Office: +27 11 251 2036
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 
Martinez Morata David
Thinking GIS
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] MapServer Demo

2009-05-27 Thread Fawcett, David
Chris and I solved this one yesterday.  It was the problem that Ben and
Brent also pointed out.  

The solution was either to drop the '/' prefix or get rid of the 'C:/'.


David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ben Madin
Sent: Tuesday, May 26, 2009 7:18 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MapServer Demo


G'day Chris,

On 27/05/2009, at 3:29 AM, Chris Green wrote:

 msSaveImageGD(): Unable to access file. Unable to open file /C:/
 ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing

I'm not sure about using the variables bit, but I would start by  
putting /C:/ms4w/tmp/ms_tmp/ into the address bar of the normal  
'finder' window (is it called explorer on windows) and make certain it  
takes you to the directory you want. I would then be making all  
permissions access on this directory (ie open for anyone to read or  
write or execute).

Do you normally prefix a / onto the directory path in windows?

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


Re: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen

2009-05-27 Thread Frank Warmerdam

Michael Da Silva Pereira wrote:

I am trying to display from browser using browse mode,
and using shp2img to test drawing to a straight .png
/home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug 1000


Michael,

And what output do you see?  You might also try setting the CPL_DEBUG
environment variable to ON.

eg.

export CPL_DEBUG=ON
/home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug 1000

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

2009-05-27 Thread Paolo Corti
 Thanks for the suggestion, but that doesn't do it - same error message. I
 have been wondering if the problem has to do with the tmp file not having
 permission for other (web-based) users to access it, but I tried declaring
 it as a system environment variable, still no success. Going round in
 circles now...

as far as i remember Apache service in Windows is running under
LocalSystem users so it shouldn't be a permission issue (that user has
full access to filesystem), though you may make sure about this
setting full control to everyone in folder properties.

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


Re: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen

2009-05-27 Thread Michael Da Silva Pereira
It displays everything normally, except the raster, which is just not drawn

GDAL: Auto register /usr/lib/gdal15plugins/gdal_GRASS.so using
GDALRegister_GRASS.
[Wed May 27 18:04:41 2009].197691 msLoadMap(): 0.570s
[Wed May 27 18:04:41 2009].414187 msDrawMap(): Layer 0 (vereenigingroads),
0.194s
[Wed May 27 18:04:41 2009].414307 msDrawRasterLayerLow(2627D): entering.
JPEG2000: IHDR box found. Dump: width=20018, height=22269, numcmpts=3, bpp=8
JPEG2000: Component 0: bpp=8, signedness=0
JPEG2000: Component 1: bpp=8, signedness=0
JPEG2000: Component 2: bpp=8, signedness=0
GDALJP2Metadata: Got projection from GeoJP2 (geotiff) box: PROJCS[WGS 84 /
UTM zone 35S,GEOGCS[WGS 84,DATUM[WGS_1984,SPHEROID[WGS
84,6378137,298.2572235629972,AUTHORITY[EPSG,7030]],AUTHORITY[EPSG,6326]],PRIMEM[Greenwich,0],UNIT[degree,0.0174532925199433],AUTHORITY[EPSG,4326]],PROJECTION[Transverse_Mercator],PARAMETER[latitude_of_origin,0],PARAMETER[central_meridian,27],PARAMETER[scale_factor,0.9996],PARAMETER[false_easting,50],PARAMETER[false_northing,1000],UNIT[metre,1,AUTHORITY[EPSG,9001]],AUTHORITY[EPSG,32735]]
GDAL: GDALOpen(/var/www/ms-tmp/./2627D.JP2) succeeds as JPEG2000.
GDAL: GDALClose(/var/www/ms-tmp/./2627D.JP2)
[Wed May 27 18:04:46 2009].785278 msDrawMap(): Layer 1 (2627D), 5.371s
[Wed May 27 18:04:46 2009].786307 msDrawMap(): Drawing Label Cache, 0.000s
[Wed May 27 18:04:46 2009].786388 msDrawMap() total time: 5.588s
[Wed May 27 18:04:46 2009].829842 msSaveImage() total time: 0.043s
[Wed May 27 18:04:46 2009].830048 msFreeMap(): freeing map at 0x9732ac8.
[Wed May 27 18:04:46 2009].830136 freeLayer(): freeing layer at 0x9739718.
[Wed May 27 18:04:46 2009].830201 freeLayer(): freeing layer at 0x9862a68.
[Wed May 27 18:04:46 2009].830240 freeLayer(): freeing layer at 0x991bb38.
[Wed May 27 18:04:46 2009].830289 shp2img total time: 6.202s
GDAL: GDALDeregister_GTiff() called.


2009/5/27 Frank Warmerdam warmer...@pobox.com

 Michael Da Silva Pereira wrote:

 I am trying to display from browser using browse mode,
 and using shp2img to test drawing to a straight .png
 /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug
 1000


 Michael,

 And what output do you see?  You might also try setting the CPL_DEBUG
 environment variable to ON.

 eg.

 export CPL_DEBUG=ON
 /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug
 1000

 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




-- 

Regards,
Michael da Silva Pereira
Mobile: +27 84 245 2376
Office: +27 11 251 2036
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen

2009-05-27 Thread Frank Warmerdam

Michael Da Silva Pereira wrote:

It displays everything normally, except the raster, which is just not drawn

GDAL: Auto register /usr/lib/gdal15plugins/gdal_GRASS.so using 
GDALRegister_GRASS.

[Wed May 27 18:04:41 2009].197691 msLoadMap(): 0.570s
[Wed May 27 18:04:41 2009].414187 msDrawMap(): Layer 0 
(vereenigingroads), 0.194s

[Wed May 27 18:04:41 2009].414307 msDrawRasterLayerLow(2627D): entering.
JPEG2000: IHDR box found. Dump: width=20018, height=22269, numcmpts=3, bpp=8
JPEG2000: Component 0: bpp=8, signedness=0
JPEG2000: Component 1: bpp=8, signedness=0
JPEG2000: Component 2: bpp=8, signedness=0
GDALJP2Metadata: Got projection from GeoJP2 (geotiff) box: PROJCS[WGS 
84 / UTM zone 35S,GEOGCS[WGS 84,DATUM[WGS_1984,SPHEROID[WGS 
84,6378137,298.2572235629972,AUTHORITY[EPSG,7030]],AUTHORITY[EPSG,6326]],PRIMEM[Greenwich,0],UNIT[degree,0.0174532925199433],AUTHORITY[EPSG,4326]],PROJECTION[Transverse_Mercator],PARAMETER[latitude_of_origin,0],PARAMETER[central_meridian,27],PARAMETER[scale_factor,0.9996],PARAMETER[false_easting,50],PARAMETER[false_northing,1000],UNIT[metre,1,AUTHORITY[EPSG,9001]],AUTHORITY[EPSG,32735]]

GDAL: GDALOpen(/var/www/ms-tmp/./2627D.JP2) succeeds as JPEG2000.
GDAL: GDALClose(/var/www/ms-tmp/./2627D.JP2)


Michael,

The file is opening fine, so I would suggest very carefully considering
the georeferenced bounds reported by gdalinfo for the file, and the
map region you are drawing.

In fact, the coordinate system of file this is UTM 35S, but your map is
in lat/long degrees.  If you want MapServer to reproject a UTM image
to lat/long on the fly you will need to specify appropriate PROJECTION
blocks for the map and the raster layer - which I observe you have not done.

For the MAP perhaps something like:

PROJECTION
  +proj=latlong +datum=WGS84
END

and for the raster layer something like:

PROJECTION
  +proj=utm +zone=35 +south +datum=WGS84
END

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] Attribute based symbol

2009-05-27 Thread Adam Eskreis
I am trying to create a layer that has a symbol, however, I want the symbol
for each geometry to be based on a field from the database.  For instance, I
am trying to make a layer that would look something like this:

LAYER
   GROUP symbol_layer
   TYPE point
   STATUS on
   CONNECTIONTYPE postgis
   CONNECTION connection string
   DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo
using unique id using SRID=-1
   CLASS
  STYLE
  SYMBOL [symbol_img_url]
  END
   END
 END

Is something like this possible?  If not, what part of the source would I
have to edit in order to make it possible?

Thank you

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


Re: [mapserver-users] Attribute based symbol

2009-05-27 Thread Steve Lime
You can bind a style symbol to an attribute. The value needs to be the name of a
system already loaded by MapServer or the name of a local image. You cannot
reference a image url.

Steve

 On 5/27/2009 at 12:26 PM, in message
a3cc80ca0905271026p141e3f92mf817e0e596f7...@mail.gmail.com, Adam Eskreis
aeskr...@gmail.com wrote:
 I am trying to create a layer that has a symbol, however, I want the symbol
 for each geometry to be based on a field from the database.  For instance, I
 am trying to make a layer that would look something like this:
 
 LAYER
GROUP symbol_layer
TYPE point
STATUS on
CONNECTIONTYPE postgis
CONNECTION connection string
DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo
 using unique id using SRID=-1
CLASS
   STYLE
   SYMBOL [symbol_img_url]
   END
END
  END
 
 Is something like this possible?  If not, what part of the source would I
 have to edit in order to make it possible?
 
 Thank you
 
 -Adam

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


Re: [mapserver-users] Attribute based symbol

2009-05-27 Thread Adam Eskreis
It doesn't seem to be working for me

I get the following error from apache:

 [MapServer Error]: msAddImageSymbol(): Error opening image file
/var/www/htdocs/maps/[symbol].

I am using the symbol as:

SYMBOL [symbol]

I also tried

SYMBOL [symbol]

neitehr works

Is this only possible with mapserver 5? I believe I am using 4.10

Thank you

-Adam

On Wed, May 27, 2009 at 2:26 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 You can bind a style symbol to an attribute. The value needs to be the name
 of a
 system already loaded by MapServer or the name of a local image. You cannot
 reference a image url.

 Steve

  On 5/27/2009 at 12:26 PM, in message
 a3cc80ca0905271026p141e3f92mf817e0e596f7...@mail.gmail.com, Adam Eskreis
 aeskr...@gmail.com wrote:
  I am trying to create a layer that has a symbol, however, I want the
 symbol
  for each geometry to be based on a field from the database.  For
 instance, I
  am trying to make a layer that would look something like this:
 
  LAYER
 GROUP symbol_layer
 TYPE point
 STATUS on
 CONNECTIONTYPE postgis
 CONNECTION connection string
 DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo
  using unique id using SRID=-1
 CLASS
STYLE
SYMBOL [symbol_img_url]
END
 END
   END
 
  Is something like this possible?  If not, what part of the source would I
  have to edit in order to make it possible?
 
  Thank you
 
  -Adam


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


[mapserver-users] Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming?

2009-05-27 Thread John Mitchell
Hi,
Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming?

Thanks,

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


Re: [mapserver-users] Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming?

2009-05-27 Thread Frank Warmerdam

John Mitchell wrote:

Hi,

Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming?


John,

No, MapServer cannot *serve* JPIP.  It may be able to act as a client to a
JPIP server - using a JPIP server's output for an input to rendering. But
that is not widely used and might be tricky.

Generally folks use proprietary JPIP servers when wanting to provide JPIP.

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] Attribute based symbol

2009-05-27 Thread Steve Lime
Yup, this is a 5.0+ function.

Steve

 On 5/27/2009 at 1:59 PM, in message
a3cc80ca0905271159w2f5863f7ueda9f601a8849...@mail.gmail.com, Adam Eskreis
aeskr...@gmail.com wrote:
 It doesn't seem to be working for me
 
 I get the following error from apache:
 
  [MapServer Error]: msAddImageSymbol(): Error opening image file
 /var/www/htdocs/maps/[symbol].
 
 I am using the symbol as:
 
 SYMBOL [symbol]
 
 I also tried
 
 SYMBOL [symbol]
 
 neitehr works
 
 Is this only possible with mapserver 5? I believe I am using 4.10
 
 Thank you
 
 -Adam
 
 On Wed, May 27, 2009 at 2:26 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:
 
 You can bind a style symbol to an attribute. The value needs to be the name
 of a
 system already loaded by MapServer or the name of a local image. You cannot
 reference a image url.

 Steve

  On 5/27/2009 at 12:26 PM, in message
 a3cc80ca0905271026p141e3f92mf817e0e596f7...@mail.gmail.com, Adam Eskreis
 aeskr...@gmail.com wrote:
  I am trying to create a layer that has a symbol, however, I want the
 symbol
  for each geometry to be based on a field from the database.  For
 instance, I
  am trying to make a layer that would look something like this:
 
  LAYER
 GROUP symbol_layer
 TYPE point
 STATUS on
 CONNECTIONTYPE postgis
 CONNECTION connection string
 DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo
  using unique id using SRID=-1
 CLASS
STYLE
SYMBOL [symbol_img_url]
END
 END
   END
 
  Is something like this possible?  If not, what part of the source would I
  have to edit in order to make it possible?
 
  Thank you
 
  -Adam



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


[mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)'

2009-05-27 Thread Andre Steenveld sr
Hi,

I try to install mapserver and to get it going but I run into some
problems.
Can someone advise me on what I'm doing wrong?

This is what I have (and have done).

Systems: 
1) Windows Vista, dutch version.
2) Windows XP, dutch version.

Installed mapserver as suggested in
http://www.mapserver.org/introduction.html#introduction
Om 1) in E:\usr\local\OSGeo4W
On 2) in c:\OSGeo4W

On both systems 'MapServer v. 5.0'

Testing mapserver with http://127.0.0.1/cgi-bin/mapserv.exe and I get
the expected result 
'No query information to decode. QUERY_STRING is set, but empty.' (on
both systems)

Installed 'mapserver demo', added an alias in the apache configuration
file, added another section with access rights for /workshop/ (was
undocumented), restarted apache and changed the index.html file.

The two aliasses in the apache configuration and the section on rights
are:
Alias /ms_tmp/ E:\usr\local\OSGeo4W/tmp/ms_tmp/
Alias /workshop/   E:\usr\local\OSGeo4W/apps/workshop-5.0/
...
Directory E:\usr\local\OSGeo4W/apps/workshop-5.0/
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory

When I open http://127.0.0.1/workshop/ I get a page with a form which
looks normal.
In that form I select 'Basic Application' and click on the [Initialize]
button. The result is an error message. (on both systems)

Content-type: text/html isValidTemplate(): Web application error.
Missing magic string, itasca_basic.html doesn't look like a MapServer
template.

I have no idea what is going wrong. Tried to find it in the
documentation and archive of this list but nothing came up. 
The problems might have to do with the changes needed in index.html, it
is not completely clear to me what kind of information is needed. This
is what I have filled in.

...
08: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP
09: var snippet = IMAGEPATH 'E:/usr/local/OSGeo4W/tmp'; // IMAGEPATH
'/usr/local/www/docs_maps/tmp/';
10: snippet +=  IMAGEURL '/tmp/';

Assuming that on line 09 an absolute path on the server is needed and on
line 10 an absolute URL.
Note that in the apache configuration there is no alias for /tmp/.
Changing line 10 to '/ms_tmp/ does not make any difference.

...
33: !-- EDIT THE FORM ACTION --
34: form name=demo method=GET action=/cgi-bin/mapserv.exe
onSubmit=configure()
35:   !-- action=/cgi-bin/mapserv50 --

Assuming that on line 35 an absolute URL is needed.

...
42:   !-- EDIT THESE HIDDEN VARIABLES --
43:   input type=hidden name=map
value=E:/usr/local/OSGeo4W/apps/workshop-5.0/itasca.map
44:  !--
value=/usr/local/www/docs_maps/mapserver_demos/workshop-5.0/itasca.map
--
45:   input type=hidden name=program value=/cgi-bin/mapserv.exe
46:  !-- value=/cgi-bin/mapserv50 --
47:   input type=hidden name=root value=/workshop
48:   !--
value=/mapserver_demos/workshop-5.0 --

Assuming that on line 43 an absolute path on the server is needed and on
lines 45 and 47 an absolute URL.

Can somebody point out to me what is wrong?

Kind regards,

Andre Steenveld.


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


[mapserver-users] 5.4.0 installation problem

2009-05-27 Thread Adam Eskreis
Hello all

I have mapserver almost full configured, however, I can't figure out how to
enable png support

I am certain that my installation of GD has png support.

When I run gdlib-config --libs, i get

-ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm /usr/local/lib/libiconv.so
-Wl,-r
path -Wl,/usr/local/lib

I assume this means that i have libpng installed properly

However, when I configure mapserver, at the end, it says nothing next to
png support in the rendering section.

I even included the --with-gd and --with-png arguments and still it will not
recognize libpng

what could I be doing wrong?  Any help is most apreciated.  Thank you.

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


[mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Peter Willis


Hello,

I am having a problem serving a PostGIS layer via mapserver
as WFS.

The problem arises from the generation/use of column names
in PostgreSQL that require double quotes.

ie:

 SELECT oid,gid, the_geom, Area,Perimeter,PixelValue FROM 
global_Land_poly WHERE PixelValue=1;




In the map file the 'DATA' member of the PostGIS layer is defined as:

DATA the_geom from (select oid,gid, the_geom, Area,Perimeter,PixelValue 
FROM global_Land_poly WHERE PixelValue=1 ) AS FOO using SRID=4326



ERRMapserver relays a PostGIS error from PostgreSQL:
'ERROR:  column area does not exist.../ERR

This is because the column name is actually Area
and requires quotes.

How do I define double quotes in my PostGIS query
within the 'DATA' element of my mapfile layer?

Thanks for any enlightenment,

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


Re: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Adam Eskreis
You could try regex

\Area\

-Adam

On Wed, May 27, 2009 at 6:48 PM, Peter Willis pet...@borstad.com wrote:


 Hello,

 I am having a problem serving a PostGIS layer via mapserver
 as WFS.

 The problem arises from the generation/use of column names
 in PostgreSQL that require double quotes.

 ie:

  SELECT oid,gid, the_geom, Area,Perimeter,PixelValue FROM
 global_Land_poly WHERE PixelValue=1;



 In the map file the 'DATA' member of the PostGIS layer is defined as:

 DATA the_geom from (select oid,gid, the_geom, Area,Perimeter,PixelValue
 FROM global_Land_poly WHERE PixelValue=1 ) AS FOO using SRID=4326


 ERRMapserver relays a PostGIS error from PostgreSQL:
 'ERROR:  column area does not exist.../ERR

 This is because the column name is actually Area
 and requires quotes.

 How do I define double quotes in my PostGIS query
 within the 'DATA' element of my mapfile layer?

 Thanks for any enlightenment,

 Peter
 ___
 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/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Peter Willis


I tried that. I get the following error:

loadLayer(): Unknown identifier. Parsing error near (Area):(line 30)

Mapserver doesn't appear to like the additional formatting.
Do I need to recompile with system regex I wonder?

Peter


Adam Eskreis wrote:

You could try regex

\Area\

-Adam

On Wed, May 27, 2009 at 6:48 PM, Peter Willis pet...@borstad.com 
mailto:pet...@borstad.com wrote:



Hello,

I am having a problem serving a PostGIS layer via mapserver
as WFS.

The problem arises from the generation/use of column names
in PostgreSQL that require double quotes.

ie:

 SELECT oid,gid, the_geom, Area,Perimeter,PixelValue FROM
global_Land_poly WHERE PixelValue=1;



In the map file the 'DATA' member of the PostGIS layer is defined as:

DATA the_geom from (select oid,gid, the_geom,
Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 )
AS FOO using SRID=4326


ERRMapserver relays a PostGIS error from PostgreSQL:
'ERROR:  column area does not exist.../ERR

This is because the column name is actually Area
and requires quotes.

How do I define double quotes in my PostGIS query
within the 'DATA' element of my mapfile layer?

Thanks for any enlightenment,

Peter
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org mailto: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/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Simon Haddon
Have you tried

DATA 'the_geom from (select oid,gid, the_geom,
 Area,Perimeter,PixelValue FROM global_Land_poly WHERE
PixelValue=1 )
 AS FOO using SRID=4326'

The other options is to change the table name and column names to be lower
case or case insensitive. Mixed case table and column names are always a
pain in any database system.

If you can't modify the table then try creating a view and using the view
in your query instead. Make sure your view is created all lower case
without quotes.  This will probably mean you will need to alias your select
to lower case the column names and you will probably have to add it to the
postgis geometry tables manually but other than that it will work.

Cheers,
Simon

On Wed, 27 May 2009 16:00:24 -0700, Peter Willis pet...@borstad.com
wrote:
 I tried that. I get the following error:
 
 loadLayer(): Unknown identifier. Parsing error near (Area):(line 30)
 
 Mapserver doesn't appear to like the additional formatting.
 Do I need to recompile with system regex I wonder?
 
 Peter
 
 
 Adam Eskreis wrote:
 You could try regex
 
 \Area\
 
 -Adam
 
 On Wed, May 27, 2009 at 6:48 PM, Peter Willis pet...@borstad.com 
 mailto:pet...@borstad.com wrote:
 
 
 Hello,
 
 I am having a problem serving a PostGIS layer via mapserver
 as WFS.
 
 The problem arises from the generation/use of column names
 in PostgreSQL that require double quotes.
 
 ie:
 
  SELECT oid,gid, the_geom, Area,Perimeter,PixelValue FROM
 global_Land_poly WHERE PixelValue=1;
 
 
 
 In the map file the 'DATA' member of the PostGIS layer is defined
as:
 
 DATA the_geom from (select oid,gid, the_geom,
 Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 )
 AS FOO using SRID=4326
 
 
 ERRMapserver relays a PostGIS error from PostgreSQL:
 'ERROR:  column area does not exist.../ERR
 
 This is because the column name is actually Area
 and requires quotes.
 
 How do I define double quotes in my PostGIS query
 within the 'DATA' element of my mapfile layer?
 
 Thanks for any enlightenment,
 
 Peter
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 mailto: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

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


[mapserver-users] [RESOLVED:] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Peter Willis

After a bit of experimentation I have discovered that
using single quotes, to enclose the element value, allows
double quotes to be used in the query.

ie:

DATA 'the_geom from (select oid,gid, the_geom, 
Area,Perimeter,PixelValue FROM global_Land_poly WHERE 
PixelValue=1 ) AS FOO using SRID=4326'



Thanks to all,

Peter


Peter Willis wrote:


I tried that. I get the following error:

loadLayer(): Unknown identifier. Parsing error near (Area):(line 30)

Mapserver doesn't appear to like the additional formatting.
Do I need to recompile with system regex I wonder?

Peter


Adam Eskreis wrote:

You could try regex

\Area\

-Adam

On Wed, May 27, 2009 at 6:48 PM, Peter Willis pet...@borstad.com 
mailto:pet...@borstad.com wrote:



Hello,

I am having a problem serving a PostGIS layer via mapserver
as WFS.

The problem arises from the generation/use of column names
in PostgreSQL that require double quotes.

ie:

 SELECT oid,gid, the_geom, Area,Perimeter,PixelValue FROM
global_Land_poly WHERE PixelValue=1;



In the map file the 'DATA' member of the PostGIS layer is defined as:

DATA the_geom from (select oid,gid, the_geom,
Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 )
AS FOO using SRID=4326


ERRMapserver relays a PostGIS error from PostgreSQL:
'ERROR:  column area does not exist.../ERR

This is because the column name is actually Area
and requires quotes.

How do I define double quotes in my PostGIS query
within the 'DATA' element of my mapfile layer?

Thanks for any enlightenment,

Peter
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org 
mailto: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






--
Peter Willis

Remote Sensing Analyst, Programmer, Electronics Technician

ASL Borstad Remote Sensing Inc.

1986 Mills Road
Sidney, British Columbia, Canada V8L5Y3
Tel: 250-656-0177 extension 135
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Peter Willis

Hello,

Darn!, I just sent a [RESOLVED] with the same solution.
(just as I was receiving your email...)
Yes, this is how I managed to to make it work.

Everything works now.
I guess you get the badge for that one.

Thanks for your help.

Peter



Simon Haddon wrote:

Have you tried

DATA 'the_geom from (select oid,gid, the_geom,
 Area,Perimeter,PixelValue FROM global_Land_poly WHERE
PixelValue=1 )
 AS FOO using SRID=4326'

The other options is to change the table name and column names to be lower
case or case insensitive. Mixed case table and column names are always a
pain in any database system.

If you can't modify the table then try creating a view and using the view
in your query instead. Make sure your view is created all lower case
without quotes.  This will probably mean you will need to alias your select
to lower case the column names and you will probably have to add it to the
postgis geometry tables manually but other than that it will work.

Cheers,
Simon


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


Re: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element)

2009-05-27 Thread Simon Haddon
Thanks, Now I just need that chest.  lol

On Wed, 27 May 2009 16:29:54 -0700, Peter Willis pet...@borstad.com
wrote:
 Hello,
 
 Darn!, I just sent a [RESOLVED] with the same solution.
 (just as I was receiving your email...)
 Yes, this is how I managed to to make it work.
 
 Everything works now.
 I guess you get the badge for that one.
 
 Thanks for your help.
 
 Peter
 
 
 
 Simon Haddon wrote:
 Have you tried
 
 DATA 'the_geom from (select oid,gid, the_geom,
  Area,Perimeter,PixelValue FROM global_Land_poly WHERE
 PixelValue=1 )
  AS FOO using SRID=4326'
 
 The other options is to change the table name and column names to be
 lower
 case or case insensitive. Mixed case table and column names are always a
 pain in any database system.
 
 If you can't modify the table then try creating a view and using the
view
 in your query instead. Make sure your view is created all lower case
 without quotes.  This will probably mean you will need to alias your
 select
 to lower case the column names and you will probably have to add it to
 the
 postgis geometry tables manually but other than that it will work.
 
 Cheers,
 Simon


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


[mapserver-users] MapServer: Premature end of script headers

2009-05-27 Thread Gonzalo Lionel Rodriguez
Hi everyone,

I have mapserver:

mapserv -v
MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7
INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE

With pmapper and i have a Internal Server Error:

[Thu May 28 01:09:20 2009] [error] [client 190.XXX.XXX.XXX] Premature
end of script headers: /home/orsep/public_html/gis2/map.phtml

I find some 'solutions' but dont work, the mapserver permissions is
755 and have the right user:group.

Any Idea?

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