[MapServer-users] Using a non-static PostGIS raster

2023-10-11 Thread Chris Garrard via MapServer-users
Hi there,

I have a PostGIS raster that's being served as WMS. Some of the pixel values 
will be changing on a fairly-regular basis, but so far the only way I've gotten 
MapServer to pick up the changed data is to restart it.

At first I thought it was a browser cache issue, but it's definitely not. I 
also tried setting the ows_http_max_age metadata value, and that didn't help. 
I'm not using a tile cache. Is there something I'm missing that will allow 
MapServer to use the updated data?

Thanks!
Chris
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-05 Thread Chris Cantey
That did it Jeff!

#getcapabilities

https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map=WMS=GetCapabilities=1.3.0

Which returned: https://pastebin.com/xBJCbKGz (space in MAP>NAME, ie
"probably something small:D)

I fixed the warning, and voila!

Thanks for your help!

On Thu, May 4, 2023 at 1:19 PM Jeff McKenna 
wrote:

> Yes, first get your mapfile image working with map2img, then move to
> GetCapabilities request, remove warnings from it, then try a GetMap
> request.  (this are always my steps, when creating mapfiles)
>
> An empty map image usually means that MapServer is drawing from the
> MAP-level extent that you set, but you may have the source projection
> (at the layer-level) incorrect.
>
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
> On 2023-05-04 3:09 p.m.,
> >
> > Its just a single white png though.
>
>
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
I forgot about map2img!

map2img -m mapserver.map -o test.png  -map_debug 3

returns:
msDrawMap(): Image handling error. Unable to initialize image. 
msCalculateScale(): General error message. Invalid image extent,
minx=-1.00, miny=-1.00, maxx=-1.00, maxy=-1.00. 


On Thu, May 4, 2023 at 1:00 PM Chris Cantey  wrote:

> I also changed the wms_srs to "wms_srs" "EPSG:4326 EPSG:3857"
>
> So ignore that part of pastebin
>
> On Thu, May 4, 2023 at 12:59 PM Jeff McKenna <
> jmcke...@gatewaygeomatics.com> wrote:
>
>> Also, make sure you can generate a valid map image with a map2img
>> commandline call.
>>
>> -jeff
>>
>>
>>
>> On 2023-05-04 2:51 p.m., Jeff McKenna wrote:
>> > Chris can you paste your latest mapfile at https://pastebin.com/ and
>> > paste the link here for everyone?  (and for any future mailing list
>> > messages, please use that method, for sharing your mapfile and config
>> > files)
>> >
>> > thanks,
>> >
>> > -jeff
>> >
>> >
>> >
>> > On 2023-05-04 2:45 p.m., Chris Cantey wrote:
>> >> We were also a little concerned about web>template. We didn't see
>> >> anywhere what exactly we were supposed to put in the TEMPLATE
>> >> document. its basically the same html document as
>> >> https://dev.gis.lcc.mn.gov/tmp/mapserver/
>> >> <https://dev.gis.lcc.mn.gov/tmp/mapserver/> but with  on top.
>> >>
>> >> CC
>> >>
>> >> On Thu, May 4, 2023 at 12:32 PM Chris Cantey > >> <mailto:cantey0...@gmail.com>> wrote:
>> >>
>> >> I need that t-shirt! The quotes are in the mapfile, I think gmail
>> >> just hyperlinked the string.
>> >>
>> >> I am kind of testing 2 ways: Using the browser(a few methods
>> there),
>> >> using linux: mapserv
>> >> "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"
>> >>
>> >> When I do that, I still get a validation error:
>> >>
>> >> [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
>> >> map=/home/map=home/gis/tmp/mapserver/mapserver.map
>> >> [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application
>> >> error. CGI variable "map" fails to validate.
>> >>
>> >> I'm wondering on the front end if there's a projection issue, I see
>> >> green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
>> >> <https://dev.gis.lcc.mn.gov/tmp/mapserver/>
>> >>
>> >> On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
>> >> > >> <mailto:jmcke...@gatewaygeomatics.com>> wrote:
>> >>
>> >> Also, your onlineresource is missing quotes, such as:
>> >>
>> >> "wms_onlineresource"
>> >>
>> >> "
>> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
>> <
>> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
>> >"
>> >>
>> >>
>> >>
>> >>
>> >> -jeff
>> >>
>> >>
>> >>
>> >>     -- Jeff McKenna
>> >> GatewayGeo: Developers of MS4W, MapServer Consulting and
>> Training
>> >> co-founder of FOSS4G
>> >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
>> >>
>> >>
>> >>
>> >> On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
>> >>  > Thanks.  I think you solved any validation issues ( this
>> >> request would
>> >>  > not validate, for example :
>> >>  >
>> >>
>> >>
>> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
>> <
>> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>
>> )   so it's something else, very minor likely (I've got that t-shirt too,
>> ha)
>> >>  >
>> >>  > -jeff
>> >>  >
>> >>  >
>> >>  >
>> >>  > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
>> >>  >> Thanks, Jef

Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
I also changed the wms_srs to "wms_srs" "EPSG:4326 EPSG:3857"

So ignore that part of pastebin

On Thu, May 4, 2023 at 12:59 PM Jeff McKenna 
wrote:

> Also, make sure you can generate a valid map image with a map2img
> commandline call.
>
> -jeff
>
>
>
> On 2023-05-04 2:51 p.m., Jeff McKenna wrote:
> > Chris can you paste your latest mapfile at https://pastebin.com/ and
> > paste the link here for everyone?  (and for any future mailing list
> > messages, please use that method, for sharing your mapfile and config
> > files)
> >
> > thanks,
> >
> > -jeff
> >
> >
> >
> > On 2023-05-04 2:45 p.m., Chris Cantey wrote:
> >> We were also a little concerned about web>template. We didn't see
> >> anywhere what exactly we were supposed to put in the TEMPLATE
> >> document. its basically the same html document as
> >> https://dev.gis.lcc.mn.gov/tmp/mapserver/
> >> <https://dev.gis.lcc.mn.gov/tmp/mapserver/> but with  on top.
> >>
> >> CC
> >>
> >> On Thu, May 4, 2023 at 12:32 PM Chris Cantey  >> <mailto:cantey0...@gmail.com>> wrote:
> >>
> >> I need that t-shirt! The quotes are in the mapfile, I think gmail
> >> just hyperlinked the string.
> >>
> >> I am kind of testing 2 ways: Using the browser(a few methods there),
> >> using linux: mapserv
> >> "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"
> >>
> >> When I do that, I still get a validation error:
> >>
> >> [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
> >> map=/home/map=home/gis/tmp/mapserver/mapserver.map
> >> [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application
> >> error. CGI variable "map" fails to validate.
> >>
> >> I'm wondering on the front end if there's a projection issue, I see
> >> green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
> >> <https://dev.gis.lcc.mn.gov/tmp/mapserver/>
> >>
> >> On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
> >>  >> <mailto:jmcke...@gatewaygeomatics.com>> wrote:
> >>
> >> Also, your onlineresource is missing quotes, such as:
> >>
> >> "wms_onlineresource"
> >>
> >> "
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> <
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> >"
> >>
> >>
> >>
> >>
> >> -jeff
> >>
> >>
> >>
> >> -- Jeff McKenna
> >> GatewayGeo: Developers of MS4W, MapServer Consulting and
> Training
> >> co-founder of FOSS4G
> >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
> >>
> >>
> >>
> >> On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
> >>  > Thanks.  I think you solved any validation issues ( this
> >> request would
> >>  > not validate, for example :
> >>  >
> >>
> >>
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> <
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>
> )   so it's something else, very minor likely (I've got that t-shirt too,
> ha)
> >>  >
> >>  > -jeff
> >>  >
> >>  >
> >>  >
> >>  > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
> >>  >> Thanks, Jeff.. I found that out, thanks.
> >>  >>
> >>  >> I will work down from your points.
> >>  >>
> >>  >> Besc,
> >>  >>
> >>  >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
> >>  >>  >> <mailto:jmcke...@gatewaygeomatics.com>
> >> <mailto:jmcke...@gatewaygeomatics.com
> >> <mailto:jmcke...@gatewaygeomatics.com>>>
> >>  >> wrote:
> >>  >>
> >>  >> Also note, that the regular expression "^" trick applies
> >> to the
> >>  >> MS_MAP_PATTERN in the config file (not the MS_ERRORFIL

Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
No problem: https://pastebin.com/Ssk0cp1b


On Thu, May 4, 2023 at 12:51 PM Jeff McKenna 
wrote:

> Chris can you paste your latest mapfile at https://pastebin.com/ and
> paste the link here for everyone?  (and for any future mailing list
> messages, please use that method, for sharing your mapfile and config
> files)
>
> thanks,
>
> -jeff
>
>
>
> On 2023-05-04 2:45 p.m., Chris Cantey wrote:
> > We were also a little concerned about web>template. We didn't see
> > anywhere what exactly we were supposed to put in the TEMPLATE document.
> > its basically the same html document as
> > https://dev.gis.lcc.mn.gov/tmp/mapserver/
> > <https://dev.gis.lcc.mn.gov/tmp/mapserver/> but with  on top.
> >
> > CC
> >
> > On Thu, May 4, 2023 at 12:32 PM Chris Cantey  > <mailto:cantey0...@gmail.com>> wrote:
> >
> > I need that t-shirt! The quotes are in the mapfile, I think gmail
> > just hyperlinked the string.
> >
> > I am kind of testing 2 ways: Using the browser(a few methods there),
> > using linux: mapserv
> > "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"
> >
> > When I do that, I still get a validation error:
> >
> > [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
> > map=/home/map=home/gis/tmp/mapserver/mapserver.map
> > [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application
> > error. CGI variable "map" fails to validate.
> >
> > I'm wondering on the front end if there's a projection issue, I see
> > green network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
> > <https://dev.gis.lcc.mn.gov/tmp/mapserver/>
> >
> > On Thu, May 4, 2023 at 12:29 PM Jeff McKenna
> >  > <mailto:jmcke...@gatewaygeomatics.com>> wrote:
> >
> > Also, your onlineresource is missing quotes, such as:
> >
> > "wms_onlineresource"
> > "
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> <
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> >"
> >
> >
> >
> >
> > -jeff
> >
> >
> >
> > --
> > Jeff McKenna
> > GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> > co-founder of FOSS4G
> > http://gatewaygeo.com/ <http://gatewaygeo.com/>
> >
> >
> >
> > On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
> >  > Thanks.  I think you solved any validation issues ( this
> > request would
> >  > not validate, for example :
> >  >
> >
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> <
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map>
> )   so it's something else, very minor likely (I've got that t-shirt too,
> ha)
> >  >
> >  > -jeff
> >  >
> >  >
> >  >
> >  > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
> >  >> Thanks, Jeff.. I found that out, thanks.
> >  >>
> >  >> I will work down from your points.
> >  >>
> >  >> Besc,
> >  >>
> >  >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
> >  >>  > <mailto:jmcke...@gatewaygeomatics.com>
> > <mailto:jmcke...@gatewaygeomatics.com
> > <mailto:jmcke...@gatewaygeomatics.com>>>
> >  >> wrote:
> >  >>
> >  >> Also note, that the regular expression "^" trick applies
> > to the
> >  >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE
> > path in the
> >  >> mapfile).
> >  >>
> >  >>
> >  >> Thanks for using MapServer Chris,
> >  >>
> >  >> -jeff
> >  >>
> >  >>
> >  >>
> >  >> -- Jeff McKenna
> >  >> GatewayGeo: Developers of MS4W, MapServer Consulting and
> > Training
> >  >> co-founder of FOSS4G
> >  >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
> >   

Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
We were also a little concerned about web>template. We didn't see anywhere
what exactly we were supposed to put in the TEMPLATE document. its
basically the same html document as
https://dev.gis.lcc.mn.gov/tmp/mapserver/ but with  on top.

CC

On Thu, May 4, 2023 at 12:32 PM Chris Cantey  wrote:

> I need that t-shirt! The quotes are in the mapfile, I think gmail just
> hyperlinked the string.
>
> I am kind of testing 2 ways: Using the browser(a few methods there), using
> linux: mapserv
> "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"
>
> When I do that, I still get a validation error:
>
> [Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
> map=/home/map=home/gis/tmp/mapserver/mapserver.map
> [Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application error.
> CGI variable "map" fails to validate.
>
> I'm wondering on the front end if there's a projection issue, I see green
> network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/
>
> On Thu, May 4, 2023 at 12:29 PM Jeff McKenna <
> jmcke...@gatewaygeomatics.com> wrote:
>
>> Also, your onlineresource is missing quotes, such as:
>>
>> "wms_onlineresource"
>> "
>> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
>> "
>>
>>
>>
>>
>> -jeff
>>
>>
>>
>> --
>> Jeff McKenna
>> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
>> co-founder of FOSS4G
>> http://gatewaygeo.com/
>>
>>
>>
>> On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
>> > Thanks.  I think you solved any validation issues ( this request would
>> > not validate, for example :
>> >
>> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
>> )   so it's something else, very minor likely (I've got that t-shirt too,
>> ha)
>> >
>> > -jeff
>> >
>> >
>> >
>> > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
>> >> Thanks, Jeff.. I found that out, thanks.
>> >>
>> >> I will work down from your points.
>> >>
>> >> Besc,
>> >>
>> >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
>> >> mailto:jmcke...@gatewaygeomatics.com>>
>>
>> >> wrote:
>> >>
>> >> Also note, that the regular expression "^" trick applies to the
>> >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the
>> >> mapfile).
>> >>
>> >>
>> >> Thanks for using MapServer Chris,
>> >>
>> >> -jeff
>> >>
>> >>
>> >>
>> >> -- Jeff McKenna
>> >> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
>> >> co-founder of FOSS4G
>> >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
>> >>
>> >>
>> >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
>> >>  > More points for your consideration:
>> >>  >
>> >>  > - make sure all layers have a PROJECTION object
>> >>  > - remove any old references to the (non-standard/non-existing)
>> >>  > EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857
>> >> <https://epsg.io/3857> )
>> >>  > - remove all warnings from your GetCapabilities response, every
>> >> single
>> >>  > warning, there should be no warnings in the response, before you
>> >> move to
>> >>  > testing GetMap requests
>> >>  > - if you have PostGIS/db connections, consider setting EXTENT
>> >> at the
>> >>  > layer-level, to improve speed for your clients (review
>> >> optimizations at
>> >>  > https://mapserver.org/optimization/vector.html
>> >> <https://mapserver.org/optimization/vector.html> )
>> >>  > - during GetMap testing, comment any TEMPLATE params in mapfile
>> >>  >
>> >>  >
>> >>  > -jeff
>> >>  >
>> >>  >
>> >>  >
>> >>  >
>> >>
>> >> ___
>> >> MapServer-users mailing list
>> >> MapServer-users@lists.osgeo.org
>> >> <mailto:MapServer-users@lists.osgeo.org>
>> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
>> >>
>> >>
>> >>
>> >> --
>> >> Chris Cantey
>> >> geo-odyssey.com <http://geo-odyssey.com>
>> >
>>
>> ___
>> MapServer-users mailing list
>> MapServer-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> --
> Chris Cantey
> geo-odyssey.com
>


-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
I need that t-shirt! The quotes are in the mapfile, I think gmail just
hyperlinked the string.

I am kind of testing 2 ways: Using the browser(a few methods there), using
linux: mapserv
"QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"

When I do that, I still get a validation error:

[Thu May  4 12:18:06 2023].428388 loadParams() QUERY_STRING:
map=/home/map=home/gis/tmp/mapserver/mapserver.map
[Thu May  4 12:18:06 2023].428506 msCGILoadMap(): Web application error.
CGI variable "map" fails to validate.

I'm wondering on the front end if there's a projection issue, I see green
network activity: https://dev.gis.lcc.mn.gov/tmp/mapserver/

On Thu, May 4, 2023 at 12:29 PM Jeff McKenna 
wrote:

> Also, your onlineresource is missing quotes, such as:
>
> "wms_onlineresource"
> "
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> "
>
>
>
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
>
> On 2023-05-04 2:13 p.m., Jeff McKenna wrote:
> > Thanks.  I think you solved any validation issues ( this request would
> > not validate, for example :
> >
> https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map
> )   so it's something else, very minor likely (I've got that t-shirt too,
> ha)
> >
> > -jeff
> >
> >
> >
> > On 2023-05-04 2:00 p.m., Chris Cantey wrote:
> >> Thanks, Jeff.. I found that out, thanks.
> >>
> >> I will work down from your points.
> >>
> >> Besc,
> >>
> >> On Thu, May 4, 2023 at 11:57 AM Jeff McKenna
> >> mailto:jmcke...@gatewaygeomatics.com>>
> >> wrote:
> >>
> >> Also note, that the regular expression "^" trick applies to the
> >> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the
> >> mapfile).
> >>
> >>
> >> Thanks for using MapServer Chris,
> >>
> >> -jeff
> >>
> >>
> >>
> >> -- Jeff McKenna
> >> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> >> co-founder of FOSS4G
> >> http://gatewaygeo.com/ <http://gatewaygeo.com/>
> >>
> >>
> >> On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
> >>  > More points for your consideration:
> >>  >
> >>  > - make sure all layers have a PROJECTION object
> >>  > - remove any old references to the (non-standard/non-existing)
> >>  > EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857
> >> <https://epsg.io/3857> )
> >>  > - remove all warnings from your GetCapabilities response, every
> >> single
> >>  > warning, there should be no warnings in the response, before you
> >> move to
> >>  > testing GetMap requests
> >>  > - if you have PostGIS/db connections, consider setting EXTENT
> >> at the
> >>  > layer-level, to improve speed for your clients (review
> >> optimizations at
> >>  > https://mapserver.org/optimization/vector.html
> >> <https://mapserver.org/optimization/vector.html> )
> >>  > - during GetMap testing, comment any TEMPLATE params in mapfile
> >>  >
> >>  >
> >>  > -jeff
> >>  >
> >>  >
> >>  >
> >>  >
> >>
> >> ___
> >> MapServer-users mailing list
> >> MapServer-users@lists.osgeo.org
> >> <mailto:MapServer-users@lists.osgeo.org>
> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> <https://lists.osgeo.org/mailman/listinfo/mapserver-users>
> >>
> >>
> >>
> >> --
> >> Chris Cantey
> >> geo-odyssey.com <http://geo-odyssey.com>
> >
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
Thanks, Jeff.. I found that out, thanks.

I will work down from your points.

Besc,

On Thu, May 4, 2023 at 11:57 AM Jeff McKenna 
wrote:

> Also note, that the regular expression "^" trick applies to the
> MS_MAP_PATTERN in the config file (not the MS_ERRORFILE path in the
> mapfile).
>
>
> Thanks for using MapServer Chris,
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
> On 2023-05-04 1:48 p.m., Jeff McKenna wrote:
> > More points for your consideration:
> >
> > - make sure all layers have a PROJECTION object
> > - remove any old references to the (non-standard/non-existing)
> > EPSG:900913, replace with EPSG:3857  (see https://epsg.io/3857 )
> > - remove all warnings from your GetCapabilities response, every single
> > warning, there should be no warnings in the response, before you move to
> > testing GetMap requests
> > - if you have PostGIS/db connections, consider setting EXTENT at the
> > layer-level, to improve speed for your clients (review optimizations at
> > https://mapserver.org/optimization/vector.html )
> > - during GetMap testing, comment any TEMPLATE params in mapfile
> >
> >
> > -jeff
> >
> >
> >
> >
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
Did you mean to have the ^ in that string?   MS_MAP_PATTERN
"^/home/web/gis/tmp/mapserver/".

It seemed to mess it up, so i reverted back to  MS_MAP_PATTERN
"/home/web/gis/tmp/mapserver/"

Same errors

On Thu, May 4, 2023 at 8:55 AM Jeff McKenna 
wrote:

> Hi Chris,
>
> Can you try this in your config file:
>
> MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/"
>
> thanks,
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
>
> On 2023-05-04 10:30 a.m., Chris Cantey wrote:
> > Hello all, I need some help.
> >
> > We are building a new web server a rebuilding mapserver on it, migrating
> > from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch():
> > WMS server error. WMS request not enabled. Check wms/ows_enable_request
> > settings." error.
> >
> > But we have that configured in our map file under map>web>metadata. So
> > I'm not sure what is going on. Config file, map file, URL, error, query
> > string, and error below.
> >
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
Yes. Changed. I actually had that as the pattern until this morning

On Thu, May 4, 2023 at 8:55 AM Jeff McKenna 
wrote:

> Hi Chris,
>
> Can you try this in your config file:
>
> MS_MAP_PATTERN "^/home/web/gis/tmp/mapserver/"
>
> thanks,
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
>
> On 2023-05-04 10:30 a.m., Chris Cantey wrote:
> > Hello all, I need some help.
> >
> > We are building a new web server a rebuilding mapserver on it, migrating
> > from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch():
> > WMS server error. WMS request not enabled. Check wms/ows_enable_request
> > settings." error.
> >
> > But we have that configured in our map file under map>web>metadata. So
> > I'm not sure what is going on. Config file, map file, URL, error, query
> > string, and error below.
> >
>
> _______
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.

2023-05-04 Thread Chris Cantey
Hello all, I need some help.



We are building a new web server a rebuilding mapserver on it, migrating
from 6.4 to 8.0. But in testing, we keep getting the "msWMSDispatch(): WMS
server error. WMS request not enabled. Check wms/ows_enable_request
settings." error.



But we have that configured in our map file under map>web>metadata. So I'm
not sure what is going on. Config file, map file, URL, error, query string,
and error below.



### CONFIG file

CONFIG

  ENV

MS_MAP_PATTERN
"^\/home\/web\/gis\/tmp\/mapserver\/([^\.][_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$"


MS_DEBUGLEVEL "0"

MS_ERRORFILE "/home/web/gis/tmp/mapserver/logs/mapserver.log"

  END

  MAPS

  END

END



### Map file

MAP

  NAME 'XXX FINDER'

  STATUS ON

  UNITS METERS

  SIZE 100 100

  EXTENT 189783.4733502351 4816303.593109079 762236.9588402509
5472427.761911989

  FONTSET   "/home/web/gis//mapserver/fonts/fontset.list"

  SYMBOLSET "/home/web/gis//mapserver/symbols/symbol.sym"

  END



  PROJECTION

"proj=utm"

"ellps=GRS80"

"datum=NAD83"

"zone=15"

"units=m"

"north"

"no_defs"

  END



  OUTPUTFORMAT

NAME "png"

DRIVER AGG/PNG

MIMETYPE "image/png"

IMAGEMODE RGB

EXTENSION "png"

FORMATOPTION "GAMMA=0.75"

  END



  WEB

TEMPLATE "/home/web/gis/tmp/mapserver/lm.html"

METADATA

  "ows_enable_request"   "*"

  "wms_title" "Who Represents Me"

  "wms_onlineresource"
https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map

  "wms_srs" "EPSG:4326 EPSG:900913"

END

  END



  LAYER

CONNECTIONTYPE postgis

NAME 'XXX'

CONNECTION

PROCESSING "CLOSE_CONNECTION=DEFER"

DATA "geom from XXX"



METADATA

  "wms_title" "WMS Demo Server"

END



STATUS ON

DEBUG ON

TYPE POLYGON

PROCESSING "LABEL_NO_CLIP=True"

LABELITEM 'district'



CLASS

  NAME 'XXX'

  STYLE

OUTLINECOLOR 255 133 51

WIDTH 1.5

  END

  LABEL

TYPE TRUETYPE

SIZE 10

FONT "arial"

COLOR 255 102 0

OUTLINECOLOR 255 255 255

OUTLINEWIDTH 1

POSITION AUTO

WRAP '+'

ALIGN center

BUFFER 2

PARTIALS FALSE

  END

END

  END

END



## URL

https://dev.gis.lcc.mn.gov/cgi-bin/mapserv?map=/home/web/gis/tmp/mapserver/mapserver.map=WMS=GetMap=hse2022_vtd2020members==image%2Fpng=false=1.1.1=256=256=EPSG%3A4326=-95.625001,47.040182144806664,-92.812501,48.922499263758255



## ERROR LOG

[Thu May  4 07:59:45 2023].572656 msWMSDispatch(): WMS server error. WMS
request not enabled. Check wms/ows_enable_request settings.



## query string

> mapserv "QUERY_STRING=map=/home/map=home/gis/tmp/mapserver/mapserver.map"



## ERROR LOG

[Thu May  4 08:03:27 2023].920834 msCGILoadMap(): Web application error.
CGI variable "map" fails to validate.



Best,



Chris C.

-- 
Chris Cantey
geo-odyssey.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] .netCDF and MapServer

2013-01-01 Thread Chris Jackson
Hi all

Happy New Year!

I wondered if anyone had used MapServer at all to extract and display data
from .netCDFs (SWAN model format).

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


[mapserver-users] WMS Time Resolution

2012-10-24 Thread Chris Wj
Can MapServer handle WMS requests for imagery time tagged under a second?
Does it support querying for sub-second images (milliseconds)?

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


[mapserver-users] SQL Server 2008 layer

2012-09-03 Thread Chris Jackson
Hi all

Sorry for this v.basic question.  Trying to load a layer from SQL 2008 R2
64bit using the msplugin_mssql2008.dll and when running shp2image it just
bombs out on that layer saying neither DSN nor Server keyword supplied.
Two things I can see could be the issue - accessing the plugin itself (any
way to test if that is actually loaded okay?) or that the connection string
is duff.
The SQL instance is the default instance on the same box as the web
application, I have seen various flavours of connections out there,with
different starts to the string and ways to define instance.  Below is what
I went with

  PLUGIN msplugin_mssql2008.dll
  CONNECTION
MSSQL:Server=SERVER1;uid=user1;pwd=qwerty1234;database=name1;Integrated
Security=True

I have the dll in the data folder for the mapfile (it does live in the
mapfile folder and system32 just in case - hardwiring the path using
c:\...\...\msplugin_mssql2008.dll didn't work either)

I am unsure about the beginning of the connection string and the server
reference (I am using the server name  (as it is a default instance - works
in my web apps)).

Any clues much appreciated

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


Re: [mapserver-users] mapserver-users Digest, Vol 56, Issue 1

2012-09-03 Thread Chris Jackson
Fixed it in the end.

 PLUGIN C:\..\...\msplugin_mssql2008.dll
 CONNECTION server=x;uid=;pwd=xx;database=x;Integrated
Security=false

What is odd is I can only get a geometry type to work, my driver is dated
Jan-10, maybe pre-geography datatype support - all I can think of.

 DATA SitePoint1 from Site USING UNIQUE SiteID USING SRID=4326
  #DATA SitePoint (geography)  from Site USING UNIQUE SiteID USING
SRID=4326 - throws an error about not finding geometry type

Chris

On 3 September 2012 20:00, mapserver-users-requ...@lists.osgeo.org wrote:

 Send mapserver-users mailing list submissions to
 mapserver-users@lists.osgeo.org

 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 or, via email, send a message with subject or body 'help' to
 mapserver-users-requ...@lists.osgeo.org

 You can reach the person managing the list at
 mapserver-users-ow...@lists.osgeo.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of mapserver-users digest...


 Today's Topics:

1. SQL Server 2008 layer (Chris Jackson)


 --

 Message: 1
 Date: Mon, 3 Sep 2012 15:51:33 +0100
 From: Chris Jackson webturt...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] SQL Server 2008 layer
 Message-ID:
 CACU1gf7PSCZ25axKSJwwPCcD-Y=
 fnb1dht2x-_g_eseiygc...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi all

 Sorry for this v.basic question.  Trying to load a layer from SQL 2008 R2
 64bit using the msplugin_mssql2008.dll and when running shp2image it just
 bombs out on that layer saying neither DSN nor Server keyword supplied.
 Two things I can see could be the issue - accessing the plugin itself (any
 way to test if that is actually loaded okay?) or that the connection string
 is duff.
 The SQL instance is the default instance on the same box as the web
 application, I have seen various flavours of connections out there,with
 different starts to the string and ways to define instance.  Below is what
 I went with

   PLUGIN msplugin_mssql2008.dll
   CONNECTION
 MSSQL:Server=SERVER1;uid=user1;pwd=qwerty1234;database=name1;Integrated
 Security=True

 I have the dll in the data folder for the mapfile (it does live in the
 mapfile folder and system32 just in case - hardwiring the path using
 c:\...\...\msplugin_mssql2008.dll didn't work either)

 I am unsure about the beginning of the connection string and the server
 reference (I am using the server name  (as it is a default instance - works
 in my web apps)).

 Any clues much appreciated

 Thanks
 Chris
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120903/84d3118f/attachment-0001.html
 

 --

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


 End of mapserver-users Digest, Vol 56, Issue 1
 **

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


Re: [mapserver-users] mapserver-users Digest, Vol 56, Issue 1

2012-09-03 Thread Chris Jackson
Apologies all, one last question...
To retrieve attributes from MS SQL I thought something like the following
would work:
 DATA SitePoint1 from (select SiteID,SitePoint1,SiteName from Site) USING
UNIQUE SiteID USING SRID=4326
However, the layer fails to draw.  Am I in need of a newer MSSQL2008 driver
or is it a poorly formed query?
Thanks
Chris

On 3 September 2012 20:27, Chris Jackson webturt...@gmail.com wrote:

 Fixed it in the end.

  PLUGIN C:\..\...\msplugin_mssql2008.dll
  CONNECTION server=x;uid=;pwd=xx;database=x;Integrated
 Security=false

 What is odd is I can only get a geometry type to work, my driver is dated
 Jan-10, maybe pre-geography datatype support - all I can think of.

  DATA SitePoint1 from Site USING UNIQUE SiteID USING SRID=4326
   #DATA SitePoint (geography)  from Site USING UNIQUE SiteID USING
 SRID=4326 - throws an error about not finding geometry type

 Chris

 On 3 September 2012 20:00, mapserver-users-requ...@lists.osgeo.orgwrote:

 Send mapserver-users mailing list submissions to
 mapserver-users@lists.osgeo.org

 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 or, via email, send a message with subject or body 'help' to
 mapserver-users-requ...@lists.osgeo.org

 You can reach the person managing the list at
 mapserver-users-ow...@lists.osgeo.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of mapserver-users digest...


 Today's Topics:

1. SQL Server 2008 layer (Chris Jackson)


 --

 Message: 1
 Date: Mon, 3 Sep 2012 15:51:33 +0100
 From: Chris Jackson webturt...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] SQL Server 2008 layer
 Message-ID:
 CACU1gf7PSCZ25axKSJwwPCcD-Y=
 fnb1dht2x-_g_eseiygc...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi all

 Sorry for this v.basic question.  Trying to load a layer from SQL 2008 R2
 64bit using the msplugin_mssql2008.dll and when running shp2image it just
 bombs out on that layer saying neither DSN nor Server keyword supplied.
 Two things I can see could be the issue - accessing the plugin itself (any
 way to test if that is actually loaded okay?) or that the connection
 string
 is duff.
 The SQL instance is the default instance on the same box as the web
 application, I have seen various flavours of connections out there,with
 different starts to the string and ways to define instance.  Below is what
 I went with

   PLUGIN msplugin_mssql2008.dll
   CONNECTION
 MSSQL:Server=SERVER1;uid=user1;pwd=qwerty1234;database=name1;Integrated
 Security=True

 I have the dll in the data folder for the mapfile (it does live in the
 mapfile folder and system32 just in case - hardwiring the path using
 c:\...\...\msplugin_mssql2008.dll didn't work either)

 I am unsure about the beginning of the connection string and the server
 reference (I am using the server name  (as it is a default instance -
 works
 in my web apps)).

 Any clues much appreciated

 Thanks
 Chris
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120903/84d3118f/attachment-0001.html
 

 --

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


 End of mapserver-users Digest, Vol 56, Issue 1
 **



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


Re: [mapserver-users] OGR Virtual Format and character encoding

2012-08-31 Thread Chris Jackson
All

One thought I did have, if the characters where html encoded in the SQL
table (e.g. ü as #252;) is there anyway to get MapServer to render them
correctly again in a label?  I guess OGR can only deal with UTF-8 encoded
characters (I am using nvarchar fields, but in an ISO collation in SQL 2005
- not v.UTF-8 friendly I think!)

Thanks
Chris

On 30 August 2012 15:46, Chris Jackson webturt...@gmail.com wrote:

 Hi all

 I have OGR Virtual Format layer in my map file and the underlying .OVF is
 calling a flat MS SQL table of point data.  The layer displays fine, but I
 am having issues with umlauts etc for one of the attribute fields.  When I
 run the ogrinfo command on the layer, it has already messed up the
 encoding.  In SQL it looks and queries fine.  Any pointers on how you can
 maintain the encoding?

 Many thanks
 Chris

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


Re: [mapserver-users] OGR Virtual Format and character encoding

2012-08-31 Thread Chris Jackson
Frank

I am using SrcDataSourceODBC:. in the OVF file.  I am parsing the
file using OGRinfo via commandline and the characters are looking odd
straight away.  Hadn't thought about using the spatial add-on for 2005, can
that be called directly from the mapfile instead?  I usually just use
shapefiles (performance surprising good), but have need of a SQL table of
point data (all over Europe - hence the character issues) updated via a
web-form to be called via MapServer and another application.  Any pointers
appreciated!

Cheers
Chris

On 31 August 2012 21:16, Frank Warmerdam warmer...@pobox.com wrote:

 Chris,

 I'm a bit unclear if the problem is happening in the MS SQL driver, or in
 the
 VRT driver.  If you use OGR directly against the MS SQL data are things
 messed up?  Are you using ODBC or the actual MSSQLSpatial driver?

 Best regards,
 Frank

 On Fri, Aug 31, 2012 at 1:07 PM, Chris Jackson webturt...@gmail.com
 wrote:
  All
 
  One thought I did have, if the characters where html encoded in the SQL
  table (e.g. ü as #252;) is there anyway to get MapServer to render them
  correctly again in a label?  I guess OGR can only deal with UTF-8 encoded
  characters (I am using nvarchar fields, but in an ISO collation in SQL
 2005
  - not v.UTF-8 friendly I think!)
 
  Thanks
  Chris
 
 
  On 30 August 2012 15:46, Chris Jackson webturt...@gmail.com wrote:
 
  Hi all
 
  I have OGR Virtual Format layer in my map file and the underlying .OVF
 is
  calling a flat MS SQL table of point data.  The layer displays fine,
 but I
  am having issues with umlauts etc for one of the attribute fields.
  When I
  run the ogrinfo command on the layer, it has already messed up the
 encoding.
  In SQL it looks and queries fine.  Any pointers on how you can maintain
 the
  encoding?
 
  Many thanks
  Chris
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 



 --

 ---+--
 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 Software Developer

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


[mapserver-users] OGR Virtual Format and character encoding

2012-08-30 Thread Chris Jackson
Hi all

I have OGR Virtual Format layer in my map file and the underlying .OVF is
calling a flat MS SQL table of point data.  The layer displays fine, but I
am having issues with umlauts etc for one of the attribute fields.  When I
run the ogrinfo command on the layer, it has already messed up the
encoding.  In SQL it looks and queries fine.  Any pointers on how you can
maintain the encoding?

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


Re: [mapserver-users] OGRVRT Data Sources and SQL server

2012-05-30 Thread Chris Jackson
Hi Robert and Jeff

I tried those steps (think FID is optional) and no further - more blank
outputs using shp2img (ms bebugging at 5 - no errors at all, happily finds
layer and draws it - apparently! - should rename my layer to snowflakes or
white cats).  Have run shp2img debugging - nothing obvious, but
couldn't print out output (can send screenshot if anyone interested).  Not
sure how to retrieve the sql query sent (Jeff?).

I have grabbed the output from ogrinfo (see below - no extents...does that
mean something) - seems to be working ok to the untrained eye!  Mapfile
below too (NB. have tried with and without projections at map and layer
level), I am baffled, will start to use a later version of ms4w and check
on another server too.

Cheers
Chris

ogrinfo output:

INFO: Open of `d:/xxx/xxx/omreg2.ovf'
  using driver `VRT' successful.

Layer name: omreg1
Geometry: Point
Feature Count: 5
Layer SRS WKT:
GEOGCS[WGS 84,
DATUM[WGS_1984,
SPHEROID[WGS 84,6378137,298.257223563,
AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0,
AUTHORITY[EPSG,8901]],
UNIT[degree,0.01745329251994328,
AUTHORITY[EPSG,9122]],
AUTHORITY[EPSG,4326]]
SiteKeyID: Integer (10.0)
SiteID: Integer (10.0)
SiteType: String (255.0)
SiteName: String (255.0)
SiteLat: Real (0.0)
SiteLong: Real (0.0)
OGRFeature(omreg1):1
  SiteKeyID (Integer) = 2269
  SiteID (Integer) = 1
  SiteType (String) = Regulated tidal exchange
  SiteName (String) = Abbotts Hall (Stage 1)
  SiteLat (Real) = 0.84556009184722
  SiteLong (Real) = 51.7846475991705
  POINT (51.784647599170498 0.84556009184722)

My mapfile now is this:

MAP
UNITS meters
EXTENT -15 30 40 70
SIZE 600 500
SHAPEPATH d:\xxx\xxx\
SYMBOLSET ../common/symbols/symbols-pmapper.sym
FONTSET ../common/fonts/msfontset.txt
RESOLUTION 96
IMAGETYPE png
INTERLACE OFF
CONFIG PROJ_LIB D:\xxx\proj\nad\
CONFIG GDAL_DATA D:\xxx\gdaldata\
CONFIG MS_ERRORFILE D:\x\tmp\ms_error.txt
DEBUG 5
  PROJECTION
#init=epsg:4326
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  no_defs
  END

#
# Image formates for GD
#
OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGB
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
  EXTENSION png
END

OUTPUTFORMAT
  NAME png8
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE PC256
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
  EXTENSION png
END

OUTPUTFORMAT
  NAME jpeg
  DRIVER GD/JPEG
  MIMETYPE image/jpeg
  IMAGEMODE RGB
  FORMATOPTION QUALITY=70
  EXTENSION jpg
END


OUTPUTFORMAT
  NAME GTiff
  DRIVER GDAL/GTiff
  MIMETYPE image/tiff
  IMAGEMODE RGB
  FORMATOPTION TFW=YES
  #FORMATOPTION COMPRESS=PACKBITS
  EXTENSION tif
END

OUTPUTFORMAT
  NAME imagemap
  MIMETYPE text/html
  FORMATOPTION SKIPENDTAG=OFF
  DRIVER imagemap
END


  LAYER
NAME test
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION omreg2.ovf # have also tried ./omreg2.ovf - both files in
same folder - no luck with either
DATA omreg1
  PROJECTION
#init=epsg:4326
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  no_defs
  END
STATUS ON
CLASS
  SYMBOL 1
  SIZE 6
  COLOR 255 0 0
  LABEL
SIZE MEDIUM
TYPE BITMAP
COLOR 0 0 0
  END
END
END

END  #Map

On 29 May 2012 21:54, Robert Sanson robert.san...@asurequality.com wrote:

 Hi Chris

 You need to define the primary key in your .ovf file:

 FIDfarmgate_id/FID

 I put the .ovf file in the same directory as my .map file, then Mapserver
 can find it:

 CONNECTION ./farmgates.ovf

 All thebest,

 Robert



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


[mapserver-users] OGRVRT Data Sources and SQL server

2012-05-28 Thread Chris Jackson
Hi all

Has anyone got much experience of using OGRVRT Data Sources in Windows with
SQL server system DSNs?  I am having an issue with system DSN connection
type (windows authentication will work fine and proceses the table fine,
sql authentication - get not trusted connection (both authentication types
enabled in instance)) when testing via ogrinfo commandline.

Then if I take the working code forward then I can't render the layer in a
map output via say shp2img commandline or final map application. Map code
below:

  LAYER
NAME virtual
TYPE POINT
CONNECTIONTYPE OGR
   CONNECTION
OGRVRTDataSource

OGRVRTLayer
name='omreg1'

SrcDataSourceODBC:@omreg1/SrcDataSource
SrcSQLSELECT * FROM
dbo.Site/SrcSQL

GeometryField encoding='PointFromColumns' x='SiteLong'
y='SiteLat'/
GeometryTypewkbPoint/GeometryType

/OGRVRTLayer

/OGRVRTDataSource # the name and path to the virtual.ovf file, relative
to shapepath may work?
   DATA omreg1
 TEMPLATE void
 PROJECTION
   init=epsg:4326
  END
 METADATA
   wms_srs   4326
   wms_title   virtual
 END
SIZEUNITS PIXELS
STATUS ON
TOLERANCE 0
TOLERANCEUNITS PIXELS
UNITS METERS
  CLASS
NAME Virtual
COLOR 255 0 0
OUTLINECOLOR 255 0 0
SYMBOL 'kreuz4'
SIZE 6
  END  # Class
END

My version of mapserver is a little old (5.6.1).  I wonder whether I need
to set any extra SQL related env variables.

Any assistance much appreciated!

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


[mapserver-users] disappearing point features in North America

2012-02-01 Thread Chris Green
I have a problem that may be down to OpenLayers or to Mapserver, or (just as
likely) to me. Basically I am using OL to request WMS maps from Mapserver,
and the map consists of point features with a global spread, typically
around 100 points in each map. The points are defined in a table which has
lat/lon in decimal degrees, and these are converted to 900913 by Mapserver
where my mapfile has an overall projection of epsg: 900913 but the points
layer has projection epsg: 4326.

 

The map is defined in OL with extents: -20037508.34, -20037508.34,
20037508.34, 20037508.34 and the mapfile has the same extents applied.

This all works fine when a map is first displayed, all of the points are
present on the map. However when I scroll the map left or right there is a
'dead spot' where  all the points in North America disappear and then
re-appear, either side of the dead spot. Looking with Firebug at the
bounding box that OL uses to request the map from Mapserver I can see that
the points disappear when the bounding box is between left bounds of about
-2370 and -3370. Only the points in North America are affected,
never those in Europe or Asia. 

 

I have been wrestling with this for quite a while, experimenting with
extents etc, all without any effect.  Does anyone recognise where my problem
may lie, or else have any suggestions how to diagnose what is going on?

 

 

Chris  

 

 

 

 

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


RE: [mapserver-users] disappearing point features in North America

2012-02-01 Thread Chris Green
Hi Jerl

 

Eurueka! +over did it!

 

 

Thanks, I owe you one.

 

 

Chris 

 

From: jerl.simp...@craniumjuice.com [mailto:jerl.simp...@craniumjuice.com]
On Behalf Of forums
Sent: 01 February 2012 13:17
To: Chris Green
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] disappearing point features in North America

 

Chris:

 

I had a similar issue, it was suggested to me to add +over to my epsg
definitions file.

 

Mine now looks like:

4326 +proj=longlat +ellps=WGS84 +datum=WGS84 +over +no_defs  

900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0
+y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +over +no_defs 

That seemed to make a difference, but I also upgraded PROJ4 at the same
time.


Jerl

On Wed, Feb 1, 2012 at 5:38 AM, Chris Green chris.gr...@ibstv.co.uk wrote:

I have a problem that may be down to OpenLayers or to Mapserver, or (just as
likely) to me. Basically I am using OL to request WMS maps from Mapserver,
and the map consists of point features with a global spread, typically
around 100 points in each map. The points are defined in a table which has
lat/lon in decimal degrees, and these are converted to 900913 by Mapserver
where my mapfile has an overall projection of epsg: 900913 but the points
layer has projection epsg: 4326.

 

The map is defined in OL with extents: -20037508.34, -20037508.34,
20037508.34, 20037508.34 and the mapfile has the same extents applied.

This all works fine when a map is first displayed, all of the points are
present on the map. However when I scroll the map left or right there is a
'dead spot' where  all the points in North America disappear and then
re-appear, either side of the dead spot. Looking with Firebug at the
bounding box that OL uses to request the map from Mapserver I can see that
the points disappear when the bounding box is between left bounds of about
-2370 and -3370. Only the points in North America are affected,
never those in Europe or Asia. 

 

I have been wrestling with this for quite a while, experimenting with
extents etc, all without any effect.  Does anyone recognise where my problem
may lie, or else have any suggestions how to diagnose what is going on?

 

 

Chris  

 

 

 

 


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





 

-- 
A computer without Windows is like chocolate cake without mustard.

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


[mapserver-users] RFC81: offset labels with leader lines

2012-01-20 Thread Chris Green
Hi all

 

I see that there was a proposal a month ago to implement labels with 'leader
lines', which I presume means that with position: 'auto',  label positions
will be  calculated at a distance from the feature when required by
collisions. This is exactly what I am looking for, can anyone tell me if
this is going ahead and if so when it is likely to be implemented?

 

 

Chris

 

 

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


[mapserver-users] PHP Mapscript: getFeature / addFeature

2011-10-20 Thread Chris Green
Dear List

 

I'm struggling with what should be (I think) quite simple. I want to get a
feature from one layer of a map then add it to another layer. I am using
Mapserver 6.0 and PHP mapscript like so:

 

 

$map = ms_newMapobj(path/to/.map);

$layer1=$map-getLayerByName(countries);

 

$layer2=$map-getLayerByName(highlightCountry);

 

$country='France';

 

$layer1-queryByAttributes('NAME', $country , MS_SINGLE );

  

$shape = $layer1-getShape($layer1-getResult(0));

 

$layer2-open();

 

$layer2-addFeature($shape); ##  I get a Mapserver 'internal error' at this
point ##

 

$layer2-close();

 

$image=$map-draw();

 

 

Extract from my mapfile:

 

LAYER

   NAME countries 

   DATA world

   STATUS default

   TYPE   line  

 

   CLASS

  STYLE

 COLOR  255 255 255

WIDTH   1

  END # style

   END # class

 

END #layer

 

LAYER

   NAME highlightCountry 

   STATUS  default

   TYPE   line  

 

   CLASS

 STYLE

 COLOR  255 255 0

 WIDTH  4  

 END # style

   END # class

 

 

END # layer

 

 

Can anyone help?

 

 

 

Chris

 

 

 

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


[mapserver-users] character encoding

2011-09-07 Thread Chris Jackson
Hi all

I am having some issues with special characters in my application (sure I am
not the first!) and wondered what the best way is to 'clean up' the data so
I know it is specifically in a given format say UTF-8 or ISO. My source data
was from KML - shp using ArcGIS 10 (though who knows what the kml format
was!).  One would assume if using ArcMap on a UK machine would give you an
ISO output  Should I copy the characters back into the attribute table
via ArcGIS (but what program should I use to copy the characters from -
Word...).  I did use the ArcGIS export registry setting to export my
supposed ISO shapfile to UTF-8 format (but the label rendering is wrong).
 Any ideas would be much appreciated!

Many thanks

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


[mapserver-users] Re character encoding

2011-09-07 Thread Chris Jackson
Hi Jeff

I may well try that!  The trouble is I have a stack of attributes in a
Access db which I was joining onto the KML data.  I need the complete
dataset for an ArcGIS Server data service anyway so a shapefile seemed to be
a good way to join it all and assist with that (will end up in SDE) and my
mapfile dataset too.  I had already read the page you mentioned and all is
in place (I am using the MS4W PHP/mapscript set-up on IIS) and my original
ISO flavoured version labels up nicely - it just breaks some of the query
functionality (though it shouldn't - which is why I wonder if some of the
characters are badly formed)!

Thanks for the advice

Chris

Hi Chris,
 My quick thoughts are:
 - use ogr2ogr (the GDAL/OGR library) to do your conversion from KML to
 shp (if you are on Windows, the MS4W product can help you with that
 http://www.maptools.org/ms4w/index.phtml?page=downloads.html)
 - another option is to use the KML in its native format with MapServer
 (http://www.mapserver.org/input/vector/kml.html), which is also possible
 with MS4W
 - if by application problems you mean map label problems with encoded
 characters, this howto should help you:
 http://www.mapserver.org/mapfile/labelencoding.html
 Hope that helps.
 -jeff
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapscript and wms client

2011-09-05 Thread Chris Jackson
Hi

I am trying to use a remote WMS service in my mapfile and am not having any
luck.  I resorted to the MapServer tutorial example and still had no luck:

  LAYER # MODIS WMS map from JPL
NAME modis_jpl
TYPE RASTER
OFFSITE  0 0 0
STATUS   On
CONNECTIONTYPE WMS
CONNECTION http://wms.jpl.nasa.gov/wms.cgi?;

METADATA
  wms_srs EPSG:4326
  wms_name modis
  wms_server_version 1.1.1
  wms_format image/jpeg
END

PROJECTION
  init=epsg:4326
END
  END # Modis WMS image ends here

Mapscript has wms client enabled so am I missing another setting required in
the mapfile?

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


Re: [mapserver-users] Mapscript and wms client

2011-09-05 Thread Chris Jackson
Hi Brent and Armin

The GetCapapabilies bit threw me!  Well the one I am trying to load is GEBCO
which I think is up.  Having said that I have just changed the wms_name and
reloaded the map and it works (maybe it just needed some sleep)..!

Out of interest how do you specify a given layer from the WMS in the mapfile
code and is the wms_name just a friendly name you use or specific to the WMS
too?

Separately Google maps layers, mapfiles and GDAL, from what I read loading
tiles this way this breaks Google's TC because it bypasses their APIs,
anyone have a view?

My GEBCO code is:

LAYER # GEBCO WMS map
NAME 'gebco'
TYPE RASTER
OFFSITE  0 0 0
STATUS   On
CONNECTIONTYPE WMS
CONNECTION 
http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv
?

METADATA
  wms_srs EPSG:4326
  wms_name gebco_08_grid
  wms_server_version 1.1.1
  wms_format image/jpeg
END

PROJECTION
  init=epsg:4326
END
  END


Cheers
Chris

On 5 September 2011 23:06, Brent Fraser bfra...@geoanalytic.com wrote:

  Chris,

 I don't think NASA's JPL is serving data anymore (although it does return
 a  GetCapapabilies XML).

 Best Regards,
 Brent Fraser


 On 9/5/2011 3:53 PM, Chris Jackson wrote:

 Hi

  I am trying to use a remote WMS service in my mapfile and am not having
 any luck.  I resorted to the MapServer tutorial example and still had no
 luck:

LAYER # MODIS WMS map from JPL
 NAME modis_jpl
 TYPE RASTER
 OFFSITE  0 0 0
 STATUS   On
 CONNECTIONTYPE WMS
 CONNECTION http://wms.jpl.nasa.gov/wms.cgi?;

  METADATA
   wms_srs EPSG:4326
   wms_name modis
   wms_server_version 1.1.1
wms_format image/jpeg
 END

  PROJECTION
   init=epsg:4326
 END
   END # Modis WMS image ends here

  Mapscript has wms client enabled so am I missing another setting required
 in the mapfile?

  Thanks
 Chris


 ___
 mapserver-users mailing 
 listmapserver-users@lists.osgeo.orghttp://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] IIS and mapfiles and also GDAL

2011-09-02 Thread Chris Jackson
Hi Brent

Thanks for the quick answers, the new rewriting rules (with reverse proxy)
have worked well with Tomcat on port 8080 - no more isapi dlls!  What you
listed for Mapnik is essentially like mine, what I am not sure is what other
GDAL configuration is needed on the box - just an environment variable or
some other setting in the mapfile...?

Thanks

Chris

On 2 September 2011 16:04, Brent Fraser bfra...@geoanalytic.com wrote:

  Chris,

   I've used the Iconic Rewriter with older versions of IIS (the native
 rewriting capability in IIS7 looks interesting).  You may be able to use an
 environment variable to set the default map file, but this may not be very
 useful if you have multiple map files.  There are a few other options for
 hiding the mapfile (proxy script, redirect, form post instead of get, etc),
 put I think the rewrite method is the most effective (the client never gets
 the map file path), with almost no performance hit.

   The way I access Mapnik tiles in mapserver is to create a layer in the
 map file:

 LAYER
 DATA frmt_wms_openstreetmap_MAPNIK.xml
 NAME Mapnik
 PROJECTION
   proj=merc a=6378137 b=6378137 lat_ts=0.0 lon_0=0.0
 x_0=0.0 y_0=0 k=1.0 units=m nadgrids=@null no_defs
 END
 STATUS ON
 TYPE RASTER
 PROCESSING OVERSAMPLE_RATIO=1
 PROCESSING LOAD_FULL_RES_IMAGE=NO
 UNITS METERS
 END # LAYER

 and frmt_wms_openstreetmap_MAPNIK.xml XML file of

 GDAL_WMS
 Service name=TMS
 ServerUrlhttp://tile.openstreetmap.org/$
 {z}/${x}/${y}.png/ServerUrl
 /Service
 DataWindow
 UpperLeftX-20037508.34/UpperLeftX
 UpperLeftY20037508.34/UpperLeftY
 LowerRightX20037508.34/LowerRightX
 LowerRightY-20037508.34/LowerRightY
 TileLevel19/TileLevel
 TileCountX1/TileCountX
 TileCountY1/TileCountY
 YOrigintop/YOrigin
 /DataWindow
 ProjectionEPSG:900913/Projection
 BlockSizeX256/BlockSizeX
 BlockSizeY256/BlockSizeY
 BandsCount3/BandsCount
 Cache /
 /GDAL_WMS


 Best Regards,
 Brent Fraser


 On 9/2/2011 8:13 AM, Chris Jackson wrote:

 Hi

 I just wanted to check if the only way to parse a mapfile in an IIS
 environment to use an absolute path to the mapfiles e.g.
 http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\workshop\itasca.map.
 I wonder if anyone has had success with rewrite rules (IIS7)?

 Also how is GDAL triggered when calling the mapfile (in IIS).  The scenario
 is I am trying to use an xml in the mapfile layer which then calls
 http://tile.openstreetmap.org/

 The XML is

 GDAL_WMS
 Service name=TMS
 ServerUrlhttp://tile.openstreetmap.org/${z}/${x}/${y}.png/ServerUrl
 /Service
 DataWindow
 UpperLeftX-20037508.34/UpperLeftX
 UpperLeftY20037508.34/UpperLeftY
 LowerRightX20037508.34/LowerRightX
 LowerRightY-20037508.34/LowerRightY
 TileLevel19/TileLevel
 TileCountX1/TileCountX
 TileCountY1/TileCountY
 YOrigintop/YOrigin
 /DataWindow
 ProjectionEPSG:900913/Projection
 BlockSizeX256/BlockSizeX
 BlockSizeY256/BlockSizeY
 BandsCount3/BandsCount
 Cache/
 /GDAL_WMS

 Am I remotely doing this the right way?  I am used to calling local data
 from the mapfile and tiled services is a bit of a new beast, so I thought I
 would give it a go!

 Many thanks in advance

 Chris


 ___
 mapserver-users mailing 
 listmapserver-users@lists.osgeo.orghttp://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] Map size question?

2011-08-22 Thread Chris Green
Hi David

 

That was very good advice. Thanks!

 

 

Regards,

 

 

 

Chris

 

From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] 
Sent: 18 August 2011 18:38
To: Chris Green; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Map size question?

 

Chris,

 

If you are in tile mode, I assume that you probably don't want an embedded
legend on each tile.  

 

Have you thought about doing a separate call/request/object for the legend?


 

If you were doing this via CGI, I would recommend doing a separate
mode=legend request.

 

David.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green
Sent: Thursday, August 18, 2011 12:04 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Map size question?

 

After quite a while thinking I could not produce a legend I have realised
that the legend is actually there, just off the edge of my map.

 

Now I see that although my map file specifies a map size of 640 x 480
pixels, if in single tile mode the map image being produced is actually
1110 x 660 pixels. Alternatively with multiple tiles I get 12 tiles of 250 x
250 pixels which is 1024 x 768 pixels.

 

It seems that the size parameter in the map file is being ignored (even
setting the values to 0 0 or omitting the SIZE parameter altogether makes no
difference). MAXSIZE doesn't seem to help either.

 

I can't find a way to get the image size that I want, can anyone help?

 

 

 

Chris

 

 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green
Sent: 18 August 2011 08:02
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapsript legend

 

Hi all

 

I have a map created via Mapscript under Mapserver 6.0 but I can't find a
way to add a legend. Recent examples are hard to find but I found the
following dating from 2002 which seemed simple enough:

 

 

  $legend = $map-legend;

  $legend-set(width,40);

  $legend-set(height,100);

  $legend-imagecolor-setRGB(240,220,200); # tan

  $legend-outlinecolor-setRGB(1,1,1); # black

  $legend-set(status, MS_EMBED);

  $legend-set(position, MS_UL);

  // SET LEGEND LABEL PROPERTIES

  $lg_label = $legend-label;

  $lg_label-set(font, arial);

  $lg_label-set(type, MS_TRUETYPE);

  $lg_label-set(size, 10);

  $lg_label-set(minsize, 6);

  $lg_label-set(maxsize, 12);

  $lg_label-color-setRGB(100,100,100);

  $legend-set(postlabelcache, MS_TRUE);

  // DRAW LEGEND

  $legendImage=$map-drawLegend();

 

Unfortunately this produces no output. Can anyone give me any clues why?

 

 

Chris

 

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


[mapserver-users] mapsript legend

2011-08-18 Thread Chris Green
Hi all

 

I have a map created via Mapscript under Mapserver 6.0 but I can't find a
way to add a legend. Recent examples are hard to find but I found the
following dating from 2002 which seemed simple enough:

 

 

  $legend = $map-legend;

  $legend-set(width,40);

  $legend-set(height,100);

  $legend-imagecolor-setRGB(240,220,200); # tan

  $legend-outlinecolor-setRGB(1,1,1); # black

  $legend-set(status, MS_EMBED);

  $legend-set(position, MS_UL);

  // SET LEGEND LABEL PROPERTIES

  $lg_label = $legend-label;

  $lg_label-set(font, arial);

  $lg_label-set(type, MS_TRUETYPE);

  $lg_label-set(size, 10);

  $lg_label-set(minsize, 6);

  $lg_label-set(maxsize, 12);

  $lg_label-color-setRGB(100,100,100);

  $legend-set(postlabelcache, MS_TRUE);

  // DRAW LEGEND

  $legendImage=$map-drawLegend();

 

Unfortunately this produces no output. Can anyone give me any clues why?

 

 

Chris

 

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


[mapserver-users] Map size question?

2011-08-18 Thread Chris Green
After quite a while thinking I could not produce a legend I have realised
that the legend is actually there, just off the edge of my map.

 

Now I see that although my map file specifies a map size of 640 x 480
pixels, if in single tile mode the map image being produced is actually
1110 x 660 pixels. Alternatively with multiple tiles I get 12 tiles of 250 x
250 pixels which is 1024 x 768 pixels.

 

It seems that the size parameter in the map file is being ignored (even
setting the values to 0 0 or omitting the SIZE parameter altogether makes no
difference). MAXSIZE doesn't seem to help either.

 

I can't find a way to get the image size that I want, can anyone help?

 

 

 

Chris

 

 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green
Sent: 18 August 2011 08:02
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapsript legend

 

Hi all

 

I have a map created via Mapscript under Mapserver 6.0 but I can't find a
way to add a legend. Recent examples are hard to find but I found the
following dating from 2002 which seemed simple enough:

 

 

  $legend = $map-legend;

  $legend-set(width,40);

  $legend-set(height,100);

  $legend-imagecolor-setRGB(240,220,200); # tan

  $legend-outlinecolor-setRGB(1,1,1); # black

  $legend-set(status, MS_EMBED);

  $legend-set(position, MS_UL);

  // SET LEGEND LABEL PROPERTIES

  $lg_label = $legend-label;

  $lg_label-set(font, arial);

  $lg_label-set(type, MS_TRUETYPE);

  $lg_label-set(size, 10);

  $lg_label-set(minsize, 6);

  $lg_label-set(maxsize, 12);

  $lg_label-color-setRGB(100,100,100);

  $legend-set(postlabelcache, MS_TRUE);

  // DRAW LEGEND

  $legendImage=$map-drawLegend();

 

Unfortunately this produces no output. Can anyone give me any clues why?

 

 

Chris

 

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


[mapserver-users] OGR to MySQL

2011-07-26 Thread Chris Green
Hi users

 

I'm having some trouble with an OGR connection to a MySQL database. The data
I'm trying to access was created using QGIS as a line layer and saved in a
MySQL table as a BLOB in a geometry column. I can access and properly
display this line data using QGIS, but not so far via Mapserver - nothing is
drawn and I can't see any error.

 

I am using Mapserver 6.0 and my mapfile is very similar to the example in
theMapserver / MYSQL  documentation:

 

LAYER

   NAME testLine 

   TYPE   LINE

   STATUS  DEFAULT

   CONNECTIONTYPE  OGR

   CONNECTION  mysql:testDB,user=admin,password=password,port=3306 

   DATA SELECT Geometry from testLine

   CLASS

  STYLE

 COLOR  0 0 0

 WIDTH  2  

  END # style

   END # class

END # layer

 

 

 

If I look at the MySQL table using OGRinfo I see the following:

 

Layer name: testLine

Geometry: Unknown (any)

Feature Count: 0

Layer SRS WKT: 

(unknown)

FID Coumn = id

Geometry Column = Geometry

 

 

The issue seems to be that OGRInfo and therefore MapServer does not
recognise any features in the table, but QGIS using access to the same table
finds and displays the features.

 

Anyone have any ideas what I am doing wrong?

 

 

Chris

 

 

 

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


FW: [mapserver-users] php-Mapscript and MySQL layer syntax

2011-07-06 Thread Chris Green
Hello to all, especially PHP-Mapscript users:

 

Apologies for asking the same question twice, but I got no responses to the
below and I am still stuck on both problems. Very happy to receive some help
on either but especially the first one..

 

 

Chris 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green
Sent: 27 June 2011 09:05
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] php-Mapscript and MySQL layer syntax

 

Hi to all

 

I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer
which obtains its data from a MySQL database via an OGR connection. This all
works, but I am having trouble with two items of PHP-Mapscript syntax:

 

 

1.   $layer-getExtent() - I can't make this work with my layer: can
someone confirm if it works with a MySQL layer and if so give a syntax
example?

 

 

2.   $query= $layer-queryByAttributes(null, $expression, MS_MULTIPLE); 

 

 

On the 2nd question I came across some advice from Frank Wamerdam dated 2006
which said:

 

The trick with OGR connections to pass the filter through to OGR is to use

a query expression starting with WHERE.  So you might do something like:

 

   expr = 'WHERE ' + $qField + ' = ' + $qValue

   $qLayer-queryByAttributes(null,$expr,MS_MULTIPLE);

 

(forgive my incorrect PHP syntax, I'm just trying to get the idea accross).

 

 

However I can't come up with any expression that gives me any results at
all. Is there any current advice on how to do this kind of query over an OGR
connection?

 

 

Chris

___
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] php-Mapscript and MySQL layer syntax

2011-06-27 Thread Chris Green
Hi to all

 

I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer
which obtains its data from a MySQL database via an OGR connection. This all
works, but I am having trouble with two items of PHP-Mapscript syntax:

 

 

1.   $layer-getExtent() - I can't make this work with my layer: can
someone confirm if it works with a MySQL layer and if so give a syntax
example?

 

 

2.   $query= $layer-queryByAttributes(null, $expression, MS_MULTIPLE); 

 

 

On the 2nd question I came across some advice from Frank Wamerdam dated 2006
which said:

 

The trick with OGR connections to pass the filter through to OGR is to use

a query expression starting with WHERE.  So you might do something like:

 

   expr = 'WHERE ' + $qField + ' = ' + $qValue

   $qLayer-queryByAttributes(null,$expr,MS_MULTIPLE);

 

(forgive my incorrect PHP syntax, I'm just trying to get the idea accross).

 

 

However I can't come up with any expression that gives me any results at
all. Is there any current advice on how to do this kind of query over an OGR
connection?

 

 

Chris

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


[mapserver-users] Mapserver layer - MySQL connection

2011-06-22 Thread Chris Green
Hi all

 

I'm using Mapserver 6.0 and I have GDAL  1.8.0 installed, running under
Ubuntu 10.04.  I am trying to make a connection from a layer to MySQL,
following the guidance given in the MySQL section of Mapserver
documentation. My problem is that when I try to connect using ogrinfo like:

 

~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306

 

I get a mySQL connect failure message ERROR 1: MySQL connect failed for:
testDB, Access denied for user'root'@'localhost' (using password: NO)

 

It seems that MySQL is refusing this connection request because the password
that I entered in the ogrinfo command is not being passed to MySQL and I
can't find a way to overcome this. The same user name and password work fine
if I access MySQL directly rather than via ogrinfo.

 

Does anyone have an idea what my problem is?

 

 

 

Chris

 

 

 

 

 

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


RE: [mapserver-users] Mapserver layer - MySQL connection

2011-06-22 Thread Chris Green
Jukka

You are a genius -it worked!


Thanks

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: 22 June 2011 08:26
To: Chris Green; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapserver layer - MySQL connection

Hi,

Try first by removing the space characters after separating commas.

-Jukka Rahkonen-



Lähettäjä: mapserver-users-boun...@lists.osgeo.org
[mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Chris
Green [chris.gr...@ibstv.co.uk] puolesta
Lähetetty: 22. kesäkuuta 2011 10:12
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Mapserver layer - MySQL connection

Hi all

I’m using Mapserver 6.0 and I have GDAL  1.8.0 installed, running under
Ubuntu 10.04.  I am trying to make a connection from a layer to MySQL,
following the guidance given in the MySQL section of Mapserver
documentation. My problem is that when I try to connect using ogrinfo like:

~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306

I get a mySQL connect failure message “ERROR 1: MySQL connect failed for:
testDB, Access denied for user’root’@’localhost’ (using password: NO)”

It seems that MySQL is refusing this connection request because the password
that I entered in the ogrinfo command is not being passed to MySQL and I
can’t find a way to overcome this. The same user name and password work fine
if I access MySQL directly rather than via ogrinfo.

Does anyone have an idea what my problem is?



Chris







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


RE: [mapserver-users] MySQL connection: so near, yet so far...

2011-06-22 Thread Chris Green
Thanks Stephen

That was a useful pointer, I have the OGR connection working now. One
remaining problem: the source data in my MySQL database is unprojected
lat/lon, and I want to project to Google 900913. 

It seems that it should be possible to get OGR to do this within the ovf
file by including an SRS statement like LayerSRSEPSG:900913/LayerSRS,
but this doesn't work. Adding a projection statement to the layer doesn't
help either.

Anyone know how to do this?



Chris 

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl
Sent: 22 June 2011 12:56
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MySQL connection: so near, yet so far...

Hello Chris,

Chris Green chris.gr...@ibstv.co.uk, [20110622 - 12:17:35]

 I am trying to establish a MySQL connection to a Mapserver 6.0 layer 
 using OGR. After much trial and error (mostly error) I have got to the 
 point where I have an ovf file which I can test using ogrinfo, but 
 which I cannot make work in a layer.
 
 My ovf file (OGR_test.ovf) is
 
 OGRVRTDataSource
 OGRVRTLayer name=OGR_test
   
 SrcDataSourcemysql:testDB,user=root,password=mysql,port=3306,tables=
 testTa
 ble/SrcDataSource
 SrcSQLSELECT City, Latitude, Longitude FROM 
 testTable/SrcSQL GeometryTypewkbPoint/GeometryType
 GeometryField encoding=PointFromColumns x=Longitude
 y=Latitude/
 /OGRVRTLayer
 /OGRVRTDataSource
 
 I can successfully test this and see the data in testTable via:
 
 ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf
 
 
 However when I create a test layer I cannot establish the OGR 
 connection. I am trying with:
 
 LAYER
   NAME testLayer
   STATUS DEFAULT
   TYPE POINT
   CONNECTIONTYPE OGR
   CONNECTION OGR_test.ovf
   DATA OGR_test
   CLASS
 NAME MyClass
 STYLE
   SYMBOL 'circle'
   SIZE 15
   COLOR 0 255 0
 END
   END
 END
 
 This produces an internal server error.
 
 I have also tried using an absolute path to OGR_test.ovf, still no 
 success. It seems that I have not got the CONNECTION and DATA 
 parameters right but after reading the MySQL and the OGR sections in 
 the Mapserver documentation many times I still can't figure out what 
 I'm doing wrong.
 
 Can someone help?

Just a guess.

Make sure you have the exact same env-vars set for apache as you have set
within the shell your ogrinfo-command works. Sometimes there can be a
differnces there?

Best

Stephan

--
Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


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


RE: [mapserver-users] MySQL connection: so near, yet so far...

2011-06-22 Thread Chris Green
Thanks Mike. Outstanding.


Chris

-Original Message-
From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] 
Sent: 22 June 2011 15:31
To: Chris Green; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MySQL connection: so near, yet so far...

Chris,

You'd want to set the projection in your vrt to the projection of the data
(4326). Also set the projection of your layer in mapserver to 4326.

Then set the projection of the map to 900913 to get Mapserver to reproject.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 6/22/11  10:16 AM, Chris Green chris.gr...@ibstv.co.uk wrote:

 Thanks Stephen
 
 That was a useful pointer, I have the OGR connection working now. One
 remaining problem: the source data in my MySQL database is unprojected
 lat/lon, and I want to project to Google 900913.
 
 It seems that it should be possible to get OGR to do this within the ovf
 file by including an SRS statement like LayerSRSEPSG:900913/LayerSRS,
 but this doesn't work. Adding a projection statement to the layer doesn't
 help either.
 
 Anyone know how to do this?
 
 
 
 Chris 
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephan Holl
 Sent: 22 June 2011 12:56
 To: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] MySQL connection: so near, yet so far...
 
 Hello Chris,
 
 Chris Green chris.gr...@ibstv.co.uk, [20110622 - 12:17:35]
 
 I am trying to establish a MySQL connection to a Mapserver 6.0 layer
 using OGR. After much trial and error (mostly error) I have got to the
 point where I have an ovf file which I can test using ogrinfo, but
 which I cannot make work in a layer.
 
 My ovf file (OGR_test.ovf) is
 
 OGRVRTDataSource
 OGRVRTLayer name=OGR_test
 
 SrcDataSourcemysql:testDB,user=root,password=mysql,port=3306,tables=
 testTa
 ble/SrcDataSource
 SrcSQLSELECT City, Latitude, Longitude FROM
 testTable/SrcSQL GeometryTypewkbPoint/GeometryType
 GeometryField encoding=PointFromColumns x=Longitude
 y=Latitude/
 /OGRVRTLayer
 /OGRVRTDataSource
 
 I can successfully test this and see the data in testTable via:
 
 ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf
 
 
 However when I create a test layer I cannot establish the OGR
 connection. I am trying with:
 
 LAYER
   NAME testLayer
   STATUS DEFAULT
   TYPE POINT
   CONNECTIONTYPE OGR
   CONNECTION OGR_test.ovf
   DATA OGR_test
   CLASS
 NAME MyClass
 STYLE
   SYMBOL 'circle'
   SIZE 15
   COLOR 0 255 0
 END
   END
 END
 
 This produces an internal server error.
 
 I have also tried using an absolute path to OGR_test.ovf, still no
 success. It seems that I have not got the CONNECTION and DATA
 parameters right but after reading the MySQL and the OGR sections in
 the Mapserver documentation many times I still can't figure out what
 I'm doing wrong.
 
 Can someone help?
 
 Just a guess.
 
 Make sure you have the exact same env-vars set for apache as you have set
 within the shell your ogrinfo-command works. Sometimes there can be a
 differnces there?
 
 Best
 
 Stephan
 
 --
 Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663
 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
 Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
 
 
 ___
 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] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Hi list

 

I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have
been trying to get clustering to work with Mapscript. Actually it works fine
when using a mapfile very similar to the 'Clustering Railway Stations'
example given in the 6.0 documentation if I use the mapfile to generate a
WMS layer without Mapscript. However using the same mapfile I can't get the
clustered output to appear with Mapscript when I try the usual construction
along the lines of:

 

$map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map);

$layer1=$map-getLayerByName(test1);

..

..

..

$image=$map-draw();

$image_url=$image-saveWebImage();

 

This structure works on a non-clustered layer in the same mapfile. I can see
in the documentation for MS RFC 69 that the idea is to use a new Mapscript
object called clusterObj, but I can't find any information on how to
construct a clusterObj and several hours of trial and error yesterday didn't
get me very far. Can someone tell me how I should set up and use clusterObj?

 

 

Chris  

 

 

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


RE: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Hi Tamas

 

Thanks for your comment. My first thought was that it should be available from 
layerObj, and I spent quite a while trying variations like:

$map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map);

$layer1=$map-getLayerByName(test1);

$cluster1=$layer1-getClusterByName(“cluster1”);

But unfortunately I couldn’t make anything like that work. Anyone know how this 
clusterObj works in php-Mapscript?

 

Chris

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: 20 June 2011 08:41
To: Chris Green
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

 

Chris,

clusterObj should not be constructed from scratch, it is an existing member of 
layerObj. Not sure how is that working in PHP, however.


Best regards,

Tamas





2011/6/20 Chris Green chris.gr...@ibstv.co.uk

Hi list

 

I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have 
been trying to get clustering to work with Mapscript. Actually it works fine 
when using a mapfile very similar to the ‘Clustering Railway Stations’ example 
given in the 6.0 documentation if I use the mapfile to generate a WMS layer 
without Mapscript. However using the same mapfile I can’t get the clustered 
output to appear with Mapscript when I try the usual construction along the 
lines of:

 

$map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map);

$layer1=$map-getLayerByName(test1);

..

..

..

$image=$map-draw();

$image_url=$image-saveWebImage();

 

This structure works on a non-clustered layer in the same mapfile. I can see in 
the documentation for MS RFC 69 that the idea is to use a new Mapscript object 
called clusterObj, but I can’t find any information on how to construct a 
clusterObj and several hours of trial and error yesterday didn’t get me very 
far. Can someone tell me how I should set up and use clusterObj?

 

 

Chris  

 

 


___
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] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Chris Green
Daniel


This works

$map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map);
$layer1=$map-getLayerByName(test1);
$layer1-cluster;


Thanks very much for the help!


Chris


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette
Sent: 20 June 2011 15:26
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ?

On 11-06-20 10:22 AM, Daniel Morissette wrote:
 On 11-06-20 10:02 AM, Chris Green wrote:
 Hi Tamas

 Thanks for your comment. My first thought was that it should be
 available from layerObj, and I spent quite a while trying variations
 like:

 $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map);

 $layer1=$map-getLayerByName(test1);

 $cluster1=$layer1-getClusterByName(“cluster1”);

 But unfortunately I couldn’t make anything like that work. Anyone know
 how this clusterObj works in php-Mapscript?



 AFAIK there is only one cluster object per layer, and according to the
 PHP MapScript source, you should be able to reach it as
 $layer1-cluster. The same methods as in SWIG MapScript seem to be
 implemented for the clusterObj in PHP MapScript. If that doesn't work
 then please let us know and we'll look deeper.


... and I see that clusterObj is documented in:

   http://mapserver.org/mapscript/php/index.html#clusterobj

... and the ref to the clusterObj in the layerObj is listed in:

   http://mapserver.org/mapscript/php/index.html#layerobj

-- 
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
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] upgrade Mapserver 5.4 to 6.0 (gulp!)

2011-06-10 Thread Chris Green
Hi Brent

 

