For reference here was my "review" (mostly making the code example line up with
the bullet point they refer to.
Let me review; you have the following:
* Filter using a text pattern: .. literalinclude::
/../src/main/java/org/geotools/cql/ECQLExamples.java :language: java
:start-after: // ecql likePredicate start :end-before: // ecql likePredicate
end .. literalinclude:: /../src/main/java/org/geotools/cql/ECQLExamples.java
:language: java :start-after: // ecql ilikePredicate start :end-before: // ecql
ilikePredicate end .. literalinclude::
/../src/main/java/org/geotools/cql/ECQLExamples.java :language: java
:start-after: // ecql likePredicateInString start :end-before: // ecql
likePredicateInString end
I would do it slightly different; indenting the examples so they "line up with"
the initial "* " (so indenting them two characters; I also like to have some
text for people to know what they are looking at. So I would of done something
like...
* Filter using a text pattern:
Filter for a text pattern using LIKE keyword:
.. literalinclude:: /../src/main/java/org/geotools/cql/ECQLExamples.java
:language: java :start-after: // ecql likePredicate start :end-before: // ecql
likePredicate end
Case insensitive example with ILIKE keyword:
.. literalinclude:: /../src/main/java/org/geotools/cql/ECQLExamples.java
:language: java :start-after: // ecql ilikePredicate start :end-before: // ecql
ilikePredicate end
ECQL allows you to test any two expression, including literals:
.. literalinclude:: /../src/main/java/org/geotools/cql/ECQLExamples.java
:language: java :start-after: // ecql likePredicateInString start :end-before:
// ecql likePredicateInString end
.. note::
d"word-wrap:="" break-word;="" white-space:="" pre-wrap;="" style="white-space:
pre-wrap; "> The CQL and ECQL syntax both make use of SQL style wild cards:
* \% - is used to match any number of characters
* \* - is used to match a single character
--
Jody Garnett
On Thursday, 5 May 2011 at 12:18 AM, Mauricio Pazos wrote:
> On Monday, May 02, 2011 01:13:44 pm Jody Garnett wrote:
> > Oh we should have these discussions on the email list; so others can swap
> > tips as well.
> >
> Ok, I am CC this to geotools-devel list
>
> > > Hello Jody, axios have taken some free day. Today we have gone back to
> > > work.
> > >
> > > I would like to continue the cql sphinx doc, but I have a doubt.
> > >
> > > The FAC page have references to CQLExamples.java and ECQLExamples.java.
> > >
> > > http://docs.geotools.org/latest/userguide/library/cql/faq.html
> > >
> > > I think the examples of this page
> > >
> > > http://docs.geotools.org/latest/userguide/library/cql/cql.html
> > >
> > > should point to ECQLExamples.java
> > >
> > > and
> > > http://docs.geotools.org/latest/userguide/library/cql/ecql.html
> > >
> > > should point to ECQLExamples.java
> > >
> > > I added the "Filter using a text patter" (like / ilike) but I am no sure.
> > >
> > > Am I right?
> > >
> > >
> > > cheers
>
> --
> Mauricio Pazos
> www.axios.es
>
>
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel