[Geoserver-users] Shapefile output and ogc filter

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&quot;&gt;
<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&quot;&gt;

<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.

<ogc:Filter
xmlns:ogc="http://ogc.org"xmlns:gml="http://www.opengis.net/gml&quot;&gt;

I think you need some whitespace between 'xmlns:ogc="http://ogc.org"' and 'xmlns:gml="http://www.opengis.net/gml&quot;&#39;\.

---
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&quot;&gt;
<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&quot;&gt;

<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

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&quot;&gt;

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&quot;&gt;

<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&quot;&gt;

I think you need some whitespace between 'xmlns:ogc="http://ogc.org"'
and 'xmlns:gml="http://www.opengis.net/gml&quot;&#39;\.

---
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&quot;&gt;
<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&quot;&gt;

<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

--
View this message in context: http://www.nabble.com/Shapefile-output-and-ogc-filter-tp19288721p19289354.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

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&quot;&gt;

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&quot;&gt;

<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&quot;&gt;

I think you need some whitespace between 'xmlns:ogc="http://ogc.org"' and 'xmlns:gml="http://www.opengis.net/gml&quot;&#39;\.

---
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&quot;&gt;
<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&quot;&gt;

<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

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&quot;&gt;
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<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&quot;&gt;

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&quot;&gt;

<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&quot;&gt;

I think you need some whitespace between 'xmlns:ogc="http://ogc.org"'
and 'xmlns:gml="http://www.opengis.net/gml&quot;&#39;\.

---
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&quot;&gt;
<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&quot;&gt;

<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.

Hi,

You already tried to use the CQL? It sees the example:

http://geoserver.org/display/GEOSDOC/WFS+vendor+parameters

Best Regards,

Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@…95…


Date: Wed, 3 Sep 2008 09:13:27 -0700
From: simone.dalmasso@…84…
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:PropertyNamethe_geom</ogc:PropertyName>
<gml:Box srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:coordinates31.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:


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.

Simone

ajs6f@…1704… 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:PropertyNamethe_geom</ogc:PropertyName>
<gml:Box srsName=“4326”>
gml:coordinates31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>

But it returns the following error:


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 “/>”.

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


Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! Confira já!

Yes, it work in this way.
Thank you!

Simone

Fernando Quadro wrote:

Hi, You already tried to use the CQL? It sees the example:
http://geoserver.org/display/GEOSDOC/WFS+vendor+parameters Best
Regards,Fernando Quadro
http://www.fernandoquadro.com.brfsquadro@anonymised.com

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&&gt;
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&quot;&gt;&gt; <ogc:BBOX>>
<ogc:PropertyName>the_geom</ogc:PropertyName>> <gml:Box
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;&gt;
<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&quot;&gt;&gt; >> > >> but now
the error is:> >> <ServiceExceptionReport version="1.2.0"> >>
xsi:schemaLocation="http://www.opengis.net/ogc&gt; >>
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd&quot;&gt;&gt; >> −> >>
<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&quot;&gt;&gt; >>> I
think you need some whitespace between 'xmlns:ogc="http://ogc.org"' > >>>
and 'xmlns:gml="http://www.opengis.net/gml&quot;&#39;\.&gt; >>>> >>> ---> >>> 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&&gt; >>>>
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&quot;&gt;&gt; >>>>
<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&gt; >>>>
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd&quot;&gt;&gt; >>>> −> >>>>
<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&gt;
>>>> 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=/&gt; >>>>
_______________________________________________> >>>> Geoserver-users
mailing list> >>>> Geoserver-users@lists.sourceforge.net> >>>>
https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt; >>>> >>>
------------------------------------------------------------------------->
>>> 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=/&gt; >>>
_______________________________________________> >>> Geoserver-users
mailing list> >>> Geoserver-users@lists.sourceforge.net> >>>
https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt; >>>> >>>>
>> > > > > > > -- > > 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=/&gt; >
_______________________________________________> > Geoserver-users
mailing list> > Geoserver-users@lists.sourceforge.net> >
https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt; > > > > >
-- > View this message in context:
http://www.nabble.com/Shapefile-output-and-ogc-filter-tp19288721p19292569.html&gt;
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=/&gt;
_______________________________________________> 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

--
View this message in context: http://www.nabble.com/Shapefile-output-and-ogc-filter-tp19288721p19305975.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Simo D ha scritto:

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&quot;&gt;
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>31.1,-20.8 38.8,-15.3</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>

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:

<ogc:Filter xmlns:ogc="http://ogc.org" xmlns:gml="http://www.opengis.net/gml&quot;&gt;
  <ogc:BBOX>
    <ogc:PropertyName>the_geom</ogc:PropertyName>
    <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
      <gml:coordinates>-90,20 -60,40</gml:coordinates>
    </gml:Box>
  </ogc:BBOX>
</ogc:Filter>

The resulting request is:

http://geo.openplans.org:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=topp:states&outputformat=SHAPE-ZIP&filter=<ogc%3AFilter+xmlns%3Aogc%3D"http%3A%2F%2Fwww.opengis.net%2Fogc"+xmlns%3Agml%3D"http%3A%2F%2Fwww.opengis.net%2Fgml"><ogc%3ABBOX><ogc%3APropertyName>the_geom<%2Fogc%3APropertyName><gml%3ABox+srsName%3D"http%3A%2F%2Fwww.opengis.net%2Fgml%2Fsrs%2Fepsg.xml%234326"><gml%3Acoordinates>31.1%2C-20.8+38.8%2C-15.3<%2Fgml%3Acoordinates><%2Fgml%3ABox><%2Fogc%3ABBOX><%2Fogc%3AFilter>

Hope this helps
Cheers
Andrea