Hi all,
I'm trying to obtain a shapefile using an ogc filter with a bbox inside. My
http get request is: http://localhost:8080/geoserver/wfs?request=getfeature&
service=wfs&version=1.0.0&
typename=simo:bndpolamoz&
outputformat=SHAPE-ZIP&
filter=<ogc:Filter
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="4326">
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
org.xml.sax.SAXParseException: Element type "ogc:Filter" must be
followed by either attribute specifications, ">" or "/>".
Element type "ogc:Filter" must be followed by either attribute
specifications, ">" or "/>".
</ServiceException>
</ServiceExceptionReport>
---
A. Soroka / Digital Scholarship Services R & D
the University of Virginia Library
On Sep 3, 2008, at 9:01 AM, Simo D wrote:
Hi all,
I'm trying to obtain a shapefile using an ogc filter with a bbox inside. My
http get request is: http://localhost:8080/geoserver/wfs?request=getfeature&
service=wfs&version=1.0.0&
typename=simo:bndpolamoz&
outputformat=SHAPE-ZIP&
filter=<ogc:Filter
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="4326">
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
org.xml.sax.SAXParseException: Element type "ogc:Filter" must be
followed by either attribute specifications, ">" or "/>".
Element type "ogc:Filter" must be followed by either attribute
specifications, ">" or "/>".
</ServiceException>
</ServiceExceptionReport>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity.
XML document structures must start and end within the same entity.
</ServiceException>
</ServiceExceptionReport>
All the tags seems to be opened and closed in the proper way.
Thanks again.
---
A. Soroka / Digital Scholarship Services R & D
the University of Virginia Library
On Sep 3, 2008, at 9:01 AM, Simo D wrote:
Hi all,
I'm trying to obtain a shapefile using an ogc filter with a bbox
inside. My
http get request is: http://localhost:8080/geoserver/wfs?request=getfeature&
service=wfs&version=1.0.0&
typename=simo:bndpolamoz&
outputformat=SHAPE-ZIP&
filter=<ogc:Filter
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="4326">
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
org.xml.sax.SAXParseException: Element type "ogc:Filter" must be
followed by either attribute specifications, ">" or "/>".
Element type "ogc:Filter" must be followed by either attribute
specifications, ">" or "/>".
</ServiceException>
</ServiceExceptionReport>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
How are you making the request? In a web browser... some custom code making the http request? etc... my guess is that the filter is not being URL encoded properly. I could be wrong but I copied your filter into the browser and executed a request and it works ok... More info should help.
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity.
XML document structures must start and end within the same entity.
</ServiceException>
</ServiceExceptionReport>
All the tags seems to be opened and closed in the proper way.
Thanks again.
---
A. Soroka / Digital Scholarship Services R & D
the University of Virginia Library
On Sep 3, 2008, at 9:01 AM, Simo D wrote:
Hi all,
I'm trying to obtain a shapefile using an ogc filter with a bbox inside. My
http get request is: http://localhost:8080/geoserver/wfs?request=getfeature&
service=wfs&version=1.0.0&
typename=simo:bndpolamoz&
outputformat=SHAPE-ZIP&
filter=<ogc:Filter
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="4326">
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
org.xml.sax.SAXParseException: Element type "ogc:Filter" must be
followed by either attribute specifications, ">" or "/>".
Element type "ogc:Filter" must be followed by either attribute
specifications, ">" or "/>".
</ServiceException>
</ServiceExceptionReport>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
The request without the filter works properly and I'm sure that the bbox is
correct.
thanks
Justin Deoliveira-6 wrote:
Hi Simone,
How are you making the request? In a web browser... some custom code
making the http request? etc... my guess is that the filter is not being
URL encoded properly. I could be wrong but I copied your filter into the
browser and executed a request and it works ok... More info should help.
org.xml.sax.SAXParseException: XML document structures must start
and
end within the same entity.
XML document structures must start and end within the same entity.
</ServiceException>
</ServiceExceptionReport>
All the tags seems to be opened and closed in the proper way.
Thanks again.
---
A. Soroka / Digital Scholarship Services R & D
the University of Virginia Library
On Sep 3, 2008, at 9:01 AM, Simo D wrote:
Hi all,
I'm trying to obtain a shapefile using an ogc filter with a bbox
inside. My
http get request is: http://localhost:8080/geoserver/wfs?request=getfeature&
service=wfs&version=1.0.0&
typename=simo:bndpolamoz&
outputformat=SHAPE-ZIP&
filter=<ogc:Filter
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="4326">
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
org.xml.sax.SAXParseException: Element type "ogc:Filter" must be
followed by either attribute specifications, ">" or "/>".
Element type "ogc:Filter" must be followed by either attribute
specifications, ">" or "/>".
</ServiceException>
</ServiceExceptionReport>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
The request without the filter works properly and I’m sure that the bbox is
correct.
thanks
Justin Deoliveira-6 wrote:
Hi Simone,
How are you making the request? In a web browser… some custom code
making the http request? etc… my guess is that the filter is not being
URL encoded properly. I could be wrong but I copied your filter into the
browser and executed a request and it works ok… More info should help.
org.xml.sax.SAXParseException: XML document structures must start
and
end within the same entity.
XML document structures must start and end within the same entity.
All the tags seems to be opened and closed in the proper way.
Thanks again.
org.xml.sax.SAXParseException: Element type “ogc:Filter” must be
followed by either attribute specifications, “>” or “/>”.
Element type “ogc:Filter” must be followed by either attribute
specifications, “>” or “/>”.
This SF.Net email is sponsored by the Moblin Your Move Developer’s
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
This SF.Net email is sponsored by the Moblin Your Move Developer’s
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
This SF.Net email is sponsored by the Moblin Your Move Developer’s
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
Date: Wed, 3 Sep 2008 09:13:27 -0700> From: simone.dalmasso@anonymised.com>
To: geoserver-users@lists.sourceforge.net> Subject: Re: [Geoserver-users]
Shapefile output and ogc filter> > > Yes I make the request in the
browser directly because is a first try and> this is the request:> > http://localhost:8080/geoserver/wfs?request=getfeature&>
service=wfs&version=1.0.0&> typename=simo:bndpolamoz&>
outputformat=SHAPE-ZIP&> filter=<ogc:Filter xmlns:ogc="http://ogc.org">
xmlns:gml="http://www.opengis.net/gml">> <ogc:BBOX>>
<ogc:PropertyName>the_geom</ogc:PropertyName>> <gml:Box
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">>
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>> </gml:Box>>
</ogc:BBOX>> </ogc:Filter>> > The request without the filter works
properly and I'm sure that the bbox is> correct.> > thanks> > Justin
Deoliveira-6 wrote:> > > > Hi Simone,> > > > How are you making the
request? In a web browser... some custom code > > making the http
request? etc... my guess is that the filter is not being > > URL encoded
properly. I could be wrong but I copied your filter into the > > browser
and executed a request and it works ok... More info should help.> > > >
-Justin> > > > Simo D wrote:> >> Yes, thank you, I've modified the query
also in the srsName with:> >> <gml:Box
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">> >> > >> but now
the error is:> >> <ServiceExceptionReport version="1.2.0"> >>
xsi:schemaLocation="http://www.opengis.net/ogc> >> http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">> >> −> >>
<ServiceException> >>
locator="org.vfny.geoserver.util.requests.readers.XmlRequestReader">> >>
> >> org.xml.sax.SAXParseException: XML document structures must start>
>> and> >> end within the same entity.> >> XML document structures must
start and end within the same entity.> >> </ServiceException>> >>
</ServiceExceptionReport>> >> > >> All the tags seems to be opened and
closed in the proper way.> >> Thanks again.> >> > >> Simone> >> > >> > >>
ajs6f@anonymised.com wrote:> >>>> <ogc:Filter> >>>>
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">> >>> I
think you need some whitespace between 'xmlns:ogc="http://ogc.org"' > >>>
and 'xmlns:gml="http://www.opengis.net/gml"'\.> >>>> >>> ---> >>> A.
Soroka / Digital Scholarship Services R & D> >>> the University of
Virginia Library> >>>> >>>> >>>> >>> On Sep 3, 2008, at 9:01 AM, Simo D
wrote:> >>>> >>>> Hi all,> >>>> I'm trying to obtain a shapefile using an
ogc filter with a bbox > >>>> inside. My> >>>> http get request is:> >>>> http://localhost:8080/geoserver/wfs?request=getfeature&> >>>>
service=wfs&version=1.0.0&> >>>> typename=simo:bndpolamoz&> >>>>
outputformat=SHAPE-ZIP&> >>>> filter=<ogc:Filter> >>>>
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml">> >>>>
<ogc:BBOX>> >>>> <ogc:PropertyName>the_geom</ogc:PropertyName>> >>>>
<gml:Box srsName="4326">> >>>> <gml:coordinates>31.1,-20.8
38.8,-15.3</gml:coordinates>> >>>> </gml:Box>> >>>> </ogc:BBOX>> >>>>
</ogc:Filter>> >>>>> >>>> But it returns the following error:> >>>>
<ServiceExceptionReport version="1.2.0"> >>>>
xsi:schemaLocation="http://www.opengis.net/ogc> >>>> http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">> >>>> −> >>>>
<ServiceException> >>>>
locator="org.vfny.geoserver.util.requests.readers.XmlRequestReader">>
>>>>> >>>> org.xml.sax.SAXParseException: Element type "ogc:Filter" must
be> >>>> followed by either attribute specifications, ">" or "/>".> >>>>
Element type "ogc:Filter" must be followed by either attribute> >>>>
specifications, ">" or "/>".> >>>> </ServiceException>> >>>>
</ServiceExceptionReport>> >>>>> >>>> Can anyone help me?> >>>> Thanks in
advance.> >>>> Simone> >>>> -- > >>>> View this message in context:> >>>> http://www.nabble.com/Shapefile-output-and-ogc-filter-tp19288721p19288721.html>
>>>> Sent from the GeoServer - User mailing list archive at Nabble.com.>
>>>>> >>>>> >>>>
------------------------------------------------------------------------->
>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >
>>>> challenge> >>>> Build the coolest Linux based applications with
Moblin SDK & win > >>>> great prizes> >>>> Grand prize is a trip for two
to an Open Source event anywhere in > >>>> the world> >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/> >>>>
_______________________________________________> >>>> Geoserver-users
mailing list> >>>> Geoserver-users@lists.sourceforge.net> >>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users> >>>> >>>
------------------------------------------------------------------------->
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's>
>>> challenge> >>> Build the coolest Linux based applications with Moblin
SDK & win great> >>> prizes> >>> Grand prize is a trip for two to an Open
Source event anywhere in the> >>> world> >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/> >>>
_______________________________________________> >>> Geoserver-users
mailing list> >>> Geoserver-users@lists.sourceforge.net> >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users> >>>> >>>>
>> > > > > > > -- > > Justin Deoliveira> > Software Engineer, OpenGeo> > http://opengeo.org> > > >
------------------------------------------------------------------------->
> This SF.Net email is sponsored by the Moblin Your Move Developer's> >
challenge> > Build the coolest Linux based applications with Moblin SDK &
win great> > prizes> > Grand prize is a trip for two to an Open Source
event anywhere in the> > world> > http://moblin-contest.org/redirect.php?banner_id=100&url=/> >
_______________________________________________> > Geoserver-users
mailing list> > Geoserver-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/geoserver-users> > > > > >
-- > View this message in context: http://www.nabble.com/Shapefile-output-and-ogc-filter-tp19288721p19292569.html>
Sent from the GeoServer - User mailing list archive at Nabble.com.> > >
------------------------------------------------------------------------->
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge> Build the coolest Linux based applications with Moblin SDK &
win great prizes> Grand prize is a trip for two to an Open Source event
anywhere in the world> http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________> Geoserver-users mailing
list> Geoserver-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/geoserver-users
_________________________________________________________________
Confira vídeos com notícias do NY Times, gols direto do Lance,
videocassetadas e muito mais no MSN Video! http://video.msn.com/?mkt=pt-br
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
I can confirm it's a url encoding issue. I usually use firefox
and it url encodes automatically the filters for me, but in this
case there is somethign that's throwing it off.
I used this page to url-encode the filter http://www.albionresearch.com/misc/urlencode.php
and the result works.
Changed the bbox so that it covers USA and modified the layer
name so that I can hit geo.openplans.org. Modified filter: