I am new with WFS and GeoServer.
My goal is to search objects on a GeoServer via WFS.
To get started, I use the documentation. I already have problems at the beginning.
The request
http://localhost/geoserver/wfs?service=wfs&
version=1.1.0&
request=GetCapabilities
shows me the following in the browser Firefox:
GeoServer Web Feature ServiceThis is the reference implementation of WFS 1.0.0 and WFS 1.1.0, supports all WFS operations including Transaction.WFSWMSGEOSERVERWFS1.1.0NONENONEThe Ancient GeographersClaudius PtolomaeusChief GeographerAlexandriaEgyptclaudius.ptolomaeus@gmail.com1.0.01.1.0text/xmlServiceIdentificationServiceProviderOperationsMetadataFeatureTypeListFilter_Capabilitiestext/xml; subtype=gml/3.1.1resultshitstext/xml; subtype=gml/3.1.1GML2KMLSHAPE-ZIPapplication/gml+xml; version=3.2application/jsonapplication/vnd.google-earth.kml xmlapplication/vnd.google-earth.kml+xmlcsvgml3gml32jsontext/xml; subtype=gml/2.1.2text/xml; subtype=gml/3.22ALLSOMEresultshitstext/xml; subtype=gml/3.1.1GML2KMLSHAPE-ZIPapplication/gml+xml; version=3.2application/jsonapplication/vnd.google-earth.kml xmlapplication/vnd.google-earth.kml+xmlcsvgml3gml32jsontext/xml; subtype=gml/2.1.2text/xml; subtype=gml/3.2text/xml; subtype=gml/3.1.1GenerateNewUseExistingReplaceDuplicateALLSOMEQueryInsertUpdateDeleteLockgml:Envelopegml:Pointgml:LineStringgml:PolygonLessThanGreaterThanLessThanEqualToGreaterThanEqualToEqualToNotEqualToLikeBetweenNullCheckabsabs_2abs_3abs_4acosAddCoveragesAffineAggregateAreaarea2AreaGridasinatanatan2attributeCountBandMergeBandSelectBarnesSurfacebetweenboundaryboundaryDimensionboundedByBoundsbufferBufferFeatureCollectionbufferWithSegmentsCategorizeceilcentroidclassifyClassifyByRangeClipCollectGeometriesCollection_AverageCollection_BoundsCollection_CountCollection_MaxCollection_MedianCollection_MinCollection_NearestCollection_SumCollection_UniqueConcatenatecontainsContourcontrastconvertconvexHullConvolveCoveragecosCountCoverageClassStatsCropCoveragecrossesdarkendateDifferencedateFormatdateParsedesaturatedifferencedimensiondisjointdisjoint3Ddistancedistance3Ddouble2boolendAngleendPointenvenvelopeEqualAreaEqualIntervalequalsExactequalsExactToleranceequalToexpexteriorRingFeatureFeatureClassStatsfloorgeometrygeometryTypegeomFromWKTgeomLengthgetGeometryNgetXgetYgetzgrayscalegreaterEqualThangreaterThanGridHeatmaphslidIEEEremainderif_then_elseinin10in2in3in4in5in6in7in8in9InclusionFeatureCollectionint2bboolint2ddoubleinteriorPointinteriorRingNInterpolateintersectionIntersectionFeatureCollectionintersectsintersects3DisClosedisCoverageisEmptyisInstanceOfisLikeisNullisometricisRingisSimpleisValidisWithinDistanceisWithinDistance3DJenksJifflejsonPointerlengthlessEqualThanlessThanlightenlistlistMultiplylogLRSGeocodeLRSMeasureLRSSegmentmaxmax_2max_3max_4minmin_2min_3min_4mincircleminimumdiameterminrectanglemixmoduloMultiplyCoveragesNearestNormalizeCoveragenotnotEqualTonumberFormatnumberFormat2numGeometriesnumInteriorRingnumPointsoctagonalenvelopeoffsetoverlapsparameterparseBooleanparseDoubleparseIntparseLongpgNearestpiPointBufferspointNPointStackerPolygonExtractionpowpropertyPropertyExistsQuantileQueryrandomRangeLookupRasterAsPointCollectionRasterZonalStatisticsRasterZonalStatistics2RecodeRectangularCliprelaterelatePatternReprojectrescaleToPixelsrintroundround_2roundDoublesaturateScaleCoveragesetCRSshadeSimplifysinSnapspinsqrtStandardDeviationstartAnglestartPointstrAbbreviatestrCapitalizestrConcatstrDefaultIfBlankstrEndsWithstrEqualsIgnoreCasestrIndexOfstringTemplatestrLastIndexOfstrLengthstrMatchesstrPositionstrReplacestrStartsWithstrStripAccentsstrSubstringstrSubstringStartstrToLowerCasestrToUpperCasestrTrimstrTrim2strURLEncodeStyleCoveragesymDifferencetantinttoDegreestoRadianstouchestoWKTTransformTransparencyFillunionUnionFeatureCollectionUniqueUniqueIntervalVectorToRasterVectorZonalStatisticsverticeswithin
I was expecting to see what features I could use here.
The request
http://localhost/geoserver/wfs?service=wfs&version=2.0.0&
request=DescribeFeatureType
shows me the following in an editor
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wfs="http://www.opengis.net/wfs/2.0" elementFormDefault="qualified" targetNamespace="http://www.opengis.net/gml/3.2">
I expected a list of the feature types
available.
Next I tried
http://localhost/geoserver/wfs?
service=wfs&
version=2.0.0&
request=GetFeature&
typeNames=namespace:featuretype
that returned me
Unknown namespace [namespace]
And last but not least I tried with names I expected as namespace
and featuretype
http://localhost/geoserver/wfs?
service=wfs&
version=2.0.0&
request=GetFeature&
typeNames=JAN_ALKIS:flur
This tells me the following in the browser
Feature type JAN_ALKIS:flur unknown
How do I find out how to put together a WFS GetFeature query?
Edit:
The request
http://localhost/geoserver/wfs?service=wfs&
version=1.1.0&
request=GetCapabilities
shows me the following in the browser Chrome:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wfs:WFS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:KRE_ALKIS="KRE_ALIKS" xmlns:KRE_KANAL="KRE_KANAL" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://172.16.206.128:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd" updateSequence="654">
<ows:ServiceIdentification>
<ows:Title>GeoServer Web Feature Service</ows:Title>
<ows:Abstract>
This is the reference implementation of WFS 1.0.0 and WFS 1.1.0, supports all WFS operations including Transaction.
</ows:Abstract>
<ows:Keywords>
<ows:Keyword>WFS</ows:Keyword>
<ows:Keyword>WMS</ows:Keyword>
<ows:Keyword>GEOSERVER</ows:Keyword>
</ows:Keywords>
.....