Re: [mapserver-users] OGR Geojson error

2020-09-29 Thread Weisbender, Eric
Thanks Kobben.  I think it might be more than a file naming issue.  Below is 
the response from ogrinfo but I can find anything related online.  Any ideas?


/usr/local/bin/ogrinfo 
http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson
ERROR 1: Peer's certificate has an invalid signature.
ERROR 1: Peer's certificate has an invalid signature.
FAILURE:
Unable to open datasource 
`http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson'
 with the following drivers.
  -> PCIDSK
  -> PDF
  -> EEDA
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> OGR_SDTS
  -> S57
  -> DGN
  -> OGR_VRT
  -> REC
  -> Memory
  -> BNA
  -> CSV
  -> GML
  -> GPX
  -> KML
  -> GeoJSON
  -> GeoJSONSeq
  -> ESRIJSON
  -> TopoJSON
  -> OGR_GMT
  -> WAsP
  -> OpenFileGDB
  -> XPlane
  -> DXF
  -> CAD
  -> Geoconcept
  -> GeoRSS
  -> GPSTrackMaker
  -> PGDUMP
  -> GPSBabel
  -> SUA
  -> OpenAir
  -> OGR_PDS
  -> WFS
  -> WFS3
  -> HTF
  -> AeronavFAA
  -> EDIGEO
  -> GFT
  -> SVG
  -> CouchDB
  -> Cloudant
  -> Idrisi
  -> ARCGEN
  -> SEGUKOOA
  -> SEGY
  -> ODS
  -> XLSX
  -> ElasticSearch
  -> Carto
  -> AmigoCloud
  -> SXF
  -> Selafin
  -> JML
  -> PLSCENES
  -> CSW
  -> VDV
  -> MVT
  -> TIGER
  -> AVCBin
  -> AVCE00
  -> NGW
  -> HTTP


Eric Weisbender | GIS Program Lead
Western Area Power Administration | Headquarters
(O) 720.962.7280 | weisb...@wapa.gov

From: b.j.kob...@utwente.nl 
Sent: Saturday, September 26, 2020 2:53 AM
To: Weisbender, Eric ; mapserver-users@lists.osgeo.org
Subject: [EXTERNAL] Re: [mapserver-users] OGR Geojson error

It might be simply that file names beginning with  a number are always a bad 
idea, because several libs and systems out there have problems with it...?

--
Barend Köbben


On 25/09/2020, 16:45, "mapserver-users on behalf of Weisbender, Eric" 
mailto:mapserver-users-boun...@lists.osgeo.org>
 on behalf of weisb...@wapa.gov> wrote:

Hello List,

I have two sources of geojson data in my map file.  One works fine the other 
does not.  The one that works streams into the browser when I go to it 
directly.  The other source downloads a file.  The one that does not work I get 
the following MapServer error.  Also the geojson sources are listed below.  The 
layer defs are the same in the mapfile.

Thanks in advance for your help.

Error:
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer 
`fire_nifc_point .  File not found or unsupported format. Check server logs.


Works:  
http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson


No Worky:  
http://opendata.arcgis.com/datasets/68637d248eb24d0d853342cba02d4af7_0.geojson



Eric Weisbender | GIS Program Lead
Western Area Power Administration | Headquarters
(O) 720.962.7280 | weisb...@wapa.gov

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

Re: [mapserver-users] OGR Geojson error

2020-09-29 Thread Jeff McKenna

On 2020-09-29 2:27 p.m., Weisbender, Eric wrote:
Thanks Kobben.  I think it might be more than a file naming issue.  
Below is the response from ogrinfo but I can find anything related 
online.  Any ideas?


/usr/local/bin/ogrinfo 
http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson


ERROR 1: Peer's certificate has an invalid signature.


My guess is that there is a problem between your local CA (certificate 
authority) file and the remote server's certificate.


Try this at the commandline:

  curl -k 
https://opendata.arcgis.com/dataset/5da472c6d27b4b67970acc7b5044c862_0.geojson 
|more


That should work for you as the '-k' switch ignores HTTPS and uses an 
insecure connection.


Now try on your local machine:

  curl --verbose 
https://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson 
|more


You should see at the beginning of that output, a section on your local 
CA file, as:


 * successfully set certificate verify locations:
 * CAfile: \ms4w\Apache\conf\ca-bundle\cacert.pem

Then after that in the output you can see the 'handshake' as it tries to 
connect to the remote server, and hopefully you see a message such as:


 * Server certificate:
 *  subject: C=US; ST=California; L=Redlands; O=Environmental 
Systems Research Institute, Inc.; CN=*.opendata.arcgis.com

 *  start date: Apr 24 00:00:00 2020 GMT
 *  expire date: Apr 28 12:00:00 2021 GMT
 *  subjectAltName: host "opendata.arcgis.com" matched cert's 
"opendata.arcgis.com"

 *  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2
 High Assurance Server CA
 *  SSL certificate verify ok.



In terms of MapServer, you can follow the similar steps to confirm your 
CA file is setup etc through this document: 
https://mapserver.org/ogc/wxs_secure.html



/me sends you down another deep rabbit hole, ha!

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/







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

Re: [mapserver-users] OGR Geojson error

2020-09-29 Thread Rahkonen Jukka (MML)
Hi,

I found couple of issues but can’t say how severe they are:

http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson
this returns HTTP 302, moved temporarily and it redirects to https port
https://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson
Trying to access the https port gives an error:
curl: (7) Failed to connect to opendata.arcgis.com port 443: Connection refused

Perhaps that arcgis site requires something like cookies or a certain 
user-agent before it is willing to send data.  I checked the URL also with a 
browser and it follows the redirection into https and gets data from there. 
GDAL understands the returned GeoJSON once it is saved on disk.

-Jukka Rahkonen-

Lähettäjä: mapserver-users  Puolesta 
Weisbender, Eric
Lähetetty: tiistai 29. syyskuuta 2020 20.27
Vastaanottaja: b.j.kob...@utwente.nl; mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] OGR Geojson error

Thanks Kobben.  I think it might be more than a file naming issue.  Below is 
the response from ogrinfo but I can find anything related online.  Any ideas?


/usr/local/bin/ogrinfo 
http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson
ERROR 1: Peer's certificate has an invalid signature.
ERROR 1: Peer's certificate has an invalid signature.
FAILURE:
Unable to open datasource 
`http://opendata.arcgis.com/datasets/5da472c6d27b4b67970acc7b5044c862_0.geojson'
 with the following drivers.
  -> PCIDSK
  -> PDF
  -> EEDA
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> OGR_SDTS
  -> S57
  -> DGN
  -> OGR_VRT
  -> REC
  -> Memory
  -> BNA
  -> CSV
  -> GML
  -> GPX
  -> KML
  -> GeoJSON
  -> GeoJSONSeq
  -> ESRIJSON
  -> TopoJSON
  -> OGR_GMT
  -> WAsP
  -> OpenFileGDB
  -> XPlane
  -> DXF
  -> CAD
  -> Geoconcept
  -> GeoRSS
  -> GPSTrackMaker
  -> PGDUMP
  -> GPSBabel
  -> SUA
  -> OpenAir
  -> OGR_PDS
  -> WFS
  -> WFS3
  -> HTF
  -> AeronavFAA
  -> EDIGEO
  -> GFT
  -> SVG
  -> CouchDB
  -> Cloudant
  -> Idrisi
  -> ARCGEN
  -> SEGUKOOA
  -> SEGY
  -> ODS
  -> XLSX
  -> ElasticSearch
  -> Carto
  -> AmigoCloud
  -> SXF
  -> Selafin
  -> JML
  -> PLSCENES
  -> CSW
  -> VDV
  -> MVT
  -> TIGER
  -> AVCBin
  -> AVCE00
  -> NGW
  -> HTTP


Eric Weisbender | GIS Program Lead
Western Area Power Administration | Headquarters
(O) 720.962.7280 | weisb...@wapa.gov

From: b.j.kob...@utwente.nl 
mailto:b.j.kob...@utwente.nl>>
Sent: Saturday, September 26, 2020 2:53 AM
To: Weisbender, Eric mailto:weisb...@wapa.gov>>; 
mapserver-users@lists.osgeo.org
Subject: [EXTERNAL] Re: [mapserver-users] OGR Geojson error

It might be simply that file names beginning with  a number are always a bad 
idea, because several libs and systems out there have problems with it...?

--
Barend Köbben


On 25/09/2020, 16:45, "mapserver-users on behalf of Weisbender, Eric" 
mailto:mapserver-users-boun...@lists.osgeo.org>
 on behalf of weisb...@wapa.gov> wrote:

Hello List,

I have two sources of geojson data in my map file.  One works fine the other 
does not.  The one that works streams into the browser when I go to it 
directly.  The other source downloads a file.  The one that does not work I get 
the following MapServer error.  Also the geojson sources are listed below.  The 
layer defs are the same in the mapfile.

Thanks in advance for your help.

Error:
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer 
`fire_nifc_point .  File not found or unsupported format. Check server logs.


Works:  
http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson


No Worky:  
http://opendata.arcgis.com/datasets/68637d248eb24d0d853342cba02d4af7_0.geojson



Eric Weisbender | GIS Program Lead
Western Area Power Administration | Headquarters
(O) 720.962.7280 | weisb...@wapa.gov

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

Re: [mapserver-users] Steps to configure https on windows mapserver

2020-09-29 Thread Jeff McKenna

Hi Akash,

You can followed the detailed steps for MS4W users at: 
https://ms4w.com/README_INSTALL.html#certificates-for-https


-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/


On 2020-09-28 10:44 p.m., Akash Rathi wrote:

Hi,

Can you please help me by sharing a step to configure mapserver over 
https on windows.


Regards,
Akash

Sent from my iPhone





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