[Corona] Geo-Index Getting in the Way of Insert
Tom Hubschman
tom.hubschman at warriorgateway.org
Sun Jun 3 18:18:41 PDT 2012
Thanks again for the help Ryan. It's just a simple doc with an ein which is
the URL given to MarkLogic to use. The defaults for lat and long are 0.0 &
0.0.
Here it is:
*"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>*
*<wg_provider xmlns="http://www.warriorgateway.org/WGProvider.xsd">*
* <ein>23rf34ed3weds</ein>*
* <name></name>*
* <is_virtual>false</is_virtual>*
* <contact_information>*
* <contact_person>*
* <first_name></first_name>*
* <last_name></last_name>*
* <email></email>*
* <phone></phone>*
* </contact_person>*
* <physical_address>*
* <address_line_1></address_line_1>*
* <address_line_2></address_line_2>*
* <city></city>*
* <state></state>*
* <zip_code>0</zip_code>*
* <latitude>0.0</latitude>*
* <longitude>0.0</longitude>*
* </physical_address>*
* <phone_numbers>*
* <phone_1></phone_1>*
* <fax></fax>*
* </phone_numbers>*
* <web_addresses>*
* <email></email>*
* <url></url>*
* </web_addresses>*
* </contact_information>*
* <description></description>*
* <coverage_area>*
* <zip_code>0</zip_code>*
* <range_in_miles>0</range_in_miles>*
* </coverage_area>*
*</wg_provider>*
*"*
Regards,
Tom
On Sun, Jun 3, 2012 at 8:46 PM, Ryan Grimm <grimm at xqdev.com> wrote:
> Hey Tom,
>
> It looks like the geo points that are in the XML you're trying to insert
> aren't valid coordinates (0.0 isn't a valid latitude/longitude pair). But
> the element names in the error message suggest that something else might be
> going on as well, perhaps the geospatial index configuration isn't matching
> the document structure. Could you attach the document that you're trying to
> insert so we can have a closer look?
>
> --Ryan
>
> On Jun 3, 2012, at 5:16 PM, Tom Hubschman <
> tom.hubschman at warriorgateway.org> wrote:
>
> Hi All,
>
> I have a question regarding a Geo-Index I added a while back. It was
> added to provide the geo-query functionality in the GINetwork app. I have
> not had the need to add any additional XML documents since then. When I
> tried to turn on new add functionality today by adding a sample document I
> got the following error:
>
> *2012-06-03 19:57:27.359 Info: 9092-Corona-20120110a: Error:
> {"error":{"status":500,"code":"corona:INTERNAL-ERROR","message":"Range
> index error (XDMP-RANGEINDEX: Range index error: point
> fn:doc(\"/GINetwork/providers/32d32a.xml\")/*:wg_provider/*:contact_information/*:physical_address/*:latitude:
> XDMP-CAST: (err:FORG0001) Invalid cast: xs:untypedAtomic(\"0.0\") cast as
> cts:point)"}}*
>
> Do you have any ideas? I am sending this also to the Corona listserv. I
> previously had no problem adding documents.
>
> Regards,
>
> Tom
>
> _______________________________________________
> Corona mailing list
> Corona at developer.marklogic.com
> http://community.marklogic.com/mailman/listinfo/corona
>
>
--
Thomas Hubschman
Director, Engineering
tom.hubschman at warriorgateway.org
Mobile: (415) 612-0359
www.warriorgateway.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://community.marklogic.com/pipermail/corona/attachments/20120603/53a4e2f2/attachment.html
More information about the Corona
mailing list