[Geomoose-users] GDB layer problems - Pink Screen

TC Haddad tchaddad at gmail.com
Tue Jun 2 13:11:56 PDT 2015


What does your browser report when you paste in or click the URL you
mentioned earlier?

http://127.0.0.1/cgi-bin/mapserv.exe?FORMAT=image%2Fpng%3B%20mode%3D8bit&MAP=%2Fms4w%2Fapps%2Fgeomoose2%2Fmaps%2Flafayette%2FESN%2Fschool.map&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=lafSchools&SRS=EPSG%3A3857&BBOX=-10462567.998083,4719295.6982846,-10455999.190965,4720977.3129066&WIDTH=1375&HEIGHT=352

is that where the "msOGRFileOpen(): OGR error. Open failed for OGR
connection in layer `ESN'.  File not found or unsupported format" came from?

If so, it seems like you've confirmed that it is a supported format, so you
are left with the possibility that it is a path error (?)

Can you try an absolute path in your MAP file?

On Tue, Jun 2, 2015 at 1:01 PM, Joshua Meyer <jmeyer at lcsheriff.com> wrote:

> Yes, ogrinfo works.  It connects successfully and I am able to see the
> data.  After I verified this was working, I tested the associated .map
> files with shp2img.  Shp2img outputs the data to the image and I am able to
> see data.
>
>
>
>
>
>
>
> Joshua Meyer
>
> Lafayette County Sheriff's Office GIS
>
> 107 S 11th St
>
> Lexington, MO 64067
>
> Phone: 660-259-2796
>
> Cell: 660-259-1234
>
> Fax: 660-259-2545
>
>
>
> *From:* TC Haddad [mailto:tchaddad at gmail.com]
> *Sent:* Tuesday, June 02, 2015 2:54 PM
>
> *To:* Joshua Meyer
> *Cc:* geomoose-users at lists.osgeo.org
> *Subject:* Re: [Geomoose-users] GDB layer problems - Pink Screen
>
>
>
>
> Ok, that was just a guess :)
>
> Do you happen to know if your version of gdal/ogr has the  FileGDB API
> library installed?
>
>
>
> That is listed as a requirement on the OGR supported vector formats page:
>
>
>
> http://www.gdal.org/ogr_formats.html
>
>
>
> It sounds like if you have OGR 1.11 you *should* be ok for reading:
>
>
>
> http://www.gdal.org/drv_filegdb.html
>
>
>
> You could try using the command line tool "ogrinfo" to test your
> connection, using some of the steps outlined on this page (under the
> "OGRINFO Examples" section):
>
>
>
> http://mapserver.org/input/vector/filegdb.html
>
>
>
> That might help narrow down where your problem is originating...
>
>
>
> Tanya
>
>
>
> On Tue, Jun 2, 2015 at 12:40 PM, Joshua Meyer <jmeyer at lcsheriff.com>
> wrote:
>
> It is not an ESRI annotation layer.  It is pointing to the same layer.
>
>
>
> Joshua Meyer
>
> Lafayette County Sheriff's Office GIS
>
> 107 S 11th St
>
> Lexington, MO 64067
>
> Phone: 660-259-2796
>
> Cell: 660-259-1234
>
> Fax: 660-259-2545
>
>
>
> *From:* TC Haddad [mailto:tchaddad at gmail.com]
> *Sent:* Tuesday, June 02, 2015 2:40 PM
> *To:* Joshua Meyer
> *Cc:* geomoose-users at lists.osgeo.org
> *Subject:* Re: [Geomoose-users] GDB layer problems - Pink Screen
>
>
>
>
>
> Just a check:
>
>
>
> is "lafSchools_anno" refferring to an ESRI Annotation layer? because I
> don't think OGR supports those types of layers.
>
>
>
> Tanya
>
>
>
> On Tue, Jun 2, 2015 at 10:33 AM, Joshua Meyer <jmeyer at lcsheriff.com>
> wrote:
>
> I have tried to add layers from an ESRI geodatabase.  The following error
> is received: msOGRFileOpen(): OGR error. Open failed for OGR connection in
> layer `ESN'.  File not found or unsupported format.  I originally exported
> the layers to shapefiles for testing and they worked.  I have tested each
> map file using shp2img with success on each individual layer.  However,
> when loading from the mapbook.xml I received the above error.
>
>
>
>
>
> The gdb file is located in the same folder as the map file.
>
>
>
> LAYER
>
>     NAME lafSchools
>
>     TYPE POINT
>
>     CONNECTIONTYPE OGR
>
>     CONNECTION "./Lafayette.gdb"
>
>     DATA "Schools"
>
> ….
>
> ….
>
>
>
>
>
> Below is the mapbook entry.
>
>
>
> <map-source name="lafSchools" type="mapserver">
>
>         <file>./lafayette/ESN/school.map</file>
>
>         <layer name="lafSchools" status="off"/>
>
>         <layer name="lafSchools_anno" status="off"/>
>
>         <param name="FORMAT" value="image/png; mode=8bit"/>
>
> </map-source>
>
>
>
> …..
>
> …..
>
> <layer title="Lafayette Schools" src="lafSchools/lafSchools"
> popups="false" minscale="3000" maxscale="20000">
>
> </layer>
>
>
>
>
>
>
>
> Joshua Meyer
>
> Lafayette County Sheriff's Office GIS
>
> 107 S 11th St
>
> Lexington, MO 64067
>
> Phone: 660-259-2796
>
> Cell: 660-259-1234
>
> Fax: 660-259-2545
>
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150602/303b37c6/attachment-0001.html>


More information about the Geomoose-users mailing list