[mapserver-users] Mapserver seem change the line size in raster dataset

2017-01-10 Thread Andrea Peri
Hi, I have a raster dataset to publish on internet using mapserver wms.
This dataset is a rasterization of some thematic datasets.

After publish it, I notice a difference between the map returned from
mapserver and reproduced on qgis and the map reproduced using qgis
accessing directly the same raster.

I try any setting I know on mapserver but without be able to obtain
the same image.

To show the diffrence I capture the screenshot of both as visible on qgis:

This is the sample of the raster on qgis retrieve from mapserver wms:
https://www.dropbox.com/s/464cg3c91b5twpz/from-mapserver-scale80.gif?dl=0

This instead is the sample of the raster on qgis retrieve directly
from the raster accessed directly from qgis.
https://www.dropbox.com/s/ai9p3ntnkcmp9zt/from-qgis-scale80.gif?dl=0

The colors are the same, the difference is in the lines. That qgis
desktop version has the lines more defined instead the mapserver
version has lines reduced.

Any hint is welcome,
Thx


-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Basques, Bob (CI-StPaul)
Hi Jukka,

Yeah, I was just reading up on WFS stuff when this came in.

Actually, we’re all set up with WFS already, we set up both WMS and WFS by 
default, but the WMS is a more generic config that encompasses all our layers, 
where the WFS config, are set up per layer.  Just a little bit more painful to 
do.

Most of this question is just me trying to do things the hard way.  While the 
WFS configuration isn’t as generic, maybe that’s not as bad as I’m thinking it 
might be.

bobb

On Jan 10, 2017, at 11:29 AM, Rahkonen Jukka (MML) 
>
 wrote:

I would activate WFS and send DescribeFeatureType for reading the schema. No 
need to support other WFS request. All you need is less than ten new metadata 
lines in your mapfile and you can make Mapserver to publish both the column 
names and their data types.

-Jukka Rahkonen-

Lähettäjä: Basques, Bob (CI-StPaul)
Lähetetty: ‎10.‎1.‎2017 19:11
Vastaanottaja: Jeff McKenna
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

Hi Jeff,

PHP = Yucky!!

I was trying to go the route of all OGC calls.  The idea is to possibly expand 
on the options for configuring GeoMOOSE, where you would be able to configure a 
filtering process on a layer by layer basis.  I know I can make it all work by 
hardcoding things.  It’s just that the data is variable from the database (as 
it should be) and I wanted to be able to populate the distinct list upon query 
vs hardcoding it.

The SLD path might be the best “OGC” based approach, but it end up as a two 
stage query this way.  I’m still investigating things.  Maybe I should just 
hardcode for the first pass and try some different approaches after the fact.  
Hmm, a thought, I could use a Template populated from a SQL call for the list, 
but it’s not OGC anymore . . .

I have many potential uses for this on a layer by layer basis.

Thanks for the response.

bobb


On Jan 10, 2017, at 10:50 AM, Jeff McKenna 
> wrote:

Hi Bob,

I personally think you are over-complicating this: if you have full access to 
the PG instance, it's easiest to have your form submit a short PHP script 
(mapscript isn't even needed) that executes a "pg_query" returning your 
distinct column names.

That's the easiest way.

If you must stick with WMS etc, you could use a mapscript wrapper to capture 
something like a GetFeatureInfo request (that lists all attributes) and 
populate your form (see wrapper doc http://mapserver.org/ogc/mapscript.html).

But if this was me I would create a short pg_query script.

-jeff


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



On 2017-01-10 11:52 AM, Basques, Bob (CI-StPaul) wrote:
All,

Anyone have an example of how to set up a postgres call in mapfile that
is used to output a GetCapabilities attribute listing?  I think I said
that correctly.  :c)

I have a layer set up as a WMS service from Postgres, I want to provide
a GetCapabilities result for a “select distinct column” call to populate
a layering filtering form.  Is this even a WMS thing?

I anticipate that this particular set of unqiue values will be added to
over time in the database and thus without my knowing it.  I think I
could generate a SLD on the fly with the list as a call result, but that
seems overly complicated for some reason.

Maybe this is a DescribeLayer function??  Or do I need to move to a WFS
service?

Thanks

bobb










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



"Not everything that can be counted counts, and not everything that counts can 
be counted."
- Albert Einstein






"Give me chastity and continence, but not yet."
- Saint Augustine



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

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Jeff McKenna

Apologies for spelling your name wrong Jukka, darn.

-jeff



On 2017-01-10 1:41 PM, Jeff McKenna wrote:

On 2017-01-10 1:29 PM, Rahkonen Jukka (MML) wrote:

I would activate WFS and send DescribeFeatureType for reading the
schema. No need to support other WFS request. All you need is less than
ten new metadata lines in your mapfile and you can make Mapserver to
publish both the column names and their data types.



Good point Yukka.  Then use JavaScript or whatever your lang preference
is) to parse those WFS results and populate your form.  This is similar
to the WMS/GetFeatureInfo way.

Example WFS request:
http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS=1.0.0=DescribeFeatureType=cities


-jeff




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

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Jeff McKenna

On 2017-01-10 1:29 PM, Rahkonen Jukka (MML) wrote:

I would activate WFS and send DescribeFeatureType for reading the
schema. No need to support other WFS request. All you need is less than
ten new metadata lines in your mapfile and you can make Mapserver to
publish both the column names and their data types.



Good point Yukka.  Then use JavaScript or whatever your lang preference 
is) to parse those WFS results and populate your form.  This is similar 
to the WMS/GetFeatureInfo way.


Example WFS request: 
http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS=1.0.0=DescribeFeatureType=cities


-jeff




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




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

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Rahkonen Jukka (MML)
I would activate WFS and send DescribeFeatureType for reading the schema. No 
need to support other WFS request. All you need is less than ten new metadata 
lines in your mapfile and you can make Mapserver to publish both the column 
names and their data types.

-Jukka Rahkonen-

Lähettäjä: Basques, Bob (CI-StPaul)
Lähetetty: ‎10.‎1.‎2017 19:11
Vastaanottaja: Jeff McKenna
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

Hi Jeff,

PHP = Yucky!!

I was trying to go the route of all OGC calls.  The idea is to possibly expand 
on the options for configuring GeoMOOSE, where you would be able to configure a 
filtering process on a layer by layer basis.  I know I can make it all work by 
hardcoding things.  It’s just that the data is variable from the database (as 
it should be) and I wanted to be able to populate the distinct list upon query 
vs hardcoding it.

The SLD path might be the best “OGC” based approach, but it end up as a two 
stage query this way.  I’m still investigating things.  Maybe I should just 
hardcode for the first pass and try some different approaches after the fact.  
Hmm, a thought, I could use a Template populated from a SQL call for the list, 
but it’s not OGC anymore . . .

I have many potential uses for this on a layer by layer basis.

Thanks for the response.

bobb


On Jan 10, 2017, at 10:50 AM, Jeff McKenna 
> wrote:

Hi Bob,

I personally think you are over-complicating this: if you have full access to 
the PG instance, it's easiest to have your form submit a short PHP script 
(mapscript isn't even needed) that executes a "pg_query" returning your 
distinct column names.

That's the easiest way.

If you must stick with WMS etc, you could use a mapscript wrapper to capture 
something like a GetFeatureInfo request (that lists all attributes) and 
populate your form (see wrapper doc http://mapserver.org/ogc/mapscript.html).

But if this was me I would create a short pg_query script.

-jeff


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



On 2017-01-10 11:52 AM, Basques, Bob (CI-StPaul) wrote:
All,

Anyone have an example of how to set up a postgres call in mapfile that
is used to output a GetCapabilities attribute listing?  I think I said
that correctly.  :c)

I have a layer set up as a WMS service from Postgres, I want to provide
a GetCapabilities result for a “select distinct column” call to populate
a layering filtering form.  Is this even a WMS thing?

I anticipate that this particular set of unqiue values will be added to
over time in the database and thus without my knowing it.  I think I
could generate a SLD on the fly with the list as a call result, but that
seems overly complicated for some reason.

Maybe this is a DescribeLayer function??  Or do I need to move to a WFS
service?

Thanks

bobb










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



"Not everything that can be counted counts, and not everything that counts can 
be counted."
- Albert Einstein



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

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Jeff McKenna
You could also generate a GetFeatureInfo call and parse the 
attributes/columns returned with JavaScript or some JavaScript framework 
I imagine.


Anyway yes it sounds like you know the way forward.

-jeff



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



On 2017-01-10 1:11 PM, Basques, Bob (CI-StPaul) wrote:

Hi Jeff,

PHP = Yucky!!

I was trying to go the route of all OGC calls.  The idea is to possibly
expand on the options for configuring GeoMOOSE, where you would be able
to configure a filtering process on a layer by layer basis.  I know I
can make it all work by hardcoding things.  It’s just that the data is
variable from the database (as it should be) and I wanted to be able to
populate the distinct list upon query vs hardcoding it.

The SLD path might be the best “OGC” based approach, but it end up as a
two stage query this way.  I’m still investigating things.  Maybe I
should just hardcode for the first pass and try some different
approaches after the fact.  Hmm, a thought, I could use a Template
populated from a SQL call for the list, but it’s not OGC anymore . . .

I have many potential uses for this on a layer by layer basis.

Thanks for the response.

bobb



On Jan 10, 2017, at 10:50 AM, Jeff McKenna
>
wrote:

Hi Bob,

I personally think you are over-complicating this: if you have full
access to the PG instance, it's easiest to have your form submit a
short PHP script (mapscript isn't even needed) that executes a
"pg_query" returning your distinct column names.

That's the easiest way.

If you must stick with WMS etc, you could use a mapscript wrapper to
capture something like a GetFeatureInfo request (that lists all
attributes) and populate your form (see wrapper doc
http://mapserver.org/ogc/mapscript.html).

But if this was me I would create a short pg_query script.

-jeff


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



On 2017-01-10 11:52 AM, Basques, Bob (CI-StPaul) wrote:

All,

Anyone have an example of how to set up a postgres call in mapfile that
is used to output a GetCapabilities attribute listing?  I think I said
that correctly.  :c)

I have a layer set up as a WMS service from Postgres, I want to provide
a GetCapabilities result for a “select distinct column” call to populate
a layering filtering form.  Is this even a WMS thing?

I anticipate that this particular set of unqiue values will be added to
over time in the database and thus without my knowing it.  I think I
could generate a SLD on the fly with the list as a call result, but that
seems overly complicated for some reason.

Maybe this is a DescribeLayer function??  Or do I need to move to a WFS
service?

Thanks

bobb
















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

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Basques, Bob (CI-StPaul)
Hi Jeff,

PHP = Yucky!!

I was trying to go the route of all OGC calls.  The idea is to possibly expand 
on the options for configuring GeoMOOSE, where you would be able to configure a 
filtering process on a layer by layer basis.  I know I can make it all work by 
hardcoding things.  It’s just that the data is variable from the database (as 
it should be) and I wanted to be able to populate the distinct list upon query 
vs hardcoding it.

The SLD path might be the best “OGC” based approach, but it end up as a two 
stage query this way.  I’m still investigating things.  Maybe I should just 
hardcode for the first pass and try some different approaches after the fact.  
Hmm, a thought, I could use a Template populated from a SQL call for the list, 
but it’s not OGC anymore . . .

I have many potential uses for this on a layer by layer basis.

Thanks for the response.

bobb


On Jan 10, 2017, at 10:50 AM, Jeff McKenna 
> wrote:

Hi Bob,

I personally think you are over-complicating this: if you have full access to 
the PG instance, it's easiest to have your form submit a short PHP script 
(mapscript isn't even needed) that executes a "pg_query" returning your 
distinct column names.

That's the easiest way.

If you must stick with WMS etc, you could use a mapscript wrapper to capture 
something like a GetFeatureInfo request (that lists all attributes) and 
populate your form (see wrapper doc http://mapserver.org/ogc/mapscript.html).

But if this was me I would create a short pg_query script.

-jeff


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



On 2017-01-10 11:52 AM, Basques, Bob (CI-StPaul) wrote:
All,

Anyone have an example of how to set up a postgres call in mapfile that
is used to output a GetCapabilities attribute listing?  I think I said
that correctly.  :c)

I have a layer set up as a WMS service from Postgres, I want to provide
a GetCapabilities result for a “select distinct column” call to populate
a layering filtering form.  Is this even a WMS thing?

I anticipate that this particular set of unqiue values will be added to
over time in the database and thus without my knowing it.  I think I
could generate a SLD on the fly with the list as a call result, but that
seems overly complicated for some reason.

Maybe this is a DescribeLayer function??  Or do I need to move to a WFS
service?

Thanks

bobb










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



"Not everything that can be counted counts, and not everything that counts can 
be counted."
- Albert Einstein



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

Re: [mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Jeff McKenna

Hi Bob,

I personally think you are over-complicating this: if you have full 
access to the PG instance, it's easiest to have your form submit a short 
PHP script (mapscript isn't even needed) that executes a "pg_query" 
returning your distinct column names.


That's the easiest way.

If you must stick with WMS etc, you could use a mapscript wrapper to 
capture something like a GetFeatureInfo request (that lists all 
attributes) and populate your form (see wrapper doc 
http://mapserver.org/ogc/mapscript.html).


But if this was me I would create a short pg_query script.

-jeff


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



On 2017-01-10 11:52 AM, Basques, Bob (CI-StPaul) wrote:

All,

Anyone have an example of how to set up a postgres call in mapfile that
is used to output a GetCapabilities attribute listing?  I think I said
that correctly.  :c)

I have a layer set up as a WMS service from Postgres, I want to provide
a GetCapabilities result for a “select distinct column” call to populate
a layering filtering form.  Is this even a WMS thing?

I anticipate that this particular set of unqiue values will be added to
over time in the database and thus without my knowing it.  I think I
could generate a SLD on the fly with the list as a call result, but that
seems overly complicated for some reason.

Maybe this is a DescribeLayer function??  Or do I need to move to a WFS
service?

Thanks

bobb











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

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Leehan
jratike80 wrote
> Hi,
> 
> Have a look at the access.log and check what request QGIS has sent. And
> even 10.210.1.32 does not seem to be open to internet it is not a good
> habit to reveal your passwords in mailing lists. I suggest to change that
> password everywhere you are using it.
> 
> Another thing to check is if the "wms_onlineresource" is correct for just
> this mapfile. QGIS is using the advertised URL for GetMaps if you do not
> select "Ignore GetMap/GetTile URI reported in capabilities". Is this your
> current mapfile or the one that you copied?
> 
> http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map
> 
> -Jukka Rahkonen-

When it failed with my complete mapfile, I just created and tested the
mapfile I have pasted here. So this one is not my current mapfile. And in
both cases, the error is the same :P
In my complete mapfile, all works fine (layers from postgis and request
enabled) but this layer doesn't.

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





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807p5302824.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Postgres call 2 GetCapabilities attribute listing.

2017-01-10 Thread Basques, Bob (CI-StPaul)
All,

Anyone have an example of how to set up a postgres call in mapfile that is used 
to output a GetCapabilities attribute listing?  I think I said that correctly.  
:c)

I have a layer set up as a WMS service from Postgres, I want to provide a 
GetCapabilities result for a “select distinct column” call to populate a 
layering filtering form.  Is this even a WMS thing?

I anticipate that this particular set of unqiue values will be added to over 
time in the database and thus without my knowing it.  I think I could generate 
a SLD on the fly with the list as a call result, but that seems overly 
complicated for some reason.

Maybe this is a DescribeLayer function??  Or do I need to move to a WFS service?

Thanks

bobb







"It's kind of fun to do the impossible."
- Walt Disney



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

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Jeff McKenna

On 2017-01-10 11:25 AM, Leehan wrote:


I have a correct image in Firefox. But in QGIS I can't get anything, it says


For issues with QGIS and WMS layers, the first thing I do is get the 
exact request used by QGIS, and then examine that request (you can see a 
similar response by me on this in the archives, with specific steps to 
debug with QGIS: 
https://lists.osgeo.org/pipermail/mapserver-users/2016-September/079316.html).


-jeff


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







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

Re: [mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Rahkonen Jukka (MML)
Hi,

Have a look at the access.log and check what request QGIS has sent. And even 
10.210.1.32 does not seem to be open to internet it is not a good habit to 
reveal your passwords in mailing lists. I suggest to change that password 
everywhere you are using it.

Another thing to check is if the "wms_onlineresource" is correct for just this 
mapfile. QGIS is using the advertised URL for GetMaps if you do not select 
"Ignore GetMap/GetTile URI reported in capabilities". Is this your current 
mapfile or the one that you copied?

http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map

-Jukka Rahkonen-


Leehan wrote:
[mapserver-users] wms/ows_enabe request and invalid layer and Qgis

Hi,

Here's my map file :

MAP
NAME "Mapserver"
FONTSET "./fonts/fonts.txt"
OUTPUTFORMAT
NAME "png"
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
END #fin format

EXTENT 679286.0 6153539.5 679580.0 6153724.6 #xmin ymin xmax ymax
UNITS METERS
DEBUG 5
CONFIG "CPL_DEBUG" "ON"
CONFIG "PROJ_DEBUG" "ON"
CONFIG MS_ERRORFILE "C:/ms4w/errorMapFile.txt"

PROJECTION # proj de sortie
"init=epsg:2154"
END

WEB 
METADATA
"wms_title" "WMS, aide au montage des opérations"
"wms_onlineresource"
"

http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map;
"wms_enable_request" "*" #active les getcapabilities, 
getmap, getfeatureinfo, getfeature
"wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
"wms_encoding" "UTF-8"
END #fin metadata
END #end web

LAYER
NAME "prescriptions"
#STATUS ON
TYPE POLYGON
PROJECTION
"init=epsg:2154"
END #fin projection
CONNECTIONTYPE POSTGIS
CONNECTION "host=10.210.1.32 dbname=activite user=PostGIS
password=CAVIAR2016 port=5432"
DATA "geom from (select gid, geom, numope, numprescr, annee, nomope, 
ro, typope from activite.prescription) as foo using unique gid SRID=2154"
PROCESSING "CLOSE_CONNECTION=DEFER"
MAXSCALEDENOM 8
LABELITEM "numprescr"
CLASS
NAME "prescriptions"
STYLE
COLOR 200 125 0
OPACITY 50
OUTLINECOLOR 200 125 0
WIDTH 1
LINECAP round
END #end Style
LABEL
FONT "verdana"
SIZE 4
COLOR 0 0 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION auto #uc
MAXSCALEDENOM 8
TYPE truetype
END #fin label
TEMPLATE "bidon.html"   
END #fin class
METADATA
"gml_include_items" "all"
"wms_title" "prescriptions"
#"wms_srs" "EPSG:2154"
END #fin metadata prescriptions
END #fin layer prescriptions

END

I have a correct image in Firefox. But in QGIS I can't get anything, it says
: 


msWMSLoadGetMapParams(): WMS server error. Invalid 
layer(s) given in the LAYERS parameter. A layer might be disabled for this 
request. Check wms/ows_enable_request settings.

Layer name is right. 
Besides this layer is just a copy of another one working perfectly, with the 
request available ! So I can't figure out the reason why I can't display this 
layer.
Any idea ?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] wms/ows_enabe request and invalid layer and Qgis

2017-01-10 Thread Leehan
Hi,

Here's my map file :

MAP
NAME "Mapserver"
FONTSET "./fonts/fonts.txt"
OUTPUTFORMAT
NAME "png"
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
END #fin format

EXTENT 679286.0 6153539.5 679580.0 6153724.6 #xmin ymin xmax ymax
UNITS METERS
DEBUG 5
CONFIG "CPL_DEBUG" "ON"
CONFIG "PROJ_DEBUG" "ON"
CONFIG MS_ERRORFILE "C:/ms4w/errorMapFile.txt"

PROJECTION # proj de sortie
"init=epsg:2154"
END

WEB 
METADATA
"wms_title" "WMS, aide au montage des opérations"
"wms_onlineresource"
"http://127.0.0.1:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/prescr_test.map;
"wms_enable_request" "*" #active les getcapabilities, 
getmap,
getfeatureinfo, getfeature
"wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
"wms_encoding" "UTF-8"
END #fin metadata
END #end web

LAYER
NAME "prescriptions"
#STATUS ON
TYPE POLYGON
PROJECTION
"init=epsg:2154"
END #fin projection
CONNECTIONTYPE POSTGIS
CONNECTION "host=10.210.1.32 dbname=activite user=PostGIS
password=CAVIAR2016 port=5432"
DATA "geom from (select gid, geom, numope, numprescr, annee, nomope, ro,
typope from activite.prescription) as foo using unique gid SRID=2154"
PROCESSING "CLOSE_CONNECTION=DEFER"
MAXSCALEDENOM 8
LABELITEM "numprescr"
CLASS
NAME "prescriptions"
STYLE
COLOR 200 125 0
OPACITY 50
OUTLINECOLOR 200 125 0
WIDTH 1
LINECAP round
END #end Style
LABEL
FONT "verdana"
SIZE 4
COLOR 0 0 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION auto #uc
MAXSCALEDENOM 8
TYPE truetype
END #fin label
TEMPLATE "bidon.html"   
END #fin class
METADATA
"gml_include_items" "all"
"wms_title" "prescriptions"
#"wms_srs" "EPSG:2154"
END #fin metadata prescriptions
END #fin layer prescriptions

END

I have a correct image in Firefox. But in QGIS I can't get anything, it says
: 


msWMSLoadGetMapParams(): WMS server error. Invalid 
layer(s) given in the
LAYERS parameter. A layer might be disabled for this request. Check
wms/ows_enable_request settings.

Layer name is right. 
Besides this layer is just a copy of another one working perfectly, with the
request available ! So I can't figure out the reason why I can't display
this layer.
Any idea ?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/wms-ows-enabe-request-and-invalid-layer-and-Qgis-tp5302807.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Oblique aerial images with mapserver?

2017-01-10 Thread lfilak

Hi Lowell,

thank you for your response.

< For the oblique images, we use the ground footprint layer to
populate a DB table with the four corners of each image and a
calculated center for each shot. That table is used as a match against
the center of the current map extent to locate the oblique that is the
"closet" as a view starting point.
OK so far... could be done in a lot of ways.



Ben,
We use PerlMagick for the image manipulation but there are plenty of 
ways to access the ImageMagick tools.
The trouble with creating a WMS service of the oblique is that the image 
needs to be warped to fit into the orthogonal map view or the map needs 
to be warped to fit into the oblique view. What we experienced, is that 
warping the cadastral data to the oblique has the best end result. 
Otherwise, you loose the clarity in the oblique and it is slow.
Perhaps if a projection string for each tile was generated and saved in 
the DB table, the projection could be used for the layer when rendering 
a map image instead of the basic image type of re-projection being done 
via ImageMagick.?


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

Re: [mapserver-users] WMS T time series data support

2017-01-10 Thread Schepers, Benjamin
Hi Sushrut,

yes this should be possible.

Here are general information:
http://mapserver.org/ogc/wms_time.html

Build index with time-information for your needs (also works for wms):
http://mapserver.org/ogc/wcs_server.html#building-spatio-temporal-tile-indexes


è This is a index-shapefile including a BBOX of every tif-file, the tif-path 
within the filesystem and another column with the date of the specific file. 
The date-field needs to be created/filled manually…

I just thought of writing a python script (extending “gdaltindex” 
commandline-utility), which reads the date from tif-metadata 
('TIFFTAG_DATETIME' ) and writes it to the index-shape.


Regards
Ben

Mit freundlichen Grüßen
Im Auftrag

Benjamin Schepers


Luftbild und Geoinformationssysteme
Kronprinzenstraße 6
45128 Essen
Fon: +49 201 2069-232
Fax: +49 201 2069-369
schep...@rvr-online.de

[cid:image001.jpg@01D26B4F.354A0EC0]

Die Regionaldirektorin
Kronprinzenstraße 35
45128 Essen
Zentrale: +49 (0) 201 2069-0
Fax: +49 (0) 201 2069-500
www.metropoleruhr.de

Postfach 10 32 64
45032 Essen

Steuernummer: RVR 112/5797/0116
USt.-ldNr.: DE 173867500

Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte Informationen 
enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie 
diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind nicht 
gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im 
Auftrag von Sushrut Shivaswamy
Gesendet: Dienstag, 10. Januar 2017 14:34
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] WMS T time series data support

Hey,

I'm trying to visualise my time series data set using map server.
I have a series of files with file names in the format 
{coveragename}_{timestamp}.tif.

I need to query a single layer composed of the data from all these files and
see the data by varying the TIME parameter in my GetMap request.

GeoServer provides a tutorial on how to setup an Image Mosaic as time series 
layer.

Is there way to get the same effect in MapServer.

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

[mapserver-users] WMS T time series data support

2017-01-10 Thread Sushrut Shivaswamy
Hey,

I'm trying to visualise my time series data set using map server.
I have a series of files with file names in the format
* {coveragename}_{timestamp}.tif*.

I need to query a single layer composed of the data from all these files and
see the data by varying the TIME parameter in my GetMap request.

GeoServer provides a tutorial on how to setup an Image Mosaic as time
series layer.

Is there way to get the same effect in MapServer.

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

Re: [mapserver-users] mapserver-users Digest, Vol 108, Issue 12

2017-01-10 Thread Schepers, Benjamin
Hi Lowell,

thank you for your response.

< For the oblique images, we use the ground footprint layer to populate a DB 
table with the four corners of each image and a calculated center for each 
shot. That table is used as a match against the center of the current map 
extent to locate the oblique that is the "closet" as a view starting point.
OK so far... could be done in a lot of ways.

 Date: Mon, 9 Jan 2017 06:37:44 +
> From: "Schepers, Benjamin" 
> To: "'mapserver-users@lists.osgeo.org'"
>   
> Subject: [mapserver-users] Oblique aerial images with mapserver?
> Message-ID:
>   <7088A26751CB34409B159B4237D510A87C878D7C@W2K8-EXDB02.VERBAND.LOCAL>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi list,
> 
> are there any suggestions or concepts out there to serve oblique 
> aerial images with mapserver / opensource-software?
> The oblique images are not mosaicked and are just indirectly 
> georeferenced. There do exist ground-footprints as shape with path to 
> each file - comparable to a tileindex.
> 
> One way I thought of, could be mosaicking each direction (N-E-S-W) and 
> add them as separate layers to the service... (I know the results look 
> a bit strange and I also don't know such software for mosaicking - 
> Google's/Bing's secret? Are there any open solutions for that?) 
> Another idea could be to use a "special tileindex mode" for each 
> direction, where just the most matching oblique will be rendered from 
> footprint-tileindex.
> Would you suggest a real 3D-solution? How to serve that?
> 
> Any more hints are welcome :)
> ... and a happy new year!
> 
> Regards
> Ben

Ben,
For the oblique images, we use the ground footprint layer to populate a DB 
table with the four corners of each image and a calculated center for each 
shot. That table is used as a match against the center of the current map 
extent to locate the oblique that is the "closet" as a view starting point.
We then use Imagemagick for three different operations to merge the oblique and 
the map image. Rotate the current map image to match the orientation of the 
oblique image. Distort (-disort Perspective) to stretch the map image to match 
the perspective of the oblique. Composite to merge the map image and oblique 
into a single image.
The navigation is not fancy, there are pan arrows provided to allow the user to 
move to the next oblique to the N,S,E,W of the current oblique and a compass 
rose to allow the user to change the oblique perspective N,S,E,W. With the pan 
arrows and compass rotated to match whatever perspective is being viewed.
We have yet to investigate the methods used in Birds-eye to see how that works. 
We expect that the plugin provided by the oblique vendor is being used.
Hope that helps.

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