OpenLayers.Filter.Comparison value charecter encoding Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to initialize a WFS Layer?OpenLayers WFS flip coordinatesProblem with WFS filters (BBOX, INTERSECTS)Error when add WFSDWithin WFS filter is not workingWFS query against SQL Server - Returned results not restricted by queryGeoServer WFS and ArcGIS Javascript APIAdding a WFS with ajax from Geoserver using Openlayers3WMS returns but WFS does not return same SRS and BBOX valuesGeoServer WFS viewParams for complex features
Universal covering space of the real projective line?
Project Euler #1 in C++
Why is the change of basis formula counter-intuitive? [See details]
Why does electrolysis of aqueous concentrated sodium bromide produce bromine at the anode?
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
How do living politicians protect their readily obtainable signatures from misuse?
Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?
Simple Http Server
Is there public access to the Meteor Crater in Arizona?
What order were files/directories output in dir?
Printing attributes of selection in ArcPy?
How can a team of shapeshifters communicate?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Moving a wrapfig vertically to encroach partially on a subsection title
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
Asymptotics question
Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?
GDP with Intermediate Production
Can an iPhone 7 be made to function as a NFC Tag?
RSA find public exponent
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
Can you force honesty by using the Speak with Dead and Zone of Truth spells together?
Why weren't discrete x86 CPUs ever used in game hardware?
A term for a woman complaining about things/begging in a cute/childish way
OpenLayers.Filter.Comparison value charecter encoding
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to initialize a WFS Layer?OpenLayers WFS flip coordinatesProblem with WFS filters (BBOX, INTERSECTS)Error when add WFSDWithin WFS filter is not workingWFS query against SQL Server - Returned results not restricted by queryGeoServer WFS and ArcGIS Javascript APIAdding a WFS with ajax from Geoserver using Openlayers3WMS returns but WFS does not return same SRS and BBOX valuesGeoServer WFS viewParams for complex features
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am using vector layer with WFS protocol
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0"
)
);
I want to get addresses with some filter and adding filters property fo vector layer:
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0",
"filter": new OpenLayers.Filter.Logical(
type: OpenLayers.Filter.Logical.OR,
filters: [
new OpenLayers.Filter.Comparison(
"type": OpenLayers.Filter.Comparison.EQUAL_TO,
"property": 'name',
"value": "BÖRT De Sem"
)
]
)
)
);
But this filter creates a WFS XML like this.
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Or>
<ogc:PropertyIsEqualTo matchCase="true">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>B�RT De Sem</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
I mean my vaue property is ugly charectes.
"BÖRT De Sem" is going "B�RT De Sem"
So no feature found.
How can I solve this problem?
openlayers-2 wfs feature-layer encoding
add a comment |
I am using vector layer with WFS protocol
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0"
)
);
I want to get addresses with some filter and adding filters property fo vector layer:
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0",
"filter": new OpenLayers.Filter.Logical(
type: OpenLayers.Filter.Logical.OR,
filters: [
new OpenLayers.Filter.Comparison(
"type": OpenLayers.Filter.Comparison.EQUAL_TO,
"property": 'name',
"value": "BÖRT De Sem"
)
]
)
)
);
But this filter creates a WFS XML like this.
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Or>
<ogc:PropertyIsEqualTo matchCase="true">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>B�RT De Sem</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
I mean my vaue property is ugly charectes.
"BÖRT De Sem" is going "B�RT De Sem"
So no feature found.
How can I solve this problem?
openlayers-2 wfs feature-layer encoding
add a comment |
I am using vector layer with WFS protocol
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0"
)
);
I want to get addresses with some filter and adding filters property fo vector layer:
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0",
"filter": new OpenLayers.Filter.Logical(
type: OpenLayers.Filter.Logical.OR,
filters: [
new OpenLayers.Filter.Comparison(
"type": OpenLayers.Filter.Comparison.EQUAL_TO,
"property": 'name',
"value": "BÖRT De Sem"
)
]
)
)
);
But this filter creates a WFS XML like this.
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Or>
<ogc:PropertyIsEqualTo matchCase="true">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>B�RT De Sem</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
I mean my vaue property is ugly charectes.
"BÖRT De Sem" is going "B�RT De Sem"
So no feature found.
How can I solve this problem?
openlayers-2 wfs feature-layer encoding
I am using vector layer with WFS protocol
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0"
)
);
I want to get addresses with some filter and adding filters property fo vector layer:
var adressVector = new OpenLayers.Layer.Vector("Adress",
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS(
url: "http://localhost:8080/geoserver/wfs",
featurePrefix:"compa",
featureType: "adress_location",
featureNS: "http://localhost:8080/location",
srsName: "EPSG:4326",
geometryName: "the_geom",
version: "1.0.0",
"filter": new OpenLayers.Filter.Logical(
type: OpenLayers.Filter.Logical.OR,
filters: [
new OpenLayers.Filter.Comparison(
"type": OpenLayers.Filter.Comparison.EQUAL_TO,
"property": 'name',
"value": "BÖRT De Sem"
)
]
)
)
);
But this filter creates a WFS XML like this.
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="compa:adress_location" srsName="EPSG:4326">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Or>
<ogc:PropertyIsEqualTo matchCase="true">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>B�RT De Sem</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
I mean my vaue property is ugly charectes.
"BÖRT De Sem" is going "B�RT De Sem"
So no feature found.
How can I solve this problem?
openlayers-2 wfs feature-layer encoding
openlayers-2 wfs feature-layer encoding
edited Dec 5 '17 at 20:30
nmtoken
8,12542866
8,12542866
asked Jul 8 '15 at 8:09
bartelomabarteloma
6861226
6861226
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You could try
"value": encodeURI("BÖRT De Sem")
instead of
"value": "BÖRT De Sem"
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f153644%2fopenlayers-filter-comparison-value-charecter-encoding%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You could try
"value": encodeURI("BÖRT De Sem")
instead of
"value": "BÖRT De Sem"
add a comment |
You could try
"value": encodeURI("BÖRT De Sem")
instead of
"value": "BÖRT De Sem"
add a comment |
You could try
"value": encodeURI("BÖRT De Sem")
instead of
"value": "BÖRT De Sem"
You could try
"value": encodeURI("BÖRT De Sem")
instead of
"value": "BÖRT De Sem"
answered Jul 10 '15 at 8:00
Thomas BThomas B
5,8901824
5,8901824
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f153644%2fopenlayers-filter-comparison-value-charecter-encoding%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown