Create Points Tool: Converting Latitude & Longitude to Spatial Objects
Overview & Learning Objectives
Location intelligence is a massive competitive advantage for quick commerce, retail expansion, and logistics routing. However, raw GPS coordinates stored as numeric latitude and longitude cannot participate in spatial calculations (like distance or polygon containment). The Create Points tool converts numeric latitude and longitude coordinates into native Alteryx vector `SpatialObj` point centroids.
- Convert numeric Latitude and Longitude fields into vector `SpatialObj` centroids.
- Configure floating-point coordinates and understand coordinate projections (WGS 84 / EPSG:4326).
- Inspect geographic points on interactive map layers using the Browse tool.
Industry Standard
Standard: Geospatial analytics standards at Uber and Swiggy mandate validating that Longitude falls between -180 and +180 and Latitude falls between -90 and +90 before feeding coordinates into spatial point generation tools.
Real-World Example: ScoopCraft Ice Cream GPS Store Geocoding
ScoopCraft converts outlet addresses and customer delivery coordinates into spatial vector points for delivery zone optimization.
| Location Name | Longitude (X Field) | Latitude (Y Field) | Create Points Tool Output |
|---|---|---|---|
| Bandra West Store | 72.8360 (East) | 19.0596 (North) | Point (SpatialObj: Centroid) |
| Koramangala Store | 77.6245 (East) | 12.9352 (North) | Point (SpatialObj: Centroid) |
| Connaught Place Store | 77.2167 (East) | 28.6315 (North) | Point (SpatialObj: Centroid) |
Configuration & Core Workflow
-- Create Points Tool Configuration
X Field (Longitude): [store_longitude]
Y Field (Latitude): [store_latitude]
[x] Fields are Lat/Long Floating Point
Output Column Created: [Centroid] (Data Type: SpatialObj)
Parameters Breakdown
X Field (Longitude): East/West geographic coordinate (range: -180.0 to +180.0).Y Field (Latitude): North/South geographic coordinate (range: -90.0 to +90.0).Fields are Lat/Long Floating Point: Standard projection mapping (WGS 84) used by GPS and Google Maps.Centroid (SpatialObj): Generated spatial vector object representing the exact point coordinate.
Sample Walkthrough (Q&A)
Question: Why did the Browse tool display an error: "Points fall outside the world boundary"?
Formula / Action: X Field = Latitude (19.05) | Y Field = Longitude (72.83)
Result: Coordinates were accidentally reversed!
Explanation: X must ALWAYS be Longitude and Y must ALWAYS be Latitude. Reversing them puts your stores in the middle of Antarctica or outside the coordinate grid.
Common Mistakes & Limitations
- Swapping X and Y fields (assigning Latitude to X and Longitude to Y), plotting coordinates in the wrong hemisphere.
- Attempting to create points from String columns without casting them to Double or FixedDecimal first.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Remember X vs Y | X = Longitude (Horizontal) | Y = Latitude (Vertical) | X=Long, Y=Lat |
| Map View in Browse | Add Browse -> Select "Map" tab at top left | Map View |
Pro Tips & Modern Alternatives
- Use the `Street Geocoder` tool if you have street address strings without raw GPS coordinates.
- Use Python spatial libraries (`shapely`, `geopandas`) inside the Python tool for custom coordinate projection reprojections.