Re: point buffer returned as an elipse, how to configure?

2014-09-25 Thread david.w.smi...@gmail.com
Hi Mark,

I asked a follow-up question/observation to your Stackoverflow
instantiation of your question.

I also wrote the following, which doesn’t yet fit into an answer because I
don’t know what problem you are yet experiencing:

Some technical details: geo=true|false is an attribute on the field type;
it isn't a request parameter.  Should you want to change it to geo=false,
you will also have to set the worldBounds and certainly re-index.  Almost
any change to a field type in the schema requires a re-index.  If your
units stay degrees then you can continue to use "lat,lon" format, but if
you use another unit specific to some projection then it's not degrees and
I suggest switching to "x y" to avoid confusion with lat,lon format.  FYI
units=degrees is required but it has no effect.  When geo=true, the 'd' in
geofilt is kilometers, when geo=false, 'd' is in the units of the numbers
you put into the index.  The docs are here:

https://cwiki.apache.org/confluence/display/solr/Spatial+Search


It would be awesome if you want to help further spatial in Lucene/Solr.
This year is looking like a great year for spatial — I’m particularly
excited about a new “FlexPrefixTree” from Varun (GSOC 2014) together with
the latest advances in auto-prefixing to be released in Lucene/Solr 5.0.


~ David Smiley
Freelance Apache Lucene/Solr Search Consultant/Developer
http://www.linkedin.com/in/davidwsmiley

On Thu, Sep 25, 2014 at 8:42 AM, Mark G  wrote:

> Solr team, I am indexing geographic points in dec degrees lat lon using the
> location_rpt type in my index. The type is setup like this
>
>   class="solr.SpatialRecursivePrefixTreeFieldType"
> geo="true" distErrPct="0.025" maxDistErr="0.09" units="degrees"
>  />
>
> my field definition is this
>
>  stored="true"  multiValued="false"/>
>
> my problem is the return is a very narrow but tall ellipse likely due
> to the degrees and geo  true... but when I change those params to
> geo=false...the index won't start
> this is the query I am using
>
>  String query =
> "
> http://myserver:8983/solr/mycore/select?&q=*:*&fq={!geofilt}&sfield=pointGeom_rpt&pt=
> "
> + lat + "," + lon + "&d=" + distance +
> "&wt=json&indent=true&geo=true&rows=" + rows;
>
>
>
> I am not using solr cloud, and I am on version 4.8.0
>
> I also opened up this stackoverflow question... it has some more details
> and a picture of the return I get
>
>
> http://stackoverflow.com/questions/25996820/why-is-solr-spatial-buffer-returned-as-an-elipse
>
>
> BTW, I'm an OpenNLP committer and I am very geospatially focused, let me
> know if you want help with anything geo, I'll try to carve out some time if
> needed.
>
> thanks
> G$
>


point buffer returned as an elipse, how to configure?

2014-09-25 Thread Mark G
Solr team, I am indexing geographic points in dec degrees lat lon using the
location_rpt type in my index. The type is setup like this

 

my field definition is this



my problem is the return is a very narrow but tall ellipse likely due
to the degrees and geo  true... but when I change those params to
geo=false...the index won't start
this is the query I am using

 String query =
"http://myserver:8983/solr/mycore/select?&q=*:*&fq={!geofilt}&sfield=pointGeom_rpt&pt=";
+ lat + "," + lon + "&d=" + distance +
"&wt=json&indent=true&geo=true&rows=" + rows;



I am not using solr cloud, and I am on version 4.8.0

I also opened up this stackoverflow question... it has some more details
and a picture of the return I get

http://stackoverflow.com/questions/25996820/why-is-solr-spatial-buffer-returned-as-an-elipse


BTW, I'm an OpenNLP committer and I am very geospatially focused, let me
know if you want help with anything geo, I'll try to carve out some time if
needed.

thanks
G$