Thank you for your very helpful comments, much appreciated. It is pretty
clear to me that I have to start by changing my elderly Fedora to something
better suited to supporting GIS applications including Mapserver 6.0. It is
strange - I'm not at all afraid of PHP/Mapscript (although the documentation
is not great) or of Javascript, but the whole Linux world is just so
confusing that I get a form of paralysis by analysis soon after I start
trying to compare the different options. 

 

Anyway I will certainly take a look at Ubuntu / OpenSuse.

 

 

Chris

 

From: pcr...@pcreso.com [mailto:pcr...@pcreso.com] 
Sent: 10 June 2011 07:21
To: chris.gr...@ibstv.co.uk
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)

 


Hi Chris, 

I'm a Suse/Ubuntu user, in both cases totally because of the well supported
GIS related packages for these distros. So I have completely avoided the
issues are facing right now :-) Though I'd imagine it will not be long
before 6.0 is available natively for Fedora, given 5.6 is supported.

I'm not too familiar with the RH Linux family, but the OpenSuse Geo
repository partially supports Centos  RH4/5, and I have found the
maintainers there to be very helpful. If a RH or Centos build will be
compatible with Fedora, it would be worth asking around there. Mapserver is
not currently built for these distros, but someone may be prepared to do
this for you.

http://download.opensuse.org/repositories/Application:/Geo/

