[mapserver-users] wfs_allowed_ip_list/wfs_denied_ip_list is still working ?

2016-11-01 Thread Andrea Peri
Hi,
Is the wfs_allowed/denied_ip_list still working in the last mapserver
dev version ?

I try to set the "allowed" to an nexistent ip to test a reject
request, but instead I' having a getfeature response.

Before to open a ticket, I like to have a confirm of this.
Thx.

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

Re: [mapserver-users] msOGRFileOpen

2016-11-01 Thread Eichner, Andreas - SID
From http://www.gdal.org/drv_mssqlspatial.html and the linked page about ODBC 
driver connection string 
(http://msdn.microsoft.com/en-us/library/ms130822.aspx) it seems you need to 
use "UID" and "PWD" instead of "username" and "password"

HTH

> -Ursprüngliche Nachricht-
> Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im
> Auftrag von Vogt, Robert (RCIS)
> Gesendet: Dienstag, 1. November 2016 14:36
> An: mapserver-users@lists.osgeo.org
> Betreff: [mapserver-users] msOGRFileOpen
> 
> Good morning,
> 
> I have successfully tested my connection string with "ogrinfo", now
> however when I try to use that connection string in my MapFile
> I receive this error...
> 
> msDrawMap(): Image handling error. Failed to draw layer named 'myLayer'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
> `myLayer'. Unable to initialize connection to the server for
> MSSQL:Database=mydatabase;Server=myServer;user=myUser;password=XXX
>  SQL Server Driver][SQL
> Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
> 
> Any help is greatly appreciated!!
> 
> ___
> 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] arcgis 10.3 enterprise geodatabase

2016-11-01 Thread Wingfield, Nathaniel D
Can MapServer consume spatial data from an ArcGIS 10.3 enterprise geodatabase? 
We are using the default SDE.ST_GEOMETRY type, on Oracle. The MapServer docs 
indicate that any support for ESRI enterprise geodatabases is based on ArcSDE, 
which was abandoned by ESRI at version 10.3, in favor of direct connect 
(https://blogs.esri.com/esri/supportcenter/2015/02/11/where-is-the-install-for-arcsde-10-3/).

We will likely use OpenLayers for a new web-based mapping app, so MapServer 
seems like a natural choice (otherwise we will have to use ArcGIS Server).
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] ogrinfo not recognized

2016-11-01 Thread Vogt, Robert (RCIS)
Thanks Andreas, that worked...I knew that but it had been awhile since I used 
powershell, thanks for the nudge in the right direction.

-Original Message-
From: Eichner, Andreas - SID [mailto:andreas.eich...@sid.sachsen.de] 
Sent: Tuesday, November 01, 2016 4:49 AM
To: Vogt, Robert (RCIS); mapserver-users@lists.osgeo.org
Subject: AW: [mapserver-users] ogrinfo not recognized

PowerShell does not execute programs from untrusted sources so you need to use 
".\ogrinfo".

> -Ursprüngliche Nachricht-
> Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> Im Auftrag von Vogt, Robert (RCIS)
> Gesendet: Montag, 31. Oktober 2016 19:51
> An: mapserver-users@lists.osgeo.org
> Betreff: [mapserver-users] ogrinfo not recognized
> 
> I'm trying to test my connection string in ogrinfo.
> These are the steps I'm taking...
> 
> 1. Open PowerShell as administrator
> 2. Navigate to directory where ogrinfo.exe is located 3. Enter command 
> "ogrinfo 
> MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,por
> t=my
> Port"
> 
> Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not 
> recognized as the name of a cmdlet"
> 
> Not sure what I am doing wrong?
> ___
> 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] msOGRFileOpen

2016-11-01 Thread Vogt, Robert (RCIS)
Good morning,

I have successfully tested my connection string with "ogrinfo", now however 
when I try to use that connection string in my MapFile
I receive this error...

msDrawMap(): Image handling error. Failed to draw layer named 'myLayer'. 
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `myLayer'. 
Unable to initialize connection to the server for 
MSSQL:Database=mydatabase;Server=myServer;user=myUser;password=XXX
 SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS 
LOGON'

Any help is greatly appreciated!!

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

Re: [mapserver-users] Python MapScript via WSGI examples

2016-11-01 Thread Kralidis, Tom (EC)
Thanks for the feedback Jeff.  Comments interleaved:

> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On
> Behalf Of Jeff McKenna
> Sent: 15 July 2016 17:56
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Python MapScript via WSGI examples
> 
> On 2016-07-15 6:46 PM, Jeff McKenna wrote:
> > Hi Tom,
> >
> > I believe I have your test working here, on Windows with mod_wsgi,
> > Python 3.5.1, and MapScript7.  Googling your error I believe your
> > header problem occurs just for Python2 responses (maybe both Julien
> > and I are using Python3 ?)

We're bound to Python 2 (2.7.6) in this case.  To refresh, see example
in https://gist.github.com/tomkralidis/9adbd4864c03647aa7eb4f96a3c33297

> > What happens if you try to force the
> > content-type to
> > utf8 ?  Change line#40 to:
> >
> >   start_response('200 OK', [('Content-type', 'text/html;
> > charset=utf-8')])
> >
> > Just a guess as I have Python3.  A try anyway...
> >


For some reason it looks like for a GetMap request, the line:

content_type = mapscript.msIO_stripStdoutBufferContentType()

results in None, i.e. the headers do not get stripped from the output?

This is the case for either running the script directly as a process
or embedding within Apache 
(https://gist.github.com/tomkralidis/9adbd4864c03647aa7eb4f96a3c33297#file-apache-conf)

..Tom


> 
> Or maybe the output should be bytes, as:
> 
>start_response('200 OK', [('Content-type', 'application/octet-stream;
> charset=utf-8')])
> 


This results in an immediate prompt to download the result, which is a broken
PNG image with the HTTP response headers still intact, i.e.:

Cache-Control: max-age=86400
Content-Type: image/png

‰PNG
.

> I'd need a Python2 to test though.hard without.
> 
> -jeff
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] ogrinfo not recognized

2016-11-01 Thread Eichner, Andreas - SID
PowerShell does not execute programs from untrusted sources so you need to use 
".\ogrinfo".

> -Ursprüngliche Nachricht-
> Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im
> Auftrag von Vogt, Robert (RCIS)
> Gesendet: Montag, 31. Oktober 2016 19:51
> An: mapserver-users@lists.osgeo.org
> Betreff: [mapserver-users] ogrinfo not recognized
> 
> I'm trying to test my connection string in ogrinfo.
> These are the steps I'm taking...
> 
> 1. Open PowerShell as administrator
> 2. Navigate to directory where ogrinfo.exe is located
> 3. Enter command "ogrinfo
> MySQL:DatabaseName,host=Server,user=myUserName,password=myPassword,port=my
> Port"
> 
> Then I receive an error stating "ogrinfo : The term 'ogrinfo' is not
> recognized as the name of a cmdlet"
> 
> Not sure what I am doing wrong?
> ___
> 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