Re: [mapserver-users] map server WFS with GML input

2019-05-16 Thread Leigh Porter
Steve, Jeff, thanks gents!


> On 16 May 2019, at 22:33, Jeff McKenna  wrote:
> 
> https://mapserver.org/ogc/wfs_server.html#example-wfs-server-mapfile 
> 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] map server WFS with GML input

2019-05-16 Thread Jeff McKenna
To expand on what Steve said: see the "World Continents" example layer 
in that same document, you should likely copy/paste that entire METADATA 
object into your own layer, and edit accordingly 
https://mapserver.org/ogc/wfs_server.html#example-wfs-server-mapfile


-jeff



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



On 2019-05-16 6:25 PM, Lime, Steve D (MNIT) wrote:
Hi Leigh: Welcome! MapServer by default won't expose any attributes 
unless you explicitly tell it to. Look at the gml_include_items and 
gml_exclude_items layer metadata on this page:



https://mapserver.org/ogc/wfs_server.html


--Steve

*From:* mapserver-users  on 
behalf of Leigh Porter 

*Sent:* Thursday, May 16, 2019 2:24:59 PM
*To:* mapserver-users@lists.osgeo.org
*Subject:* [mapserver-users] map server WFS with GML input

Hey All!

I just joined the list. I have used mapserver for a while and just 
started with WFS.



I’m serving WFS requests from a GML input file. Input is like this:


     fid="2019_03_avon_and_somerset_street.0">
 
   -3.187863,54.948226
 
   f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5

       2019-03
       Avon and Somerset Constabulary
       Avon and Somerset Constabulary
       On or near Field View
       E01019107
       Allerdale 002B
       Other theft
       Under 
investigation

       
     
   

But the output doesn’t include any of the other feature attributes (such 
as Crime_ID).



     
         
             
                 
                     50.948685 -2.807610
                     
                 
                     50.948685 -2.807610
                     
                 
             
         
             
                 
                     50.948685 -2.807610
                     
                 
             
         
     

The mapfile looks like this:

    LAYER
                 NAME street-avon
                 TYPE POINT
                 STATUS DEFAULT
                 CONNECTIONTYPE OGR
                 CONNECTION 
"/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml 
<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%2F2019-03-avon-and-somerset-street.csv.gml=02%7C01%7Csteve.lime%40state.mn.us%7Ca92d943d4bf845ef1e0408d6da39b088%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636936338652704394=a3ZII6DKApIQr3tv8bubzPS8dU9wwmqstKsCKoH69%2BI%3D=0>"

                 CLASS
                         STYLE
                                 COLOR 0 255 0
                                 SYMBOL 'circle'
                                 SIZE 6
                         END
                 END
         END


I don’t think I need to add anything to the apple for the feature 
attributes to be included in the WFS output, or do I?



Thanks!
Leigh




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

Re: [mapserver-users] map server WFS with GML input

2019-05-16 Thread Lime, Steve D (MNIT)
Hi Leigh: Welcome! MapServer by default won't expose any attributes unless you 
explicitly tell it to. Look at the gml_include_items and gml_exclude_items 
layer metadata on this page:


  https://mapserver.org/ogc/wfs_server.html

--Steve

From: mapserver-users  on behalf of 
Leigh Porter 
Sent: Thursday, May 16, 2019 2:24:59 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] map server WFS with GML input


Hey All!

I just joined the list. I have used mapserver for a while and just started with 
WFS.


I’m serving WFS requests from a GML input file. Input is like this:



  
-3.187863,54.948226
  
f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5
  2019-03
  Avon and Somerset Constabulary
  Avon and Somerset Constabulary
  On or near Field View
  E01019107
  Allerdale 002B
  Other theft
  Under investigation
  

  

But the output doesn’t include any of the other feature attributes (such as 
Crime_ID).






50.948685 -2.807610


50.948685 -2.807610






50.948685 -2.807610






The mapfile looks like this:

   LAYER
NAME street-avon
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION 
"/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml<https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%2F2019-03-avon-and-somerset-street.csv.gml=02%7C01%7Csteve.lime%40state.mn.us%7Ca92d943d4bf845ef1e0408d6da39b088%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636936338652704394=a3ZII6DKApIQr3tv8bubzPS8dU9wwmqstKsCKoH69%2BI%3D=0>"
CLASS
STYLE
COLOR 0 255 0
SYMBOL 'circle'
SIZE 6
END
END
END


I don’t think I need to add anything to the apple for the feature attributes to 
be included in the WFS output, or do I?


Thanks!
Leigh


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

[mapserver-users] map server WFS with GML input

2019-05-16 Thread Leigh Porter

Hey All!

I just joined the list. I have used mapserver for a while and just started with 
WFS.


I’m serving WFS requests from a GML input file. Input is like this:



  
-3.187863,54.948226
  
f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5
  2019-03
  Avon and Somerset Constabulary
  Avon and Somerset Constabulary
  On or near Field View
  E01019107
  Allerdale 002B
  Other theft
  Under investigation
  

  

But the output doesn’t include any of the other feature attributes (such as 
Crime_ID).






50.948685 -2.807610


50.948685 -2.807610






50.948685 -2.807610






The mapfile looks like this:

   LAYER
NAME street-avon
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION 
"/vsicurl/http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml;
CLASS
STYLE
COLOR 0 255 0
SYMBOL 'circle'
SIZE 6
END
END
END


I don’t think I need to add anything to the apple for the feature attributes to 
be included in the WFS output, or do I?


Thanks!
Leigh 


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