Personally, I'd suggest you switch to a distro that does what you want,  if
that includes well maintained  supported, pre-built mapserver ( related)
packages, Ubuntu  OpenSuse are well worth considering.

HTH,

  Brent Wood



--- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH
michael.sm...@usace.army.mil wrote:


From: Smith, Michael D ERDC-CRREL-NH michael.sm...@usace.army.mil
Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
To: Chris Green chris.gr...@ibstv.co.uk, 'Stephen Woodbridge'
wood...@swoodbridge.com, mapserver-users@lists.osgeo.org
Date: Friday, June 10, 2011, 3:31 AM

Chris,

What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc.

See http://mapserver.org/download.html#linux


On 6/9/11  11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote:

 Hi Steve
 
 Thanks for your comments. I have read the documentation and realise that
 there will be quite a few changes to my mapfile(s). I'm not at all worried
 about that, it's just a question of patiently working through the changes.
 However I am very apprehensive of the upgrade itself. Before I installed
the
 FGS package I spent many, many hours trying to compile and install
Mapserver
 myself but eventually had to admit defeat and resort to FGS.
 
 Now there is no FGS to fall back on, I'm hoping for some guidance (or
maybe
 just some encouragement!)
 
 
 Chris
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
 Woodbridge
 Sent: 09 June 2011 15:42
 To: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
 
 On 6/9/2011 8:58 AM, Chris Green wrote:
 Hi All
 
 I have been running Mapserver 5.4 for about 18 months on a Fedora core 7
 Unix platform. I installed it via the FGS installer package which made
 the installation process relatively straightforward.
 
 Now I see that Mapserver 6.0 has been released and it includes some
 features that I really want to take advantage of, particularly the
 ability to cluster dense features. My problem is that apparently the FGS
 package has not been updated, so from the Mapserver website it looks
 like I have start from scratch with a scarily long list of libraries and
 compilations required to install Mapserver 6.0 from scratch. As
 something of a Unix novice I don't fancy this very much!
 
 I am wondering if there is a simple way to in effect replace my existing
 Mapserver 5.4 executable with Mapserver 6.0 - could I assume that
 Mapserver 6.0 only requires the same libraries as 5.4 and just compile
 the 6.0 executable? Any guidance on the direction to take here would be
 gratefully received.
 
 Hi Chris,
 
 Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a
 mapfile point of view. Make sure you read the mapserver migration guide.
 One of the big changes that we made in 6.0 was to clean up some of the
 mapfile syntax and remove some deprecated tags. These should not be
 major changes but it is likely that some (all?) of your mapfiles will
 need to be tweaked to get them to work.
 
 So please plan accordingly.
 
 -Steve W
 ___
 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

[mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)

2011-06-09 Thread Chris Green
Hi All

 

I have been running Mapserver 5.4 for about 18 months on a Fedora core 7
Unix platform. I installed it via the FGS installer package which made the
installation process relatively straightforward.

Now I see that Mapserver 6.0 has been released and it includes some features
that I really want to take advantage of, particularly the ability to cluster
dense features. My problem is that apparently the FGS package has not been
updated, so from the Mapserver website it looks like I have start from
scratch with a scarily long list of libraries and compilations required to
install Mapserver 6.0 from scratch. As something of a Unix novice I don't
fancy this very much!

 

I am wondering if there is a simple way to in effect replace my existing
Mapserver 5.4 executable with  Mapserver 6.0 - could I assume that Mapserver
6.0 only requires the same libraries as 5.4 and just compile the 6.0
executable? Any guidance on the direction to take here would be gratefully
received.

 

 

Chris

 

 

 

 

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


RE: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)

2011-06-09 Thread Chris Green
Hi Steve

Thanks for your comments. I have read the documentation and realise that
there will be quite a few changes to my mapfile(s). I'm not at all worried
about that, it's just a question of patiently working through the changes.
However I am very apprehensive of the upgrade itself. Before I installed the
FGS package I spent many, many hours trying to compile and install Mapserver
myself but eventually had to admit defeat and resort to FGS.

Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe
just some encouragement!)


Chris

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: 09 June 2011 15:42
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)

On 6/9/2011 8:58 AM, Chris Green wrote:
 Hi All

 I have been running Mapserver 5.4 for about 18 months on a Fedora core 7
 Unix platform. I installed it via the FGS installer package which made
 the installation process relatively straightforward.

 Now I see that Mapserver 6.0 has been released and it includes some
 features that I really want to take advantage of, particularly the
 ability to cluster dense features. My problem is that apparently the FGS
 package has not been updated, so from the Mapserver website it looks
 like I have start from scratch with a scarily long list of libraries and
 compilations required to install Mapserver 6.0 from scratch. As
 something of a Unix novice I don't fancy this very much!

 I am wondering if there is a simple way to in effect replace my existing
 Mapserver 5.4 executable with Mapserver 6.0 - could I assume that
 Mapserver 6.0 only requires the same libraries as 5.4 and just compile
 the 6.0 executable? Any guidance on the direction to take here would be
 gratefully received.

Hi Chris,

Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a 
mapfile point of view. Make sure you read the mapserver migration guide. 
One of the big changes that we made in 6.0 was to clean up some of the 
mapfile syntax and remove some deprecated tags. These should not be 
major changes but it is likely that some (all?) of your mapfiles will 
need to be tweaked to get them to work.

So please plan accordingly.

-Steve W
___
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] upgrade Mapserver 5.4 to 6.0 (gulp!)

2011-06-09 Thread Chris Green
Hi Michael


I'm using Fedora 7. My main problem is the totally daunting list of
libraries and other packages like GD and GDAL which have to be available or
pre-compiled before you can even start compiling Mapserver 6.0. But it seems
to me that most if not all of the required libraries must already be in
place for Mapserver 5.4 to run (which it does), so I was hoping that someone
could say don't worry, just do this



Chris



-Original Message-
From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.sm...@usace.army.mil] 
Sent: 09 June 2011 16:31
To: Chris Green; 'Stephen Woodbridge'; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)

Chris,

What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc.

See http://mapserver.org/download.html#linux


On 6/9/11  11:04 AM, Chris Green chris.gr...@ibstv.co.uk wrote:

 Hi Steve
 
 Thanks for your comments. I have read the documentation and realise that
 there will be quite a few changes to my mapfile(s). I'm not at all worried
 about that, it's just a question of patiently working through the changes.
 However I am very apprehensive of the upgrade itself. Before I installed
the
 FGS package I spent many, many hours trying to compile and install
Mapserver
 myself but eventually had to admit defeat and resort to FGS.
 
 Now there is no FGS to fall back on, I'm hoping for some guidance (or
maybe
 just some encouragement!)
 
 
 Chris
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
 Woodbridge
 Sent: 09 June 2011 15:42
 To: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!)
 
 On 6/9/2011 8:58 AM, Chris Green wrote:
 Hi All
 
 I have been running Mapserver 5.4 for about 18 months on a Fedora core 7
 Unix platform. I installed it via the FGS installer package which made
 the installation process relatively straightforward.
 
 Now I see that Mapserver 6.0 has been released and it includes some
 features that I really want to take advantage of, particularly the
 ability to cluster dense features. My problem is that apparently the FGS
 package has not been updated, so from the Mapserver website it looks
 like I have start from scratch with a scarily long list of libraries and
 compilations required to install Mapserver 6.0 from scratch. As
 something of a Unix novice I don't fancy this very much!
 
 I am wondering if there is a simple way to in effect replace my existing
 Mapserver 5.4 executable with Mapserver 6.0 - could I assume that
 Mapserver 6.0 only requires the same libraries as 5.4 and just compile
 the 6.0 executable? Any guidance on the direction to take here would be
 gratefully received.
 
 Hi Chris,
 
 Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a
 mapfile point of view. Make sure you read the mapserver migration guide.
 One of the big changes that we made in 6.0 was to clean up some of the
 mapfile syntax and remove some deprecated tags. These should not be
 major changes but it is likely that some (all?) of your mapfiles will
 need to be tweaked to get them to work.
 
 So please plan accordingly.
 
 -Steve W
 ___
 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] Raster dataset recommendations

2011-02-25 Thread Chris Jackson
Hi all

I have a largish raster dataset (2 GB) of hi resolution data points with a
small geographical footprint.  What would people recommend as the best way
to prepare and then call data in the map file (with rendering performance in
mind).  It isn't going to be a basemap and the output legend will be based
on the pixel value (e.g. wave height).

Any thoughts would be much appreciated.

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


[mapserver-users] FW: FGS Linux - PHP question

2011-01-10 Thread Chris Green
Dear Mapserver users,

 

I sent the following to the foss-gis forum this morning, but got no
response. I'm wondering if any of you Mapserver experts can help me out with
this problem?

 

Earlier today I tried to re-install PHP, leaving the other FGS components
intact. I did this after unzipping PHP 5.2.17 and using the command:

 

# ./configure --with-apxs=/opt/fgs/www/bin/apxs --with-mysql 

 

 

However I get the error message:

 

sorry I was unable to successfully run APXS. Possible reasons:

 

1. Perl is not installed;

2. Apache was not compiled with DSO support;

3. 'apxs' is not in your path

 

So I failed to upgrade PHP (for mysql support), and I can't see why. Nor I
can find out if re-installing the whole FGS package gives me the option of
enabling mysql on the PHP component. As you may realise I am still learning
about Linux!

 

Can anyone help? In the end all I need is what I have already (FGS 5.4.0)
but with PHP enabled for mysql.

 

 

Chris

 

 

From: Chris Green [mailto:chris.gr...@ibstv.co.uk] 
Sent: 10 January 2011 06:38
To: 'foss-gis-su...@lists.maptools.org'
Subject: FGS Linux - PHP question

 

Hi list

 

I installed FGS Linux installer version 5.4.0 beta 4 in June 2010. It has
been working fine since then but now I am in the process of upgrading my web
site to incorporate a MySQL database and I encountered a PHP problem that I
am not sure of the best way to fix. The PHP version that came with FGS is
5.2.5 and by using info.php I can see that it is not configured to support
MySQL. 

 

As I see it my choices are:

 

1.   Upgrade the existing PHP 5.2.5 to incorporate MySQL support

2.   Re-install FGS using the current version, which I see incorporates
PHP base 5.2.9 (I assume this is configured to support MySQL???)

 

Maybe there are other options, but being fairly inexperienced in Linux I am
looking for the easiest method with least disruption to the existing
website. Can anyone offer me any advice?  

 

Chris Green

 

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


[mapserver-users] MapScript dlls?

2010-09-16 Thread Chris Jackson
Hi

Does anyone know where I might find a compiled version of the MapScript dll
for NTS PHP 5.3.1 (or 5.3.3) on Windows (VC9)? I am trying to use FastCGI
combined with Wincache (hence NTS required).

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


Re: [mapserver-users] Display performance

2010-09-03 Thread Chris Jackson
Hi Jukka

Thanks for the response and the great investigative work!
My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000
msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o(

I do wonder if my Mapfile layer definition is just v.poor (admittedly no
expert!) so have taken an excerpt of the layer defintion (there are about 15
classes in all) - views anyone, should I be loading it a different way?

Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map
code - as it sounds like a great idea maybe for this but also some v.hi-res
model grids I am thinking about.

Thanks again, much appreciated!
Chris

LAYER
  NAME meanspringpeakflow
  TYPE polygon
  DEBUG 5
  DATA Tide
  TEMPLATE void
  PROJECTION
   +proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs
  END
  METADATA
DESCRIPTION Mean Spring Peak Flow
RESULT_FIELDS ID,DISTANCE,DEPTH,MEAN_SP_PC
RESULT_HEADERS ID,Minimum Distance (m),Average Depth (m),Mean Spring
Peak Flow (m/s)
ows_title  meanspringpeakflow
RESULT_HYPERLINK ID|| Load graphing tool
  END  # Metadata
CLASS
NAME ' 4.00 (m/s) '
EXPRESSION ([MEAN_SP_PC] = 4 AND [MEAN_SP_PC]  4.5)
STYLE
COLOR 135 99 64
END #end style
END # end class
CLASS
NAME '3.51 - 4.00'
EXPRESSION ([MEAN_SP_PC] = 3.5 AND [MEAN_SP_PC]  4)
STYLE

COLOR 158 126 63
END #end style
END # end class
etc etc


On 3 September 2010 09:04, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

  Hi,

 I took some numbers to compare with.

 Material and methods

 Polygon layer, rather simple polygons with few vertises, Feature Count:
 117383
 DEBUG 5 in mapfile
 WMS client asks for the whole layer
 Mapserver 5.2.1 (CGI) on not so fast Windows computer
 Results
 First request: rendering time taken from the log file are between 3.5 and
 4.5 seconds
 Following request, BBOX is changing but all the polygons are drawn though:
 rendering times 1.5 - 2.5 seconds

 Conclusions and discussion
 At first one might think that my server is faster.  But this test is not
 controlled at all because we are not using the same shapefiles and we can't
 say so. What we can say that a couple of hundred of thousand polygons can be
 drawn faster.

 However, it does not really make sense to render an image this way if it
 should be fast.  If the screen has 1000 by 1000 pixels it makes a million
 pixels together.  For 20 polygons it makes 5 pixels per polygon.  You
 can simplify your polygon geometries pretty much before anybody can see the
 differense.  If the polygons are spread evenly nobody can even see the
 difference if there are 2 or 20 polygons on the screen.

 We have one polygon layer with about million polygons and for that I made
 two simplified layers which contain only 1 percent and 10 percent of all the
 polygons.  Those and the original shapefile are put into the same scale
 dependent WMS GROUP layer. This group is pretty fast at any scale.  The 1
 percent layer is perhaps a bit too sparse but I have been too lazy to have a
 try with 2 or 5 percent samples.

 -Jukka Rahkonen-

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


Re: [mapserver-users] Display performance

2010-09-03 Thread Chris Jackson
Jukka

Thank you for the code I will give it a go.  I guess I will dust off the
field calculator in ArcMap and see if that improves things somewhat, I guess
that is a similar overhead when classifying a raster by pixel value (not
sure how to fix that).  So if I understand you right then I would just use a
number per class (1-15 say) in the new attribute field and then code
something like:

 CLASSITEM MEAN_SP_PC
  CLASS
EXPRESSION 1
NAME  4.00 (m/s)
STYLE
  COLOR 135 99 64
END
  END

Thanks again for the insight.
Chris
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Display performance

2010-09-03 Thread Chris Jackson
Ok Folks

I am now ready to go home and have a sit down!!
I have re-classified the layer with a new class column and then ordered the
shapefile by the most common classes.

the results are in..

3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the
main saving was by just reclassifying.

Thanks to all as this has been a great learning experience, I am now going
to see if I can find a bigger model grid to play with.!   ;o)

Chris

On 3 September 2010 11:07, thomas bonfort thomas.bonf...@gmail.com wrote:

 That would be the fastest yes. Even more so if you order the classes
 inside your layer by order of occurences, i.e. the most common classes
 first, and the least common ones last.

 --
 thomas

 On Fri, Sep 3, 2010 at 11:54, Chris Jackson webturt...@gmail.com wrote:
  Jukka
 
  Thank you for the code I will give it a go.  I guess I will dust off the
  field calculator in ArcMap and see if that improves things somewhat, I
 guess
  that is a similar overhead when classifying a raster by pixel value (not
  sure how to fix that).  So if I understand you right then I would just
 use a
  number per class (1-15 say) in the new attribute field and then code
  something like:
 
   CLASSITEM MEAN_SP_PC
CLASS
  EXPRESSION 1
  NAME  4.00 (m/s)
  STYLE
COLOR 135 99 64
  END
END
 
  Thanks again for the insight.
  Chris
 
 
  ___
  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] Display performance

2010-09-02 Thread Chris Jackson
Hi

I wondered if anyone knew if displaying a 50,000 polygon dataset would be
significantly faster if called from a database rather than a spatially
indexed shapefile, or is it a similar overhead for both.
Thanks
Chris
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Display performance

2010-09-02 Thread Chris Jackson
Steve

That saves some work, but how long would you expect one that size to load?
I have just realised (admittedly not looked at the data for a couple of
years) that it is actually 170,000 records - takes about 20 secs to load -
sound reasonable?

Chris

On 2 September 2010 20:50, Lime, Steve D (DNR) steve.l...@state.mn.uswrote:

  That’s not that big a dataset. Probably faster from a local shapefile.



 Steve



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Chris Jackson
 *Sent:* Thursday, September 02, 2010 2:29 PM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Display performance



 Hi

 I wondered if anyone knew if displaying a 50,000 polygon dataset would be
 significantly faster if called from a database rather than a spatially
 indexed shapefile, or is it a similar overhead for both.
 Thanks
 Chris

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


Re: [mapserver-users] Display performance

2010-09-02 Thread Chris Jackson
Hi

20 secs is from turning the layer on in the interface.  The data is a model
grid as polygons, the file size is about 40mb.  I agree 20secs is too long -
I am a web developer in general and know users are fickle!  The other layers
load v.quickly so happy in general with performance of smaller model grids.

The same layer in an old arcgis server app loads a few secs quicker (from
SDE rather than file) and we just accepted it was just 'one of those things'
and deadlines got in the way - mmm...

The app is living on a reasonable specced server living in a data centre and
the old web app has been serving the offshore renewables industry fine for a
couple of years or so, just have a need to move to an open source solution.
I was trying to get a feel whether moving to PostGIS rather than local file
will speed things up - I get the feeling it is marginal.

Maybe I am missing another processing trick (admittedly I have done minimal
work bar a spatial index).

Thanks for the swift response.
Chris

On 2 September 2010 21:07, P Kishor punk.k...@gmail.com wrote:

 On Thu, Sep 2, 2010 at 3:03 PM, Chris Jackson webturt...@gmail.com
 wrote:
  Steve
 
  That saves some work, but how long would you expect one that size to
 load?
  I have just realised (admittedly not looked at the data for a couple of
  years) that it is actually 170,000 records - takes about 20 secs to load
 -
  sound reasonable?


 What does to load mean? Is 20 seconds the time elapsed from when the
 user clicks on the browser to when the user sees the resulting image?

 You are ripping through 170K features and creating an image. 20
 seconds seems like a lot. How big and complicated are those features?
 How big is the shapefile, in physical size (MB, KB).

 What kind of computer are you using?

 What other processes are running?

 So many variables...

 in any case, if you have a web app, and you want your users to remain
 interested in it, you probably will want to bring down the time to
 load to sub-second, or, at the most a few seconds. You will also want
 to consider multiple users -- acceptable performance with one user
 might translate into horrendous performance with several concurrent
 users.




 
  Chris
 
  On 2 September 2010 20:50, Lime, Steve D (DNR) steve.l...@state.mn.us
  wrote:
 
  That’s not that big a dataset. Probably faster from a local shapefile.
 
 
 
  Steve
 
 
 
  From: mapserver-users-boun...@lists.osgeo.org
  [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris
 Jackson
  Sent: Thursday, September 02, 2010 2:29 PM
  To: mapserver-users@lists.osgeo.org
  Subject: [mapserver-users] Display performance
 
 
 
  Hi
 
  I wondered if anyone knew if displaying a 50,000 polygon dataset would
 be
  significantly faster if called from a database rather than a spatially
  indexed shapefile, or is it a similar overhead for both.
  Thanks
  Chris
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 



 --
 Puneet Kishor http://www.punkish.org
 Carbon Model http://carbonmodel.org
 Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
 Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
 Nelson Institute, UW-Madison http://www.nelson.wisc.edu
 ---
 Assertions are politics; backing up assertions with evidence is science
 ===

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


Re: [mapserver-users] Display performance

2010-09-02 Thread Chris Jackson
Steve

I don't have postgis, hence the fishing around for answers from helpful
people like yourself!  You are right about playing around with
generalisations, unfortunately the colouring is very specific and needs to
match other GIS outputs, so will have to still 'look' right - something I
will have a play with in due course.  Once you zoom in the data is quite
usable - ie. the spatial index is doing it's job, so not all is lost.

Thanks for the ideas

Chris

On 2 September 2010 21:36, Lime, Steve D (DNR) steve.l...@state.mn.uswrote:

  If you have postgis already sitting around then it’s pretty quick just to
 try it and see.  I’m assuming you’re talking 20sec for everything, all 170K
 features? A spatial index doesn’t buy you anything in the ‘all’ case. That
 is a lot of features to display at once and I wonder if one can even make
 sense of that much detail. A common technique would be display reduced or
 somehow generalized versions of the data at that level and then hit the
 detailed data as a user zooms in. Without knowing the data how you’d do that
 would vary. For example, you could actually rasterize the data and display
 the pre-rendered raster version small scales. Or you might be able to thin
 the data a bit. Lots of options.



 Steve


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


Re: [mapserver-users] Feature select performance

2010-08-25 Thread Chris Jackson
Steve

I was pursuing the performance issue on the pmapper mailing list too.  It
transpires it is related to browser performance (from a JS aspect) for the
web apps query/redraw processes - IE7 - awful (8mins), IE8 and FF pretty
good - around 20secs for returning/highlighting 5000 features (and building
results table) and Chrome about 13 secs, that is without even creating a
spatial index.  Thanks for the info and I think I may even not have to go
down the db route (which keeps life simple!) just advise IE6/7 users to
switch browsers (not the first webGIS app I know that does this!)

Thanks
Chris.

On 25 August 2010 18:08, Lime, Steve D (DNR) steve.l...@state.mn.us wrote:

  Like with everything it depends…  Selection of features via a bounding
 box shouldn’t be much, or really any, slower than drawing since it’s
 basically the same mechanism for both. Attribute queries can be quite slow
 with shapefiles since MapServer doesn’t do any attribute indexing. That’s
 where the RDMS really adds value. There shouldn’t be much of a difference
 with a bbox query, and in fact, a local shapefile will probably be faster,
 even on larger datasets as long as you’ve build an spatial index file.



 Anyway, it’s what you do with results afterwards that matters and that’s
 probably specific to your application.  I’ve used query files to persist
 selected features over many map draws successfully on modest (50,000
 feature) sized shapefiles.



 Steve



 *From:* Chris Jackson [mailto:webturt...@gmail.com]
 *Sent:* Tuesday, August 24, 2010 10:34 AM
 *To:* Lime, Steve D (DNR)
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Feature select performance



 Steve

 The selection of layer data is done by a bounding box, though querying by
 parameter values is just as slow.  The mapfile is directly calling up the
 shapefile (I had just followed the P.Mapper examples of displaying/querying
 shapefiles directly).  So probably the answers to those questions lie under
 the hood of P.Mapper, which I assume is using the PHP mapscript.dll to do
 the work.  Is the direct query to shapefile approach v.efficient for larger
 datasets..?.  Ignoring the app I am using what is a good approach to large
 feature datasets from a MapServer perspective?

 Thanks
 Chris


  On 24 August 2010 14:27, Lime, Steve D (DNR) steve.l...@state.mn.us
 wrote:

 How is the selection done? How is the highlighting done? Those processes
 will really impact performance depending on how things are implemented.

 Steve

 
 From: mapserver-users-boun...@lists.osgeo.org [
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson [
 webturt...@gmail.com]
 Sent: Tuesday, August 24, 2010 3:19 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Feature select performance


 Hi all

 I have rigged up a webGIS app (P.Mapper framework) where one of the
 underlying datasets is a model grid (many thousand cells) in a shapefile.
  The data displays nice and quick when just viewing, but if I allow the user
 to select say 5000 cells it is very (extremely) slow to redraw with the
 highlighted cells.  Doing the same task in a very old ArcGIS server web app
 was much quicker (admittedly the data was in SDE/MS SQL).  So my question is
 what is the best way to improve performance - would just transferring the
 shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good
 step or is there are better way to present the data in the Map file?
 Many thanks
 Chris



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


[mapserver-users] Feature select performance

2010-08-24 Thread Chris Jackson
Hi all

I have rigged up a webGIS app (P.Mapper framework) where one of the
underlying datasets is a model grid (many thousand cells) in a shapefile.
The data displays nice and quick when just viewing, but if I allow the user
to select say 5000 cells it is very (extremely) slow to redraw with the
highlighted cells.  Doing the same task in a very old ArcGIS server web app
was much quicker (admittedly the data was in SDE/MS SQL).  So my question is
what is the best way to improve performance - would just transferring the
shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good
step or is there are better way to present the data in the Map file?
Many thanks
Chris
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Feature select performance

2010-08-24 Thread Chris Jackson
Steve

The selection of layer data is done by a bounding box, though querying by
parameter values is just as slow.  The mapfile is directly calling up the
shapefile (I had just followed the P.Mapper examples of displaying/querying
shapefiles directly).  So probably the answers to those questions lie under
the hood of P.Mapper, which I assume is using the PHP mapscript.dll to do
the work.  Is the direct query to shapefile approach v.efficient for larger
datasets..?.  Ignoring the app I am using what is a good approach to large
feature datasets from a MapServer perspective?

Thanks
Chris



On 24 August 2010 14:27, Lime, Steve D (DNR) steve.l...@state.mn.us wrote:

 How is the selection done? How is the highlighting done? Those processes
 will really impact performance depending on how things are implemented.

 Steve

 
 From: mapserver-users-boun...@lists.osgeo.org [
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson [
 webturt...@gmail.com]
 Sent: Tuesday, August 24, 2010 3:19 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Feature select performance

 Hi all

 I have rigged up a webGIS app (P.Mapper framework) where one of the
 underlying datasets is a model grid (many thousand cells) in a shapefile.
  The data displays nice and quick when just viewing, but if I allow the user
 to select say 5000 cells it is very (extremely) slow to redraw with the
 highlighted cells.  Doing the same task in a very old ArcGIS server web app
 was much quicker (admittedly the data was in SDE/MS SQL).  So my question is
 what is the best way to improve performance - would just transferring the
 shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good
 step or is there are better way to present the data in the Map file?
 Many thanks
 Chris

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


RE: [mapserver-users] WFS Server does not support VERSION 1.1.0

2010-07-08 Thread Chris Green
Hi Assefa

 

I am using a Virtual Private Server and my ISP tells me that it uses Linux
5.2.1. The Mapserver version is 5.6.3, which came with the latest FGS
version downloaded two days ago.

 

The VPS comes with Apache pre-installed so I have 2 versions of Apache
running, one already there and the other installed as part of the FGS
package (the FGS version uses port 81).

 

Since asking for help I have continued to try modifications to my map file
(which still runs fine under MS4W although with a number of directory
changes for Linux) but I still have the same problem - either no WFS results
with 1.0.0 or with 'WFS Server does not support VERSION 1.1.0'

  

I don't know much (actually almost nothing) about Linux. I am contemplating
re-installing Mapserver as a stand alone (not with FGS) so there is only one
version of Apache present. Would you recommend this - or do you have any
other suggestions?

 

 

Chris

 

From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Sent: 08 July 2010 12:40
To: chris.gr...@ibstv.co.uk
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0

 

Chris,

Is your Linux version still a 5.2.1?
Note that I have tried your request locally with current MapServer version
(svn) and got expected results.

regards,


On 08/07/2010 3:06 AM, Chris Green wrote: 

Hi All

 

I have a situation that I cannot understand. For some time I have been
developing an application using OpenLayers and Mapserver, working on a
Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from
MapTools.org. The application involves a number of WFS searches for which I
have been using WFS 1.1.0 without any problems.

 

Now I am migrating to a Linux platform in order to get ready for production,
using Fedora. I downloaded the FGS Linux installer from MapTools.org and
have made the application run under this environment. However there is now a
problem with WFS . In response to a post as follows:

 

wfs:GetFeature xmlns:wfs= http://www.opengis.net/wfs
http://www.opengis.net/wfs; service=WFS version=1.1.0 maxFeatures=100
xsi:schemaLocation=
http://www.opengis.net/wfshttp:/schemas.opengis.net/wfs/1.1.0/wfs.xsd
http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd;
xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance;wfs:Query
typeName=feature:Countries_full srsName=EPSG:4326 xmlns:feature=
http://mapserver.gis.umn.edu/mapserver
http://mapserver.gis.umn.edu/mapserver;ogc:Filter xmlns:ogc=
http://www.opengis.net/ogc
http://www.opengis.net/ogc;ogc:PropertyIsEqualTo
matchCase=trueogc:PropertyNameREGION/ogc:PropertyNameogc:LiteralEur
ope/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter/wfs:Query/wfs:GetF
eature

 

I get a response of:

 

ServiceExceptionReport

xmlns= http://www.opengis.net/ogc http://www.opengis.net/ogc; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://www.opengis.net/ogchttp:/schemas.opengis.net/wms/1.1.1/OGC-exception
.xsd http://www.opengis.net/ogc
http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd;

  ServiceException

msWFSDispatch(): WFS server error. WFS Server does not support VERSION
1.1.0.

  /ServiceException

/ServiceExceptionReport

 

 

If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get
any results either. This is the case for all of the WFS searches in the
application, although they still work fine under MS4W. Can anyone help me
see what I am doing wrong? 

 

 

 

Chris

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






-- 

Assefa Yewondwossen   
Software Analyst   
 
Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/
 
Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925

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


RE: [mapserver-users] WFS Server does not support VERSION 1.1.0

2010-07-08 Thread Chris Green
Hi again Assefa

 

A correction from my ISP: now they say that the Linux installation is Fedora
Core 7. Could this be the explanation of my problem?

 

 

Chris

 

From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Sent: 08 July 2010 12:40
To: chris.gr...@ibstv.co.uk
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0

 

Chris,

Is your Linux version still a 5.2.1?
Note that I have tried your request locally with current MapServer version
(svn) and got expected results.

regards,


On 08/07/2010 3:06 AM, Chris Green wrote: 

Hi All

 

I have a situation that I cannot understand. For some time I have been
developing an application using OpenLayers and Mapserver, working on a
Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from
MapTools.org. The application involves a number of WFS searches for which I
have been using WFS 1.1.0 without any problems.

 

Now I am migrating to a Linux platform in order to get ready for production,
using Fedora. I downloaded the FGS Linux installer from MapTools.org and
have made the application run under this environment. However there is now a
problem with WFS . In response to a post as follows:

 

wfs:GetFeature xmlns:wfs= http://www.opengis.net/wfs
http://www.opengis.net/wfs; service=WFS version=1.1.0 maxFeatures=100
xsi:schemaLocation=
http://www.opengis.net/wfshttp:/schemas.opengis.net/wfs/1.1.0/wfs.xsd
http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd;
xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance;wfs:Query
typeName=feature:Countries_full srsName=EPSG:4326 xmlns:feature=
http://mapserver.gis.umn.edu/mapserver
http://mapserver.gis.umn.edu/mapserver;ogc:Filter xmlns:ogc=
http://www.opengis.net/ogc
http://www.opengis.net/ogc;ogc:PropertyIsEqualTo
matchCase=trueogc:PropertyNameREGION/ogc:PropertyNameogc:LiteralEur
ope/ogc:Literal/ogc:PropertyIsEqualTo/ogc:Filter/wfs:Query/wfs:GetF
eature

 

I get a response of:

 

ServiceExceptionReport

xmlns= http://www.opengis.net/ogc http://www.opengis.net/ogc; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://www.opengis.net/ogchttp:/schemas.opengis.net/wms/1.1.1/OGC-exception
.xsd http://www.opengis.net/ogc
http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd;

  ServiceException

msWFSDispatch(): WFS server error. WFS Server does not support VERSION
1.1.0.

  /ServiceException

/ServiceExceptionReport

 

 

If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get
any results either. This is the case for all of the WFS searches in the
application, although they still work fine under MS4W. Can anyone help me
see what I am doing wrong? 

 

 

 

Chris

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






-- 

Assefa Yewondwossen   
Software Analyst   
 
Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/
 
Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925

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


RE: [mapserver-users] WFS Server does not support VERSION 1.1.0

2010-07-08 Thread Chris Green
Daniel

You hit the nail on the head...I had blindly followed the example and
downloaded Mapserver 5.0.2. I suppose that does not support WFS version
1.1.0, which caused my problem.

It should have been simple to re-download Mapserver 5.6.3, but actually I
found that all attempts to download using:

wget http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/  
fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin

failed with a 404 page not found error. Probably caused by my embarrassing
lack of Linux knowledge - could I trouble you to guide me one more time to
solve how to download the latest file please?


Chris  


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel
Morissette
Sent: 08 July 2010 15:49
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0

Chris Green wrote:
 
 A correction from my ISP: now they say that the Linux installation is
 Fedora Core 7. Could this be the explanation of my problem?
 


Double-check the mapserv version that you are using through the Web.
Even if you installed FGS, maybe you're not using the copy of mapserv
you think you are.

Use a URL like the following:

http://your.server.com/cgi-bin/mapserv?test=1

And then do a View Source... you will see the MapServer version in the
HTML source.

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


[mapserver-users] Great Circle Rendering

2010-04-06 Thread chris
Hello list,

As a complete newcomer to WMS I’m looking to make a decision as to which
WMS is best suited for my requirements.

With this in mind I have a question on MapServer in relation to one of my
requirements.

How easy is it use mapserver for the following:

I would like to use MapServer to “serve” a simple map depicting parts of
the world and capital cities. The region to be covered would be defined as
would the required projection. On to this “background”  I would like to be
able to draw a great circle between two of the cities ‘on the fly’ and
have all visible entities (coastline, cities and Great Circle) correctly
rendered for the specified projection.

Assuming that country and city information was available in a useable
format e.g. ShapeFile  and the http request indicated the bounding region
and the two cities that need to be linked by a great circle how easy would
this be to do in MapServer?

The part that I am completely ignorant in is the rendering of the great
circle between the two sets of lat/long keeping in mind that this part
(the required pair of cities) would potentially be different for each
request.

Any indication as to how easy this is to do or how to go about doing it
would be greatly received.

Thanks

Chris

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


Re: [mapserver-users] HTML Legends - What Good Are They?

2010-02-24 Thread Chris Garrard
Bill,

I have some apps that use HTML legends and custom metadata variables.  See
http://earth.gis.usu.edu/utah/advanced.phtml for one.  The groups of data
are collapsible, and I also use metadata to figure out which ones should
have legends shown in the TOC, which ones should have links to legends, etc
(at least I think that's how I did that -- it was a while ago and I'm too
lazy at the moment to go hunt down the files).  If you're interested, I'll
take the time to find some sample files for you.

Chris

On Wed, Feb 24, 2010 at 7:41 AM, Bill Thoen bth...@gisnet.com wrote:

 I've been searching the 'net and asking questions here for the last two
 days on HTML Legends, and outside of the standard MS documentation (which
 has some very confusing bits in it for one who's unfamiliar with the way it
 works) I've not found anything relevant on this topic except my own
 questions echoed back at me from nabble and some interestingly-titled
 documents that are inaccessible because they were on the old MS website. And
 so far the forum's been silent on the issue as well.

 But I have discovered one old message hinting at clever ways to use nested
 [if] statements with custom metadata variables to make a very useful layer
 control with collapse and expand features and more. I want to learn more
 about that but I'd like to skip the time-consuming process of learning by
 trial and error.

 So can anyone point me to some documentation that goes into more detail
 about what HTML Legends can really do or direct me to one or two URLs that
 demonstrate some advanced techniques with nested [if] ...[/if] blocks and
 custom metadata variables?

 - Bill Thoen

 ___
 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] mouseover with mapserver...?

2010-02-11 Thread Chris Green
Hi Steve

 

Thanks for your comment (and also to Till Adams).

 

I would like to use OpenLayers but I have been discouraged by what seems
like erratic behaviour. I had it running successfully for a while and then
it started hanging on start up with an Apache error log message of:

 

File does not exist: C:/ms4w/apps/ka-map-1.0/htdocs/tools/kaExplorer/images,
referer: http://localhost/kamap/

 

All of the files in the images directory seem to be in place..after a while
(and without me changing anything, to my knowledge) it started running
again. Then the next time I tried Kamap it was hanging again.  Do you have
any suggestions about why it could be unstable in this way?

 

Thanks,

 

 

Chris

 

From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Sent: 10 February 2010 17:29
To: chris.gr...@ibstv.co.uk; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] mouseover with mapserver...?

 

It's kinda dependent on what client environment you're using. OpenLayers,
for example, has a hover control that you can use to do this. This site uses
that technique to provide tooltips.

 

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

 

Basically if you pause the mouse for n seconds you fire a hover event which
does a MapServer query. Watch the above site in firebug and you'll see 'em.
If the query fails (nothing of interest was found) the no tooltip is
displayed. In the example you mention is relevant to image map creation and
my guess that's not what your after. What client environment are you using?

 

Steve

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green
Sent: Wednesday, February 10, 2010 11:07 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mouseover with mapserver...?

 

Hi all

 

I am using ms4w and have managed to make a number of maps work really well.
However one thing I would really like to implement is a mouseover function
which indicates and/or highlights features without requiring a click. There
is a link to a good example of this on the Mapserver website:
http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/e
co/rsg/search/search_example.map
http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/
eco/rsg/search/search_example.mapqlayer=countymode=nquerysearchmap=true
qlayer=countymode=nquerysearchmap=true

 

It is probably my lack of web/javascript design experience but  the fact is
that I have totally failed to make any kind of  mouseover work with
mapserver. Can anyone provide the source code of something that works?

 

 

Chris

 

 

 

 

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


[mapserver-users] transparent on black for tindex layers?

2010-02-01 Thread Chris Nicholas
greetings - I was wondering if 'there are ways' to have the same
'transparent on black' performed on raster tindex layers, as is done so
well by the gdal_merge.py routine. 

gotta few thousand
reprojected images in Haiti suffering the black-triangle blues when I
make them a single layer; see 1:5000 and below on the varioous layers
at:

http://wms.cis.rit.edu/cgi-bin/mapserv.csh?map=/local2/home/cnicholas/mapfiles/haiti.mapRequest=GetCapabilities

thanks!

Chris

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


Re: [mapserver-users] WMS Client Error Handling

2009-09-16 Thread Chris Hodgson
Thanks Daniel, that seems to be working well. The biggest problem I have 
is that I need to parse the name of the layer that had the error out of 
the error-message - this works but obviously the format of the error 
message could change in the future which would break my parser. I guess 
there is potentially a lot of different things that could be involved in 
the error so having a separate field in the error object for each of 
them might be too much to ask, but a field for the layer name would 
certainly be handy for me in this case :)


Cheers,
Chris

Daniel Morissette wrote:

Chris Hodgson wrote:
I'm implementing a WMS proxy server using PHP mapscript. I'm fetching 
the capabilities programmatically and storing them in a database and 
then building a mapfile on the fly. The mapfile contains multiple 
connectiontype WMS layers, and I'd like to be able to (a) determine 
when one of the WMS client requests has failed, and (b) get the error 
message returned for each failed layer. I'm starting to think this 
may not be possible currently, and it seems that the code for doing 
anything like this has been pushed back for a while [ 
http://trac.osgeo.org/mapserver/ticket/1246 ].


Any chance that I'm wrong and there is already a way to do this? 
Anybody else interested in this feature? Anybody already done 
something like this?




Ticket 1246 is only about the *default* exception format, but using 
the wms_exceptions_format metadata you can override the default and 
request text/xml or application/vnd.ogc.se_xml exceptions (depending 
on WMS version).


Then if an exception is received MapServer will try to read the 
exception message and pass it to msSetError() with an error code of 
MS_WMSERR (24). This does not cause a fatal error and won't stop your 
script though, the message is only stored in the error stack. In 
MapScript you should be able to read the error stack (errorObj) and 
extract the error messages.


More about the errorObj at 
http://mapserver.org/trunk/en/mapscript/php/index.html#errorobj-class


I think the handling of WMS exceptions could be greatly improved, but 
you may be able to get along with this basic stuff.


Daniel


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


Re: [mapserver-users] Raster layers with partial transparency

2009-09-16 Thread Chris Hodgson
Just a guess but have you tried with transparent = 0? Just wondering if 
the transparent mode rendering is somehow overriding the RGBA alpha mode 
rendering?


Chris

Jason Beverage wrote:

Hi all,

I'm serving up some raster imagery with an alpha band that contains 
partially transparent pixels using mapscript but when the image is 
rendered, the partially transparent portions (alpha between 5 and 10) 
come through completely opaque (alpha of 255).  Areas that are fully 
opaque or fully transparent look fine. 

I'm using an output format with the GD/PNG renderer with a RGBA image 
mode and transparent set to true.  I've tried using the AGG/PNG and 
GDAL/PNG renderers with the same result.


C# code for the output format:
map.outputformat.name http://map.outputformat.name = PNG;
map.outputformat.driver = GD/PNG;
map.outputformat.mimetype = image/png;
map.outputformat.imagemode = (int)MS_IMAGEMODE.MS_IMAGEMODE_RGBA;
map.outputformat.extension = png;
map.outputformat.transparent = 1;

Any ideas on what I'm doing wrong?

Thanks,

Jason


___
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] WMS Client Error Handling

2009-09-15 Thread Chris Hodgson
I'm implementing a WMS proxy server using PHP mapscript. I'm fetching 
the capabilities programmatically and storing them in a database and 
then building a mapfile on the fly. The mapfile contains multiple 
connectiontype WMS layers, and I'd like to be able to (a) determine 
when one of the WMS client requests has failed, and (b) get the error 
message returned for each failed layer. I'm starting to think this may 
not be possible currently, and it seems that the code for doing anything 
like this has been pushed back for a while [ 
http://trac.osgeo.org/mapserver/ticket/1246 ].


Any chance that I'm wrong and there is already a way to do this? Anybody 
else interested in this feature? Anybody already done something like this?


I guess the alternatives are to either try to implement this myself in 
mapserver, or perhaps drop mapserver altogether for my proxy application 
and just do my own WMS requests and image compositing because I guess 
that is all that I am using mapserver for right now.


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


[mapserver-users] Re: MINSCALEDENOM, MAXSCALEDENOM help/tutorial?

2009-09-01 Thread Chris Kantarjiev

I've figured out my issues through trial and error (and mode=map). I'm
now wondering if there's an easy way to get the scale legend to display
the SCALEDENOM directly, rather than having to guess and/or convert
units? That would be really useful.

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


[mapserver-users] query mode, multiple selections

2009-09-01 Thread Chris Kantarjiev
I'm just starting to play with query mode and find it very useful. I have an interaction style in 
mind that would let me select and highlight several (possibly connected) links in a layer in a 
fairly interactive style (more like one would do with ArcGIS, I guess). I'm pretty sure that I won't 
be successful doing this with the basic CGI, and am overwhelmed by the number of Ajax layers that I 
might choose from.


Are there documents/pages out there that might give me some guidance about what's possible with the 
various packages?


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


Re: [mapserver-users] query mode, multiple selections

2009-09-01 Thread Chris Kantarjiev

Sure. The basic use case is:

User navigates to a particular, known, lat/lon as starting point; this can be by entering the known 
lat/lon values, or by navigation around cities.


User then selects one or more links and can inspect attributes associated with those links - in 
particular, link_id and direction. Initial selection could be by sweeping out an area, but should 
also provide a way of adding/removing specific links from the selection (control-select).


Did that makes sense?

chris

Steve Lime wrote:

You'd be surprised with what you can do with the CGI backend. It's certainly 
possible, with the right
web client (e.g. something like GeoMoose or OpenLayers) to craft queries 
against the CGI to select
one or many features from one or many layers using a point, box or arbitrary 
geometry. Perhaps if
you could sketch out a use case or two...

Steve


On 9/1/2009 at 12:49 PM, in message 4a9d5e9d.9000...@speedgauge.net, Chris

Kantarjiev c...@speedgauge.net wrote:
I'm just starting to play with query mode and find it very useful. I have an 
interaction style in 
mind that would let me select and highlight several (possibly connected) 
links in a layer in a 
fairly interactive style (more like one would do with ArcGIS, I guess). I'm 
pretty sure that I won't 
be successful doing this with the basic CGI, and am overwhelmed by the 
number of Ajax layers that I 
might choose from.


Are there documents/pages out there that might give me some guidance about 
what's possible with the 
various packages?


Thanks,
chris
___
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] MINSCALEDENOM, MAXSCALEDENOM help/tutorial?

2009-08-31 Thread Chris Kantarjiev
I've got a large map that, for various reasons, wants to have all the layers on by default. Since 
it's all the streets in the US, some of them highlighted by size, it takes a long time to draw - in 
fact, mapserver often takes too long to respond, such that apache times out.


I'm trying to use the MIN/MAXSCALEDENOM to control display. The examples are not immediately 
helpful, since they only use a single value, and don't leave me with a sense of how min or max 
applies.


For example - which of these is correct if I want the layer to only appear when the map scale is 
lower than 1:5 (that is, between 1:1 and 1:5, or rather, with very small features shown)?


  LAYER
NAME controlled-access-fc5
TYPE LINE
STATUS DEFAULT
TILEINDEX /maps/NAVTEQ/20092FC14/USstreets.shp
TILEITEM LOCATION

CLASS
  NAME Controlled Access FC5
  EXPRESSION (('[FUNC_CLASS]' eq '5') and ('[CONTRACC]' eq 'Y'))
  MAXSCALEDENOM 5
  STYLE
SYMBOL 1
SIZE 3
COLOR 0 255 0
 END
END
  END

or

  LAYER
NAME controlled-access-fc5
TYPE LINE
STATUS DEFAULT
TILEINDEX /maps/NAVTEQ/20092FC14/USstreets.shp
TILEITEM LOCATION

CLASS
  NAME Controlled Access FC5
  EXPRESSION (('[FUNC_CLASS]' eq '5') and ('[CONTRACC]' eq 'Y'))
  MINSCALEDENOM 5
  STYLE
SYMBOL 1
SIZE 3
COLOR 0 255 0
 END
END
  END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] double free when using expressions?

2009-08-27 Thread Chris Kantarjiev

I'm getting this in my log:

*** glibc detected *** double free or corruption (fasttop): 0x08140898 ***

I'm trying to use a slightly complex EXPRESSION to create a class.
When I have

CLASSITEM CONTRACC
CLASS
  NAME Controlled Access
  EXPRESSION Y

it works fine.

When I have

CLASS
  NAME Controlled Access FC1
  EXPRESSION (([FUNC_CLASS] eq 1) and ([CONTRACC] eq Y))

I get the crash.

Help? I'm using the prepackaged server from 
fgs-mapserver_5.0.2-fgs_1.0.0-linux-i386.bin

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


[mapserver-users] sample WMS raster map file and sample data

2009-06-01 Thread Chris Weed
Hi,
I am trying to set up a WMS mapserver, but I can't find a sample image
and map file to test with.
Any help would be greatly appreciated.
Thanks,
Chris
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Place names...?

2009-05-29 Thread Chris Green
Hi all

 

Apologies in advance if this turns out to be a stupid question, but I can't
find a way to make Map Server  v5.0 display place names. I have created a
shape file with points for towns and cities, each of which has a label. If I
check this layer with Quantum GIS (which I used to create the points) I can
display both the points and the labels showing town and city names. However
when I define this layer in the mapfile with type 'point' MapServer gives me
a display of the points but not the labels.  If I define it as type
'annotation' I don't see either points or labels. I feel sure I am missing
something obvious but after quite a few hours I am stuck.  Can anyone
suggest what I am doing wrong?

 

 

Chris Green

 

 

 

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


[mapserver-users] MapServer Demo

2009-05-26 Thread Chris Green
Hi All

 

I have a problem that I can see has been experienced by others, but the
advice given to those others does not fix my problem. I have successfully
installed Map Server and Apache onto winXP using ms4W, and downloaded the
Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I
have modified the index.html file and Itasca.map files in what seems to be a
logical way. 

 

My problem is that when I launch the application I get the error message:
msSaveImageGD(): Unable to access file. Unable to open file
/C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing. It seems that
this is related to the way that I modified the index.html file, which I did
as follows:

 

  var snippet = IMAGEPATH '/C:/ms4w/tmp/ms_tmp/';

snippet +=  IMAGEURL '/ms-tmp/';

 

I have been tearing my hair out for a few hours trying to see what I have
done wrong. Anyone got any suggestions please?

 

 

Chris Green 

 

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


RE: [mapserver-users] MapServer Demo

2009-05-26 Thread Chris Green
David

 

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

 

Chris 

 

From: Fawcett, David [mailto:david.fawc...@state.mn.us] 
Sent: Tuesday, May 26, 2009 7:43 PM
To: chris.gr...@ibstv.co.uk; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] MapServer Demo

 

Chris, 

 

Try snippet +=  IMAGEURL '/tmp/'

 

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Green
Sent: Tuesday, May 26, 2009 11:56 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer Demo

Hi All

 

I have a problem that I can see has been experienced by others, but the
advice given to those others does not fix my problem. I have successfully
installed Map Server and Apache onto winXP using ms4W, and downloaded the
Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I
have modified the index.html file and Itasca.map files in what seems to be a
logical way. 

 

My problem is that when I launch the application I get the error message:
msSaveImageGD(): Unable to access file. Unable to open file
/C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing. It seems that
this is related to the way that I modified the index.html file, which I did
as follows:

 

  var snippet = IMAGEPATH '/C:/ms4w/tmp/ms_tmp/';

snippet +=  IMAGEURL '/ms-tmp/';

 

I have been tearing my hair out for a few hours trying to see what I have
done wrong. Anyone got any suggestions please?

 

 

Chris Green 

 

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


[mapserver-users] demo map set

2009-03-15 Thread Chris h
Greets:

With the migration of the site to sphinx which is really nice btw, I cant seem 
to find the demo data set to work through the tutorial. Anyone have the 
correct URL.??

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


[mapserver-users] install issues

2008-11-22 Thread Chris h
Greets:

Installing and testing mapserver with postgres intregration and I get the 
following errors when accessing the system with either one of the following 
two urls:
http://localhost/cgi-bin/mapserv?map=world.maprequest=getcapabilitiesservice=wms
or
http://localhost/cgi-bin/mapserv?map=world.mapmode=browselayers=allmode=map 

error# msLoadMap(): Unable to access file. (world.map)

The particulars are as follows:

=
following these instructions from

http://quovadis.dk/index.cgi/i_can_has_gis:2007-10-20:geo,linux,server,ubuntu

mapserver was build with the following variables:

#MapServer is now configured for

 -- Compiler Info -
  C compiler:gcc -O2 -fPIC -Wall
  C++ compiler:  g++ -O2 -fPIC -Wall
  Debug:  -DNEED_NONBLOCKING_STDERR
  Generic NINT:
  Threading support: -DUSE_THREAD

 -- Renderer Settings -
  zlib support:  -DUSE_ZLIB
  png support:
  jpeg support:
  iconv support: -DUSE_ICONV
  AGG support:   -DUSE_AGG
  AGG Freetype support:  -laggfontfreetype
  Ming(flash) support:
  PDFLib support:

 -- Data Format Drivers ---
  native tiff support:   -DUSE_TIFF
  PostGIS support:   -DUSE_POSTGIS
  Proj.4 support:-DUSE_PROJ
  EPPL7 support:
  ArcSDE support:
  OGR support:   -DUSE_OGR
  GDAL support:  -DUSE_GDAL
  GEOS support:  -DUSE_GEOS
  Oracle Spatial support:
  FastCGI support:

 -- OGC Services --
  WMS Server:-DUSE_WMS_SVR
  WMS Client:-DUSE_WMS_LYR
  WFS Server:-DUSE_WFS_SVR
  WFS Client:-DUSE_WMS_LYR
  WCS Server:-DUSE_WCS_SVR
  SOS Server:

 -- MapScript -
  PHP MapScript: no

Tested on localhost and it responds fine

http://localhost/cgi-bin/mapserv

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

Intgrating postgres/post-gis support I followed these instructions

http://www.duif.net/postgis/

and installed the world.shp file. Tested it with qgis and it works fine
given the necessary credentials: dbase name, user, password 

Using postgres 8.2 and postgresql.conf connection string set to

listen_address = *

pg_hba.conf is 

# Database administrative login by UNIX sockets
local   all postgres  ident sameuser

# TYPE  DATABASEUSERCIDR-ADDRESS  METHOD

# local is for Unix domain socket connections only
local   all all   ident sameuser
---

The sample mapfile reads

---
map
  size 500  250
  imagetype png
  imagecolor 0 0 255
  extent -180 -90 180 90

  projection
init=epsg:4326
  end

  debug on

  web
imagepath /tmp/
imageurl /tmp/
TEMPLATE empty.html
metadata
  wms_title WORLD
  wms_srs EPSG:4326
end
  end

  outputformat
name png256
driver GD/PNG
imagemode pc256
extension png
  end
  outputformat
name png
driver GD/PNG
imagemode rgba
extension png
mimetype image/png
imagemode RGBA
  end
  outputformat
name jpg
driver GD/JPEG
extension jpg
formatoption QUALITY=85
  end

  layer
name 'world'
metadata
  wms_title postgis world
  wms_srs   epsg:4326
end
status default
template dummy
connectiontype postgis
connection host=localhost dbname= password= user=
data 'the_geom from mygisdb using unique gid using srid=4326'
type polygon
class
  color 255 0 0
  outlinecolor 192 192 192
end
  end

end 
eof


Now when I access the system by means of the following URL's I get the 
respective errors:
http://localhost/cgi-bin/mapserv?map=world.maprequest=getcapabilitiesservice=wms
or
http://localhost/cgi-bin/mapserv?map=world.mapmode=browselayers=allmode=map 

msLoadMap(): Unable to access file. (world.map)

Im not sure but I think this is a postgres permission issue or something along 
those line. 

Any ideas? 

Best regards and thanks for any insights. 


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


Re: [mapserver-users] install issues

2008-11-22 Thread Chris h
On Saturday 22 November 2008 16:58:32 you wrote:

 Try providing the full path to the map file.  Something like

 http://localhost/cgi-bin/mapserv?map=/opt/maps/world.mapmode=browselayers
=allmode=map

Apologies in advance as total nube at this. The map exists in the postgesql db 
and the mapfile makes a call to that db to render it via mapserver processes. 
At least that's how I understand the references sited and followed. 

The shapefile download was processed into a .sgl file and loaded into the 
spatially enabled db. The mapfile presented is supposed to make a call to 
that db. Perhaps Im missing something as I see no significant errors in the 
postgresql logs. The processes dont seem to be talking to each other. 

Many thanks for your comments however. 

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


[mapserver-users] UTF-8 + SDE + GetfeatureInfo

2008-11-20 Thread Chris Whitteker

Hey everyone,

We're having a bit of a problem performing getfeatureinfo queries with 
mapserver.  The french characters are coming out of the database as ISO-8859-1 
instead of UTF-8.  The database and servers are configured as UTF 8, the map 
files and the query templates too.  Actually text/plain also has problems so 
it's not the templates.  We're trying to encode everything as UTF 8 so me 
specificying ISO-8859-1 in the meta tag of the html query template doesn't work.
GetFeatureInfo results:

Layer 'SoilOrder'
  Feature 10894: 
OBJECTID = '10894'
SLC_SOIL_ORDER_V31_22_ID = '81600931'
SOIL_ORDER_NAME_EN = 'Chernozemic'
SOIL_ORDER_NAME_FR = 'Chernoz�mique' - error is here in my browser.
SOIL_ORDER_PCNT = '84'
SHAPE = 'shape'
Any idea if there are outstanding problems here with SDE and mapserver not 
playing nice with this?  We're beating our heads against the wall thinking 
about what config we could have missed.

Oh - labels with french are fine, and so are legends; it's only the 
getfeatureinfo queries that have troubles.

Cheers,

Chris Whitteker

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-04-14 Thread Chris King
 
Thanks for the reply, I did notice the geometry_columns table was missing
and at first when I added it, I got SQL errors, but after a few tweaks, I no
longer get the errors when I have a geometry_columns table in my database. I
narrowed the error down to the layer.open() command, and found where the
error occurs in the source code of the sql server plugin dll. For some
reason it cannot locate the geometry column in either the table itself or
the geometry_columns table, even though both are specified as 'the_geom'.
I'm looking into the security now, I did notice that I could not set the
owner of the geometry_columns table... CREATE TABLE geometry_columns OWNER
TO owner, SQL isn't liking the 'OWNER' part... Otherwise I'll have another
look at the webserver permissions, but those have never been a problem... 
At a bit of a loss here and running out of ideas...
Thanks
Chris

-Original Message-
From: Brent Wood [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2008 10:49 PM
To: Chris King
Subject: Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008


--- Chris King [EMAIL PROTECTED] wrote:

 Hi
 
 I manually imported my data from postgre into SQL 2008 and the map 
 displays fine. I am now executing a the layer.queryByPoint () command 
 followed by the
 layer.getResults() command at which point the program fails and gives 
 the following error:
 
 msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: 
 tried to find the geometry column in the results from the database, 
 but couldnt find it.  Is it miss-capitialized? 'the_geom'
 
 I know when you create the tables in the postgre database you 
 explicitly add the geometry column after the table creation


I'm guessing here, never having used SQL Server

This is like it is with PostGIS because PostGIS is not fully integrated with
Postgres, but a third party addon. In SQL Sever 2008 I would assume you'd
use alter table add ... to add a new geometry column, like you do for any
other native datatype.

Assuming MS actually followed someone else's standard for a change, your
database should have a geometry_columns table with the metadata of your
geometry column  its table there. See if that all seems OK first. My guess
is that mapserver will be reading some info about the geometry from there...


So your first check should be that the geometry column exists in both the
table you created  the geometry_columns table.

Other than that, I can only think of a permissions problem somewhere? Is the
web server user running the mapserver cgi able to access the SQL db/table
OK??

Someone who has more SQL Server expertise will have to advise any further
:-)


HTH,

  Brent Wood

 
 ie: SELECT 
 AddGeometryColumn('','ct_main_points','the_geom','-1','POINT',2);
 
 when I tried this in SQL 2008 the function was not recognized and I 
 cannot find the SQL equivalent function. So I simply added the 
 geometry column when I created the table, now I have a feeling that is 
 what is causing this error.
 
 If anyone has seen this error or knows of the AddGeometryColumn SQL 
 2008 equivalent function, please could you let me know.
 
 Thanks
 Chris
 
 ___
 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 and Microsoft SQL Server 2008

2008-04-08 Thread Chris King
I thought I'd share my results of my past few weeks work on resolving my 
problem with the location of the plugin dll I was looking for.


I found the dll in a product at http://www.mapdotnet.com (simply installed 
the demo and copied the dll then uninstalled)


And I have just finished importing all my map data in SQL 2008. I reserved 
the road data for last and noticed a significant decrease in performance as 
I switched between postgre and sql 2008. And average of 1 or 2 seconds 
slower than postgre with a max of about 5 or 6 seconds where lots of detail 
is being displayed on the map.


Anyway, as much as I wana tell Bill his program stinks, we will lose the 
competition if I do ;) so I'm forced to stick with SQL 08 and look for ways 
to improve performance. (Any links will be greatly appreciated)


Cheers
Chris 


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